[Rails] call a controller method from model
Hi people
I have a problem. I want to know if it is possible to call a method
(in the controller of a class) from an action, a callback or something
in a related model.
e.g.
Model A "has many" Model B
But every time Model A is updated I need to execute a (custom)
controller method in Model B
Hope you can help me
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home