search for: office_phone

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

2006 May 24
3
Real life use of multiple linked models in the same view
...; value="ognl:contact.name" /> <input jwcid="@TextField" value="ognl:contact.officePhone.value" /> The same RoR code should look like: <%= text_field ''contact'', ''name'' %></p> <%= text_field ''contact[office_phone]'', ''value'' %></p> I would preffer the patched version that should work like: <%= text_field ''contact.office_phone'', ''value'' %></p> Why to have other calling method than usual dot? the [] are not even permitted b...
2006 Jun 10
4
using STI in a migration
I have some classes in my model which use STI and they work as expected in the console. However, when I try to use them in a migration, I get "uninitialized constant OfficePhone", for example. Why doesn''t the migration environment pick up the class defs? OfficePhone is defined in the model/phone.rb. I put model :phone in the application.rb but my migration just