Re: [Rails] Condition on fields_for

2015-05-23 Thread Elizabeth McGurty
Okay... I am really trying to be super vigilant to best Ruby/Ruby on Rails practices here... the whole n + 1 matter particularly I have a parent table called Advertiser: This is how it looks on the database: CREATE TABLE advertisers ( advertiser_id varchar(40) NOT NULL, title varchar(50)

Re: [Rails] Condition on fields_for

2015-05-23 Thread Elizabeth McGurty
Thank you very, very much! a = Lender.find('7oV71d1oVtxfyS9Ra6hnUtNe31N').addresses.select('state_id_string') a.blank? On Friday, May 22, 2015 at 5:05:25 PM UTC-4, Colin Law wrote: On 22 May 2015 at 20:28, Elizabeth McGurty emcg...@gmail.com javascript: wrote: Walter, Stewart Many

[Rails] Re: How to generate Rails models from database schemas

2015-05-23 Thread kenatsun
Thanks a million to Scott, Hassan, Colin, for this rich feast of possibilities! It's gonna take me some time to digest. Then I'll be back with the solutions I'm finding and/or with more questions. ~ Ken On Friday, May 22, 2015 at 3:44:34 PM UTC-4, kenatsun wrote: I'm evaluating Rails (vs