On 6 July 2010 14:35, Pale Horse <[email protected]> wrote:
> Colin Law wrote:
>> On 6 July 2010 13:13, Pale Horse <[email protected]> wrote:
>>> http://pastie.org/1032538
>>
>> Once again you have snipped all the content so this will make no sense
>> to anyone reading it without referring back to previous messages.
>
> Sorry, but they can always refer to this forum topic to view the
> previous messages. I don't know which mailing list you're posting from
> but it *should* have the facility to view the original post.

This is a mailing list, not a forum.  You may be viewing it elsewhere
but the original is the mailing list.
http://groups.google.com/group/rubyonrails-talk

>
>> What is this :order that you are referencing?  Check the docs on
>> text_field and you will find that it is designed to be used with
>> attribute of an object.  You have specified the product_quantity of
>> the order object.  Since you are attempting to pass a number of
>> different quantities each must have a different name.  In fact you
>> probably want to pass them as an array.  As I said before I would use
>> text_field_tag in this situation.

You have not responded to the above

>>
>> Also I would suggest using form_for if you do have an order model, for
>> the attributes.

You have not responded to the above

>>
>> Actually I think maybe it would be worthwhile knowing what your model
>> relationships are.  If you have the model relationships right then you
>> can do clever things with nested forms.  See
>> http://railscasts.com/episodes/196-nested-model-form-part-1 for
>> example.

You have not responded to the above

>>
>> Colin
>
> As I've said, this form isn't related to a model. It simply collects the
> parameters and mails them.

In that case what is :order?

You have not responded to my comments above suggesting where you may
be going wrong.

Colin

>
> I want the output to be similar to:
>
> Product A: <quantity>
> Product B: <quantity>
> Product C: <quantity>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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.
>
>

-- 
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.

Reply via email to