0.0
No commit activity in last 3 years
No release in over 3 years
This gem provides Facebox for your Rails 3+ application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 4.2.0
< 2.0, >= 0.14
 Project Readme

facebox-rails

A gemified Facebox for Rails.

Rails + 3.1

Add it to your Gemfile:

gem 'facebox-rails', github: 'pracstrat/facebox-rails'

Include in your app/assets/stylesheets/application.css:

/*
 * ...
 *= require jquery.facebox
 * ...
 */

And in app/assets/javascripts/application.js:

//= require jquery.facebox

If you are using turbolinks, facebox will still think the necessary DOM objects are present after turbolink load. Avoid this by resetting the inited setting.

$(document).on 'page:change', -> $.facebox.settings.inited = false