On Github vlasiak / rails_views_part2_presentation
The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages and pre-processors such as CoffeeScript, Sass and ERB.
Pipeline assets can be placed inside an application in one of three locations: app/assets, lib/assets or vendor/assets.
Haml is a templating engine for HTML. It provides an elegant syntax that's both powerful and easy to understand. Rails installation:
gem 'haml'gitHub repository
Using helpers we could place logic directly in the view.
Message
module ColorHelper def colored_class return 'red' if params[:error].present? 'green' end endBootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
Rails Bootstrap Sass GemCreated by Vasyl Lasiak / @vlasiak