Displaying 1 result from an estimated 1 matches for "jrwqzuxpexrtujy1".
2006 Jul 10
3
how to access a model from application.rb
Hi All
How do I access a model from within the application.rb?
What im tying to do is pull some data from a model (news in this case)
that must be displayed on each page within the entire application. I
know I could drop this into each controller, have each view pull it from
the controller, but thats repeating myself...
So whats the best way to do this (as I dont think models are visible