Michael,

Helpers go in rails_root/app/helpers.  Look in there.  If you used
scaffold, You should have files for controller specific helpers and a
global helper file named application_helper.rb

HTH,
Dan

On Jan 24, 1:02 pm, Michael Baldock <li...@ruby-forum.com> wrote:
> Thanks guys, got it going now!
>
> Used Hassan's suggestion of putting a method in the model, as I wasn't
> sure how to make a view helper
>
> @Fred - just out of interest
>
> to make a view helper do I need to make a new file in views/shared?
> do I then define methods in here as normal?
> def methodname(args)
> body
> end
>
> how do I make it inherit all the functionality needed to compare dates /
> search the database?
>
> Thanks both for your help!
>
> M
>
> --
> Posted viahttp://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