Skip to content

Instantly share code, notes, and snippets.

View okiess's full-sized avatar

Oliver Kiessler okiess

View GitHub Profile
# mongo_template.rb
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842)
#
# To use:
# rails project_name -m http://gist.github.com/gists/219223.txt
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
@okiess
okiess / date_field.rb
Created September 20, 2008 14:33 — forked from jamie/date_field.rb
module Merb::Helpers::Form
# Available options known from rails:
# :use_month_numbers
# :default
# :order => [:day, :month, :year]
# :start_year
# :end_year
# :include_blank
def date_field(*args)
if bound?(*args)