0.05
No release in over 3 years
Low commit activity in last 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
 Dependencies

Runtime

< 5.0, >= 3.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'

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