I have a method in a model that needs to access a method in a
controller. Is this possible to do?
- Steve
I have a method in a model that needs to access a method in a
controller. Is this possible to do?
On 12/5/06, Steve Q. [email protected] wrote:
I have a method in a model that needs to access a method in a
controller. Is this possible to do?
Maybe, but this would very strongly indicate a design flaw in your
application. Can you post some code for us to look at?
Cheers,
Max
This is definitely a design flaw. Model should not be aware of any
controller. It should never access any methods in the controller.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs