how to params from a method to partial in rails

View: New views
4 Messages — Rating Filter:   Alert me  

how to params from a method to partial in rails

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hi,
can anyone tell how to pass params to a partial.
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: how to params from a method to partial in rails

by Colin Law-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


2009/11/7 Aashish Kiran <rails-mailing-list@...>:
>
> 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.
ActiveRecord Relations is also compulsory reading.  Also have a look
at the railscasts.

Colin

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: how to params from a method to partial in rails

by Artem Korolev-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

render :partial => 'some_partial', :locals => {:need_in_partial => @recived_from_controller}

2009/11/7 Colin Law <clanlaw@...>

2009/11/7 Aashish Kiran <rails-mailing-list@...>:
>
> 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.
ActiveRecord Relations is also compulsory reading.  Also have a look
at the railscasts.

Colin




--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: how to params from a method to partial in rails

by Adam Akhtar-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Colin Law wrote:

> 2009/11/7 Aashish Kiran <rails-mailing-list@...>:
>>
>> 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.
> ActiveRecord Relations is also compulsory reading.  Also have a look
> at the railscasts.
>
> Colin

thank you

--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---