hi,
can anyone tell how to pass params to a partial.
2009/11/7 Aashish K. [email protected]:
hi,
can anyone tell how to pass params to a partial.
As Leonardo M. pointed out in your other thread,
should help.
I presume you have already worked through the Getting Started guide.
ActiveRecord Relations is also compulsory reading. Also have a look
at the railscasts.
Colin
render :partial => ‘some_partial’, :locals => {:need_in_partial =>
@recived_from_controller}
2009/11/7 Colin L. [email protected]
Colin L. wrote:
2009/11/7 Aashish K. [email protected]:
hi,
can anyone tell how to pass params to a partial.As Leonardo M. pointed out in your other thread,
Layouts and Rendering in Rails — Ruby on Rails Guides
should help.I presume you have already worked through the Getting Started guide.
ActiveRecord Relations is also compulsory reading. Also have a look
at the railscasts.Colin
thank you