Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check whether javascript and cookies are enabled in ruby on rails?

I want to check whether javascript and cookies are enabled or not on page load in Ruby on Rails. So if anyone tries to open it, website should display a message that he cannot proceed further.

like image 338
Sonal S. Avatar asked Oct 23 '22 04:10

Sonal S.


1 Answers

You coud use the <noscript> ... </noscript> tag. For more information look here.

like image 86
simonmenke Avatar answered Oct 27 '22 00:10

simonmenke