Skip to content

Update the readme to include a step about autoload_paths #50

@kayzee

Description

@kayzee

I followed the steps in the readme to create an enum for Gender, however I kept getting the following error after updating my model:

NameError: uninitialized constant Gender

I ended up adding the following line to application.rb:

config.autoload_paths += %W(#{config.root}/app/enums)

For the record, I'm using Rails 4.1.6 and Ruby 2.2.0.

Should this step be in the Readme or is it assumed that we should know to update the paths?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions