README

In this project you'll be using Ruby on Rails with Postgres to create a simple web UI to display data from a database.

Users for this site are called Players who should get Offers depending on their OffersTargets.

Prerequisities

Setup

  • Install gems

    bundle install

  • Create the database

    1. Run psql in Terminal or Open psql from the Postgres.app status menu.
    2. \du
    3. CREATE USER dev;
    4. CREATE DATABASE "take_home_rails_im_project_development" WITH OWNER dev;
    5. CREATE DATABASE "take_home_rails_im_project_test" WITH OWNER dev;
    6. \q
  • Initialize the database

    1. Create tables: rake db:schema:load
    2. Populate your DB: rails db:seed
  • Run the Rails server : rails s

Your Task:

  • Create a simple web table in a view called IM Offers

  • This table should have the following columns:

    • Offer Description
    • Offer Target age
    • Offer Target gender
  • Create a second web table in the view for Players with the following columns:

    • First Name
    • Gender
    • Age
  • Choosing a Player from the table should filter the Offers table according to the selected Player's age and gender.

Notes:

For the views feel free to use any web development framework you are familiar with and feel comfortable using.

Bonus points:

  • Adding specs
  • Enhance the web views
  • Edit / Update Offers, Players etc
  • Anything else you would want to show off your skills on :)

Project Submission:

To submit your project please provide us with a Pull Request