Note that there are some explanatory texts on larger screens.

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

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload