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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:00:29+00:00 2026-06-18T05:00:29+00:00

I am following the ruby on rails tutorial and I’m on Lesson 8 signup

  • 0

I am following the ruby on rails tutorial and I’m on Lesson 8 signup failure. I am getting a Template is Missing error when submitting information.

Missing template users/create, application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * "/Users/lexi87/rails_projects/sample_app/app/views"

I have double check the files that he has open line for line. Nothing is different.

Users_controllers.rb

class UsersController < ApplicationController


  def show
    @user = User.find(params[:id])
    @title = @user.name
  end

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

def create
  @user = User.new(params[:user])
  if @user.save
    # Handle a successful save.
  else
  @title = "Sign up"
  render = 'new'
  end
end
end

New.html.erb

<h1>Sign up</h1>

<%= form_for(@user) do |f| %>
<%= render 'shared/error_messages'%>
<div class="field">
<%= f.label :name %><br/>
<%= f.text_field :name %>
</div>

<div class="field">
<%= f.label :email %><br/>
<%= f.text_field :email %>
</div>

<div class="field">
<%= f.label :password %><br/>
<%= f.password_field :password %>
</div>

<div class="field">
<%= f.label :password_confirmation, "Confirmation" %><br/>
<%= f.password_field :password_confirmation %>
</div>

<div class="actions">
<%= f.submit "Sign up" %>
</div>
<% end %>

Error_messages.html.erb

<% if @user.errors.any? %>
    <div id="error_explanation">
        <h2>
            <%= pluralize(@user.errors.count, "error") %>
            prohibited this user from being saved:
            </h2>
            <p>There were problems with the following fields:</p>
            <ul>
            <% @user.errors.full_messages.each do |message| %>
            <li><%= message %></li>
            <% end %>
            </ul>
    </div>

    <% end %>

Users_controller_spec.rb

require 'spec_helper'

describe UsersController do
  render_views

describe "GET 'show'" do

  before(:each) do
    @user = Factory(:user)
  end

  it "should be successful" do
    get :show, :id => @user
    response.should be_success
  end

it "should find the right user" do
  get :show, :id => @user
  assigns(:user).should == @user
end

it "should have the right title" do
  get :show, :id => @user
  response.should have_selector('title', :content => @user.name)

end

it "should have the user's name" do
  get :show, :id => @user
  response.should have_selector('h1', :content => @user.name)
end

it "should have a profile image" do
  get :show, :id => @user
  response.should have_selector('h1>img', :class => "gravatar")
end

it "should have the right URL" do
   get :show, :id => @user
   response.should have_selector('td>a' :content => user_path(@user), :href => user_path(@user))
end

end
  describe "GET 'new'" do



    it "should be successful" do
      get :new
      response.should be_success
    end

    it "should have the right title" do
      get :new
      response.should have_selector('title', :content => "Sign up")
  end

 end

 describe "POST 'create'" do

   describe "failure" do

 before(:each)do
 @attr = { :name => "", :email => "", :password => "", :password_confirmation => "" }
 end

 it "should have the right title" do
 post :create, :user => @attr
 response.should have_selector('title', :content => "Sign up")
 end

 it "should render the 'new' page"
 post :create, :user => @attr
 response.should render_template('new')
 end

 it "should not create a user" do
  lambda do
    post :create, :user => @attr
  end.should_not change(User, :count)

end
end

end
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-06-18T05:00:30+00:00Added an answer on June 18, 2026 at 5:00 am

    Thanks for the advice.

    The actual problem was I had a “=” sign after render. It was showing in their file but when I fast forward the video I notice it was not there.

    Thanks again.

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

Sidebar

Related Questions

I am following ruby on rails tutorial. Stuck on getting the sign up page
I'm following the Ruby on Rails tutorial and I'm on chapter 2. When I
I've been following the Ruby On Rails Tutorial and tried to get rid of
I found the following table structures while I was watching ruby on rails tutorial.
I'm following the Kevin Skoglund tutorial Ruby on Rails 3 Essential Training, which was
Mac OS X 10.7.3 Lion, Ruby 1.9.2, Rails 3.2.2, Sass 3.2.3 Following this tutorial:
I am following Lynda ruby on rails tutorial. Here is the code I have
I am following Lynda ruby on rails tutorial. I have already ran the code
I am following the Ruby on Rails tutorial by Michael Hartl http://ruby.railstutorial.org/ I installed
I'm following the ruby on rails tutorial: http://railstutorial.org/chapters/static-pages#top I'm up to using rspec. Having

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.