Repository is archived
No commit activity in last 3 years
No release in over 3 years
Just an assets collection
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

H2ocubeRailsAssets

Gem Version Build Status

Just an assets collection.

Installation

NOTE: The new version just support rails 4.2 or newer.

Add this line to your application's Gemfile:

gem 'h2ocube_rails_assets'

And then execute:

$ bundle

Or install it yourself as:

$ gem install h2ocube_rails_assets

Include Gems

Include helper

assets_source(type)

type is :css or :js

Example:

assets_source :css # when subdomain is 'www', controller is 'pages', action is 'home', it will try to find 'assets/stylesheets/domains/www/pages.sass' and 'assets/stylesheets/domains/www/pages/home.sass', if file exists, will use `stylesheet_link_tag` to include them.

Other Useful Gems

Font::Awesome::Sass https://github.com/FortAwesome/font-awesome-sass

gem 'font-awesome-sass'

@import 'font-awesome'

bootstrap-sass https://github.com/twbs/bootstrap-sass

gem 'bootstrap-sass'

@import "bootstrap-sprockets"
@import "bootstrap"
#= require bootstrap-sprockets

Semantic UI https://github.com/doabit/semantic-ui-sass

gem 'semantic-ui-sass'

@import "semantic-ui"
#= require semantic-ui

Backbone & Underscore https://github.com/codebrew/backbone-rails

gem 'rails-backbone'

#= require underscore
#= require backbone

Turbolinks https://github.com/rails/turbolinks & jquery.turbolinks https://github.com/kossnocorp/jquery.turbolinks

gem 'turbolinks'
gem 'jquery-turbolinks'

#= require jquery.turbolinks
#= require turbolinks

jQuery UI https://github.com/joliss/jquery-ui-rails

gem 'jquery-ui-rails'

#= require jquery.ui.all

@import jquery.ui.all

jQuery Mobile https://github.com/dmarkow/jquery-mobile-rails

gem 'jquery_mobile_rails'

#= require jquery.mobile

@import jquery.mobile

jQuery Timeago https://github.com/jgraichen/rails-timeago

gem 'rails-timeago'

#= require rails-timeago

Fancybox https://github.com/kyparn/fancybox2-rails

gem 'fancybox2-rails'

#= require fancybox

Modernizr https://github.com/russfrisch/modernizr-rails

gem 'modernizr-rails'

#= require modernizr

AngularJS https://github.com/hiravgandhi/angularjs-rails

gem 'angularjs-rails'

#= require angular

Highcharts https://github.com/PerfectlyNormal/highcharts-rails

gem 'highcharts-rails'

#= require highcharts

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request