hey,
In Rails 2.0, I *think* the routes file comes configured for the REST
routing system.
If you want to ignore the REST style and just use the old school
method, comment out the
map.resources :controller_name

and only have the
    map.connect ":controller/:action"
    map.connect ":controller/:action/:id"

Though, I would recommend learning the RESTful routes style. It's
generally useful and a great way to structure your app. Check out
railscast.com they have some good tutorials.

-
Tommy
http://www.jobgrades.com

On Mar 9, 10:27 pm, liquid_rails <[EMAIL PROTECTED]> wrote:
> Does anyone know of a good tutorial on routing for Rails 2.0.2?  I
> added a new method to one of my controllers and when I point to it by
> localhost/:controller/:action, I can't see it!  In Rails 1.8, it was a
> piece of cake and always worked.
>
> In my routes.rb file, I've got:
>           map.connect ":controller/:action"
>           map.connect ":controller/:action/:id"
> and I've stopped and restarted the server several times to know avail.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to