huntman's Blog

For Freedom

黄喵直播提取几种常见bug报错——多图杀喵>0<

| Comments

直接上图,为了便于搜索,每张图添加报错提示

终端详细提示,以bundle install出问题后自动给出的提示为例


Routing Error
uninitialized constant ApplicationControlle

SyntaxError in JobsController#index
/Users/xxxx/controllers/xxx_controller.rb:63:syntax error, unexpected end-of-input, expecting keyword_end

解决end问题的利器:在Atom下的偏好设置中选择Install一栏,然后搜索ruby-block

ActiveRecord::PendingMigrationError
Migrations are pending. To resolve this issue, run:bin/rails db:migrate RAILS_ENV=development

NoMethodError in Admin::ResumesController#index
undefined method 'requier_is_admin' for #xxxxx Did you mean? require_is_admin

NoMehtodError in GroupsController#new
undefined method 'authenticate_user!' for #xxxxxxx Did you mean? authenticate_usre


AbstractController::DoubleRenderError in CartltemsController#add_amount
直接明确提示一大堆

ActiveRecord::IllegalMigrationNameError
Illeagal name for migration file:db/migrate/20170404010321_devise_create_:s.rb(only lower case letters, numbers, and '_' allowed).

Comments

comments powered by Disqus