Is it possible to write helpers for layouts? If so, how is it done?
People succeed in answering Adam Thorsen's questions 46% of the time (24 successes in 52 attempts).
Answers by: Justin Lilly
Each controller has its own helper. the Book controller has book_helper.rb.
What you'll need to edit is application_helper.rb which allows the functions to be available application wide (ie: in your views).
Hope it helps,
-justin
Ok. I'll give that a try and see if it works. Thought I tried it, but I was trying a lot of things so I'll try it again.