On 10/18/07, Brennan Dunn <[EMAIL PROTECTED]> wrote:
>
>
> I have an Asset class that extends AR::Base, and a series of
> subclasses of Asset (Stylesheet, Layout, etc.)
>
> when doing something like url_for([EMAIL PROTECTED], @asset]), if @asset is a
> Stylesheet, I'll get an undefined method 'site_stylesheet_path',


That is what I would expect. I certainly wouldn't expect that it tries
site_asset_path for a Stylesheet object.

However, if site_stylesheet_path isn't specified, Rails could be patched to
lookup site_xxx_path trying Stylesheet ancestors one-by-one. That could be a
hog, though.

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