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?
Short answer: no. If you need to do this, then you’ve designed things
badly to start with.
The long answer depends on what, exactly, you’re doing. Care to
elaborate on what the controller method does and how it works?
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