Creating a RoR app with Foundation 6
You can read more about Foundation for Sites 6 in Chapter 11, Foundation and Sass. Foundation for Sites 6 is a CSS and JavaScript Framework build with Sass have been designed to get your project from prototype to production more efficiently than ever before. In this recipe, you can read how to use Foundation for Sites 6 for your RoR projects.
How to do it...
Learn how to create a RoR app with Foundation 6 yourself:
- Create a new Rails app by running the following command in your console:
rails new recipe7
- Run, as already described in the Hello world with Ruby on Rails recipe, the controller generator and tell it that you want a controller called welcome with an action called index, as follows:
bin/rails generate controller welcome index
- Then, add the Foundation 6 gem to your application's Gemfile as follows and run the
bundle
command afterwards:gem 'foundation-rails'
- Now, you can add Foundation to your Rails setup by simply running the following...