Last active
February 27, 2024 22:34
-
-
Save fabianvelizok/c929c8edaa3a4d6a5873 to your computer and use it in GitHub Desktop.
devise views to slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails generate devise:views | |
gem install html2slim | |
for file in app/views/devise/**/*.erb; do erb2slim $file ${file%erb}slim && rm $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the NoMethodError File.exists? in ruby 3.2 you can do the following