Hello World from OSS Silicon Valley
HowToUse/RubyOnRails/4.2/FontAwesomeRails/4.6
_ Prerequisite
- Rails installation (You can refer HowToUse/RubyOnRails/4.2)
_ Install&Setup
- Step.1
- Add font-awesome-rails to Gemfile.
gem "font-awesome-rails"
- Step.2
- Install new gem.
$ bundle install
- Step.3
- Add the following line to application.css.
$ vi app/assets/stylesheets/application.css
*= font-awesome
_ HowToUse
- Step.1
- Add the following line to your view file.
<%= fa_icon "github" %>
Then, you can see the logo for GitHub.
_ Author
S.Yatsuzuka
Last-modified: 2016-11-16 (Wed) 02:18:46 (3019d)