Displaying 2 results from an estimated 2 matches for "scaffod".
Did you mean:
scaffold
2006 Mar 15
10
Scaffold with Foreign Key
...er_id) references users(id),
primary key (id)
) TYPE = InnoDB;
------------------------------
and in my User model i have the line:
has_many :listing
and in my Listing model i have the line:
belongs_to :user
I generate my scaffold:
ruby script\generate Scaffold User Useradmin
ruby script\generate Scaffod Listing Listingadmin
the problem I''m having is that the scaffold view that is generated for
Listing does not have an entry for selecting a User. In fact, the scaffold
skips the user_id column completely.
--
Vince
-------------- next part --------------
An HTML attachment was scrubbed......
2006 Jul 26
1
Scaffolding Problems
...Parameters: None
Show session dump
---
flash: !ruby/hash:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
-----------------------------------------------------------------------------
i am using unmodified scaffoding code. thanks for your help!
jordan
--
Posted via http://www.ruby-forum.com/.