[Radiant] Shared Layouts
Sean Cribbs
seancribbs at gmail.com
Wed Jul 9 07:25:41 CDT 2008
That's strange... maybe I was logged in at the time I hit that action.
I'll update the wiki to add that line.
Sean
Chris Parrish wrote:
> In your example, Sean, you create a StatsController that inherits from
> ApplicationController (which is the default if you use Radiant's
> controller generators). Anyway I've been getting all kinds of errors
> with my specs and banging my head against a wall only to *finally*
> realize that ApplicationController includes the LoginSystem. (I'm
> always logged in so I never noticed).
>
> I'd like to save others the bloody foreheads since most using the
> Shared Layouts extension will be designing public-facing controllers.
> Thoughts?
>
> For others, I fixed this by simply adding:
> no_login_required
>
> to my controller.
>
> In fact, other than maybe rescue_action_in_public, is there any real
> benefit to inheriting from ApplicationController vs. good ol'
> ActionController::Base for a Shared Layouts Controller?
>
> -Chris
>
> Sean Cribbs wrote:
>> I got one started with a lot more detail than the email message.
>> I'll try to finish the rest tonight:
>>
>> http://wiki.radiantcms.org/Creating_an_extension_VI
>>
>> Cheers,
>>
>> Sean
>>
>> John W. Long wrote:
>>> On Jul 6, 2008, at 1:06 PM, Sean Cribbs wrote:
>>>> Since there seems to be some confusion about how to use
>>>> share_layouts lately, I'll break it down into steps for you and
>>>> everyone.
>>>
>>> I hope this makes it on the wiki somewhere. :-)
>>>
>>> --
>>> John Long
>>> http://wiseheartdesign.com
>>> _______________________________________________
>>> Radiant mailing list
>>> Post: Radiant at radiantcms.org
>>> Search: http://radiantcms.org/mailing-list/search/
>>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>>
>>
>> _______________________________________________
>> Radiant mailing list
>> Post: Radiant at radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
More information about the Radiant
mailing list