Skip to content

How to install it in a Rails app? #13

@MateoLa

Description

@MateoLa

Hello.

I coudn't find a way to run: scripts/generator preferences

I'm using Rails 7.2 and ruby 3.0.

I add and installed the gem to my Gemfile (gem 'preferences', '~>0.4').

I try:
rails generate preferences
rails script/generate preferences
rails runner script/generate preferences
rails runner --skip-wrapper script/generate preferences

and all those give me errors.
The only way I have found is monky-patching your migration.
Is there any solution I could try?
Thanks, Mateo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions