Displaying 20 results from an estimated 100 matches similar to: "[TIP] Making an intelligent form fields"
2006 Mar 08
2
"humanizing" model attributes presentation
Given a field in database defined as "discount_rate numeric(3,1)" I
found it not very usable for presenting it directly. For example, if
there''s a value 5.00 it will render in
<%= text_field ''model'', ''discount_rate %>
as "0.5E1" which is not very friendly to user. All I do is that I write
kind of proxy accessors (prefixing with
2006 Apr 14
3
Updateform with a has_many relationship ?
Hello all,
I would like to be able to update the "amount" of a certain item in
me order list.
The problem I run into is how to define the text_field element.
@order is the current order, which has_many :order_item which in turn
belongs_to :order.
order_item has a field "amount" which should be modified...
What I tried is this below, but I get a undefined method
2006 Mar 13
8
Nested find(:all, :include => ) statements
Is there a way for me to do:
OrderItem.find(:all, :include => [:user, :product => [:supplier]]
So I don''t have a supplier_id on my order_item, but have it on my
product, which is part of order_item.
Joerg
--
Posted via http://www.ruby-forum.com/.
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason,
the form gets submitted with out the params values.
<%= form_remote_tag(:url => { :action => :add_item_to_order }) %>
<tr>
<td>
<%=collection_select(:order_item , :item_category_id,
@item_categories, :id, :name)%>
</td>
<td>
<%= text_field
2006 Jul 11
0
using acts_as_list storing the information in a session
Hi,
I have an order model that i am storing in a session, that is not
currently in the database. I am updating the page using ajax, and I do
not want to store the order in the database untill it is completely
filled out.
I have order_items that I am adding to the order, and I have used the
acts_as_list within the order_item model.
My problem comes when i try and rearrange the order_items
2005 Dec 30
2
newbie
Hello There
I new to rails development and looking to write a simple site using
rails. Does any one know of and example ecommerce application that that
I can use as a base to build from. My db schema is very
simple--product, categories, orders and order_item tables. Any
suggestions will be highly appreciate.
Thanks
Pat
2006 May 28
0
expanding details examples?
I''m currently using page.visual_effect :toggle_appear to toggle the
appearance of details associated with an order. As I am inserting
the detail data prior to making it visible, this method is not
appropriate (it also loads the data on hide).
I was thinking I could change the hide/show href each time it is
clicked, or even store a value on the page and toggle it each time
2006 Dec 02
0
Fwd: Re: Mocha and ActiveRecord
---------- Forwarded message ----------
From: J. B. Rainsberger <jbrains762 at gmail.com>
Date: 02-Dec-2006 02:48
Subject: Re: Mocha and ActiveRecord
To: ruby-talk ML <ruby-talk at ruby-lang.org>
James Mead wrote:
> On 28/11/06, J. B. Rainsberger <jbrains762 at gmail.com> wrote:
>>
>> Suppose I have an Order, which has_many OrderItems. Suppose I want to
>>
2006 Feb 20
0
YAML and has many associations
Hi,
I have the following:
order = YAML::load(order_yaml)
The YAML contains order_items too, and my order model has a has_many to
order_items.
When I do order.order_items, I don''t want Rails to go the db to get the
order_items, but use the order_items already contained in the object
created from the YAML.
How would I do this?
Thanks
Joerg
--
Posted via
2006 Mar 14
5
GROUP BY and SUM
I have orders, order_items, and products.
I want to collate several orders so that I can get a SUM of quantities
ordered for each product etc.
Can I say something like (the below gives an error on :sum, and ignores
:group)
OrderItem.find(:all, :sum => ''quantity'', :group => ''product_id'',
:include => [:order, :product])
I want to get back a
2010 Oct 15
1
Civ. V / Background Intelligent Transfer Service (BITS)
Hey folks,
I noticed when trying to download mods via the in-game interface in Civilization V, hovering over the download button says
>
> Cannot download because Microsoft BITS has not been started
>
2005 Jun 16
0
Intelligent maximum channels solution?
Hi list!
I have an asterisk box connected to an ADSL connection that has 1 Mbit
upstream. Is there any way to use max channels intelligently?
For example I would like to do some checks on the outgoing calls. When
it's quiet I want each and every call to go out to my IAX provider.
However when more people start placing calls I would like to leave some
room for the real expensive calls and
2006 Nov 18
1
Background Intelligent Transfer Service
Hey everyone. I know that Background Intelligent Transfer Service isn't
implemented by WINE. However, being that I copied the native dll's
necessary for this service to my WINE installation, is there any way
that I can enable this service? There's one program that I think just
may install save for the fact that it requires BITS :(
Thanks in advance.
James
--
My blog:
2017 Jun 20
0
CFP VEHITS 2018 - 4th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Funchal, Madeira/Portugal)
SUBMISSION DEADLINE
4th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: October 16, 2017
http://www.vehits.org/
March 16 - 18, 2018
Funchal, Madeira, Portugal.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
-
2017 Jul 31
0
CFP VEHITS 2018 - 4th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Funchal, Madeira/Portugal)
SUBMISSION DEADLINE
4th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: October 16, 2017
http://www.vehits.org/
March 16 - 18, 2018
Funchal, Madeira, Portugal.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
-
2017 Oct 16
0
CFP VEHITS 2018 - 4th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Funchal, Madeira/Portugal)
SUBMISSION DEADLINE
4th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: October 30, 2017
http://www.vehits.org/
March 16 - 18, 2018
Funchal, Madeira, Portugal.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
-
2018 Aug 02
0
CFP VEHITS 2019 - 5th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Heraklion, Crete/Greece)
SUBMISSION DEADLINE
5th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: December 10, 2018
http://www.vehits.org/
May 3 - 5, 2019
Heraklion, Crete, Greece.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
- Data
2018 Oct 16
0
CFP VEHITS 2019 - 5th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Heraklion, Crete/Greece)
SUBMISSION DEADLINE
5th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: December 10, 2018
http://www.vehits.org/
May 3 - 5, 2019
Heraklion, Crete, Greece.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
- Data
2017 Jun 20
0
CFP VEHITS 2018 - 4th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Funchal, Madeira/Portugal)
SUBMISSION DEADLINE
4th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: October 16, 2017
http://www.vehits.org/
March 16 - 18, 2018
Funchal, Madeira, Portugal.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
-
2017 Jul 31
0
CFP VEHITS 2018 - 4th Int.l Conf. on Vehicle Technology and Intelligent Transport Systems (Funchal, Madeira/Portugal)
SUBMISSION DEADLINE
4th International Conference on Vehicle Technology and Intelligent Transport Systems
Submission Deadline: October 16, 2017
http://www.vehits.org/
March 16 - 18, 2018
Funchal, Madeira, Portugal.
VEHITS is organized in 5 major tracks:
- Intelligent Vehicle Technologies
- Intelligent Transport Systems and Infrastructure
- Connected Vehicles
- Sustainable Transport
-