learn-co-curriculum / rails-blog-associations-validations Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Under the Migrations, Associations, and Routes heading for this lab, there are instructions to create controllers for User and Tag, along with 'appropriate routes.' These controllers aren't actually needed, though, to pass existing lab specs. Would it be possible to introduce minimal features testing for User and Tag, to justify the files and routes? Or--alternatively--to clarify the reason(s) for creating these files, routes in the readme?
I have completed this lab, staged, committed, and pushed it up to github and sent a pull request but on the lesson page it shows that the pull request submission is failing. :(
conflicts with this
https://github.com/learn-co-curriculum/rails-blog-associations-validations/blob/master/spec/01_models/01_user_spec.rb#L18
given that Users have to have unique names. Removing config.before(:each)
from the spec_helper allows correct code to pass the tests.
The seed data should be moved the spec itself. The students have trouble reading the spec because the instances are created in the spec_helper.
Hi! This lab is missing app/assets/config/manifest.js (seems to be required by the railties
gem) and missing rails_helper.rb
. I was able to solve this by creating a blank app/assets/config/manifest.js
file and copy+pasting the rails_helper.rb
file from the has-many-through-forms-rails lab, and the rspec tests now seem to be running. Thanks!
The spec tests all pass, but when running the Rails server, creating a post fails when selecting at least one tag. Tag is failing validation, I think possibly because the uniqueness validation thinks that a new tag is being created. Here are the error details:
@details={:tags=>[{:error=>:invalid}]},
@messages={:tags=>["is invalid"]}
Ask a Question couldn't help me, so I wanted to flag this.
This lab seems a little out of place in at the end of the sequence. This is more like a beginner lab after you've build a scaffold. you're doing basic many <-> many associations, and simple validations
The lab runs on an outdated version of rspec-rails which is breaking because it is now trying to require rails_helper instead of the former spec_helper
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.