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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:57:43+00:00 2026-06-16T07:57:43+00:00

I followed by the tutorial for devise: http://railscasts.com/episodes/209-introducing-devise I ask this question because localhost:3000/users/registration/sign_up

  • 0

I followed by the tutorial for devise: http://railscasts.com/episodes/209-introducing-devise

I ask this question because localhost:3000/users/registration/sign_up let me an error page:

Showing /home/alon/.rvm/gems/ruby-1.9.3-p327/gems/devise-1.1.rc0/app/views/devise/registrations/new.html.erb where line #3 raised:

undefined method `user_registration_path' for #<#<Class:0xb6388a90>:0xb63874b0>
Extracted source (around line #3):

1: <h2>Sign up</h2>
2: 
3: <%= form_for(resource_name, resource, :url => registration_path(resource_name)) do |f| %>
4:   <%= f.error_messages %>
5:   <p><%= f.label :email %></p>
6:   <p><%= f.text_field :email %></p>
Rails.root: /home/alon/projects/TODOLIST

in the tutorial, I have to enter: localhost:3000/users/sign_up, but I got errors:

Routing Error

No route matches [GET] "/users/sign_up"
Try running rake routes for more information on available routes.

can’t I pull his project: github.com/plataformatec/devise ? if so, I will have all I need, right?
I do it by: git clone git@github.com:josevalim/devise.git

if the answer is no,

These are the steps I did:

step 1) rails new TODOLIST

step 2) rails -v

Rails 3.2.9

step 3) sudo gem install devise –version=1.1.rc0

[sudo] password for alon: 
sudo: gem: command not found

step 4) edit the Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.9'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'
gem 'devise', '1.1.rc0'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
    gem 'sass-rails',   '~> 3.2.3'
    gem 'coffee-rails', '~> 3.2.1'

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes
    # gem 'therubyracer', :platforms => :ruby

    gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

step 5) bundle install

step 6) rails generate devise_install

step 7) edit the routes.rb:

TODOLIST::Application.routes.draw do
    devise_for :users
    root :to => "home#index"
end

step 8) edit the development.rb:

TODOLIST::Application.configure do
    # Settings specified here will take precedence over those in config/application.rb

    # In the development environment your application's code is reloaded on
    # every request. This slows down response time but is perfect for development
    # since you don't have to restart the web server when you make code changes.
    config.cache_classes = false

    # Log error messages when you accidentally call methods on nil.
    config.whiny_nils = true

    # Show full error reports and disable caching
    config.consider_all_requests_local       = true
    config.action_controller.perform_caching = false

    # Don't care if the mailer can't send
    config.action_mailer.raise_delivery_errors = false

    # Print deprecation notices to the Rails logger
    config.active_support.deprecation = :log

    # Only use best-standards-support built into browsers
    config.action_dispatch.best_standards_support = :builtin

    # Raise exception on mass assignment protection for Active Record models
    config.active_record.mass_assignment_sanitizer = :strict

    # Log the query plan for queries taking more than this (works
    # with SQLite, MySQL, and PostgreSQL)
    config.active_record.auto_explain_threshold_in_seconds = 0.5

    # Do not compress assets
    config.assets.compress = false

    # Expands the lines which load the assets
    config.assets.debug = true

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }
end

step 9) rails generate devise User

step 10) edit user.rb:

class User < ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :token_authenticatable, :lockable, :timeoutable, :confirmable and :activatable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable

    # Setup accessible (or protected) attributes for your model
    attr_accessible :email, :password, :password_confirmation
    # attr_accessible :title, :body
end

**step 11) edit 20121225122457_devise_create_users.rb:

class DeviseCreateUsers < ActiveRecord::Migration
    def self.up
      create_table(:users) do |t|
         t.database_authenticatable :null => false
         # t.confirmable
         t.recoverable
         t.rememberable
         t.trackable
         # t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both

         t.timestamps
       end

       add_index :users, :email,                :unique => true
       #add_index :users, :confirmation_token,   :unique => true
       add_index :users, :reset_password_token, :unique => true
       # add_index :users, :unlock_token,         :unique => true
  end

  def self.down
      drop_table :users
  end
end

step 12) rake db:migrate

step 13) rake routes

new_user_session GET    /users/sign_in(.:format)              devise/sessions#new
user_session POST   /users/sign_in(.:format)              devise/sessions#create
destroy_user_session GET    /users/sign_out(.:format)             devise/sessions#destroy
password POST   /users/password(.:format)             devise/passwords#create {:name_prefix=>:user}
new_password GET    /users/password/new(.:format)         devise/passwords#new {:name_prefix=>:user}
edit_password GET    /users/password/edit(.:format)        devise/passwords#edit {:name_prefix=>:user}
        PUT    /users/password(.:format)             devise/passwords#update {:name_prefix=>:user}
        POST   /users/registration(.:format)         devise/registrations#create {:name_prefix=>"user_registration"}
new GET    /users/registration/sign_up(.:format) devise/registrations#new {:name_prefix=>"user_registration"}
edit GET    /users/registration/edit(.:format)    devise/registrations#edit {:name_prefix=>"user_registration"}
        PUT    /users/registration(.:format)         devise/registrations#update {:name_prefix=>"user_registration"}
        DELETE /users/registration(.:format)         devise/registrations#destroy {:name_prefix=>"user_registration"}
   root        /                                     home#index
  • 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-16T07:57:45+00:00Added an answer on June 16, 2026 at 7:57 am

    This is related to your devise version.

    Don’t use devise 1 with rails 3.2… Upgrade your devise version to 2 >

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

Sidebar

Related Questions

I followed this tutorial http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html I wrote the manifest File giving all the permissions
I followed this tutorial http://stevejenkins.com/blog/2011/08/how-to-install-apc-alternative-php-cache-on-centos-5-6/ to install apc on my centos vps hosting but
I followed this tutorial here: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/ It works great but when I enable CSRF
I followed this tutorial : http://blog.mugunthkumar.com/coding/iphone-tutorial-how-to-send-in-app-sms/ and I got the alert 'Text messaging is
I followed this tutorial and the source code : http://blog.objectgraph.com/index.php/2010/04/20/encrypting-decrypting-base64-encode-decode-in-iphone-objective-c/ And then, I downloaded
I have followed this tutorial and added iAd to my app: http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/ But the
I am using iOS SDK 4.2 and followed this tutorial: http://mobileorchard.com/hello-there-a-corelocation-tutorial/ , and got
I followed the tutorial from this site: http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone/ to make my first iPhone application,
I followed this tutorial http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/ where Hello World is translated into German. If I
I followed this tutorial http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt4part1 and i have one problem. The geolocation doesn't work

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.