Syntax for <input type=hidden> in rhtml?

Hi,

I am new to ROR. PLease tell me what is syntax of creating hidden field
in form inside RHTML file. I knonw the syntax for text box (<%=
text_field ‘product_item’,‘product_id’, :value=>product.id%>)
But I don’t know syntax for hidden field(like in
HTML).

Please tell me.

Thanx in advance.
Prash

Hi,

You should try to check up the rails api at http://api.rubyonrails.org/

anyway the syntax is hidden_field(object, method, options = {})

Prashant T. wrote:

Thanx in advance.
Prash


Sau S.

http://www.saush.com
http://read.saush.com
http://jaccal.sourceforge.net

Instead of text_field, use hidden_field. Simple!

-Jonathan.