Displaying 4 results from an estimated 4 matches for "product_titl".
Did you mean:
product_title
2006 Jul 16
3
Binding text_field et al to object.attribute.name
Hi all,
Suppose I have a PurchaseItem model which refers to Product model...
class Product < ActiveRecord::Base
has_many :purchase_items
end
class PurchaseItem < ActiveRecord::Base
belongs_to :product
end
To keep things simple, one of the attribute of the Product model is
title.
On the interface, I have a textfield that I need to bind with
@purchase_item.product.title.
2007 Mar 23
11
Is there such a thing as button_to_remote?
I''ve changed my destructive link_to statements in favor of button_to.
But what if I want to make an .rjs call with that button?
Seems like we need something equivalent to link_to_remote, so that the
button can make an ajax request instead submitting the form.
Or am I missing the point entirely?
Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Jan 11
6
nil object while the required parameter are in the request
...like
http://example.com/controllername/newlet?title=aaaa&description=bbbb&primary_link=cccc&image_url=dddd&primary_price=1220
And the corresponding view
<form action="/admin/newlet" method="get">
<!--[form:product]-->
<p><label for="product_title">Title</label><br/>
<input id="product_title" name="title" size="30" type="text"
value="<%=-vsVTqSbophcJ9d+TTMi85w@public.gmane.org%>" /></p>
<p><label for="product_primary_link">Primary l...
2006 Apr 01
6
how to use datepicker
This is the webpage:
http://projects.exactlyoneturtle.com/date_picker/
I have downloaded and installed it. But how do I use in view page?
This is the usual view with ordinary datetime_select:
<p><label for="product_date_available">Date available</label><br/>
<%= datetime_select ''product'', ''date_available'' %></p>