Ruby and RoR snippets

Typical scaffolding line:

ruby script/generate scaffold Wp_article subject:string content:text tags:string categories:string wp_site_id:integer published:boolean

Followed by rake db:migrate.

Multiline comments:

=begin
. . .
=end

Executing rails controller as a rails task, original article here:

rake RAILS_ENV=development push:pusharticles