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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060517/ea6f6041/attachment.html
<%= link_to ''Edit'', { :action =>
''edit'', :id => permit, :name =>
"marcus" }, :post => true %>
On 5/17/06, Marcus Blankenship <MarcusB@jeld-wen.com>
wrote:>
>
>
> 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
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
--
Ben Reubenstein
303-947-0446
http://www.benr75.com
Thanks, worked like a charm!
-----Original Message-----
From: rails-bounces@lists.rubyonrails.org
[mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Ben
Reubenstein
Sent: Wednesday, May 17, 2006 2:48 PM
To: rails@lists.rubyonrails.org
Subject: Re: [Rails] NOOB: Passing parameters between pages
<%= link_to ''Edit'', { :action =>
''edit'', :id => permit, :name =>
"marcus" }, :post => true %>
On 5/17/06, Marcus Blankenship <MarcusB@jeld-wen.com>
wrote:>
>
>
> 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
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
--
Ben Reubenstein
303-947-0446
http://www.benr75.com
_______________________________________________
Rails mailing list
Rails@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails