evfwcqcg
evfwcqcg

Reputation: 16335

Cookie detection in Rails 3.2

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

Answers (1)

galulex
galulex

Reputation: 146

You can check the session_id that rails stores automatically

redirect_to root_path unless cookies["_session_id"]

Upvotes: 2

Related Questions