1 2 3 4
# Associations # # User: has_many :sources, :as => :sourceable, :dependent => :destroy ...
Ruby Get child elements from a o...
by Chris,
March 11, 2010 08:27,
No refactoring, tagged with model, assoziations, activerecord, rails activerecord
1 2 3 4
class Asset < ActiveRecord::Base belongs_to :account belongs_to :asset_type ...
Ruby Advanced search form & ...
by Erez Ben Shoham,
March 16, 2009 11:33,
3 refactorings, tagged with named_scope, search, form, model
I have an Asset model in a ...
1 2 3 4
describe Stock do it "should be valid when new" do ...
Ruby repeated code in rspec mode...
how do i clean up this repe...
1 2 3 4
class Newalert def new_alert_validations(params) ...
Ruby model validations
Following is the big(easy t...
1 2 3
class Race < ActiveRecord::Base ...
Ruby Help generating abbreviatio...
by Michael Filbin,
April 06, 2008 16:16,
3 refactorings, tagged with abbreviation, string, model, attribute
Hi all,
I am attempting ...
1 2 3 4
class FormMailer < ActionMailer::Base def contact_us(params) ...
Ruby Action Mailer - It has to b...
Here is a FormMailer that I...
1 2 3 4
def which_class? if self.language == "C/C++" self.language = "sh_cpp" ...
Ruby class picker
language is a column in a c...
For a object (e.g. user), I...