Thanks, Mislav!

I created a pastie of the to_s-oriented patch, so that others could
test out the DRY-ed link_to syntax: http://pastie.caboo.se/74452

With both of these pasties applied, I've been refactoring my link_to
calls  -- ex: <%= link_to @post %> links to the resource, with the
@post.title as the link text -- very nice.


On Jun 28, 10:26 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
wrote:
> On 6/28/07, Geoff B <[EMAIL PROTECTED]> wrote:
>
>
>
> > It would be nice if ActiveRecord objects had a readable default #to_s
>
> http://pastie.caboo.se/74412


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to