Skip to content

Instantly share code, notes, and snippets.

View StefanHagen's full-sized avatar

Stefan Hagen StefanHagen

  • Ikbenfrits
  • Amsterdam, Netherlands
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stefanhagen on github.
  • I am stefan_hagen (https://keybase.io/stefan_hagen) on keybase.
  • I have a public key ASCE3HJ_h_3slRhiAQWqQjObf0Yo9UXqjKYY-d8rZ2IHqQo

To claim this, I am signing this object:

@StefanHagen
StefanHagen / simple_form.rb
Created February 28, 2014 12:39
Simple Form Initializer for Bootstrap 3 integration / Ruby 1.8.7
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class
# https://github.com/plataformatec/simple_form/issues/316
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
@StefanHagen
StefanHagen / simple_form.rb
Created February 28, 2014 12:26
Simple Form Initializer for Bootstrap 3 integration / Ruby 1.9.2
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class
# https://github.com/plataformatec/simple_form/issues/316
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput

Run a ruby app including the library

ruby -Ilib lib/file.rb