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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:38:41+00:00 2026-05-25T23:38:41+00:00

I am using Devise in Rails to help authenticate users. I am trying to

  • 0

I am using Devise in Rails to help authenticate users. I am trying to create users within the system. I created a scaffold (just for the auto-generated code) Employee, and I changed the table in the employees_controller.rb to User. When I list the employees, it correctly lists the users. But when I attempt to add a new user, it gives me the error:

undefined method `users_path' for #<#<Class:0x7fb289704bd8>:0x7fb289702540>

It gives me the error for the line:

<%= form_for(@employee) do |f| %>

What can I do to allow this to work correctly?

  • 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-25T23:38:42+00:00Added an answer on May 25, 2026 at 11:38 pm

    I wouldn’t use scaffolding for your user model when implementing devise. However, if you use scaffolding, I would create that first and then follow this tutorial for adding devise to that model.

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

Sidebar

Related Questions

I have a rails application, and I authenticate users to the application using Devise.
Hi I am using devise for my auth system in rails. I have 2
We've got a Rails application just upgraded to Rails3 using Devise's Rails3 gem for
I'm having a ton of issues with Devise, using OmniAuth, to authenticate my Rails
I am using Devise to manage authentication in a Rails 3.1 application. It works
So I am using Devise for user authentication in my rails app. I have
We have a web app running on Rails, using Devise and OmniAuth for user
I have a class User in Rails using Mongoid and Devise. I can't seem
I am using rails 3 with gem devise.Devise has built in method for change
I am using devise and create login with Facebook using omniauth, but having problem

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.