you got to store the values in the controller def then with the id you can
pass the values to view .but u can send the value with a link or with
redirecting
here it is
def demo
@all=params[:t1]
redirect_to :controller=>'here ur controller name',:action=>'here ur view
page name',:id=>@a

end
here the name of the id is not constant u can give any name here . i hope u
will get it

On Tue, Aug 23, 2011 at 4:38 PM, ramya <[email protected]> wrote:

> Hi,
>
> I need to pass the parameters from a method in a controller to a form
> (i.e in views).
> Please let me know how to achieve this.
>
>
> Thanks,
> Ramya.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to