No commit activity in last 3 years
No release in over 3 years
jQuery File Upload by Rocco Stanzione integrated for Rails 4 Asset Pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.1

Runtime

>= 3.1
 Project Readme

jQuery Bacon Ipsum for Rails

jQuery-Bacon-Ipsum is the BaconIpsumGenerator class for generating meaty filler text, via the BaconIpsum API

This is the plugin for the Rails 4 asset pipeline. Should also work with Rails 3.2 but not tested.

Installation

Just add it to your Gemfile

gem "jquery-baconipsum-rails"

Using the javascript

Require jquery-baconipsum in your app/assets/javascripts/application.js file.

//= require jquery-baconipsum

Usage

$(document).ready(function()
  {
    $('#default').BaconIpsum();
    $('#custom').BaconIpsum({ type:'all-meat', paras:5, start_with_lorem:false });
    $('#one-sentence').BaconIpsum({ type:'meat-and-filler', start_with_lorem:true, sentences:1 });
    $('#no-tags').BaconIpsum({ type:'meat-and-filler', start_with_lorem:true, paras:1, no_tags: true });
  });