How to generate Haml views instead of erb

后端 未结 3 1708
鱼传尺愫
鱼传尺愫 2021-01-31 03:23

I\'m building an app with Rails 2.3.4 and using

script/generate controller home index

to generate a controller and home page. I\'ve got Haml i

相关标签:
3条回答
  • 2021-01-31 03:36

    This gem will do the trick http://github.com/indirect/haml-rails

    0 讨论(0)
  • 2021-01-31 03:37

    This gem here might be useful. I don't think there is any way to do this outside of a plugin/gem. (disclaimer: I haven't tried this myself, but came across it when I was researching the same thing)

    0 讨论(0)
  • 2021-01-31 03:50

    Waht actually worked for me, but in rails 3.1 is this wiki here: https://github.com/plataformatec/devise/wiki/How-To:-Create-Haml-and-Slim-Views :)

    0 讨论(0)
提交回复
热议问题