On Wednesday 17 June 2009, Fernando Perez wrote:
> Instead of:
>
> <%= user.login %>
> <%= user.age %>
>
> We could call:
>
> <%= user.display %>
>
> So that attributes change only in 2 locations (Model and ModelRender)
> instead of 100 different places.

That would be a job for either helper methods or partials.

Michael

-- 
Michael Schuerig
mailto:mich...@schuerig.de
http://www.schuerig.de/michael/


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

Reply via email to