Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6031827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:14:34+00:00 2026-05-23T05:14:34+00:00

I am using rails_admin and I liked it very much. The only problem is

  • 0

I am using rails_admin and I liked it very much. The only problem is that it is coupled with devise for authentication, but my whole app is implementing authlogic.
Ain’t there any way to remove devise so that I can switch to my existing authlogic authentication. I googled it but couldn’t find 🙁
Regards;
Kshitiz

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:14:35+00:00Added an answer on May 23, 2026 at 5:14 am

    I don’t know about removing devise, it seems to be a requirement for installing rails_admin. So you need to install it even if you don’t use it.

    But you can make rails_admin use authlogic for authentication and authorization like so.

    • In your config/initializers folder, create a new file calls rails_admin.rb
    • Put the following inside the file (note that I used nifty_generators so I have some helper methods available to me like logged_in? etc. You might need to use the equivalent methods in your setup):
    • Now restart your server!

    Code:

    RailsAdmin.authenticate_with{
      unless logged_in?
        session[:return_to] = request.url
        redirect_to login_url, :alert => "You must first log in or sign up before accessing this page."
      end
    }
    
    RailsAdmin.authorize_with{
      redirect_to root_path, :alert => "You are not authorized to access that page" unless current_user.admin? #or whatever you use for checking admins
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using devise to manage user authentication in my rails app. Devise is
I have a rails app that is using Devise, with a User model, no
I'm using rails_admin , and since it is in (very) active development, bugs turn
I'm using rails_admin and devise in my rails 3 application and writing tests for
Using Rails v2.1, lets say you have an action for a controller that is
When using Rails date_select with :prompt => true I see some very strange behavior
I'm using rails, but doing all my Javascript unobtrusively using jQuery in application.js .
I have a Rails application using Restful authentication and declarative authorization. I have some
We're experiencing a really bizarre bug in our Rails 2.3.4 app. This bug only
I want the /admin route on my rails app to be protected by using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.