Skip to content

Instantly share code, notes, and snippets.

@justincaldwell
Created July 19, 2012 19:43
Show Gist options
  • Save justincaldwell/3146303 to your computer and use it in GitHub Desktop.
Save justincaldwell/3146303 to your computer and use it in GitHub Desktop.
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