You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rails generate devise:views
gem install html2haml
for /r app\views\devise %I in (*) do html2haml -e %I %~dpnI.haml
del /f /s /q app\views\devise\*.erb
gem install html2slim
for /r app\views\devise %I in (*) do erb2slim %I %~dpnI.slim
del /f /s /q app\views\devise\*.erb
Explanation
Create Haml views
First you need run the generator to create the devise ERB files.
rails generate devise:views
Now we need a tool called 'html2haml' which was formely a part of the 'haml' gem but is now separate.
gem install html2haml
Now for each erb file, convert it to Haml and removing the erb if successful.