Giter VIP home page Giter VIP logo

Comments (8)

aturkewi avatar aturkewi commented on September 14, 2024

@PeterBell

from model-class-methods-lab.

PeterBell avatar PeterBell commented on September 14, 2024

Hey @pletcher is this something you might be able to check into? cc @AnnJohn

from model-class-methods-lab.

pletcher avatar pletcher commented on September 14, 2024

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.

alexbarron avatar alexbarron commented on September 14, 2024

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.

pletcher avatar pletcher commented on September 14, 2024

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.

PeterBell avatar PeterBell commented on September 14, 2024

Awesome - thanks so much for knocking this out @pletcher - great stuff 😸

from model-class-methods-lab.

alexbarron avatar alexbarron commented on September 14, 2024

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.

pletcher avatar pletcher commented on September 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.