views:

23

answers:

0

When a user has disabled cookies in his browser and uses my Rails Application, he gets a error: ActionController::InvalidAuthenticityToken because seesion data can't be stored in a cooie.

I know Rails has the option to disable session data or change the session store, but these are no options for me. I want to give the user a notification instead that he should enable cookies, when they are disabled in his browser or at least a custom error page, instead ActionController::InvalidAuthenticityToken something like "In your browser are cookies disabled, please enable to make the page work properly".

How can i do that, can someone provide a snippet of code, since i'm a newbie in Rails, and created my first application with a tutorial?