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