Note that there are some explanatory texts on larger screens.

plurals
  1. POError following Michael Hartl's tutorial:
    text
    copied!<p>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 </p> <blockquote> <p>No route matches "/users/new"</p> </blockquote> <p>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.</p> <p>There doesn't seem to be anything missed out from Michael Hartl's <a href="https://github.com/railstutorial/sample_app" rel="nofollow">code</a> </p> <p>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.</p> <p>Thanks for any help you can give me!</p> <p>Here's the routes.rb file (everything else is on github at <a href="https://github.com/jnwb2/the_app" rel="nofollow">https://github.com/jnwb2/the_app</a>):</p> <blockquote> <p>TheApp::Application.routes.draw do</p> <p>resources :users do</p> <p>member do</p> <pre><code> get :following, :followers </code></pre> <p>end</p> <p>end</p> <p>resources :sessions, :only => [:new, :create, :destroy]</p> <p>resources :microposts, :only => [:create, :destroy]</p> <p>resources :relationships, :only => [:create, :destroy]</p> <p>match '/contact', :to => 'pages#contact'</p> <p>match '/about', :to => 'pages#about'</p> <p>match '/help', :to => 'pages#help'</p> <p>match '/signup', :to => 'users#new'</p> <p>match '/signin', :to => 'sessions#new'</p> <p>match '/signout', :to => 'sessions#destroy'</p> <p>root :to => 'pages#home'</p> <p>end</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload