Not Done | Working On | Completed |
---|---|---|
activerecord-congress-database-1-modeling-congresspeople-challenge, rspec | 99-bottles-challenge, rspec | |
|
class InventoryItem | |
attr_accessor :name, :inventory | |
def initialize(args) | |
@name = args[:name] | |
@inventory = args[:inventory] | |
end | |
def count_items(item) | |
#self.inventory.each do |key, value| |
| Not Done | Working On | Completed | | |
| --- | --- | --- | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
99-bottles-challenge, rspec | |
activerecord-congress-database-1-modeling-congresspeople-challenge, rspec |
Not Done | Working On | Completed |
---|---|---|
activerecord-congress-database-1-modeling-congresspeople-challenge, rspec | 99-bottles-challenge, rspec | |
|
# READ --------------------------------- | |
## list all users (index) | |
get "/users" do | |
@users = User.all | |
erb :"users/index" | |
end | |
## show one user by id (show) | |
## THIS ROUTE SHOULD BE FURTHER DOWN, TO PREVENT '/new' from being captured by '/:id' |
##Commands to remember:
# Start IRB with application environment loaded
# Create the databases at hr-sinatra-refactor-challenge_development
# Drop the database at hr-sinatra-refactor-challenge_development
# Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
# Drop, create, and migrate the database
http://codefol.io/posts/How-Does-Rack-Parse-Query-Params-With-parse-nested-query |
_id
).Add a one-sentence description of this project. and a link to the live demo.
Why react is great | |
- load balancing | |
- code cleanliness | |
- keep from bloat | |
react creates components that will keep track of things and update on its own. have their own virtualDOM that lives in between your code and the dom. | |
learn about JSX | |
Greg Bauges | |
GEMS: twitter, CSV, marky_markov | |
use twitter API apps.twitter.com | |
get key credentials | |
tweets - client.user_timeline('username' | |
cleaner: | |
def clean_tweet(tweet) |