title: Ruby on Rails check if javascript is enabled
body: <p>How can I check in my layout code if the user has enabled javascript in his browser? 
  If javascript is not enabled I want to show an error page. E.g. a 404 or a 500 error page. How can I do this with Rails?</p>