ruby on rails - moved config/application.rb file -


i still learning ruby on rails. accidentally moved file config/application.rb config/locales directory.

then figured out , moved back, after did rails generate , rails console commands stopped working.

any advice?

rails versions 4 , later use spring speed development process loading application memory. way, commands rake db:migrate, rails new or command requires load whole rails before running speeded up. because, launched , in memory. spring updates changed files.

in case, ran rails new command in "broken" state, without application.rb file , application in memory. next time ran rails command running "broken" code.

so, running spring stop stop spring fixed problem.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -