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 8353037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:08:36+00:00 2026-06-09T09:08:36+00:00

Am developing one website for which I have to do user login and registration

  • 0

Am developing one website for which I have to do user login and registration form for the authentication purpose. My question is can we do this using only refinerycms and if it is possible please tell me how to do this. If it is not possible then please tell me which is the best approach. Am trying to implement user authentication using refinerycms. Am new to refinerycms.

  • 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-06-09T09:08:38+00:00Added an answer on June 9, 2026 at 9:08 am

    Refinery uses devise so you can use that as well. You can create a model that might look something like this:

    module Refinery
      module Partners
        class Partner < Refinery::Core::BaseModel
          self.table_name = 'refinery_partners'      
    
          acts_as_indexed :fields => [:name]
    
          validates :email, :presence => true, :uniqueness => true
    
          #devise methods
          devise :database_authenticatable, :recoverable, :rememberable, :trackable,:validatable, :authentication_keys => [:email]
    
    
        end
      end
    end
    

    and not to forget the migration:

    class CreatePartnersPartners < ActiveRecord::Migration
    
      def up
        create_table :refinery_partners do |t|
          t.string :email
          t.string :name
    
          ## Database authenticatable
          t.string :encrypted_password, :null => false, :default => ""
    
          ## Recoverable
          t.string   :reset_password_token
          t.datetime :reset_password_sent_at
    
          ## Rememberable
          t.datetime :remember_created_at
    
          ## Trackable
          t.integer  :sign_in_count, :default => 0
          t.datetime :current_sign_in_at
          t.datetime :last_sign_in_at
          t.string   :current_sign_in_ip
          t.string   :last_sign_in_ip
    
          t.timestamps
        end
    
      end
    
      def down
        if defined?(::Refinery::UserPlugin)
          ::Refinery::UserPlugin.destroy_all({:name => "refinerycms-partners"})
        end
    
        if defined?(::Refinery::Page)
          ::Refinery::Page.delete_all({:link_url => "/partners/partners"})
        end
    
        drop_table :refinery_partners
    
      end
    
    end
    

    This should create the basic model that you can use. To finish up, change the routes.rb in your extension to add devise routes:

      devise_for :partners, :class_name => "Refinery::Partners::Partner",
      :controllers => {:sessions => 'refinery/partners/sessions', :passwords => 'refinery/partners/passwords'}
    

    and override refinery/partners/passwords_controller.rb

    module Refinery
      module Partners
        class PasswordsController < Devise::PasswordsController
        end
      end
    end
    

    and refinery/partners/sessions_controller.rb

    module Refinery
      module Partners
        class SessionsController < Devise::SessionsController
        end
      end
    end
    

    now you should have everything you need

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I have a website which I am developing for a client. This website
I am developing one application which need the following functionalities I have webserver. I
I have already asked this question on ServerFault however I got very minimal replies....one
I'm developing a website (using asp.net-mvc) with a SqlServer 2005 database. I have numerous
I have began developing a website which has facebook integration and it seems to
I am developing a website which needs to contain functionality in which the user
I am developing a career website for one of my projects. I am using
I am developing a Ruby on Rails website and I have an architectural question
I am developing an ASP.Net website. I have to execute a query which fetches
I'm developing a website using SiteFinity in Visual Studio 2008. This is a web

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.