> Helper means view helper: they are only included in views. If you want
> a method you can call from views or controllers you need to define it
> in your controller (if you need all controllers to see it then in
> ApplicationController) and use helper_method to make it accessible to
> views.
> 
> Fred

Okay, so how would you allow a controller (or even a model) to use for 
instance the helpers truncate or sanitize?
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to