Using only js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SUGGESTION 1: | |
| -------------------------- | |
| Consider combining Location into Airport model ie: | |
| Insead of | |
| Location.lat | |
| Location.long | |
| Location.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # There are 4 basic steps to implementing your ActionMailer functionality in a Rails app: | |
| # Step 1. Create your ActionMailer object. Remember that it can have any name, but should finish with "Mailer": | |
| rails g mailer UserMailer | |
| class UserMailer < ActionMailer::Base | |
| default from: "fred@fred.com" | |
| def confirm_user(user) | |
| @user = user |
##jQuery
###Basics
- Little bit of background on jQuery
- How to include it
- How to make sure it's included and works
- How to use the documentation to explore methods (in the course of this class)
###Select elements and add property
$('#topsquare').addClass('white-text');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'sinatra/reloader' | |
| require 'yahoofinance' | |
| get '/' do | |
| @method = "post" | |
| @action = "/stock" | |
| erb :form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # happy_tails.rb | |
| # Spencer Eldred | |
| # Sept 27, 2013 | |
| # Activity: | |
| # You are the manager at HappiTails animal shelter. You need to manage your shelter by storing and manipulating information about clients and animals. | |
| # Object Specs: | |
| # Animal: | |
| # An animal should have a name, an age, a gender, a species, and can have multiple toys. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create an Array of 4 shoes | |
| # iterate through your Array using each and {}'s | |
| # and show a list of your shoes | |
| # create an Array of 4 outfits using Array.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is our first week's !quiz Let's find out what we know. | |
| # | |
| # The ideal range of your motor cycle speed 20 - 55. Over 55 is SCAREE! | |
| # Check if your moto_speed is within that range using boolean (&&, ||) | |
| # operators and comparison operators (== =< >= !=) | |
| # if your moto_speed variable is in the right range print out a good | |
| # message, aka "Wheee!" Otherwise print out an appropriate response. |
NewerOlder