I want to create a new order assist... Hooray! I've done it. Now for
the specifics:
OrderAssist
belongs_to :item
belongs_to :order
I'm creating the OrderAssist from within an item's card, so i an get
the item's id with #{this.id}
I can identify the current user's order with a controller action, so
@userOrder.id give me the user_id
so how do i pass these two pieces of information to the user_id and
order_id fields of OrderAssist? i've blindly guessed as below, but it
throws errors....
<extend tag="card" for="Item">
<old-card merge>
<h5><a><view:name/></a> Price: $<view:price/>0 </h5>
<h6><view:description/></h6>
<form>
<create-button model="OrderAssist" update="OrderAssists"
message="adding #{this.name}" label="Add to Order" fields="user_id =>
#{this.id}, order_id => @userOrder.id"/
>
</form>
</old-card>
</extend>
so what's the correct syntax for passing field values?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.