Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (18 sloc) 0.821 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
generate('rspec:install')
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' %>
TEMPLATE

file "app/views/things/custom_action.html.erb", template_code, {:force=>true}

run('rake db:migrate')
run('rake db:test:prepare')
Something went wrong with that request. Please try again.