The partial contains reusable markup - implementation of layout code. A helper contains reusable functionality for the view in effort to keep the view succinct and free of embedded logic.
On Aug 9, 2011, at 5:39 PM, Bruno Meira wrote: > Well, I was reading Agile Web Development book and one question > appeared in my head. > When exactly I use partial and when exactly I use helper. As the book > says we could create html code in a shared helper, so Why we need to > use partial or layout instead of on shared helper? > > -- > 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. > -- 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.

