とっとこhaml太郎

タイトルに意味はないです。
今日はerbをhamlに一気に変換したいと思います。

1
2
#Gemfile
gem "erb2haml", :group => :development
1
2
3
4
bundle install
rake haml:convert_erbs

ERROR:  Could not find html2haml in your PATH. Aborting.

あれ?

追記

1
2
3
4
5
#Gemfile
group :development do
  gem 'html2haml'
  gem 'erb2haml'
end
1
2
3
4
5
6
7
8
9
10
11
rake haml:convert_erbs
Looking for ERB files to convert to Haml...
Converting: app/views/devise/confirmations/new.html.erb... Done!
Converting: app/views/devise/mailer/confirmation_instructions.html.erb... Done!
Converting: app/views/devise/mailer/reset_password_instructions.html.erb... Done!
Converting: app/views/devise/mailer/unlock_instructions.html.erb... Done!
Converting: app/views/devise/passwords/edit.html.erb... Done!
Converting: app/views/devise/passwords/new.html.erb... Done!
Converting: app/views/devise/registrations/edit.html.erb... Done!
Converting: app/views/devise/registrations/new.html.erb... Done!
Converting: app/views/devise/sessions/new.html.erb... Done!

うんうん。

追記
遅れましたが、Ruby2.0おめでとうございます。
とりあえずMacに入れてみました。それだけです。

Comments