search for: order_detail

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

Did you mean: 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 Orde...
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?
...arams[:id].to_s, :partial => ''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'' =>...
2006 Jul 26
0
error when updating table with select box
...39;Update'' %> <%= end_form_tag %> </div> #controller: def order_update @order = Order.find(params[:id]) if @order.attributes(params[:order]) flash[:notice] = ''order was successfully updated.'' redirect_to :action => ''order_detail'', :id => @order else render :action => ''edit'' end end -- Posted via http://www.ruby-forum.com/.