@ 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
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
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
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
4 matches
Mail list logo