Displaying 3 results from an estimated 3 matches for "wetterberg".
Did you mean:
westerberg
2006 Jan 11
1
Composite primary key
Hi All,
How do I specify a composite primary key for a table in ActiveRecord?
For example the table Recipe which has the primary key [cookie id, version
number] where cookie id is also a foreign key referencing Cookie.
Also: Thanks to Nic and Adam for helping with the Cookie -> Cooky problem.
/Hugo
--SQL
*
CREATE* *TABLE* `Raw_Materials`*
(*
id *INT*
2006 Jan 10
1
Cooky cookies causes trouble
...cript/generate scaffold Cookie
Environment:
Ruby version1.8.2 (i386-mswin32)RubyGems version0.8.11Rails version1.0.0Active
Record version1.13.2Action Pack version1.11.2Action Web Service
version1.0.0Action
Mailer version1.1.5Active Support version1.2.5Application rootC:/Documents
and Settings/Hugo Wetterberg/My Documents/RubyOnRails/bughuntEnvironment
developmentDatabase adaptermysql
Error for http://localhost:3000/cookies:
NameError in Cookies#index
uninitialized constant Cooky
RAILS_ROOT: ./script/../config/..
Application Trace <http://localhost:3000/cookies#> | Framework
Trace<http://lo...
2006 Jan 09
1
Cooky Cookies
Hi All,
I have a problem with the stemming(?) in rails. I have a table cookie and a
Cookie model which I have generated a scaffold for. The problem is that
rails starts looking for a file that it calls "cooky.rb", this must be some
kind of misunderstanding between me and rails, but how do I correct it?
Other scaffolds work just fine.
/Hugo
NameError in Cookie#index
uninitialized