Skip to content

Instantly share code, notes, and snippets.

@vormwald
vormwald / application_helper.rb
Created January 10, 2012 02:09 — forked from thatfunkymunki/application_helper.rb
Make will_paginate generate HTML that Zurb Fundation will render nicely, fixed for will_paginate 3.0.2
# Based on https://gist.github.com/1205828, in turn based on https://gist.github.com/1182136
# Modified for Zurb Foundation
class BootstrapLinkRenderer < ::WillPaginate::ActionView::LinkRenderer
protected
def html_container(html)
tag(:ul, html, container_attributes)
end
def page_number(page)
namespace.views.MyWizard = Backbone.Views.extend({
initialize: function() {
_.bindAll(this, 'render', 'wizardMethod');
}
render: function() {
this.wizardMethod();
return this;
},
@vormwald
vormwald / Gemfile
Last active December 10, 2015 10:59 — forked from flomotlik/Gemfile
gem 'unicorn'