Text_field

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.

OK here it is the syntaxis:

<%= text_field ‘sample’, ‘source_ID’, ‘value’ => params[:source_ID] %>

Thanks!

Alvaro P. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs