Created
September 2, 2011 08:51
-
-
Save meleyal/1188217 to your computer and use it in GitHub Desktop.
typus admin user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined local variable or method `admin_user' for Admin::StudentsController:Class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::StudentsController < Admin::ResourcesController | |
p admin_user | |
end |
But what would the redirect look like? I don't see any named routes for admin resources.
The redirect should go to e.g. admin/students/edit/1
, where 1
is the profile id of the current admin user.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Makes sense to redirect the user like this.