⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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
A Symbol is designated with a colon (:) to the left of a word. | |
Method | |
Call - run or execute a method. | |
Define - compose or write a method. |
This file contains 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
Better Errors Gem: | |
https://github.com/charliesome/better_errors | |
1. avatar not working - AWS bucket not working. | |
2. Not able to render a list of post. |
##Online Course
- Bloc.io
- RubyLearning.org course (starts Feb 8th)
Tutorials
- Hartl Tutorial
- Dash by General Assembly
- Excel API https://github.com/autotelik/datashift
- To Do App http://arubystory.blogspot.gr/2013/12/tutorial-todo-rails-openshift.html
##Rabbit Hole Session
- the term I have created to explain how I search the web for one thing about programming and find my self looking at something completely unrelated.
- e.g.: (1)I might start looking for through the Ruby Documentation on specific information on how Modules work and their assoication with Models, but then end up on Indeed finding Ruby jobs in Nashville for 45 minutes. (2) I might be researching different frameworks such as Sintara or Racks on popular Ruby blogs and then find myself spending 2 hours searching reviews for careers in San Francisco.(3) Open up Sublimetext to begin a programming session but instead spend 3 hours researching the best wood to build a standing desk for my future remote Rails Dev position.
This file contains 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
=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') |
This file contains 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
class House | |
def self.recite | |
new.recite | |
end | |
def recite | |
(1..12).map {|i| line(i) }.join("\n") | |
end | |
private |
This file contains 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
#// Here is my Failing test //# | |
Failures: | |
1) Game of Life #Board should check neighbor to the north for alive | |
Failure/Error: expect(subject.live_neighbors_around).to change(subject.live_neighbors_around, :count).by(1) | |
NoMethodError: | |
undefined method `count' for nil:NilClass | |
# ./spec/start_spec.rb:48:in `block (3 levels) in <top (required)>' |
#Getting Started Guide
I have outlined a few things to do to get started in Ruby.
-
Sign up for the Odin Project, Join the Odin Google Group
-
Read through section 1 of Web 101
-
Install Ruby if you havent already
-
Watch this video on How to Learn a language fast
OlderNewer