Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Stoveld
4,203 PointsERB Error with Scaffold process
When I try to run the scaffold command I get some code vomit back.
(erb):82:in `template': undefined method `update_attributes' for #<Rails::Generators::ActiveModel:0x007f81b6d6a1c0> (NoMethodError)
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/erb.rb:863:in `eval'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/erb.rb:863:in `result'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:46:in `identical?'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:72:in `on_conflict_behavior'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:113:in `invoke_with_conflict_check'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:26:in `block in template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:60:in `inside_template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:25:in `template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/rspec-rails-2.1.0/lib/generators/rspec/scaffold/scaffold_generator.rb:24:in `generate_controller_spec'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_test_framework'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_scaffold_controller'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators.rb:157:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/Documents/Projects/odot/odot/bin/rails:8:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
Not sure what is wrong but i tried downloading gem install erb but that came back no go.
John Stoveld
4,203 PointsInteresting...
I deleted and recreated the ODOT folder. Just re ran the command :
JSs-MacBook-Pro:odot JS$ bin/rails generate scaffold todo_list title:string description:text
invoke active_record
create db/migrate/20150126182755_create_todo_lists.rb
create app/models/todo_list.rb
invoke test_unit
create test/models/todo_list_test.rb
create test/fixtures/todo_lists.yml
invoke resource_route
route resources :todo_lists
invoke scaffold_controller
create app/controllers/todo_lists_controller.rb
invoke erb
create app/views/todo_lists
create app/views/todo_lists/index.html.erb
create app/views/todo_lists/edit.html.erb
create app/views/todo_lists/show.html.erb
create app/views/todo_lists/new.html.erb
create app/views/todo_lists/_form.html.erb
invoke test_unit
create test/controllers/todo_lists_controller_test.rb
invoke helper
create app/helpers/todo_lists_helper.rb
invoke test_unit
invoke jbuilder
create app/views/todo_lists/index.json.jbuilder
create app/views/todo_lists/show.json.jbuilder
invoke assets
invoke coffee
create app/assets/javascripts/todo_lists.coffee
invoke scss
create app/assets/stylesheets/todo_lists.scss
invoke scss
create app/assets/stylesheets/scaffolds.scss
And as you can see it was invoked... This was just a vanilla set up. I must have botched something during the setup following the video.
Im gonna go back one and re set this all up again.
Ross Litzenberger
11,706 PointsWell i am glad you found the problem. Sorry i could not figure that out for you. If i could help down the road hit me up.
John Stoveld
4,203 PointsRe did the entire video and I am still running into an issue here...
Not sure what the cause is but perhaps its the version of rails I am running.
Video says 4.0.2 Im running 4.2.1 I believe.
This command is what kills it
JSs-MacBook-Pro:odot JS$ bin/rails generate scaffold todo_list title:string description:text
invoke active_record
identical db/migrate/20150127012749_create_todo_lists.rb
identical app/models/todo_list.rb
invoke rspec
identical spec/models/todo_list_spec.rb
invoke resource_route
route resources :todo_lists
invoke scaffold_controller
identical app/controllers/todo_lists_controller.rb
invoke erb
exist app/views/todo_lists
identical app/views/todo_lists/index.html.erb
identical app/views/todo_lists/edit.html.erb
identical app/views/todo_lists/show.html.erb
identical app/views/todo_lists/new.html.erb
identical app/views/todo_lists/_form.html.erb
invoke rspec
(erb):82:in `template': undefined method `update_attributes' for #<Rails::Generators::ActiveModel:0x007f9f1fa19f30> (NoMethodError)
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/erb.rb:863:in `eval'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/erb.rb:863:in `result'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:46:in `identical?'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:72:in `on_conflict_behavior'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:113:in `invoke_with_conflict_check'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:26:in `block in template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:60:in `inside_template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators/named_base.rb:25:in `template'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/rspec-rails-2.1.0/lib/generators/rspec/scaffold/scaffold_generator.rb:24:in `generate_controller_spec'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_test_framework'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/shell.rb:68:in `with_padding'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:133:in `_invoke_from_option_scaffold_controller'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/generators.rb:157:in `invoke'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/JS/Documents/Projects/odot/bin/rails:8:in `<top (required)>'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/JS/.rvm/gems/ruby-2.2.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:268:in `load'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/JS/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from -e:1:in `<main>'
2 Answers
John Stoveld
4,203 PointsOk got it!
JSs-MacBook-Pro:odot JS$ bin/rails generate scaffold todo_list title:string description:text --force
invoke active_record
identical db/migrate/20150127184826_create_todo_lists.rb
identical app/models/todo_list.rb
invoke rspec
identical spec/models/todo_list_spec.rb
invoke resource_route
route resources :todo_lists
invoke scaffold_controller
identical app/controllers/todo_lists_controller.rb
invoke erb
exist app/views/todo_lists
identical app/views/todo_lists/index.html.erb
identical app/views/todo_lists/edit.html.erb
identical app/views/todo_lists/show.html.erb
identical app/views/todo_lists/new.html.erb
identical app/views/todo_lists/_form.html.erb
invoke rspec
force spec/controllers/todo_lists_controller_spec.rb
create spec/views/todo_lists/edit.html.erb_spec.rb
create spec/views/todo_lists/index.html.erb_spec.rb
create spec/views/todo_lists/new.html.erb_spec.rb
create spec/views/todo_lists/show.html.erb_spec.rb
create spec/routing/todo_lists_routing_spec.rb
invoke rspec
create spec/requests/todo_lists_spec.rb
invoke helper
create app/helpers/todo_lists_helper.rb
invoke rspec
create spec/helpers/todo_lists_helper_spec.rb
invoke jbuilder
create app/views/todo_lists/index.json.jbuilder
create app/views/todo_lists/show.json.jbuilder
invoke assets
invoke coffee
create app/assets/javascripts/todo_lists.coffee
invoke scss
create app/assets/stylesheets/todo_lists.scss
invoke scss
create app/assets/stylesheets/scaffolds.scss
JSs-MacBook-Pro:odot JS$
Issue was that bundler needed to be upgraded.
Wasnt compatible with Ruby / RVM 2.2.x
John Stoveld
4,203 PointsFollowed the command posted in the exercise :
Last login: Thu Jan 22 19:36:17 on console
JSs-MacBook-Pro:~ JS$ bin/rails generate scaffold todo_list title:string description:text
John Stoveld
4,203 PointsNot out of the wolds yet.
Now the scaffold command is all out of whack. Gonna work on it tonight.
John Stoveld
4,203 PointsJohn Stoveld
4,203 PointsAnyone else ever have this issue? Sounds like I must have set up ERB wrong or Im just missing something.