I hereby claim:
- I am ryandhaase on github.
- I am ryandhaase (https://keybase.io/ryandhaase) on keybase.
- I have a public key ASB_lpgj4kDpoSs0jjGx4WhK2LH9K225NXthuav1BHXTLQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
###NoMethodError
NoMethodError: undefined method `hello` for main:Object
Means that we tried to invoke the hello method, which has yet to be defined
###Wrong Number of Arguments - ArgumentError
ArgumentError
wrong number of arguments (2 for 1)
###Models How your rails application communicates with a data store
t = Tweet.find(3)In this app/models/tweet.rb file it finds:
class Tweet < ActiveRecord::Base
end| #This is text version of the video/slides from the first checkpoint in railsforzombies.org/levels/1 | |
| #Hash Structure (variable, key, values) | |
| b = { | |
| id: 3, | |
| status: "I just ate some delicious brains", | |
| zombie: "Jim" | |
| } | |
| #how to retrieve a value from the hash: |