Forum: Ruby on Rails Creating your own params

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0a36dd2d45a8cead5dcfd27a9346f620?d=identicon&s=25 Mohammad (Guest)
on 2006-04-29 04:47
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
25e11a00a89683f7e01e425a1a6e305c?d=identicon&s=25 Wilson Bilkovich (Guest)
on 2006-04-29 04:53
(Received via mailing list)
On 4/28/06, Mohammad <name.goes.here44@gmail.com> 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
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Kevin Olbrich (Guest)
on 2006-04-29 05:11
(Received via mailing list)
You can also do it like this...

link_to 'action', :action=>'action', :randid=>randid

On Friday, April 28, 2006, at 10:51 PM, Wilson Bilkovich wrote:
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails


_Kevin
This topic is locked and can not be replied to.