Topic: Can models access controller methods?

I have a method in a model that needs to access a method in a controller. Is this possible to do?

- Steve

Re: Can models access controller methods?

In short, nope. This limitation was set on purpose to encourage good Model-View-Controller design. If the model needs access to the controller, it is probably trying to do something it wasn't ever meant to do.

There probably is work around/hack to do this, but I don't know of any, and it's not really recommended.

Railscasts - Free Ruby on Rails Screencasts