Re: [Rails] Re: Routing Error on rails3

2010-03-18 Thread Felipe Rodrigues
Rails 3 doesn't come with a generic rout mapping for controllers. The generator for models or scaffold will add the models as resources routes, so it will be RESTfull by default. It means that in any new rails 3 app, you will have to explicitly change the routes.rb to add the routes that are n

[Rails] Re: Routing Error on rails3

2010-02-26 Thread Ugis Ozols
Hello, Here's how your routes.rb file should like for that /pages/home route to work: http://gist.github.com/316367 In rails 3 rule for catching non-rest routes is deprecated so it's commented out in routes.rb. You can read about it in Rails 3.0 Release Notes - http://guides.rails.info/3_0_releas

[Rails] Re: Routing Error on rails3

2010-02-26 Thread John Wu
Thanks, How to uninstall it on mac? Can I have two version of Rails on same machine that I can choose one to run? Colin Law wrote: > On 26 February 2010 20:47, John Wu wrote: >> Hi All, >> >> I am new to Ruby on Rails and have rails3 installed. > > Did you really mean to start with rails 3? I

[Rails] Re: Routing Error on rails3

2010-02-26 Thread John Wu
Thanks for the reply. I didn't change rout file. SampleApp::Application.routes.draw do |map| end What do I need to add? Conrad Taylor wrote: > On Fri, Feb 26, 2010 at 12:47 PM, John Wu wrote: > >> I got >> >> Routing Error >> >> No route matches "/pages/contact" >> >> How can I fix this probl