Note that there are some explanatory texts on larger screens.

plurals
  1. PORails config/routes.rb file is not working (see body)
    primarykey
    data
    text
    <p><br></p> <p>When I start rails server via command line: <code>rails server</code>, or via RubyMine (just hitting run button) server starts just like it's expected.<br><br> Console output: <br> <code>/usr/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/projectName/script/rails server -b 0.0.0.0 -p 3000 -e development</code> <br> <code>=&gt; Booting WEBrick</code> <br> <code>=&gt; Rails 3.2.11 application starting in development on http://0.0.0.0:3000</code> <br> <code>=&gt; Call with -d to detach</code> <br> <code>=&gt; Ctrl-C to shutdown server</code> <br> <code>[2013-07-07 19:59:37] INFO WEBrick 1.3.1</code> <br> <code>[2013-07-07 19:59:37] INFO ruby 1.9.3 (2012-04-20) [i686-linux]</code> <br> <code>[2013-07-07 19:59:37] INFO WEBrick::HTTPServer#start: pid=7480 port=3000</code></p> <p>The problem arises when I'm trying to get to the web-site. For some reason it is not rendering any of the pages, I'm constantly getting <code>Not Found: 'anyControllerNameHere'</code> and there are not any logs of trying accessing the web-page in development.log file, although when I run rake db:migrate it's getting logged. Tried to access with <code>127.0.0.1:3000/</code>, <code>localhost:3000/</code>, <code>0.0.0.0:3000/</code> and running server on another port, no luck.</p> <p>When i run <code>wget localhost:3000/</code> in the console, I'm getting: <br> <code>--2013-07-07 20:00:06-- http://localhost:3000/</code> <br> <code>Resolving localhost (localhost)... 127.0.0.1</code> <br> <code>Connecting to localhost (localhost)|127.0.0.1|:3000... connected.</code> <br> <code>HTTP request sent, awaiting response... 404 Not Found</code> <br> <code>2013-07-07 20:00:06 ERROR 404: Not Found.</code></p> <p>My machine: <code>Ubuntu 13.04</code>, <code>Rails 3.2.11</code>, <code>Mysql 5.5</code></p> <p>I'm new to Linux and Rails, so maybe I missed something simple and important. Please suggest any ideas. Thanks</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. 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