Yes, I was hoping for something dryer.

On Apr 1, 6:39 am, sprite <aake.gregert...@gmail.com> wrote:
> This is probably not the best way to do it, but I ended up copying and
> pasting all the routes for User for each of my subclassed user types.
>
> On Mar 31, 1:39 pm, moritz <a5s...@yahoo.com> wrote:
>
> > I've subclassed the CE User type using single-table inheritance and it
> > all seemed to work fine.
>
> > Now I discovered that polymorphic_url (used in commentable_url in
> > BaseHelper) doesn't work well with it.  Instead of user_photo_path for
> > example, it looks for myusertype_photo_path, which it can't find.
>
> > I'm not that familiar with the route management and I'm looking for
> > options to revive the behavior of comments w/o going all the way back
> > to one single user class.  What are good options for it?  Can I make
> > polymorphic_url believe that myusertype is a user and to just use
> > that?  Other alternatives?
>
> > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to