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


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to