In rails how do you get information from view to use in a controller. Like if i have a page with a text field and a button, how would i send the value from the field (without a model) into my controller to work with it in one of my functions. Im using rails 3
Share
Sounds like you could use a simple form, for example:
in your
views/products/index.html.erb:in your
controllers/products_controller.rb:You will also want to configure
routes.rb, for example like this: