HighDots Forums  

how to params from a method to partial in rails

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss how to params from a method to partial in rails in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aashish Kiran
 
Posts: n/a

Default how to params from a method to partial in rails - 11-07-2009 , 08:41 AM






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

Reply With Quote
  #2  
Old   
Colin Law
 
Posts: n/a

Default Re: how to params from a method to partial in rails - 11-07-2009 , 08:50 AM






2009/11/7 Aashish Kiran <rails-mailing-list (AT) andreas-s (DOT) net>:
Quote:
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 (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #3  
Old   
Artem Korolev
 
Posts: n/a

Default Re: how to params from a method to partial in rails - 11-07-2009 , 03:12 PM



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

2009/11/7 Colin Law <clanlaw (AT) googlemail (DOT) com>

Quote:
2009/11/7 Aashish Kiran <rails-mailing-list (AT) andreas-s (DOT) net>:

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

Reply With Quote
  #4  
Old   
Aashish Kiran
 
Posts: n/a

Default Re: how to params from a method to partial in rails - 11-07-2009 , 03:38 PM



Colin Law wrote:
Quote:
2009/11/7 Aashish Kiran <rails-mailing-list (AT) andreas-s (DOT) net>:

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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.