If you have utility methods you wish to call from views use the Rails helper convention and put them in modules under app/helpers - you can use the rails command line script to help you generate them if need be.
Max On 1/25/12, ROR-new <marios_a...@hotmail.com> wrote: > I want to call a method that i have implemented in the controller and > i don't know how to call it from the index.html.erb file. > Please help. > > -- > 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. > > -- 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.