search for: order_details

Displaying 4 results from an estimated 4 matches for "order_details".

2007 Aug 05
0
Newbie - Question on Parent child updating
...ar(255) NOT NULL, `quantity` int(11) NOT NULL, PRIMARY KEY (`id`) CREATE TABLE `orders` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; CREATE TABLE `order_details` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `quantity` int(11) NOT NULL, `order_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; model cart.rb class Cart < ActiveRecord::Base end model order.rb class Order...
2007 Jul 14
3
expect_render twice in views
I found this: controller.expect_render(:partial => ''thing'', :collection => things).once but I am trying to expect_render twice in my view spec: template.expect_render(:partial => ''order_details'').twice This doesn''t work as the template.expect_render call seems to be returning an array. Is it possible to expect the rendering of a partial twice in a view spec?
2006 May 28
0
expanding details examples?
...;order_item'', :collection => @order_items page.replace_html "item_footer" + params[:id].to_s, :partial => ''order_item_form'' page.replace_html "comments" + params[:id], :partial => ''order_detail'', :collection => @order_details page.replace_html "comment_footer" + params[:id].to_s, :partial => ''order_comment_form'' page.visual_effect :toggle_appear, ''item_container'' + params [:id].to_s, ''duration'' => 0.5 All of the RJS tutorials / examples I...
2006 Jul 26
0
error when updating table with select box
trying to update a table with form input from a select box and getting this error: "Options does not specify :except or :only" #View: <%= start_form_tag :action => ''order_update'', :id => @order %> <div> Status <br /> <select name="order[shipping_status]"> <option>None</option> <option>Paid</option>