Friday, 28 February 2014

How to generate Haml views instead of erb

How to generate Haml views instead of erb



1.How to generate Haml views instead of erb - Stack Overflow

Description: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 installed. I get an erb ...



2.ruby on rails 3 - Devise generators use erb instead of ...

Description:I'm trying to generate haml views with devise, but it always
use erb instead. I'm running rails 3.1 & ruby 1.9.2. Rails generators
(like scaffold) generates haml.



3.Haml :: Tutorial

Description:app/views/account/login.html.erb ¡ú
app/views/account/login.html.haml. Now, when you view that page, instead
of ERB getting its hands on the template, ...



4.Haml - Official Site

Description:Haml (HTML abstraction markup language) is based on one
primary principle: ... Emotions when returning to haml (after erb): 1.
This code looks pretty... 2.



5.Layouts and Rendering in Rails ¡ª Ruby on Rails Guides

Description:Use a separate erb view instead. By default, ... Rails will
use app/views/layouts/application.html.erb or app/views/layouts ... this
helper will generate ¡­



6.Haml and Rails ¡¤ RailsApps

Description:... rb file to accommodate Haml. Any time you generate a
controller or scaffold, you¡¯ll get Haml instead of ERB ... to convert ERB
to Haml using ...



7.The Rails Command Line ¡ª Ruby on Rails Guides

Description:How to generate models, ...
app/views/credit_card/debit.html.erb [...] ... But instead of generating a
model directly ...



8.RailsApps/rails_layout ¡¤ GitHub

Description:24-02-2014 ¡¤ app/views/layouts/application.html.erb;
app/views ... Rails views, the RailsLayout gem will generate ERB ...
generate Haml or Slim files instead.



9.Rails 3 Generators: Scaffolding | Viget

Description:... > ./script/generate ... public/stylesheets/ create
app/views/clubs/index.html.erb create app/views/clubs/show.html.erb ...
instead: scaffold_controller ...



10.Getting Started with Rails ¡ª Ruby on Rails Guides

Description:How to quickly generate the starting pieces of a Rails
application. ... Instead, you'll see something ... let's update the
app/views/articles/new.html.erb view to use ...

No comments:

Post a Comment