Can you just explicitly add the "/login" route to your slice's router file? I imagine this is a namespace issue, and that merb-auth/login would work.
..tony.. On Wed, Dec 3, 2008 at 10:34 AM, Eric K Idema <[EMAIL PROTECTED]> wrote: > > I'm creating a slice that depends on the merb-auth slices. Basically > all I need is the ensure_authenticated filter to protect a few > actions. When my slice is hosted in another app that has all the merb- > auth stuff already setup, everything works beautifully. > > What I can't figure out is how to get it to work when running in the > standalone 'bin/slice' environment. > > I added this line to my slice's config/router.rb: > > slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => > "") > > I also added the appropriate dependencies to config/init.rb and copied > the merb/merb-auth directory from a freshly generated merb app into my > slice. > > The result is that ensure_authenticated works and I'm given the login > form if I access a protected url. But, when submitting the form I get > an error complaining that no routes match "/login". > > Any clues? > > Eric > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
