#33 new
Robert Crim (ottbot)

Feather as slice - lost path to admin templates

Reported by Robert Crim (ottbot) | January 22nd, 2009 @ 05:57 AM

This may not be a bug, but is something I'd like to resolve..

I've got feather mounted as slice at /blog

I froze all of feather into slices, the templates are at: MERB_ROOT/slices/feather/app/views

This was working fine, I made some changes to have feather use my app's auth system (merb-auth) and users, and at some point merb stopped finding the templates for feather's admin area.

One of the last things I changed was removing:

self.template_roots << [Feather.slice_path_for(:view), :template_location] if Feather.respond_to?(:slice_path_for)

From feather/controller/exceptions.rb, so I could use my app's login templates.

I reverted this changes, and others and I couldn't get the admin area to work until I added to self._template_roots inside of feather/app/controllers/admin/base.rb

This seems to be working now, but is not very nice. I'm not really sure what's going on. Also, it would be nice if feather made it easier to use a different model for users (though it was too much work to change).

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core code for Feather, a lightweight Merb-based blogging engine.

People watching this ticket

Pages