Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3 Admin Namespace Issue
    primarykey
    data
    text
    <p>I'm migrating the majority of my application to the admin namespace and while there are lots of guides related to this, I still can't manage. I've been primarily following <a href="https://stackoverflow.com/questions/107674/backend-administration-in-rails/107736#107736Class)">this answer</a>, along with any results Google brings up (they all tend to agree). Could somebody please tell me what I'm doing wrong so I don't lose any more sleep?</p> <p>Here is the error message:</p> <blockquote> <p>wrong argument type Module (expected Class)</p> </blockquote> <pre><code>app/controllers/application_controller.rb:1:in `&lt;top (required)&gt;' app/controllers/admin/admin_controller.rb:1:in `&lt;top (required)&gt;' app/controllers/admin/home_controller.rb:1:in `&lt;top (required)&gt;' </code></pre> <p><strong>routes.rb</strong></p> <pre><code>namespace :admin do root :to =&gt; "home#index" resources :users end </code></pre> <p><strong>admin/admin_controller.rb</strong></p> <pre><code>class Admin::AdminController &lt; ApplicationController </code></pre> <p><strong>admin/home_controller.rb</strong></p> <pre><code>class Admin::HomeController &lt; Admin::AdminController </code></pre> <p><strong>admin/users_controller.rb</strong></p> <pre><code>class Admin::UsersController &lt; Admin::AdminController </code></pre> <p>I'm mostly sure it's something simple to related to the module and controller interaction, so I haven't included any other code. However, I should have found the solution by now and please let me know if any additional code is required.</p> <p>Thanks.</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.
 

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