Created
          July 19, 2012 19:43 
        
      - 
      
- 
        Save justincaldwell/3146303 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
    
  
  
    
  | playlist = Playlist.create(name: 'My Playlist', org_id: Org.find_by_slug('vidpresso').id) | |
| # Create a bunch of entries in your dev database by sending a bunch of posts to air | |
| # Now you can move those to the newly created playlist | |
| playlist.entries << Entry.limit(5).order('id desc') | |
| # Make sure Foreman is started (foreman start -f Procfile.development) | |
| # And playback the playlist | |
| playlist.queue | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment