baaz wrote: > Hi all, > > I am using the excellent merb-auth-slice password slice. I am reading > the following in the documentation: > > "You can put your application-level overrides in: > > host-app/slices/merb-auth-slice-password/app - controllers, models, > views ... > > Templates are located in this order: > > 1. host-app/slices/merb-auth-slice-password/app/views/* > 2. gems/mauth_password_slice/app/views/* > 3. host-app/app/views/* > > To customize the login form, create a view in your host-app > > host-app/app/views/exceptions/unauthenticated.html.haml" > > So I modified the unauthenticated.html.erb file in the slices/meb-auth- > slice-password/app/views/exceptions/ folder since that's what is > looked up first according to the documentation above. Unfortunately, > this view never seems to be picked up. If I put it into host-app/app/ > views/exceptions/ than it works fine. However, I think that the > cleanest solution would be to put the overrides in the slices > directory to prevent conflicts (e.g I could have several > authentication slices that require different login forms and thus > different unauthenticated.html.erb views. Having this file under host- > app/app takes away the control of which auth slice to use for > authentication). > > (I copied the slice's files with rake slices:merb-auth-slice- > password:patch) > > What am I missing? > There are already a bug report about this issue.
http://merb.lighthouseapp.com/projects/7433-merb/tickets/1024-merb-auth-slice-password-and-overrides-problem -- Cyril Mougel http://blog.shingara.fr --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
