检查是否在 ruby​​ on rails 中启用了 javascript 和 cookie?

问题描述:

我想检查在 Ruby on Rails 中加载页面时是否启用了 javascript 和 cookie.所以如果有人试图打开它,网站应该显示一条消息,他不能继续.

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.

你可以使用 标签.有关详细信息,请查看此处.

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