Skip to content

Rails generate method throwing error when using the gem with Rails 8 #184

@vijayda1891

Description

@vijayda1891

Please help. After running bundle install and trying to use the command
rails g ratyrate User
getting the following error. I am using the latest version of rails and ruby
.local/share/mise/installs/ruby/3.4.2/lib/ruby/gems/3.4.0/gems/ratyrate-1.2.2.alpha/lib/generators/ratyrate/ratyrate_generator.rb:25:in 'RatyrateGenerator#create_model': undefined method 'exists?' for class File (NoMethodError)

raise "User model (#{model_file}) must exits." unless File.exists?(model_file)
                                                          ^^^^^^^^

Did you mean? exist?

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