ruby on rails - Uninitialized initializer constant -


i created settings.rb file under initializers folder containing values need initialized once application starts. however, on running rails s "uninitialized contant settings(nameerror)

settings.rb

settings.defaults[:single_phase] = 500 settings.defaults[:three_phase]  = 300 

i created migration accompany , view.

where problem?

in config/application_settings.rb

development:   single_phase: 200 

and use anywhere in app

app_settings['single_phase'] 

which returns 200


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -