wearefine / fae

CMS for Rails. For Reals.
https://www.faecms.com
MIT License
849 stars 140 forks source link

Update page_generator.rb #596

Closed losingle closed 8 months ago

losingle commented 1 year ago

Ruby 3.0.0 removing File.exists?

MrSkinny commented 8 months ago

FYI, without this being merged, I was following your tutorial and the reader is unable to progress past the instructed command of rails g fae:page AboutUs hero_image:image headline:string body:text as it returned an undefined method exception:

~/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/fae-rails-3.0.0/lib/generators/fae/page_generator.rb:29:in `generate_static_page_controller': undefined method `exists?' for File:Class (NoMethodError)
jamesmk commented 8 months ago

Thank you for the PR, we'll include this in our 3.1 release!