Friday, January 4, 2013

Rails Exception Handling


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