using Ruby on Rails 2.3.2, since I already created Scaffold for Story, so instead of experimenting and creating a new action called “new” (“new” already exists from the scaffold), i used “newnew” in the controller file and in the view file, hoping that
will be another way to create a new record. but turns out RoR will treat “newnew” as a record id instead of an action, as it is reported:
Couldn’t find Story with ID=newnew
is there a way to make newnew also as an action?
route.rb has
map.resources :stories
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
and it is Rails 2.3.2
The source of the issue is likely to be in your routes.rb, can you post its content into your question?
Depending on the version of rails and whether you are using RESTful resources, the behaviour differs. Either way, the routes.rb should hold the answer.