SimpleForm error when deploying app to Heroku

Posted by Ife Odugbesan

7 months ago

0

gems production gemfile simple-form heroku

Error message:

uninitialized constant SimpleForm (NameError) SimpleForm.setup do |config| ^^^^^^^^^^ Did you mean? SimpleDelegator


Check your gemfile to ensure that you haven't put some of the gems that you need in production in a development/test group.

For example if your simple form gem is in the development/test group (as shown below) then it won't be installed in production

group :development, :test do
  # SimpleForm gem should NOT be inside here
  gem "simple_form", github: "heartcombo/simple_form"
end