Creating your own params


#1

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


#2

On 4/28/06, Mohammad removed_email_address@domain.invalid 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


#3

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
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

_Kevin