Reputation: 16335
What is the best way to implement cookie detection in rails 3.2?
I'd like to redirect user to special action if cookies are disabled.
Upvotes: 1
Views: 464
Reputation: 146
You can check the session_id that rails stores automatically
redirect_to root_path unless cookies["_session_id"]
Upvotes: 2