Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This error is normal when trying to access Rails via SSL when it is run with <code>rails server</code>, unless you hack the default <code>rails server</code> script to support SSL. You can see <a href="http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html" rel="noreferrer">this blog post</a> for how to do that. That said, I'd recommend simply not accessing your application via SSL on your local machine.</p> <p>You probably have a configuration in your Rails app that is redirecting to SSL when you are running the production environment. Try temporarily commenting out that configuration so that you can run in production without needing to configure SSL on your local machine.</p> <p>Look in production.rb for:</p> <pre><code>config.force_ssl = true </code></pre> <p>Or, look in application_controller.rb (or any other controller) for:</p> <pre><code>force_ssl </code></pre> <p>Note: they have the same name, but under the hood they work very differently.</p> <p>Alternatively, you could run Rails on your local machine via some other web server besides <code>rails server</code>, but that is outside the scope of this question, and you would still have to configure it to support SSL. Personally I have nginx (with unicorn) setup on my local machine with a self-signed SSL certificate so that I can easily test SSL-related behavior in my app.</p> <p>Also, you might consider alternate ways to debug your application besides running it in production on your local machine, but exactly how to do that depends on the nature of the bug you're trying to debug.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload