Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

rails_admin without device #1556

eugenemiretsky opened this Issue Mar 6, 2013 · 1 comment


None yet
2 participants


I'm having hard time getting rails_admin to work without device.

I tried https://gist.github.com/Overbryd/1068094
as well removing all the device related code from my user model and routes

However, I'm getting the following error:
ActionView::Template::Error (Could not find a valid mapping for # From here
6: - if _current_user
7: - if user_link = edit_user_link
8: %li= user_link
9: - if logout_path.present?
10: %li= link_to content_tag('span', t('admin.misc.log_out'), :class => 'label label-important'), logout_path, :method => Devise.sign_out_via
11: - if _current_user.respond_to?(:email) && _current_user.email.present?
12: %li= image_tag "#{(request.ssl? ? 'https://secure' : 'http://www')}.gravatar.com/avatar/#{Digest::MD5.hexdigest _current_user.email}?s=30", :style => 'padding-top:5px'
devise (2.2.3) lib/devise/mapping.rb:42:in find_scope!'

Any help would be appreciated!


mshibuya commented Jun 24, 2013

That gist is outdated way, and recent RailsAdmin requires no such hacks.
Just removing all the devise related configurations is enough.
See also #1656.

@mshibuya mshibuya closed this Jun 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment