Ruby on Rails, or Rails, for short is a web application development framework written in the Ruby language. Although installing Rails is not that difficult, it is beyond the scope of this book.
Those who want to start developing with Ruby on Rails can read the Getting Started with Rails guide, which can be found at http://guides.rubyonrails.org/getting_started.html.
In this section, you can read how to integrate Less into a Ruby on Rails app.
After installing the tools and components required for starting with Rails, you can launch a new application by running the following command on your console:
> rails new blog
Now, you should integrate Less with Rails. You can use less-rails
(https://github.com/metaskills/less-rails) to bring Less to Rails. Open the Gemfile
file, comment on the sass-rails
gem, and add the less-rails
gem, as shown here:
#gem 'sass-rails', '~> 5.0' gem 'less-rails' # Less gem 'therubyracer' # Ruby
Then, create a controller called welcome
with an...