On 8/21/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote:
> On 8/21/07, Pratik <[EMAIL PROTECTED]> wrote:
> >
> > Even though I like   Site.find_by(:domain, request.host) more that
> > Site.find_by_domain, it seems like we're solving the wrong problem.
>
> I like find_by_domain more (nicer to type and look at) and I also feel that
> "solving" this is wrong.
>
> You said that the downside of dynamic finders is that they don't show up in
> API documentation, and people are confused where the methods got from. Well,
> this may be true for people who have never read the basic documentation for
> AR::Base, because the concept of dynamic finders is nicely outlined there.
> Those who have quickly realize the methods are a no-brainer. What about
> dynamic getters and setters on models: how to explain to people that their
> Post instances have "title" and "published_at" properties? Do those appear
> in API documentation?

Yeah I was curious more than anything else :)

Magic 1, Defined 0

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