Displaying 2 results from an estimated 2 matches for "msdsattr".
2011 Jul 27
0
require specific version of active record
...eRecord::Base.establish_connection(
:adapter => "mysql",
:host => "localhost",
:pool => 5,
:encoding => ''utf8'',
:reconnect => false,
:database => "univ_parse_dev",
:user => "PZZ",
:password => "PZZ"
)
class MsdsAttr < ActiveRecord::Base
end
attr = MsdsAttr.find(:first)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe...
2011 Jul 26
0
active record wants root password, not sure why ..
When I run a command program (rails 3/ruby 1.9.2) as this:
class MsdsAttr < ActiveRecord::Base
include MsdsAttrModule
belongs_to :attribute_record, :polymorphic => true
has_many :attribute_values, :foreign_key => ''attribute_id''
has_many :alt_values, :as => :alternative
has_many :msds_ingredients
end
ActiveRecord::Base.establish_...