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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:14:46+00:00 2026-05-24T18:14:46+00:00

In short : The problem is that in the tutorial I am told to

  • 0

In short:

The problem is that in the tutorial I am told to create a microposts resource, with its model and controller. When testing some of its actions with rspec, I am having “missing template” errors for create and destroy actions. But the tutorial doesnt say anything about creating views for these actions, and according to it these tests should be passing.

This my original, longer description of the problem:

I am doing the railstutorial.org, and having some problems in chapter 11.3.2. In listing 11.25, we write the tests for the Micropost create action. After running them, I get a template error, in ALL of them:

ActionView::MissingTemplate:
       Missing template microposts/create with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/Users/me/Dropbox/dev/rails/tutorial/app/views"

I am confused. The tutorial says nothing about creating views for these actions, and also that the tests should be passing at this point. Maybe a sign that I did something wrong is that the tutorial didnt mention the need to use generate to create the Microposts controller, but I used that.

This is my microposts controller:

class MicropostsController < ApplicationController
  before_filter :authenticate

  def create
  end

  def destroy
  end

end

and my routes.rb

Secondappr::Application.routes.draw do
  get "sessions/new"

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

  get "pages/home"

  root :to => 'pages#home'

  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'


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-24T18:14:47+00:00Added an answer on May 24, 2026 at 6:14 pm

    In 11.26 the create method is implemented. The action redirects to root on success or renders ‘pages/home’ on failure, so there should be no need for a create template. From my reading it looks like it’s saying the tests should pass after create is implemented, not before.

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

Sidebar

Related Questions

Short problem: #include <iostream> using namespace std; int main() { double **T; long int
So the wonderful low down on this doozie of a problem: short version: We
SHORT DESCRIPTION OF PROBLEM: I want to set the text of a searchbar without
Following problem: I want to render a news stream of short messages based on
I have some sort of a design problem with my Django AJAX application. I
The problem that I'm addressing is known to be in devices with 16 mb
I googled a short tutorial to connect a database and then I wanted to
On Chapter 7 from Michael Hartl's tutorial there is a User model < code
When some project is having all that ltmain, aclocal.m4 and other autogen.sh it brings
I'm trying to create something with a flip effect tutorial from tutplus - http://active.tutsplus.com/tutorials/effects/iphone-page-transition-flash/

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.