Public Gists by DBA

Gravatar
Tue May 05 06:47:51 -0700 2009
1
2
3
Given /I have at least one (.+)/ do |object_type|
  case object_type
    when "skin color"
Gravatar
Tue May 05 06:46:32 -0700 2009
1
2
3
Feature: Manage love lines
  In order to manage the love lines of the Love Coach
  As a registered user
Gravatar
Sat Jan 03 17:58:08 -0800 2009
1
2
3
  # This custom version of the authenticate method allows the user to use login or email as unique keys.
  # Please note that if using this method it's highly recommended that you make the email property, of the user model, a required one.
  # Also consider adding a unique index to the email field. For that create a migration with: add_index :users, :email, :unique => true
Gravatar
Fri Jan 02 14:11:36 -0800 2009
1
2
3
class GeneralPurposeFormBuilder < ActionView::Helpers::FormBuilder
  %w[text_field text_area collection_select].each do |method_name|
    define_method(method_name) do |field_name, *args|