Sha256: 63a7112276ad7cea2702aabba45e23570a80a1b65a75d3e691e08d751c1ba951
Contents?: true
Size: 1.62 KB
Versions: 3
Compression:
Stored size: 1.62 KB
Contents
# Radius::Rails Radius Networks Assets and Generators for Rails Apps. ## Installation Add this line to your application's Gemfile: ```ruby gem 'radius-rails', github: "RadiusNetworks/radius-rails" ``` ## Usage This will give you access to the common Radius Networks assets needed in most web apps. ### Stylesheets and Images Stylesheets can be pulled in with the [asset pipeline](http://guides.rubyonrails.org/asset_pipeline.html) or using [Sass](http://sass-lang.com/): ```scss @import "normalize"; @import "font-awesome"; @import "bonveno-webfont"; @import "environment-ribbon"; ``` You can pull in the favicon by adding the image to the header of your layout: ```slim head link href="#{image_path("favicon.ico")}" rel="shortcut icon" ``` Take a look in the [`app/assets`](app/assets) to see what is included with the gem. ### Generators You can generate the error pages in `public/` by running the generator: ``` rails generate radius:error_pages ``` ### View Partials A few common partials that are needed across apps. #### Environment Ribbon Add the `environment_ribbon` partial right after the opening body tag. ```slim body == render 'radius/environment_ribbon' ``` #### Corporate Bar Header Add the `corporate_bar` partial right after the opening body tag. ```slim body == render 'radius/corporate_bar' ``` #### Google Analytics ```slim == render 'radius/ga' ``` #### Zendesk Support Tab Most of the time you only want this on some views, so you can optionally include it by checking the `controller_name`. ```slim - if !(controller_name == "static" && action_name == "index") == render 'radius/zendesk' ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radius-rails-0.0.6 | README.md |
radius-rails-0.0.5 | README.md |
radius-rails-0.0.2 | README.md |