search for: product_item

Displaying 2 results from an estimated 2 matches for "product_item".

2006 Mar 10
2
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 <input type=hidden> in HTML). Please tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 10
1
How to use variables inside rhtml??
...se for loop for looping througn each set of elements in form & give name to form elements as "element_name"+i (i is counter variable) I tried it with following code but its nt working:- =========== <% @i=0 %> <% for product in @products %> <%= text_field ''product_item'',''product_id+@i.to_s'', :value=>product.id%></td> <%end%> ============ But its not working proper as I m accessing the value of each textbox in controller class as folllows:- ========= for product in @products params[:product_item][:product_id+'...