Skip to content

Instantly share code, notes, and snippets.

View veiko's full-sized avatar

Veronica Carrillo-Marquez veiko

View GitHub Profile
@okjake
okjake / gist:2158253
Created March 22, 2012 13:05
Rails form errors with Bootstrap
# To get form error states showing properly using Bootstrap with Rails, use (in config/application.rb):
config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<div class=\"control-group error\">#{html_tag}</div>".html_safe }
@mourner
mourner / TileLayer.Common.js
Created February 11, 2012 23:11
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {