On 8/21/07, Courtenay <[EMAIL PROTECTED]> wrote:
>
> ...
>
> Which do you prefer?
>
>   Site.find_by_domain(request.host)
>   Site.find_by(:domain, request.host)
>
> The former has less symbols, the latter is more searchable-in-the-API
> and while it only covers a simple use-case, I feel it's "better".



Are people really getting confused by the dynamic finders not being in the
API? It's my impression that they are 1) pretty noticeable and identifiable,
since they all follow the same pattern, and 2) cool for Rails newbies, so
most people try them out and appear to understand how they work (even if
they don't understand how they're implemented).

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