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
Post a Comment