This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
I recently wanted to rename a model and its postgres table in a Phoenix app. Renaming the table was simple and documented, but the table also had constraints, sequences, and indexes that needed to be updated in order for the Ecto model to be able to rely on default naming conventions. I couldn't find any examples of what this would look like but was eventually able to figure it out. For anyone else in the same situation, hopefully this example helps.
In the example below, I'm renaming the Permission
model to Membership
. This model belongs to a User
and an Account
, so it has foreign key constraints that need to be renamed.
defmodule MyApp.Repo.Migrations.RenamePermissionsToMemberships do
use Ecto.Migration
I asked on https://www.facebook.com/groups/1014974001864957/permalink/1252338398128515/ and these were the main points:
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
#Heroku, Ruby on Rails and PhantomJS
In this post, I’m going to show you how to modify an existing Ruby on Rails app running on Heroku’s Cedar stack to use PhantomJS for screen scraping. If you’ve never heard of PhantomJS, it’s a command-line WebKit-based browser (that supports JavaScript, cookies, etc.).
Let’s get started. This is a high-level overview of the required steps:
{ | |
// NOTE: these settings work well for me | |
// using Ruby, Elixir and Assembly languages. | |
// | |
// I would probably do something different if | |
// I worked more with other languages at the moment | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"workbench.startupEditor": "newUntitledFile", |
# Patch to support customized request headers in your Capybara tests | |
# when you're using the RackTest driver, based on an Aslak Hellesøy's gist: | |
# https://gist.github.com/358664 | |
# | |
# Please note that some drivers don't allow access to headers, see: | |
# https://github.com/jnicklas/capybara/issuesearch?state=closed&q=header#issue/17 | |
class Capybara::Driver::RackTest < Capybara::Driver::Base | |
def env |
Schedule: http://conferenciarails.org/schedule.html
Slides:
Five Years of Rails, from Spain with <3 by @supercoco9 http://www.slideshare.net/supercoco9/five-years-ofrailsbyjavierramirez
Migrating a development company to Rails 3 by @railshoster https://github.com/enterprise-rails/talk_migrating_to_rails3
How I Learned to Smell Code by @gigglegirl4e http://www.slideshare.net/reneedv/conferencia-8639360 http://www.slideshare.net/reneedv/how-i-learned-to-smell-code