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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:03:05+00:00 2026-05-22T18:03:05+00:00

I’ve been following Michael Hartl’s rails tutorial but without testing (bad practice I know

  • 0

I’ve been following Michael Hartl’s rails tutorial but without testing (bad practice I know – I’m completely new to web programming having only dabbled in HTML and CSS before). I’ve reached the last chapter but I’m having problems with the user signup form. It’s rendering properly in the browser but on submit I get the message

No route matches “/users/new”

Everything seems to be as it should be in the routes.rb file, and by entering users/new directly into the browser I can navigate to the correct page (the signup form) – but can’t create new users.

There doesn’t seem to be anything missed out from Michael Hartl’s code

I’ve checked out the users controller as I figured it must be something to do with the ‘new’ or ‘create’ actions. It might also have to do with the number of “swap” files that seem to be being created every time I edit a file with Vim. I’m completely ignorant about what this means, but perhaps it’s screwing things up. I’ve left these intact in my github push so you can see my incompetence.

Thanks for any help you can give me!

Here’s the routes.rb file (everything else is on github at https://github.com/jnwb2/the_app):

TheApp::Application.routes.draw do

resources :users do

member do

  get :following, :followers

end

end

resources :sessions, :only => [:new, :create, :destroy]

resources :microposts, :only => [:create, :destroy]

resources :relationships, :only => [:create, :destroy]

match ‘/contact’, :to => ‘pages#contact’

match ‘/about’, :to => ‘pages#about’

match ‘/help’, :to => ‘pages#help’

match ‘/signup’, :to => ‘users#new’

match ‘/signin’, :to => ‘sessions#new’

match ‘/signout’, :to => ‘sessions#destroy’

root :to => ‘pages#home’

end

  • 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-22T18:03:06+00:00Added an answer on May 22, 2026 at 6:03 pm

    Found the answer. For one, i think you should stop following this tutorial. It seems to have a lot of bad practices going on. Try going to guides.rubyonrails.org instead. To fix your problem however, change line #8 in the users controller like so:

    def new
      @title = "Sign up"
      @user = User.new
    end
    

    Sorry for all my extra comments from before, just ended up cloning your source to find the issue.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.