Ruby on Rails Friday, July 2, 2010

On Jul 2, 2010, at 11:42 AM, Marnen Laibow-Koser wrote:

>> My hope would be for something like:
>>
>> redirect_to :back
>>
>> But this is a no-go...
>
> Why?

Well, for one thing, you don't always have an HTTP_REFERER (if the
user types a URL into the browser for example).


You get this nearly for free with Authlogic anyway. Just modify the
example require_user and associated code to fit your needs.

-Rob

Rob Biedenharn
Rob@AgileConsultingLLC.com http://AgileConsultingLLC.com/
rab@GaslightSoftware.com http://GaslightSoftware.com/

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment