views:

14

answers:

1

I have an HTML element in a form with name product[prod_name]

how do get access to its value in my action using params

+1  A: 

You can access the value like this:

params[:product][:prod_name]
Tomas Markauskas