redirect_to in SitesController

7 views
Skip to first unread message

Hadi S.

unread,
Feb 15, 2012, 4:55:49 AM2/15/12
to Radiant CMS
I have added a before_filter into the SitesController for user
authentication, but whenever i use a redirect_to or render in my
before_filter action i get famous
ActionController::DoubleRenderError . I know the reasons but i don't
how i could do a redirect_to anyway, so that if a user is not
authenticated, he got redirected to the root page. Is this anyway the
correct way of authentication in radiant, thus setting a before filter
in SitesController? Or is there a better way?
Reply all
Reply to author
Forward
0 new messages