Hadi S.
unread,Feb 15, 2012, 4:55:49 AM2/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?