Skip to content

Instantly share code, notes, and snippets.

@vormwald
vormwald / Gemfile
Last active December 10, 2015 10:59 — forked from flomotlik/Gemfile
gem 'unicorn'
namespace.views.MyWizard = Backbone.Views.extend({
initialize: function() {
_.bindAll(this, 'render', 'wizardMethod');
}
render: function() {
this.wizardMethod();
return this;
},
@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)