You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mixitup_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixitup_rails

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

MixitupRails

Adding Mixitup in your rails app. MixItUp - A Filter & Sort Plugin https://mixitup.kunkalabs.com

Installation

Add this line to your application's Gemfile:

gem 'mixitup_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mixitup_rails

Usage

add in app/assets/javascripts/application.js after jquery (below jquery)

//= require mixitup
    $('#Container').mixItUp(); // an instance now exists in the session memory

###Demoapp open the folder demoapp to view an example of mixitup app.

		$ git clone git@github.com:guinslym/mixitup_rails.git
		$ cd mixitup_rails/demoapp
		$ bundle install
		$ rails s
		#open your browser at http://localhost:3000/welcome/index

####Issues you may find with turbolink mixitup-rails-turbolinks and github issues' page link

$(function(){ // on first doc ready we instantiate mixitup
    $('#container').mixItUp(); // an instance now exists in the session memory
});
$(window).on('page:before-change', function(){ 
    $('#container').mixItUp('destroy'); // destroy the instance
});
$(window).on('page:load', function(){
    $('#container').mixItUp(); // We can now reinstantiate without being blocked
});

Contributing

  • Fork it ( https://github.com/guinslym/mixitup_rails/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

FAQs

Package last updated on 21 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts