Skip to content

Instantly share code, notes, and snippets.

@cupakromer cupakromer/erb.sh
Last active Aug 29, 2015

Embed
What would you like to do?
rspec-rails issue #1331
$ bin/rails g scaffold foo
invoke active_record
create db/migrate/20150305063125_create_foos.rb
create app/models/foo.rb
invoke rspec
create spec/models/foo_spec.rb
invoke resource_route
route resources :foos
invoke scaffold_controller
create app/controllers/foos_controller.rb
invoke erb
create app/views/foos
create app/views/foos/index.html.erb
create app/views/foos/edit.html.erb
create app/views/foos/show.html.erb
create app/views/foos/new.html.erb
create app/views/foos/_form.html.erb
invoke rspec
create spec/controllers/foos_controller_spec.rb
create spec/views/foos/edit.html.erb_spec.rb
create spec/views/foos/index.html.erb_spec.rb
create spec/views/foos/new.html.erb_spec.rb
create spec/views/foos/show.html.erb_spec.rb
create spec/routing/foos_routing_spec.rb
invoke rspec
create spec/requests/foos_spec.rb
invoke helper
create app/helpers/foos_helper.rb
invoke rspec
create spec/helpers/foos_helper_spec.rb
invoke jbuilder
create app/views/foos/index.json.jbuilder
create app/views/foos/show.json.jbuilder
invoke assets
invoke js
create app/assets/javascripts/foos.js
invoke css
create app/assets/stylesheets/foos.css
invoke css
identical app/assets/stylesheets/scaffold.css
$ bundle exec rails g scaffold bar
invoke active_record
create db/migrate/20150305063135_create_bars.rb
create app/models/bar.rb
invoke rspec
create spec/models/bar_spec.rb
invoke resource_route
route resources :bars
invoke scaffold_controller
create app/controllers/bars_controller.rb
invoke erb
create app/views/bars
create app/views/bars/index.html.erb
create app/views/bars/edit.html.erb
create app/views/bars/show.html.erb
create app/views/bars/new.html.erb
create app/views/bars/_form.html.erb
invoke rspec
create spec/controllers/bars_controller_spec.rb
create spec/views/bars/edit.html.erb_spec.rb
create spec/views/bars/index.html.erb_spec.rb
create spec/views/bars/new.html.erb_spec.rb
create spec/views/bars/show.html.erb_spec.rb
create spec/routing/bars_routing_spec.rb
invoke rspec
create spec/requests/bars_spec.rb
invoke helper
create app/helpers/bars_helper.rb
invoke rspec
create spec/helpers/bars_helper_spec.rb
invoke jbuilder
create app/views/bars/index.json.jbuilder
create app/views/bars/show.json.jbuilder
invoke assets
invoke js
create app/assets/javascripts/bars.js
invoke css
create app/assets/stylesheets/bars.css
invoke css
identical app/assets/stylesheets/scaffold.css
$ bin/rails g scaffold qux
invoke active_record
create db/migrate/20150305063651_create_quxes.rb
create app/models/qux.rb
invoke rspec
create spec/models/qux_spec.rb
invoke resource_route
route resources :quxes
invoke scaffold_controller
create app/controllers/quxes_controller.rb
invoke slim
create app/views/quxes
create app/views/quxes/index.html.slim
create app/views/quxes/edit.html.slim
create app/views/quxes/show.html.slim
create app/views/quxes/new.html.slim
create app/views/quxes/_form.html.slim
invoke rspec
create spec/controllers/quxes_controller_spec.rb
create spec/views/quxes/edit.html.slim_spec.rb
create spec/views/quxes/index.html.slim_spec.rb
create spec/views/quxes/new.html.slim_spec.rb
create spec/views/quxes/show.html.slim_spec.rb
create spec/routing/quxes_routing_spec.rb
invoke rspec
create spec/requests/quxes_spec.rb
invoke helper
create app/helpers/quxes_helper.rb
invoke rspec
create spec/helpers/quxes_helper_spec.rb
invoke jbuilder
create app/views/quxes/index.json.jbuilder
create app/views/quxes/show.json.jbuilder
invoke assets
invoke js
create app/assets/javascripts/quxes.js
invoke css
create app/assets/stylesheets/quxes.css
invoke css
identical app/assets/stylesheets/scaffold.css
$ bundle exec rails g scaffold book
invoke active_record
create db/migrate/20150305063731_create_books.rb
create app/models/book.rb
invoke rspec
create spec/models/book_spec.rb
invoke resource_route
route resources :books
invoke scaffold_controller
create app/controllers/books_controller.rb
invoke slim
create app/views/books
create app/views/books/index.html.slim
create app/views/books/edit.html.slim
create app/views/books/show.html.slim
create app/views/books/new.html.slim
create app/views/books/_form.html.slim
invoke rspec
create spec/controllers/books_controller_spec.rb
create spec/views/books/edit.html.slim_spec.rb
create spec/views/books/index.html.slim_spec.rb
create spec/views/books/new.html.slim_spec.rb
create spec/views/books/show.html.slim_spec.rb
create spec/routing/books_routing_spec.rb
invoke rspec
create spec/requests/books_spec.rb
invoke helper
create app/helpers/books_helper.rb
invoke rspec
create spec/helpers/books_helper_spec.rb
invoke jbuilder
create app/views/books/index.json.jbuilder
create app/views/books/show.json.jbuilder
invoke assets
invoke js
create app/assets/javascripts/books.js
invoke css
create app/assets/stylesheets/books.css
invoke css
identical app/assets/stylesheets/scaffold.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.