Forum: Ruby on Rails NOOB: Passing parameters between pages

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marcus B. (Guest)
on 2006-05-18 01:34
(Received via mailing list)

I have a rhtml page (page A) that links to another page (page B), and I
want to pass some parameters from page A to page B.

Here is the link code (on page A):
<%= link_to 'Edit', { :action => 'edit', :id => permit }, :post => true

If I want to pass a parameter "name" and a value "marcus", and pick it
up on page B, how is this done?

Ben R. (Guest)
on 2006-05-18 01:50
(Received via mailing list)
<%= link_to 'Edit', { :action => 'edit', :id => permit, :name =>
"marcus" }, :post => true   %>

On 5/17/06, Marcus B. <removed_email_address@domain.invalid> wrote:

Ben R.
This topic is locked and can not be replied to.