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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:35:04+00:00 2026-06-10T13:35:04+00:00

I am very new to RoR and am following the Rails Tutorials. I created

  • 0

I am very new to RoR and am following the Rails Tutorials. I created a Pages controller and first created just Home and Contact pages and ran the test. Both the examples passed. Next, I manually added a third ‘about’ page and made the appropriate changes. However, the third ‘about’ example is failing with spork running. Once I closed spork, the examples passed.
Here is the output with spork running:

Failed examples:

rspec ./spec/controllers/pages_controller_spec.rb:21 # PagesController GET 'about' returns http success

Randomized with seed 15477

Here is my pages_controller_spec.rb:

require 'spec_helper'

describe PagesController do 
  render_views

  describe "GET 'home'" do 
    it "returns http success" do 
      get 'home'
      response.should be_success 
    end
  end

  describe "GET 'contact'" do
    it "returns http success" do
      get 'contact'
      response.should be_success
    end
  end

    describe "GET 'about'" do
    it "returns http success" do
      get 'about'
      response.should be_success
    end
  end

end

Added this line to routes.rb :

  get "pages/about"

Added this line to pages_controller.rb:

  def about
  end

And added the about.html.erb in the views folder.

Also, the url- localhost:3000/pages/about works from the browser.
I am not sure why this example is failing.

  • 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-10T13:35:06+00:00Added an answer on June 10, 2026 at 1:35 pm

    If you are already running spork and attempt to make changes to the routes, those changes will not be reflected until spork has been restarted. This is most likely the cause of that particular test failure.

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

Sidebar

Related Questions

Very new to C++ and Cocos2d-x but I was just toying around with CCArray
Very new to javascript and html-type stuff. I wanted to just make a quick
Very new to using Raphael.js I'm looking at the tutorials and I am able
Very new to RoR and am working on a music app where a release
I'm very new to RoR, and am trying to implement a user login system.
Very new to Jquery and wondering if anyone can help me with the following
I'm very new to rails and am wondering what the best way to do
Very new to membership provider and just implemented on my new web site. I
Very new to Fitnesse, I need to write a test using regular expressions to
I'm new to RoR and web app development, Im using Rails 3.2.3 and I

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.