RoR Difficulty accessing params in controller?

While the other answer would work, this is probably what you'd want to be doing (using select_tag(:id) will automatically add an :id key/value to the params hash): % form_tag('switch_car', :method => :put) do %> Car Name.

While the other answer would work, this is probably what you'd want to be doing (using select_tag(:id) will automatically add an :id key/value to the params hash): :put) do %> Car Name: Then you can easily access params:id in the controller.

Thanks this is a little cleaner than the below answer so I will use this. Both did work though. – Xaxum Aug 2 at 20:41.

You want params:params":id" Alternatively, you could put this in your view: And then in your controller:if params:car_info:id.

Thanks this answer worked but the above is a little cleaner so I will use that. I wish I could vote it up but I don't have enough rep yet. Thanks again.

– Xaxum Aug 2 at 20:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions