[Rails] RE: can you pass data when you render :action
Bharat Ahluwalia
bharata at aditi.com
Thu Jul 27 04:26:18 GMT 2006
> Date: Thu, 27 Jul 2006 01:44:58 +0200
> From: Ben Lisbakken <lisbakke at gmail.com>
> Subject: [Rails] can you pass data when you render :action
> To: rails at lists.rubyonrails.org
> Message-ID: <cece5d24da81836e4482ae45a196fbe0 at ruby-forum.com>
> Content-Type: text/plain; charset=utf-8
>
> how can i do:
> render :action => "headline", :id => @user.id
>
> Thanks,
> Ben Lisbakken
Not sure what you are trying to do, but u can use @user variable itself
in the view.
Bharat
http://blog.publishedperspectives.com
More information about the Rails
mailing list