Hi Daniel, Then it might be right to update a wiki page - Authenticated Hello World on because what is written there is:
If you want more customization, you can do: rake slices:merb-auth-slice-password:freeze:views What that will do is copy the views from the slice to the slices folder in your application so you can edit them, style them, etc. Best regards, Nick On Nov 9, 1:24 am, "Daniel N" <[EMAIL PROTECTED]> wrote: > On Sun, Nov 9, 2008 at 5:00 AM, kolach <[EMAIL PROTECTED]> wrote: > > > Hi Daniel! > > > Thank you for your advice. That'll solve the problem for sure. > > It looks like a workaround though. > > > I watched merbcamps presentations about slices and merb-auth > > plugin. And I got an impression that a standard way to > > customize slice views is to freeze them and then modify or replace. > > > If I deal with a slice I expect it behave like one. > > And merb-auth-slice-password slice is included by default in a new > > generated merb application. It just doesn't show a good example. > > In other ways this plugin is an excellent piece of work :) > > > Best regards, > > Nick > > Hi Nick, > > That is the standard way to deal with a slice. The reality is that > including the login form in the slice is the workaround. The login form is > not actually part of the slice, as in, it's not under it's namespace at > all. It's part of the exceptions global controller. The slice just > provides one to get you going. > > HTH > Daniel > > > > > On Nov 8, 2:01 am, "Daniel N" <[EMAIL PROTECTED]> wrote: > > > On Sat, Nov 8, 2008 at 2:36 AM, kolach <[EMAIL PROTECTED]> wrote: > > > > > By modifying app/views/exceptions/unauthenticated.html.* I can control > > > > only view. > > > > But I also want this view to be rendered in a layout different from > > > > the one used for all application. > > > > Hi Kolach, > > > > You should be able to set the layout in the unathenticated method of > > > Exceptions. There is no real special magic about this method. It's just > > an > > > exception method which happens to be where your login form lives. It is > > not > > > part of the slice, the slice just happens to provide a default. > > > > Cheers > > > Daniel > > > > > On Nov 7, 6:17 pm, Dermot Brennan <[EMAIL PROTECTED]> wrote: > > > > > Does modifying/creating app/views/exceptions/unauthenticated.html.erb > > > > > work? > > > > > > -Dermot > > > > > > On Nov 7, 12:50 pm, kolach <[EMAIL PROTECTED]> wrote: > > > > > > > Hey everyone, > > > > > > > I'm trying to customize merb-auth-slice-password's view and layout. > > > > > > > I froze the views with > > > > > > > rake slices:merb-auth-slice-password:freeze:views > > > > > > > and a corresponded directory slices/merb-auth-slice-password was > > > > > > created. > > > > > > But if I modify files in this directory it changes nothing. > > > > > > > What extra steps should I make? > > > > > > It might be that I just don't understand how the slices work. > > > > > > > Nick. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
