My2c...

You might consider the syntax <%= link_to &:name, @company %> instead
of just a symbol, since it fits with existing idioms and wouldn't
break backwards compatibility.

On 6/28/07, Josh Peek <[EMAIL PROTECTED]> wrote:
>
> 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
>
> I've had that in my plugin, but I like your defaults to name and title
> better :)
>
> http://svn.joshpeek.com/projects/plugins/stringgable_shortcuts/
>
>
> >
>

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