Giter Site home page Giter Site logo

hw-rails-intro's Introduction

RottenPotatoes demo app: getting started

This app is associated with the online course and free textbook Engineering Software as a Service.

This repo contains starter code related to specific assignments. Please go to the specific assignment for instructions.
If you're taking this course on edX or if your classroom is using Codio, the assignments are linked from there. Alternatively, you can follow links to the assignment GitHub repos from the textbook.

hw-rails-intro's People

Contributors

cycomachead avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hw-rails-intro's Issues

Oops VFS connection does not exist

I am at this step:

If you are using c9, use rails s -p $PORT -b $IP and navigate to the link generated within c9.

The link that pops up in cloud9 opens a page saying only Oops VFS connection does not exist.

Some possible changes to the instructions?

From one of the SPOC instructors:

Before we could run git push heroku master:
— The instructions for getting set up on Heroku did not include setting up the keys. We had to use heroku keys:add ~/.ssh/id_rsa.pub
— We needed to use git remote add heroku [email protected]:.git

Tests:
— We had to run bundle install before we could run autotest
— odd errors in autotest on pending tests
— there seems to be an error on the third test for context ‘incorrectly’ - it appears to be looking for valid to be true when the guess is not correct

Perhaps some of these things should be added to the instructions.

codio/bundler issue

Susan reported:

I'm using Codio this semester, and was building the empty Rails app from chapter 4, ran "rails new myrottenpotatoes -T", got this error message:

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 4.2.10) was resolved to 4.2.10, which depends on
      bundler (< 2.0, >= 1.3.0)

  Current Bundler version:
    bundler (2.0.1)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (= 4.2.10)', in any of the sources.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
         run bundle exec spring binstub --all
Bundler 2 requires Ruby 2.3 or later. Either install bundler 1 or update to a supported Ruby version.

Just to let everyone know that there may be version conflicts now that Bundler has dropped version 2.0.1. I had issues with HW2 and Bundler and Heroku. See the conference call video from 2/4/19 for further discussion.

use on codio

Jay Kunin:

Question about HW3 (rails) on Codio. I seem to be the first in production with Codio, so finding a lot of questions. Matt has been very helpful, but here's a new, not critical, one: In part 0, I can start the rails server with the Codio params (-p 3000 -b 0.0.0.0), and it starts and displays the right thing on the Box URL. But on the terminal there are a lot of messages starting "Cannot render console from . . ." I see in Sam's -ci file that C9 also does that. So it's not a serious problem, but I get a lot of queries from nervous students. Anybody seen this, and know of a fix? Otherwise we should put a note in the repo' s instructions to ignore those messages.

sqlite issue

Susan reported:

Now I'm having issues with my version of sqlite3. When I try to run rottenpotatoes, I get this error:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
I'm using the Gemfile that is included with the app in Github which specifies gem sqlite3.
The Gemfile just calls for sqlite3 with no version number. Codio has sqlite3 version 3.8.2 engine installed. Could I have a version conflict?

and found she was able to fix it by locking the sqlite gem to 1.3.13

Fails to deploy to Heroku due to SQlite incompatibility

Error message when I attempt to deploy my otherwise working app (locally) to Heroku:

An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
remote: continue.
remote: Make sure that gem install sqlite3 -v '1.3.11' succeeds before bundling.
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Detected sqlite3 gem which is not supported on Heroku.
remote: ! https://devcenter.heroku.com/articles/sqlite3

I've read the article, but the suggested changes will take me far outside the tutorial, so I worry about future problems. I also tried this Stack Exchange suggestion, and then ran bundle --without production, but the Heroku refusal to deploy persists.

add tests

like assignments before - should we add a complete set of tests that can be run locally?

Minor issues when working with Heroku

Hi, I'm reviewing the online material and doing this homework (thanks for releasing such a terrific course!). So far, my development environment runs nicely but, unfortunately, I ran into some issues when trying to deploy to Heroku:

  • The Gemfile specifies that HAML will only be installed in development and test environments, so the views are not been rendered (ActionView::MissingTemplate error). Besides, I had to move the sqlite gem to development and test groups in order to deploy to Heroku.
  • The movie model uses attr_accesible which is not supported in Rails 4. Apparently, this wasn't a problem for my local environment but, on Heroku, I had to use strong parameters instead.

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.