search for: accountemployeerelations

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

2007 Feb 15
0
Can I use an array with fields_for ?
Ok, I''ll try one more time...I''ve read the book, I''ve searched the docs, I can''t find the answer this puzzle. Surely someone can help! @rs is an array, and I want to have a select field for each item in @rs. How can I do this? The following (which is inside a form_for) does not work: <% for r in @rs %> <% fields_for r do |f| %>
2007 Feb 16
0
Please help...passing arrays between controller and view
I have tried to get this question answered before with no success. I''m getting desperate! Here is a simplified description of my problem... I have a many-to-many relationship between accounts and employees, with a model table in between called AccountEmployeeRelations. There is other stuff in this table, but I don''t think that matters for now. In the controller I create and account and 3 relations (I plan on changing this after I get it working) def new @account = Account.new @relations = [] 3.times do @rs << AccountEmploy...