As in java, if we use request.GetParameterById, we can get the ID from the html page and we use the ID to the required query and we use prepare statement to form the full query..
In rails I found we have to use find_by_id.. By i havent get the full details how to use of it. Any one please explain me clearly how to use of it.
Thanks in advance
if you have a form like this
In your controller ‘create’ action
a more simple example would be
you could get this from the corresponding controller action as
If you see the log, you could see how these parameters are passing (Ex: log/development.log)
here is a sample
HTH