Comments (8)
from model-class-methods-lab.
Hey @pletcher is this something you might be able to check into? cc @AnnJohn
from model-class-methods-lab.
It looks like the migrations
table was getting dropped between tests. I pushed a fix -- lemme know if the problem still comes up!
from model-class-methods-lab.
Thanks @pletcher, it works now! ")
Still have to comment out 'ruby 2.2.0' from the Gemfile. This isn't a big deal, but small extra step for people who don't have 2.2.0 installed already.
Most of the other labs don't specify a ruby version. Would this lab still work without specifying a ruby version?
from model-class-methods-lab.
The lab should work with that line commented out (and the .ruby-version file removed) -- installing v2.2.0 with rbenv or RVM doesn't work?
from model-class-methods-lab.
Awesome - thanks so much for knocking this out @pletcher - great stuff 😸
from model-class-methods-lab.
Yep, it works fine by commenting out 2.2.0. Don't even need to delete the .ruby-version file.
Installing 2.2.0 with rvm yielded another error where bash commands didn't work. I forget the exact error message but it was something like "bash: learn: command not found". 'bundle' also was not found.
Not a big deal of course, but it might be a little more user friendly if no ruby specific version was required.
from model-class-methods-lab.
Right, so the trouble is that rvm doesn't have learn
(the learn-co
gem) or bundle
(the bundler
gem) installed under Ruby 2.2.0, only under the Ruby that you've been using.
Does rvm give a helpful error about this (like mentioning which Rubies do have those commands available)? I use rbenv, which offers just such an error in these cases.
It's pretty common (and, in the end, a bit stabler) to specify a Ruby version, so I'm inclined to keep that part; but if rvm isn't being helpful, we can make sure to mention that students might encounter this issue in an earlier lesson. (It's something that one encounters pretty regularly working in a Ruby shop, so it's good to know about.)
from model-class-methods-lab.
Related Issues (20)
- Students seem confused by AREL documentation being the only provided resource, this lab should also link the AR QueryMethods API HOT 1
- more information would be helpful HOT 2
- This should note that you should use a rails command HOT 1
- i concur with some of the inputs HOT 1
- expect(Boat.with_three_classifications.pluck(:name).sort).to eq(boats) HOT 1
- /usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.0/lib/rails/commands/console.rb:29:in `bloc k in parse_arguments': invalid option: -b (OptionParser::InvalidOption) HOT 1
- Does not open automatically with open ide button. HOT 1
- This lab does not open properly. HOT 1
- My Learn IDE can't find this lesson. HOT 1
- Lab doesn't check off as completed in the curriculum module. HOT 2
- This is Not Good HOT 1
- Issues with .spec file HOT 1
- Known Issues HOT 2
- The Arel documentation has moved HOT 1
- Bundle fails on install HOT 3
- Implementation of Boat.first_five using ActiveRecord.find fails rspec HOT 1
- When did we learn about Arel HOT 1
- KNOWN ISSUES HOT 1
- Cannot migrate
- Self-Paced Lesson "Optimal Queries using Active Record" link redirects/out of date HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model-class-methods-lab.