Topic: Problem with fresh install of InstantRails 1.7: Routing error

Hi,

I followed the instructions for installing and configuring InstantRails, but when I create a new Rails app, I cannot view it in browser.

InstantRails had worked previously, but I don't know what changed.

I have installed MySQL the normal way on WinXP, but I shut it down before beginning.

http://expdesign.net/misc/railsRoutingError.jpg

Suggestions?

Thanks,

Ben

Last edited by 4midori (2007-07-22 18:51:44)

Design, XHTML, CSS, CMS, Expression Engine, Open-source, ColdFusion.  Learning Rails.

Re: Problem with fresh install of InstantRails 1.7: Routing error

I am not familiar with the way InstantRails works, but if you remove the "musciansconnect" from the URL and just have it as http://127.0.0.1:3000 it should work.

Re: Problem with fresh install of InstantRails 1.7: Routing error

Thanks.  If I do that, I get the "Welcome aboard" default Rails message.

When I had Rails working before, I was accustomed to going to

127.0.0.1:3000/application_name

to get to an app.

Design, XHTML, CSS, CMS, Expression Engine, Open-source, ColdFusion.  Learning Rails.

Re: Problem with fresh install of InstantRails 1.7: Routing error

Hi,

Any further advice?

Thx,
B

Design, XHTML, CSS, CMS, Expression Engine, Open-source, ColdFusion.  Learning Rails.

Re: Problem with fresh install of InstantRails 1.7: Routing error

To get rid of the welcome aboard message, delete the index.html from the directory called public and configure a default route.

Re: Problem with fresh install of InstantRails 1.7: Routing error

You don't need to put the application name. You need to put the controller in the URL. If your application has a Users controller, for instance, http://127.0.0.1:3000/users would try to find the index method for users, and try to render the users/index.rhtml file.

Re: Problem with fresh install of InstantRails 1.7: Routing error

FIXED!  I got a Rails book, which explained things thoroughly.  I heart Rails.  Thanks for everyone's help.

Last edited by 4midori (2007-07-27 15:38:55)

Design, XHTML, CSS, CMS, Expression Engine, Open-source, ColdFusion.  Learning Rails.