search for: ordercontrol

Displaying 6 results from an estimated 6 matches for "ordercontrol".

2006 Jul 12
5
2 subdirectories 1 controller?
Hi, I''d like to create the following setup with RoR: www.mywebsite.com/subdir1/order/create www.mywebsite.com/subdir2/order/create I''d like both urls to call the same action in the same controller. How can I do this? I know this may be complicated, but I''m prepared to go a long way. Shimon -------------- next part -------------- An HTML attachment was scrubbed...
2006 Jan 01
4
Agile book deltas
Are there deltas for the revisions of the PDF version of the Agile book? -- fxn
2005 Apr 20
7
find_all_by and :order
I think I must be missing something obvious... I have... class OrderController < ApplicationController model :order scaffold :order def list @orders = Order.find_all_by_status(@params[:status], :order => "date" ) end end class Order < ActiveRecord::Base belongs_to :customer end and i''m getting... /Unknown column ''order...
2007 Feb 05
0
How do I use a RESTful helper with path_prefix?
...'':client/'', :controller => ''orders'', :action => ''new'' All orders must be scoped within a client name, so this worked quite well. I used a before_filter to scoop up the @client object by doing a find_by_name. Then I decided to expose the OrderController as a fully restful controller: map.client_home '':client/'', :controller => ''orders'', :action => ''index'' map.resources :orders but I still needed orders to be prefixed with the /:client in the url; so this matched everything up:...
2007 Aug 05
0
Newbie - Question on Parent child updating
...s if there is a simpler way to do the following with a more ruby like way. I''ve read in a book that you can do a @order.order_detail << @cart based on the code below. Any advice is greatly appreciated. What I''ve done in the controller is this ... order_controller.rb class OrderController < ApplicationController def new end def create @cart = Cart.find(:all) @order = Order.new(params[:order]) @order.save! @cart.each do |cart| @order_details = OrderDetail.new @order_details.name = cart.name @order_details.quantity = cart.quantity @o...
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
..., :item_category_id, @item_categories, :id, :name)%> </td> <td> <%= text_field ''order_item'', ''quantity'', :size => "5" %> </td> <%= submit_tag ''Add'' %> This outputs at the server: Processing OrderController#add_item_to_order (for 127.0.0.1 at 2006-07-06 13:40:32) [POST] Session ID: 12a539f773a693a5ce75a8a77082e7dd Parameters: {"action"=>"add_item_to_order", "controller"=>"order"} Without any parameters. Can I not submit my form elements with a fo...