Scoop 'n Smiles

What is my project and what makes it awesome?

Ice Cream

My project is an online ice cream shop and it is awesome because it has a wide variety of flavors and mix-ins to make the best ice cream ever.

It also has a great deal of relationships making it very complex.

How did you come up with your idea?


My dad was the one who gave me the idea on ice cream and I just took that to make an online ice cream shop.

What is your table structure?


I have a bunch of connected tables to order which has scoops, eating method, ice cream flavors, mix ins, toppings, and specials to choose from.

Ice Cream

What is the hardest piece of code or what was a problem you had to solve?

The hard part was probably connecting each of the models and migrations to each other so they would have a relationship.
class CreateOrder < ActiveRecord::Migration[5.1]
  def change
    create_table :special_options do |t|
      t.string :name
      t.string :description
    create_table :specials do |t|
      t.belongs_to :order
      t.belongs_to :special_option
    create_table :orders do |t|
      t.integer :scoops
      t.string :eating_method
      t.belongs_to :special

Why Awesome was so hard

It was so difficult because I wanted to be able to do a great deal with the website and would just let my self get away with the bare minimum. The relationships also made it more complicated.

What is the next step?

A lot of stuff

I would like to learn how to make a game in javascript or learn python.

I want to learn more code and what I can do with it.

This Project was made for SheQL

SheQL is a free, 10 week course offered to high school girls, femmes, and non-males in the Summer of 2017 by Mystery Code Society and supported with materials and space by the Abrahams Branch library.

This project was built using Ruby, Postgres, ActiveRecord, and Sinatra.

If you think these sites are beautiful, that is thanks to a custom front-end framework by Cara Heacock (puzzalea on github). We are so lucky to have her!