Forum: Ruby on Rails NOOB: Passing parameters between pages

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.
Marcus B. (Guest)
on 2006-05-18 01:34
(Received via mailing list)
Folks,

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?

Thanks,
Marcus
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.
303-947-0446
http://www.benr75.com
This topic is locked and can not be replied to.