Note that there are some explanatory texts on larger screens.

plurals
  1. PORails internal server error after generate command
    primarykey
    data
    text
    <p>I just set up a Rails project on Apache following <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#rubygems_generic_install" rel="nofollow">this</a> and ran the following</p> <pre><code>sudo /var/lib/gems/1.8/bin/rails generate controller sites new create app/controllers/sites_controller.rb route get "sites/new" invoke erb create app/views/sites create app/views/sites/new.html.erb invoke test_unit create test/functional/sites_controller_test.rb invoke helper create app/helpers/sites_helper.rb invoke test_unit create test/unit/helpers/sites_helper_test.rb invoke assets invoke coffee create app/assets/javascripts/sites.js.coffee invoke scss create app/assets/stylesheets/sites.css.scss </code></pre> <p>However, accessing <code>sites/new</code> on my website shows the <code>500.html</code> page (internal server error). I'm able to access files in the <code>public</code> directory fine, like <code>422.html</code> and <code>500.html</code>. I looked at the log at <code>log/development.log</code> and it just has one line</p> <pre><code>Connecting to database specified by database.yml </code></pre> <p>What could be causing this problem?</p> <p><strong>EDIT</strong>: My <code>database.yml</code> file:</p> <pre><code># SQLite version 3.x # gem install sqlite3 # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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