adric: (bolts)
And Safari then spews a dialog full of this:trim for LJ )
Interestingly, as can be seen from the output above the tr is correctly id current-item. The previous round of Ajax changes is working fine, and the cart updates in the sidebar, even when the errors fly. Dev log says:
trim for LJ )
So, where should I be looking for my typo ? :) I'll go ahead and dump session, restart Safari and script/server again while I wait :D

Thanks,
Posted here: http://forums.pragprog.com/forums/66/topics/1678
adric: books icon (c) 2004 adric.net (Default)
## Since the Moodle external enrollment database code doesn't work,
## we fall back to manual SQL injection for MySQL, eg:
Read more... )

r175 | bsk | 2008-12-13 21:44:28 -0500 (Sat, 13 Dec 2008) | 1 line

even less debug. also, it seems to work on the dev data


That was a few hours, 15 deltas and a lot of documentation and fiddling ago.
Now I'm just screwing around with Trac.
adric: books icon (c) 2004 adric.net (Default)
Code works manually but not in the script. Anyone receiving multiple new account emails can rest assured that this is a good sign ;)

rev 118 is much better )
ref:https://dev.atlbbs.com/svn/atlbbs/trunk/moocash/doc/logic_three.rb

Reread Dune Messiah in the last couple days. That was really quite good and much better than I remember. It makes watching the SciFi miniseries ever so much more painful, though.

Moving is proceeding at a trickle, but there's food in the kitchen and other signs of a potential home. Plenty of work ahead on that front, not including dragging more crap across town, and eventually paying someone to move the furniture over.

That wasn't much better that the last try, but oh well. How are all of you doing? Surviving the $holiday onslaught?
adric: books icon (c) 2004 adric.net (Default)
Some more Rails code. This is the third try at describing the logic flow for order processing
for this project, and then trying to make it work.

https://dev.atlbbs.com/svn/atlbbs/trunk/moocash/doc/logic_three.rb )

I'd really like to burble about all of the sleep disturbances and work drama but this is all you get today. I'm so behind from last week that the work day is already over, and I'm to dinner.

*waves*
adric: books icon (c) 2004 adric.net (Default)
>> @item.orders_products_id
=> 5
>> @mop.orders_products_id = @item.orders_products_id
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.delete[etc]

Is this like when the optometrist got a funny look on his face and later admitted my answer had broken a law of physics?

>> @mop.type
(irb):4: warning: Object#type is deprecated; use Object#class
=> MoocashOrderProcessing(orders_products_id: integer, orders_id: integer, processed: integer)
>> @mop.processed = 3
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.delete[usw.]
And the Read more... )
adric: books icon (c) 2004 adric.net (Default)
The fruit of today's labour:
zc_order Order:
  has_one :customer, :foreign_key => "customers_id"
  has_many :orderproducts, :class_name => 'OrderProduct', :foreign_key => 'orders_id'
  has_many :products, :through => :orderproducts

zc_customers Customer:
  has_many :orders, :class_name => 'Order', :foreign_key => 'order_id'

zc_customers Product:
  has_many :orders, :class_name => 'Order', :foreign_key => 'orders_id'
  has_one :productdescription, :class_name => "ProductDescription",
    :foreign_key => 'products_id'
  has_many :orders

zc_products_description ProductDescription
  has_one :productdescription, :class_name => "ProductDescription",
    :foreign_key => 'products_id'

zc_orders_products OrderProduct:
  belongs_to :order, :foreign_key => "orders_id"
  belongs_to :product, :foreign_key => "products_id" 
this works:
>> @summary = Order.all.collect do |@o| 'Order: ' + @o.orders_id.to_s + ' was: ' + @o.products.collect do |@prod| @prod.products_id.to_s + ' ' + @prod.productdescription.products_name end.to_s + ' for: ' + @o.customers_name end
adric: books icon (c) 2004 adric.net (Default)
After being in the channel since this: first go, polite and patient? )

and another couple instances of non-help, until I finally annoy and offend enough people that they become more helpful? Fiik:

Read more... )

took a break to make this post and laugh ...

Read more... )

Currently fighting the syntax on that/those suggestions ... Gods but I hate this crap (joins). It never makes a lick of sense to me (ER) and hardly every works right. Blech.

adric: books icon (c) 2004 adric.net (Default)

Having stumped one nice fellow on #rubyonrails, I inflict this on you all:

I can make a new object, which is then empty. Sure. I run a method to populate the fields which runs fine and debug out some correctfield data. Inspecting or printing the method shows it is still empty, but if I ask politely the data is there (accessors and to_string). But. When I ask it to save the data, it writes out all NULLS, which is wrong and also causes the DB to throw back an error (since some of those fields are Not Null in the schema). Elipsises mine to cut down on the number of times you need to read nil and NULL. Proof of busted code ) ETA: Trying out the scaffold views shows that they really don't work right either... tried and fix some of that (self.id="id") to see if it helps. This also may indicate further misalignment of gnats and crumbs in the sqlite3 RAILS_ENV=test. Also my joins may not be right, although I'm not using them anywhere that I know of. sqlite returns data when I "select * from yen_orders" but rails scaffold just shows buttons or polite nothing...

Profile

adric: books icon (c) 2004 adric.net (Default)
adric

June 2025

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Links

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 13 July 2025 05:02 am
Powered by Dreamwidth Studios