[Rails] form_helpers ?

Dark Ambient
Sun, 16 Jul 2006 17:24:45 -0000

These are the ones I''m speaking about . Yes the text_field, etc.
http://api.rubyonrails.org/files/vendor/rails/actionpack/lib/action_view/helpers/form_helper_rb.html
I gather they are not part of the code that goes into helper files.

Stuart


On 7/16/06, Stephen Bartholomew <sb@2404.co.uk>
wrote:
> > :), so form_helpers are part of the code that goes into the
app\helpers
> > files ?
> I''m not sure what you mean by form_helpers - are you talking about
the
> rails form helpers like ''text_field'' or
''submit_tag''?
>
> View helpers are defined in app/helpers.  So you can write methods that
> will be accessible in your views:
>
> -- app/helpers/pages_helper.rb
> module PagesHelper
>    def say(message)
>      message
>    end
> end
>
> -- app/views/pages/index.rhtml
> <%= say ''Hello!'' %>
>
> This would display:
>
> Hello!
>
> Hope that helps,
>
> Steve
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>