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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:56:48+00:00 2026-06-13T02:56:48+00:00

I am running into some problems with a rails app I’m developing.. I am

  • 0

I am running into some problems with a rails app I’m developing.. I am using the simple_form gem from https://github.com/plataformatec/simple_form and after running rails server I am seeing the following error

undefined method `email' for #<User:0x007f7c9888c950>

Extracted source (around line #7):

<%= simple_form_for User.create, :input_html => { :class => 'form-horizontal hide', :id => 'dataWithinSignIn'} do |f| %>
 <div class="control-group">
  <div class="controls">
#7 <%= f.input :email, :id => 'inputEmail', :placeholder => 'Email' %>
  </div>
  <div class="controls">
   <%= f.input :password, :id => 'inputPassword', :placeholder => 'Password' %>

My source code is at https://bitbucket.org/jasonriddle/stubmoney on branch test-repo I’ve searched for hours on the internet for answers but I haven’t found an answer.

  • 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-13T02:56:48+00:00Added an answer on June 13, 2026 at 2:56 am

    This is the only migration I see in your code:

    class CreateUsers < ActiveRecord::Migration
      def change
        create_table :users do |t|
          t.references :user
          # Same as saying
          # t.integer :user_id (Foreign Key Column)
          # t.string  :imageable_type (Type Column)
          t.timestamps
        end
      end
    end
    

    There’s no email column there and it doesn’t look you’ve set up your users table correctly anyway since all it has is a reference to user and the default timestamps.

    I would run rake db:rollback to drop the users table and then edit the migration to look like this before migrating again:

    class CreateUsers < ActiveRecord::Migration
      def change
        create_table :users do |t|
          t.string :email
          t.string :password # or :encrypted_password
          t.timestamps
        end
      end
    end
    

    Also, you would typically name your password column something like encrypted_password and then have a virtual attribute named password in your user model. The virtual attribute is what’s used in forms. (like in your example simple_form code)

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

Sidebar

Related Questions

I'm working with the UUIDTools gem in Rails 3 and running into some problems.
I'm running into some problems using my .NET 4.0 libraries in .NET 2.0 applications.
I am running into some problems right now. I am developing a card game
I've been running into some problems concerning a SqlTransaction I'm using in my code.
I'm trying to use Rails 3.2.0.rc2 but I'm running into some problems. When I
I'm trying to deploy a rails app to Heroku and I'm running into some
I am running into some problems using the regular expression. Can you please help
I am using Flex 4 and running into some problems displaying a simple alert
I am trying to use the twitter-text-rb (https://github.com/twitter/twitter-text-rb) in my Rails 3 app. I
I am running into some problems using the keypress as follows- <div ng-controller=GBNController> ...

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.