Friday, January 4, 2013

Rails Exception Handling


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

No comments:

Post a Comment