JelenaD1 / rails-amusement-park

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails Amusement Park

Learning Goals

  • Use form helpers
  • Work with multiple models that interact with each other
  • Build a simple sessions system

Instructions

You're going to be building an amusement park. There will be users, attractions, and users can take rides on attractions.

  • This is a test driven lab, check out the model tests and get those to pass before moving onto the feature specs.
  • Remember, if you use scaffolds or generators do not overwrite the model specs that are included in this lab. Always use the --no-test-framework flag and enter n or no when prompted to overwrite the model specs for this lab.

A hint about requiring a password: ActiveRecord comes with a handy has_secure_password attribute that you can set on a model. It requires that you enable the bcrypt gem and that you add a password_digest column to your model. You can read more about has_secure_password here.

If you want to see the completed version of the app, you can check out the solution branch and run it locally:

$ git checkout solution
$ bundle install
$ rails db:migrate db:seed
$ rails s

After running these commands, the finished app will be available on http://localhost:3000/.

After viewing the solution, you can switch back to the default branch:

$ git checkout master

Resources

About

License:Other


Languages

Language:Ruby 83.9%Language:HTML 10.4%Language:SCSS 2.8%Language:JavaScript 1.9%Language:CoffeeScript 1.0%