search for: order_controller

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

Did you mean: orders_controller
2007 Mar 23
4
DRY - with modules, render_component or.. ?
I have an B2B application where a pretty complex order form needs to be submitted and edited on the admin controller, buyer controller and seller controller with some small differences. How do I make available the edit order methods all controllers? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Mar 31
2
Model inheritance is borken in Rails1.1
...ies.rb:112:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:120:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:122:in `const_missing'' #{RAILS_ROOT}/app/controllers/order_controller.rb:61:in `add_payment'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:112:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:120:in `const_missing'' /usr/lib/ruby/gems/1.8/gems/actives...
2014 Jun 20
0
Errno::ECONNREFUSED (Connection refused - connect(2))
...able to run application locally But application not working on heroku. I deployed my application successfully on heroku. When I run rake test, there is no failure. When I click on place order button i got error like: >We're sorry, but something went wrong. I have attached heroku logs and order_controller.rb file. Please find it. How can i solve this error? Kind regards Attachments: http://www.ruby-forum.com/attachment/9823/orders_controller.rb -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&quot...
2006 Jan 08
2
EOF ERROR occurs when sending mail by ROR
...nmailer-1.1.5/lib/action_mailer/base.rb:327:in `send'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:327:in `deliver!'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:254:in `deliver'' #{RAILS_ROOT}app/controllers/order_controller.rb:11:in `confirm'' -- Posted via http://www.ruby-forum.com/.
2007 Aug 05
0
Newbie - Question on Parent child updating
...cart table. My question is 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 =...
2008 May 05
7
extract and assign xml values to variable
...t value to some variable in controller? e.g. if we have <order> <id>1</id> <name>abc</name> <location>xyz</location> </order> and if we want value of name i.e. ''abc'' to be assigned in a variable declared in a controller, say order_controller, like this- temp = "value of xml element name i.e. abc". how can we do that? thanks in advance :) -Dhaval -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby...