> ActiveRecord::Base.transaction as the full name indicates is is not
> available in ApplicationController . 

Did not get the above statement..Anyway you can do like

def controller_action

begin
ActiveRecord::Base.transaction do
   ---------your all transactions here
end
rescue ActiveRecord::ActiveRecordError => e:
     ---------- rescue code here
else
      ----------in case nothing raised
end

end

           But better to move this to model so to make controller skinny


Sijo
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to