Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>what I did was put the whole thing out of namespace altogether</p> <p><code>map.resources :fruits, :path_prefix =&gt; ":apple_id", :name_prefix =&gt; "apple_"</code></p> <p>and it would be</p> <pre><code> apple_fruits GET /:apple_id/fruits {:controller=&gt;"fruits", :action=&gt;"index"} formatted_apple_fruits GET /:apple_id/fruits.:format {:controller=&gt;"fruits", :action=&gt;"index"} POST /:apple_id/fruits {:controller=&gt;"fruits", :action=&gt;"create"} POST /:apple_id/fruits.:format {:controller=&gt;"fruits", :action=&gt;"create"} new_apple_fruit GET /:apple_id/fruits/new {:controller=&gt;"fruits", :action=&gt;"new"} formatted_new_apple_fruit GET /:apple_id/fruits/new.:format {:controller=&gt;"fruits", :action=&gt;"new"} edit_apple_fruit GET /:apple_id/fruits/:id/edit {:controller=&gt;"fruits", :action=&gt;"edit"} formatted_edit_apple_fruit GET /:apple_id/fruits/:id/edit.:format {:controller=&gt;"fruits", :action=&gt;"edit"} apple_fruit GET /:apple_id/fruits/:id {:controller=&gt;"fruits", :action=&gt;"show"} formatted_apple_fruit GET /:apple_id/fruits/:id.:format {:controller=&gt;"fruits", :action=&gt;"show"} PUT /:apple_id/fruits/:id {:controller=&gt;"fruits", :action=&gt;"update"} PUT /:apple_id/fruits/:id.:format {:controller=&gt;"fruits", :action=&gt;"update"} DELETE /:apple_id/fruits/:id {:controller=&gt;"fruits", :action=&gt;"destroy"} DELETE /:apple_id/fruits/:id.:format {:controller=&gt;"fruits", :action=&gt;"destroy"} </code></pre> <p>this worked for me, hoped it worked for you too :)</p>
    singulars
    1. This table or related slice is empty.
    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. 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