icheck-rails gem for Rails4 -
icheck-rails gem for Rails4 -
i running issue while integrating gem, in this url there section says:
icheck includes several skins, of them multiple color schemes. include them this: @import 'icheck/square/blue' @import 'icheck/square/green'
i tried add together above line in end of app/assets/stylesheets/application.css style not effecting. behind scene javascript working fine , rendering below given html:
<div class="icheckbox_square-blue" style="position: relative;"> <input type="checkbox" data-color="blue" data-skin="square" class="icheck-me" style="position: absolute; opacity: 0;"> <ins class="icheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></ins> </div>
to create icheck gem work in rails 4 follow every thing that's mentioned in this url below changes did run successfully:
don't import in stylesheet way icheck gem doc say:
@import 'icheck/square/blue' @import 'icheck/square/green'
in application.css - add together way:
*= require icheck/square/blue *= require icheck/square/green
ruby-on-rails ruby-on-rails-3 ruby-on-rails-4
Comments
Post a Comment