On Wed, Nov 26, 2008 at 2:40 PM, christocracy <[EMAIL PROTECTED]>wrote:
> > I'm new to Merb but I have loads of experience with Ruby and/on/over/ > under Rails. > > I'm stuck trying to get the slice to render into my own custom layout. > > I've followed the SingleCell tutorial twice to a T. > > http://singlecell.angryamoeba.co.uk/post/60951656/an-introduction-to-merb-auth-and-the-wonderful-secrets > > I've installed the slice, I've frozen the slice. > I've dug into the slice gem itself. I cannot get my own layout to > render. > > [code] > Merb::BootLoader.before_app_loads do > # This will get executed after dependencies have been loaded but > before your app's classes have loaded. > # NONE OF THESE WORK > #Merb::Slices::config[:"merb-auth-slice-password"][:layout] > = :system > #Merb::Slices::config[:merb_auth_slice_password][:layout] = :system > MerbAuthSlicePassword[:layout] = :system > end > > [/code] > > Why won't this slice respect my authority? > > I'm using 1.0.3. > same problem with 1.0.3 > I've re-generated a fresh app under 1.0.3 > > Chris Scott > ExtJS (www.extjs.com) > > > Hey there. It should be Merb::BootLoader.after_app_loads do Merb::Slices::Config[:merb_auth_slice_password][:layout] = :system end Although a before_app_loads should work also :| I will look into it but ^^ should get it going for you. HTH --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
