On 1 July 2011 22:10, vinny <[email protected]> wrote: > I'm assuming this is rails 3. > For your edit action you don't need the @document variable. You can refer > to all of your documents via the :has_many association you created in the > model so @shop.documents will suffice.
The problem is that I want to add a new document when I am in the edit action. In the form for edit I have all shop fields with their values and also the document fields with their values. I want the document fields blank so that I can insert new values and add a document for the shop. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

