[Rails] Re: RESTful url not working

2008-11-23 Thread Thani Ararsu
Nick Hoffman wrote: > Hi Ashit. Another thing that you can do is test out the various URL > and path helpers in your app's console. For example: > > $ script/console > Loading development environment (Rails 2.1.0) >>> > ?> app.photos_url > => "http://www.example.com/photos"; >>> > ?> app.photos_p

[Rails] Re: RESTful url not working

2008-11-23 Thread Nick
Hi Ashit. Another thing that you can do is test out the various URL and path helpers in your app's console. For example: $ script/console Loading development environment (Rails 2.1.0) >> ?> app.photos_url => "http://www.example.com/photos"; >> ?> app.photos_path => "/photos" >> ?> quit Cheers, N

[Rails] Re: RESTful url not working

2008-11-23 Thread Bobnation
"rake routes" really becomes your friend here as you are able to take a look at everything that will work. Trust me, just run it and look over the output to see where you might be going wrong. On Nov 23, 4:03 pm, Ashit Vora <[EMAIL PROTECTED]> wrote: > Hi, > 'm new to Rails. > I tried using _path

[Rails] Re: RESTful url not working

2008-11-23 Thread Rick
Hello Ashit, If you run "rake routes" in your project directory you'll see what routes are available. Also, the singular vs plural question needs to be considered here. Typically: The model has a singular name - models/path.rb The controller has a plural name - controllers/paths_controlle