Rails 4에서 Haml을 사용하는 단계
전제
Mac OS X 10.9.4 (Mavericks)
2.1.2
4.1.1
절차
Gemfile
에 추가gem 'haml-rails'
gem 'erb2haml'
그들을
bundle install
합니다.$ bundle install --path vendor/bundle
※ 제 경우에는
vendor/bundle
에 gem 을 배치하고 있습니다. 적당히, 읽어 주세요.다음과 같이 설치되었습니다.

다음과 같이 기존
.erb
파일을 Haml로 변환합니다.$ ./bin/rake haml:replace_erbs
초기 상태에서는 View 의 파일은
application.html.erb
1 개 뿐입니다만, 다음과 같이 변환되었습니다.
새로 scaffold 해보자.
$ ./bin/rails g scaffold Hoge name:string age:integer
제대로 Haml에서 생성된 것 같습니다^^

Reference
이 문제에 관하여(Rails 4에서 Haml을 사용하는 단계), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/hkusu/items/acd487eec4bbfc9fed2f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)