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. This requires
using ":locals=>{}" properly, which doesn't always seem to work the way
I expect.

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


--~--~---------~--~----~------------~-------~--~----~
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