[Rails] Re: ActiveRecord errors ... Best way to rescue a live web application?

2010-08-15 Thread slindsey3000
@ Bituin Bautista Thank you works great. On Aug 11, 7:22 pm, "Bituin Bautista" wrote: > try this: > instead of ActiveRecord::Errors use ActiveRecord::ActiveRecordError, > > class ApplicationController < ActionController::Base > >   rescue_from ActiveRecord::ActiveRecordError, :with => :method_na

Re: [Rails] Re: ActiveRecord errors ... Best way to rescue a live web application?

2010-08-12 Thread Bill Walton
On Thu, Aug 12, 2010 at 9:24 AM, Marnen Laibow-Koser wrote: > slindsey3000 wrote: >> Hi all, >> >> I have some issues when a link is clicked twice quickly that deletes >> an ActiveRecord row. >> >> All I really want to do is set up some universal catch that will >> redirect all application errors

[Rails] Re: ActiveRecord errors ... Best way to rescue a live web application?

2010-08-12 Thread Marnen Laibow-Koser
slindsey3000 wrote: > Hi all, > > I have some issues when a link is clicked twice quickly that deletes > an ActiveRecord row. > > All I really want to do is set up some universal catch that will > redirect all application errors to index. > > Best way? Put a redirect tag in 404.html or 500.html

[Rails] Re: ActiveRecord errors ... Best way to rescue a live web application?

2010-08-12 Thread Fernando Perez
in your ApplicationController, define: def rescue_action(exception) super # optional # your code end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to ruby