Skip to content

Instantly share code, notes, and snippets.

View cmrichards's full-sized avatar

Chris Richards cmrichards

  • christopher-richards.net
  • Manchester, England
View GitHub Profile
=form_for :company_branch do |f|
.field
.label Company Type
.input=f.collection_select :company_type_id, CompanyType.not_expired, :id, :name
.field
.label Name
.input=f.text_field :name
.field
.label Address
.input=f.text_field :address
@cmrichards
cmrichards / gist:716190
Created November 26, 2010 02:03
Strange Error
module Trans
end
class Job < ActiveRecord::Base
has_many :job_translations
has_many :default_job_translations, :through => :job_translations
end
class DefaultJobTranslation < ActiveRecord::Base
named_scope :forum, where(:group=>"forum")
require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
feature "Projects", %q{
In order to allow a site to manage projects
As a site user
I want to..
} do
background do
@site = create_site({:name=>"Company1"}, "username")