title: Can I print debug messages to the browser console in Ruby on Rails?
body: <p>If I'm testing my Javascript code, I often use console.log to write messages to the browser console. I find it a convenient place to check for these messages.</p>
  <p>Is it possible to output messages to the browser console from Ruby files within your Rails project? (E.g. from a method in the model)</p>