Created
          February 16, 2013 18:44 
        
      - 
      
- 
        Save vlad-shatskyi/4968144 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | user = User.find(1) | |
| site = Site.new | |
| site.url = "http://www.google.com" | |
| site.name = "Google" | |
| user.sites << site | |
| if user.save | |
| 'cool' | |
| else | |
| 'not so cool' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment