Displaying 4 results from an estimated 4 matches for "ship_dat".
Did you mean:
ship_cat
2007 Apr 04
4
Order a find using a has_many association
...<%= (sales_order.rep.length < 1 ? " " : sales_order.rep) %></
td>
<td><%= sales_order.description %></td>
<td class="right_align"><%= sprintf("%#1.2f", sales_order.amount) %></
td>
<td><%= sales_order.ship_date.strftime(''%m/%d/%y'') %></td>
<td><%= sales_order.latest_history.nil? ? " " :
sales_order.latest_history.route.name %></td>
The problem is that this list is not in the order that I need it to
be. I can order it by any column in the s...
2006 Aug 18
4
Default Date storage 0000-00-00?
...date and other info. However I wanted to put
in the default value of ''0000-00-00'' for the shipped date, as it hasn''t
shipped yet. Only Ruby won''t let me do that, it calls that value ''null''
and balks saying
"Mysql::Error: Column ''Ship_Date'' cannot be null..."
It is probably something obvious I am just overlooking. But Its been one
of those fridays and my mind is gone. So any help would be greatly
appreciated.
--
Posted via http://www.ruby-forum.com/.
2007 Mar 22
2
Inconsistent Invalid Argument Error
...rt_link_helper ''Description'', ''description'' %></th>
<th><%= sort_link_helper ''Amount'', ''amount'' %></th>
<th><%= sort_link_helper ''Ship Date'', ''ship_date'' %></th>
<th>Current Status</th>
</tr>
The problem is that sometimes, when I click one of these links to sort
the table by that field, I get the following error:
Showing app/views/sales_orders/list.rhtml where line #29 raised:
Invalid argument...
2006 Mar 31
2
Model inheritance is borken in Rails1.1
...{"order_id"=>"44", "commit"=>"add", "payment"=>{"no"=>"NON",
"date"=>"", "expiry_date"=>"", "type"=>"LC", "paid"=>"0", "ship_date"=>"",
"amount"=>"23"}}
Show session dump <http://0.0.0.0:3000/order/add_payment?order_id=44#>
Response *Headers*: {"cookie"=>[], "Cache-Control"=>"no-cache"}
-------------- next part --------------
An HTML attachme...