Friday, January 4, 2013

Rails Exception Handling


begin
  some code
rescue Exception => ex      
  flash[:error] = "#{ex}"
  render :index
end