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 have been working with Rails for a little while now. I got some
I've got guard, spork, cucumber and rspec working away on my system. All my
WORKING UPDATE to solve this problem, I simply dragged the tasks/facebooker folder into lib
I'm working with Ruby on Rails 3, Cucumber, and Capybara I've been searching for
I am working on rails with rspec, rspec-rails, cucumber and webrat. I am trying
I'm working on Rails(3.1.3) with Netzke(0.7.3). I very new for Cucumber. add_account_for_user.feature Feature: Add
I'm not sure why this isn't working in rails, however it works in IRB.
I was working on some project using webrat and cucumber (rails 3), so I
I'm working on a rails project using, cucumber, capybara and factory girl, and recently
In the rails project I'm working on I inserted support for rspec, cucumber and

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.