I tinkered around with this a little bit more and I found a solution that might help you a bit better.
Step 1
BEFORE you generate your scaffold, be sure to have the proper inflection in place in your inflections.rb
file.
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'pokem', 'pokemon'
end
Step 2
Now you can generate your scaffold
[bruno ~/pokedex]$ script/generate scaffold pokem name:string
Step 3
Check out your sweet new routes!
[bruno ~/pokedex]$ rake routes
pokemon GET /pokemon(.:format) {:controller=>"pokemon", :action=>"index"}
POST /pokemon(.:format) {:controller=>"pokemon", :action=>"create"}
new_pokem GET /pokemon/new(.:format) {:controller=>"pokemon", :action=>"new"}
edit_pokem GET /pokemon/:id/edit(.:format) {:controller=>"pokemon", :action=>"edit"}
pokem GET /pokemon/:id(.:format) {:controller=>"pokemon", :action=>"show"}
PUT /pokemon/:id(.:format) {:controller=>"pokemon", :action=>"update"}
DELETE /pokemon/:id(.:format) {:controller=>"pokemon", :action=>"destroy"}
Note
If you generate your scaffold before your define your inflection, the named routes will not be updated.