Giter Site home page Giter Site logo

sinatra-user-auth-v-000's Issues

log out test passes w/o clearing session.id

The tests all pass before one clears the session in the '/sessions/logout' action. It looks like the test is just making sure that the redirect happens, which it is set up to do before students change any code there.

Instructions don't match lab

There are a few instructions that are off from what actually needs to be done to complete the lab, such as the lab claims the first few test can be passed by running rake db:migrate but there is no migration file in the lab. The migration has to be created manually with rake.

needs_migration? no_method error

Change config.ru to the following:

require './config/environment'

if ActiveRecord::Migrator.needs_migration?
raise 'Migrations are pending. Run rake db:migrate to resolve the issue.'
end

run ApplicationController

application_controller.rb has no solution code

A couple of issues with this lab:

  1. Although this lab is a code along, there was an issue with the solution code for application_controller.rb missing.

  2. At the step where you insert 'puts params' in the post '/registrations' route, the code breaks and Sinatra throws an error, and trying to find the issue was only solved by copying over all the correct code for the login page, as well as the routes:

undefined method `name' for nil:NilClass
file: home.erb location: block in singleton class line: 1```

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.