When I run any rake command like rake routes
I get the following error:
rake aborted!
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x007f4873711d40>
/home/aldo/march_rails/phonebook/Rakefile:6:in `<top (required)>'
The line of code in my Rakefile that is being referenced is:
Rails.application.load_tasks
I have tried prepending bundle exec
and I have tried deleting the Gemfile.lock
and rerunning bundler but that didn't make any difference.