[Rails] Re: how to params from a method to partial in rails

2009-11-07 Thread Aashish Kiran
Colin Law wrote: > 2009/11/7 Aashish Kiran : >> >> hi, >> can anyone tell how to pass params to a partial. >> -- > > As Leonardo Mateo pointed out in your other thread, > http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials > should help. > > I presume you have already worked

[Rails] Re: how to params from a method to partial in rails

2009-11-07 Thread Artem Korolev
render :partial => 'some_partial', :locals => {:need_in_partial => @recived_from_controller} 2009/11/7 Colin Law > > 2009/11/7 Aashish Kiran : > > > > hi, > > can anyone tell how to pass params to a partial. > > -- > > As Leonardo Mateo pointed out in your other thread, > http://guides.rubyonrai

[Rails] Re: how to params from a method to partial in rails

2009-11-07 Thread Colin Law
2009/11/7 Aashish Kiran : > > hi, > can anyone tell how to pass params to a partial. > -- As Leonardo Mateo pointed out in your other thread, http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials should help. I presume you have already worked through the Getting Started guide.