Calirails
Calirails

Reputation: 377

How to use SLIM by default template language instead ERB in Ruby on Rails

I need to use Slim-rails in all my Rails projects. How to use Slim-rails by default?

Upvotes: 0

Views: 1064

Answers (2)

Danil
Danil

Reputation: 2537

use this to generate your rails project

rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

choose 3 option at beggining of wizard and later will be option about Template engine

besides slim it has many neat options to speedup your rails project setup

Upvotes: 3

Tim Baas
Tim Baas

Reputation: 6185

This is what you want:

http://edgeguides.rubyonrails.org/rails_application_templates.html

Rails Application Templates

Upvotes: 1

Related Questions