OK here it is the syntaxis:
<%= text_field ''sample'', ''source_ID'',
''value'' => params[:source_ID] %>
Thanks!
Alvaro Perez wrote:> Hi there,
>
> I''m trying to create a input text field in a rhtml webpage with
some
> value already written, taken from the params, which the user can change
> by hand if neccesary. I cannot find some kinf of "value" option
on the
> text_field tag documentation. Can anyone help me?
>
>
> Thanks,
> Alvaro.
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---