Renaming routes.rb

When you create a new rails app the default home page says to rename
routes.rb. I tried this, but when I run script/console or script/server
I get an error saying the routes.rb file can’t be found. If you rename
this file is there an environment variable holding the location
elsewhere in the application?

Quincy C. wrote:

When you create a new rails app the default home page says to rename
routes.rb. I tried this, but when I run script/console or script/server
I get an error saying the routes.rb file can’t be found. If you rename
this file is there an environment variable holding the location
elsewhere in the application?

Read it again. You are expected to edit a line inside routes.rb, and
point that
to your landing page - the first action of your first controller.

Phlip wrote:

Quincy C. wrote:

When you create a new rails app the default home page says to rename
routes.rb. I tried this, but when I run script/console or script/server
I get an error saying the routes.rb file can’t be found. If you rename
this file is there an environment variable holding the location
elsewhere in the application?

Read it again. You are expected to edit a line inside routes.rb, and
point that
to your landing page - the first action of your first controller.

Yes, your right. I read too much into it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs