learn-co-students / using-to-json-lab-v-000 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Error: 1) invoices_index_view renders the invoice partial
Failure/Error: Product.create(:name => products.sample, :price => Faker::Number.between(1,1500))
ArgumentError:
wrong number of arguments (given 2, expected 0)
Previous:
Product.create(:name => products.sample, :price => Faker::Number.between(1,1500))
Fix:
Product.create(:name => products.sample, :price => Faker::Number.between(from: 1,to: 1500))
Hello -- I am working on this lab and the earlier labs with Ubuntu, and keep reaching the error --
1.2) Failure/Error:
raise Dependency::NotFound.new(
"Could not find an executable #{@executables} on your path.")
Cliver::Dependency::NotFound:
Could not find an executable ["phantomjs"] on your path.
I believe there is a chance that this gem does not work on Ubuntu.
(colszowka/phantomjs-gem#99)
I kept getting these 4 errors:
`Failures:
ProductsController POST create creates a new product
Failure/Error: post :create, product: @product_attributes
ThreadError:
already initialized
ProductsController GET inventory returns true or false appropriately
Failure/Error: get :inventory, id: p1.id
ThreadError:
already initialized
ProductsController GET description returns the description as a plain string
Failure/Error: get :description, id: product.id
ThreadError:
already initialized
ProductsController GET show returns a JSON representation of the product
Failure/Error: get :show, id: product.id, format: 'json'
ThreadError:
already initialized
Finished in 6.08 seconds (files took 2.67 seconds to load)
15 examples, 4 failures`
After removing the version '~> 4.2' from rails in the gemfile, deleting gemfile.lock, and running bundle, errors were gone and all tests passed. I hope this helps someone who has the same issue!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.