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
    
  
  
    
  | Routing the Sinatra way vs Railsy way | |
| http://guides.rubyonrails.org/routing.html | |
| get '/posts/:id', to: 'posts#show', as: post | |
| as option also lets you override the normal naming for the named route helpers | |
| rake routes | |
| Prefix Verb URI Pattern Controller#Action | 
  
    
      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
    
  
  
    
  | # Use Gists to store entire functions | |
| class QuickSort | |
| def self.sort!(keys) | |
| quick(keys,0,keys.size-1) | |
| end | |
| private | |
| def self.quick(keys, left, right) |