Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
redirect_to in SitesController
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hadi S.  
View profile  
 More options Feb 15 2012, 4:55 am
From: "Hadi S." <poph...@gmail.com>
Date: Wed, 15 Feb 2012 01:55:49 -0800 (PST)
Local: Wed, Feb 15 2012 4:55 am
Subject: redirect_to in SitesController
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?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »