Todd A. Jacobs wrote:
> On Sat, Nov 07, 2009 at 01:03:37PM +0100, Aashish Kiran wrote:
> 
> 
>> I am new to rails. can anyone explain in detail about partials in
>> rails. my rails version is 2.3.4. How to use them?
> 
> Partials are basically "includes." The tricky part is generally getting
> variables from the main view to propagate to the partial.

Not tricky at all.

> This requires
> using ":locals=>{}" properly, which doesn't always seem to work the way
> I expect.

It has always worked for me.  Can you provide an actual example that 
doesn't work?

> 
> --
> "Oh, look: rocks!"
>   -- Doctor Who, "Destiny of the Daleks"

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to