Ruby on Rails Saturday, July 2, 2011

On 1 July 2011 22:10, vinny <agnellvj@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment