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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:57:42+00:00 2026-05-27T22:57:42+00:00

Starting out a tiny app with my first time using Cucumber 1.1.4 and it’s

  • 0

Starting out a tiny app with my first time using Cucumber 1.1.4 and it’s erroring out with an “unknown attribute” error, it appears. I’d like to ensure a record exists, or created if not. I’ve made sure the show page exists with the erb calls and the record exists, just to be sure.

Here’s my feature:

Scenario: normal
Given an opening exists called “jobid”, objective: “Work here”, grizzard: “My experience”, skills: “My skills”
When I go to the path “/openings/jobname”
Then I should see “Sam Walton”
Then I should see “Work here”
Then I should see “My experience”
Then I should see “My skills”

Here’s my step file:

Given /^an opening exists called "([^"]*)", objective: "([^"]*)", bob: "([^"]*)", skills: "([^"]*)"$/ do
    |opening_name, objective_text, bob_text, skills_text|

    Opening.create!(name: opening_name, objective: objective_text, skills: skills_text, grizzard: bob_text) 
end

When /^I go to the path "([^"]*)"$/ do |path|
    visit(path)
end

Then /^I should see "([^"]*)"$/ do |text|
    page.should have_content(text)
end

Here’s my error:

# features/visitor_can_view_an_opening.feature:6
Given an opening exists called “jobid”, objective: “Work here”, grizzard: “My experience”, skills: “My skills” #
features/step_definitions/general_steps.rb:5
unknown attribute: skills (ActiveRecord::UnknownAttributeError)
./features/step_definitions/general_steps.rb:6:in /^an opening exists called "([^"]*)", objective: "([^"]*)", bob: "([^"]*)", skills:
"([^"]*)"$/

features/visitor_can_view_an_opening.feature:7:in Given an opening exists called "jobid", objective: "Work here", bob: "My
experience", skills: "My skills"

I’ve looked over the skills: and it looks like the others, so my inexperience is in the way and would appreciate someone pointing out what I’m not understanding, sam

  • 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-27T22:57:43+00:00Added an answer on May 27, 2026 at 10:57 pm

    Hmm, you may need to update your test environment database. Run

     rake db:test:prepare
    

    It should work.

    HTH.

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

Sidebar

Related Questions

Just starting out with my first commercial app for the iStore but dont have
Starting out with an int variable unix time stamp (something like 1290341015), is there
I am starting out with using the EF Code First with MVC and am
Just starting out with an iPhone application using xcode 4.2. I understand that it
Starting out with a given image, I would like to be able to trace
Just starting out on android developing. To start off, I'm building an app which
I'm a student starting out on my first programming module. The textbook I'm working
I am just starting out with iOS app development and it's been a great
Just starting out with Exchange Web Services and getting a strange error right off
Just starting out using MVC3 and hit a problem trying to build a drop-down

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.