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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:54:00+00:00 2026-05-16T11:54:00+00:00

I am working with rails 3 and cucumber, all is going well except for

  • 0

I am working with rails 3 and cucumber, all is going well except for this little problem

Given I am on the "edit automobile" page
  No route matches {:controller=>"automobiles", :action=>"edit"} (ActionController::RoutingError)

Now the path is set in paths.rb as edit_automobile_path

and in the routes.rb I have automobiles as a resource, I scaffolded it

so please tell me what I am missing, clearly the route is defined and matches, because I ran rake routes and saw the route.

please point me in the right direction

  • 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-16T11:54:00+00:00Added an answer on May 16, 2026 at 11:54 am

    In your features/support/paths.rb file for a path like this that specifies a unique resource you need to pass your edit_automobile_path an id,

    in your rake routes it will look like automobiles/:id/edit

    so you need to have edit_automobile_path(:id)

    In order to do this in cucumber assume you have something like

    Given I have an automobile
    And I am on the 'edit automobile' page
    

    In your given step def declare a variable @automobile = Automobile.create()

    And then in your paths.rb file

    when /edit automobile page/
      edit_automobile_path @automobile
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with Rails fixtures for testing my rails application. It is all
I am working on rails with rspec, rspec-rails, cucumber and webrat. I am trying
This Twilio API Sample code isn't working in Rails 3: #voice_controller.rb def reminder @postto
I am working on rails project and I am trying to get exceptions to
I'm working on a Rails app and am looking to include some functionality from
I am working on a Rails application that needs to handle dates and times
I'm working on a Rails web application, and it's currently being used by some
I am working on a rails project. Using the tag observe_field, I am taking
I am working on a rails application (I have some experience with rails). But,
I'm working on a rails app that has a whole bunch of before filters

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.