Creating your own params

I want to pass my own param called randid so I can do this
@rnd = params[:randid]
this will work if I can pass the :randid

On 4/28/06, Mohammad [email protected] wrote:

I want to pass my own param called randid so I can do this
@rnd = params[:randid]
this will work if I can pass the :randid

Just make a form input field with the name ‘randid’, and you’re good.
If you want to do it via a GET, you can pass it in the URI and define
the name ‘randid’ for it in routes.rb

You can also do it like this…

link_to ‘action’, :action=>‘action’, :randid=>randid

On Friday, April 28, 2006, at 10:51 PM, Wilson B. wrote:

Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

_Kevin