Ruby on Rails Friday, July 2, 2010

Aha !

"You could put the @banner_url = BannerAdvert.. in you
application_controller.rb. Make it a before_filter."

That's the bit I missed then, I just stuck @banner_url =
BannerAdvert.first in the application_controller.rb, I need a
before_filter to call a method in that controller - that right ?
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment