Displaying 8 results from an estimated 8 matches for "customer_name".
2013 Nov 08
2
Export CSV
...%tran_actid =
tran.activity_id%><%else%><%tran_actid = "-"%><%end%>
<% if !tran.activity_name.nil? &&
tran.activity_name.present?%><%tran_actname =
tran.activity_name%><%else%><%tran_actname = "-"%><%end%>
<% if !tran.customer_name.nil? && tran.customer_name.present?%><%cus_name =
tran.customer_name%><%else%><%cus_name = "-"%><%end%>
<% if !tran.ticket_code.nil? && tran.ticket_code.present?%><%tran_code =
tran.ticket_code%><%else%><%tran_code = "-&...
2006 Jun 02
2
pass extra value through text_field_with_auto_complete?
Hi,
I''m wondering if it is possible to pass an extra value (which I will
use to further restrict my query) using text_field_with_auto_complete?
Any suggestions would be appreciated!
-Mike
2005 Jun 29
3
Setting the value of a primary key field
I have a table that is to hold all ISO 639 language codes: alpha3t, alpha3b,
alpha2, that bunch. It also (indirectly) holds language names, but
that''s off-topic.
alpha3t is the primary key, so I''ve told Active Record about this by saying
set_primary_key "alpha3t" within the Language model. (Don''t try to call your
models things like ISO639 (won''t work
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
..., `job_name` = NULL, `domain_controller` = NULL, `domain_id` = NULL, `contact_name` = NULL, `customer_id` = NULL, `logged_at` = ''2005-11-20T15:33:12-0800'', `user_id` = 2, `is_log` = 0, `contact_id` = NULL, `vendor_id` = NULL, `job_id` = NULL, `subject` = ''test'', `customer_name` = NULL WHERE id = 8
what is that strange datetime value, anyway? the
one it''s trying to store looks like this:
''2005-11-20T15:33:12-0800''
the DateTime that Rails generates automatically for updated_at looks
like this:
''2005-11-20 15:33:12''
Doe...
2006 Mar 16
5
Multiple databases + switching databases
...y to switch the database without setting
environment.rb?
I''ve tried to do this just setting connection at Gps class but it didn''t
work.
( ActiveRecord::Base.establish_connection(
:adapter => "firebird",
:host => "localhost",
:database => customer_name,
:username => "SYSDBA",
:password => "masterkey")
Does anybody have any idea?
Thanks a lot!
Marcia
--
Posted via http://www.ruby-forum.com/.
2011 Sep 25
4
checkbox use question
Hi,
how can I use checkbox in a form to show all customers from table
customers,
Course Users Customers
========= ========= =============
user_id customer_id Customer_name
I would like to select customers from the checkbox list, then add to the
course table only users of the selected customers.
thanks dani
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
2006 Jan 03
6
Am I going too far or Rails is just confusing? was {validates_presence_of *_id attributes}
...gth_of :name, :maximum => 50
validates_presence_of :rank
validates_associated :rank
end
Edit app/views/admin/customers/_form.html
-----------------------------------------
<%= error_messages_for ''customer'' %>
<!--[form:customer]-->
<p><label for="customer_name">Name</label><br />
<%= text_field ''customer'', ''name'' %></p>
<p><label for="customer_phone">Phone</label><br />
<%= text_field ''customer'', ''phone'' %><...
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
All,
I have ordered AWDWR and am anxiously awaiting its arrival. In the
meantime I still am playing with ROR using radrails. I have a few
questions ...
I create a table named customers with the following details:
Field Type Null Key Default Extra
id int(11) NO PRI auto_increment
customer_name varchar(50) NO
inbound_retention int(11) NO
outbound_retention int(11) NO
unix_admin_email varchar(50) NO
schedule_id int(11) NO
transfer_inbound_type varchar(20) NO
transfer_outbound_type varchar(20) NO
date_added timestamp YES CURRENT_TIMESTAMP
I then run the scaffold generation:
ediweb> r...