Tom Ha wrote: > Hi there, > > is there a way in Rails to use helpers in an Initializer ?
You should never need to. Helpers are only for generating view code, and you shouldn't be doing that in initializers. > > If yes, how ? > > If no, where else to put the code needed in the Initializer (as well as > in views) ? In the application_controller.rb ? > > Thanks for any hints! > Tom What are you trying to achieve? -- Marnen Laibow-Koser http://www.marnen.org [email protected] Sent from my iPhone -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

