Hey there,
If you're following the RESTFUL resource conventions you might want use:
map.resources :system, :has_many => :title, :path_prefix => '/store/'
This would generate handy little routes that could prove very helpful:
system_title_index GET /store/system/:system_id/title(.:format) {:controller=>"title", :action=>"index"}
POST /store/system/:system_id/title(.:format) {:controller=>"title", :action=>"create"}
new_system_title GET /store/system/:system_id/title/new(.:format) {:controller=>"title", :action=>"new"}
edit_system_title GET /store/system/:system_id/title/:id/edit(.:format) {:controller=>"title", :action=>"edit"}
system_title GET /store/system/:system_id/title/:id(.:format) {:controller=>"title", :action=>"show"}
PUT /store/system/:system_id/title/:id(.:format) {:controller=>"title", :action=>"update"}
DELETE /store/system/:system_id/title/:id(.:format) {:controller=>"title", :action=>"destroy"}
system_index GET /store/system(.:format) {:controller=>"system", :action=>"index"}
POST /store/system(.:format) {:controller=>"system", :action=>"create"}
new_system GET /store/system/new(.:format) {:controller=>"system", :action=>"new"}
edit_system GET /store/system/:id/edit(.:format) {:controller=>"system", :action=>"edit"}
system GET /store/system/:id(.:format) {:controller=>"system", :action=>"show"}
PUT /store/system/:id(.:format) {:controller=>"system", :action=>"update"}
DELETE /store/system/:id(.:format) {:controller=>"system", :action=>"destroy"}
/:controller/:action/:id
Your URL will look slightly different though:/store/system/xbox360/title/Mass%20Effect
Remember to override the to_param
method in your system and title models so that the id would be the actual names of the object instead of just numbers.
Hope this helps!