I have create a little app on netbeans 7.
This is my first RoR app.
when I run it I get the following error.
Started GET “/RailsApplication3” for 127.0.0.1 at Wed Apr 20 18:33:54
+0200 2011
ActionController::RoutingError (No route matches “/RailsApplication3”):
Rendered
/var/lib/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb
within rescues/layout (0.8ms)
hoboy
April 20, 2011, 8:14pm
2
On Wed, Apr 20, 2011 at 12:54 PM, hoboy Hoboy [email protected]
wrote:
I have create a little app on netbeans 7.
This is my first RoR app.
when I run it I get the following error.
Started GET “/RailsApplication3” for 127.0.0.1 at Wed Apr 20 18:33:54
+0200 2011
ActionController::RoutingError (No route matches “/RailsApplication3”):
try pointing to http://localhost:3000 and report back what you get. You
should not put your app name in the url.
Also urls can be case sensitive.
hoboy
April 20, 2011, 8:53pm
3
http://localhost.3000/
Welcome aboard
You’re riding Ruby on Rails!
About your application’s environment
Getting started
Here’s how to get rolling:
Use rails generate to create your models and controllers
To see all available options, run it without parameters.
Set up a default route and remove or rename this file
Routes are set up in config/routes.rb.
Create your database
Run rake db:migrate to create your database. If you’re not using
SQLite (the default), edit config/database.yml with your username and
password.
when I point to http://localhost:3000/RailsApplication3
Routing Error
No route matches “/RailsApplication3”
hoboy
April 20, 2011, 8:58pm
4
On Wed, Apr 20, 2011 at 1:53 PM, hoboy Hoboy [email protected]
wrote:
To see all available options, run it without parameters.
when I point to http://localhost:3000/RailsApplication3
Routing Error
No route matches “/RailsApplication3”
right… because unless you have a controller called RailsApplication3
you
will never get there! So, if this is a new app and you have not done
anything else, you need to generate a controller or maybe better a
scaffold.
hoboy
April 20, 2011, 8:59pm
6
On Wed, Apr 20, 2011 at 1:53 PM, hoboy Hoboy [email protected]
wrote:
To see all available options, run it without parameters.
when I point to http://localhost:3000/RailsApplication3
Routing Error
No route matches “/RailsApplication3”
I think you will find this guide helpful in understanding your routing
questions.
Rails Routing from the Outside InThis guide covers the user-facing features of Rails routing.After reading this guide, you will know: How to interpret the code in config/routes.rb. How to construct your own routes, using either the preferred...
B.
hoboy
April 20, 2011, 9:13pm
7
On Wed, Apr 20, 2011 at 1:57 PM, Bryan C.
[email protected] wrote:
Use rails generate to create your models and controllers
SQLite (the default), edit config/database.yml with your username and
I think you will find this guide helpful in understanding your routing
questions.
Rails Routing from the Outside In — Ruby on Rails Guides
Right, also until you get comfortable I would highly recommend working
through a good book or tutorial such as Agile Web D. with
Rails. By
just following some steps in such, a lot of things will start making
more
sense too.