Servus Torsten,
Am 16.11.2007 um 19:54 schrieb Torsten Flammiger:
ich habe eine Tabelle USERS(Model user) und IMAGES (kein Model).
USERS hält Userinfo und IMAGES hält zusätzliche Info mit "belongs_to"
auf USERS.ID Wie kann ich das "in_place_edit" auf die Relation IMAGES
anwenden? Ist ein Model "Image" notwendig?
Erstell das Model Image, kostet dich nicht viel, die Migration dazu
hast du wahrscheinlich auch schon erstellt und wer schreibt schon Tests?
Weil du leider etwas wenig code gepostet hast, meine Implementation
class User < ActiveRecord::Base
has_one :image # bzw has_many
end
class Image < ActiveRedord::Base
belongs_to :user
end
Der Controller IMAGES hat ja via "belongs_to" Bezug zum Model "USER"
uh?
ciao, tom
--
Thomas R. "TomK32" Koll <> http://tomk32.de <> http://ananasblau.de
just a geek trying to change the world
http://www.workingwithrails.com/recommendation/new/person/9367-thomas-
r-koll
Skype: TomK32
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug