search for: paytyp

Displaying 2 results from an estimated 2 matches for "paytyp".

Did you mean: paytype
2007 Aug 21
4
[AWDwR] Confused about has_one and has_many
...d a Table which contains the payment types. All goes well, but I am not sure whether I should use has_many or has_one(as in the Playground wiki at http://wiki.pragprog.com/cgi-bin/wiki.cgi/PT-E-3). I use the following: class Order < ActiveRecord::Base belongs_to :pay_type ... end and class PayType < ActiveRecord::Base has_many :orders ... end Is this right? Or should I use has_one instead of belongs_to in Order? An order references to one PayType, Order has one PayType. I am confused, please help me. Regards, Thomas --~--~---------~--~----~------------~-------~--~----~ You received...
2006 Aug 03
1
OT: Tables and Rails code
...lt;/th> <th scope="col">Post length</th> <th scope="col">Days left</th> <th scope="col">Category</th> <th scope="col">City</th> <th scope="col">State</th> <th scope="col">PayType</th> <th scope="col">Exp reqd</th> </tr> </thead> <tfoot> </tfoot> <tbody> <tr > <td><%= position.company_job_id %></td> <td><%= position.comapny_id %></td> <td><%= position.entered_on_dat...