Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.6.0
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.821 kb
generate('controller wombats index') # plural
generate('controller welcome index') # singular
generate('integration_test widgets')
generate('mailer Notifications signup')
generate('model thing name:string')
generate('helper things')
generate('scaffold widget name:string category:string instock:boolean --force')
generate('observer widget')
generate('scaffold gadget') # scaffold with no attributes
generate('scaffold admin/accounts name:string') # scaffold with nested resource
generate('controller things custom_action')
template_code= <<-TEMPLATE
<% raise 'Error from custom_action because we should never render this template....derp derp derp' %>
file "app/views/things/custom_action.html.erb", template_code, {:force=>true}
run('rake db:migrate')
run('rake db:test:prepare')
Jump to Line
Something went wrong with that request. Please try again.