search for: purchase_order

Displaying 5 results from an estimated 5 matches for "purchase_order".

Did you mean: purchase_orders
2009 Mar 17
1
Route failure with Rails2.3 and rspec1.2
Hello all, I have a spec for a route that used to pass under Rails 2.2.2 and rspec 1.1.12, but can?t figure out what is wrong since I updated. Here is the assertion: route_for( { :controller => ''purchase_orders'', :action => ''update'', :company_id => "32", :id => ''1'' }).should == "/companies/32/purchase_orders/1" Which results in this failure Test::Unit::Asse...
2006 Dec 12
1
Drag and Drop in IE7 vs FF
...IE7. I can''t even see an icon change when you hover over the item I intend to drag. All I get is the lasso effect; the mouse makes look it is trying to select the contents of the page. Here''s an abbreviated version of the code with the pertinent section: <% remote_form_for :purchase_order, :url => { :action => :po_shipping_save } do |form| %> <table> <tr> <td valign="top">Special Delivery Instructions</td> <td><div> <ul id="list" style="list-style-position: outside;li...
2006 Mar 22
9
Setting empty fields with in_place_editor_field
Hi all! Playing around with in_place_editor_field, I found that when you set a field to be empty, you can''t edit it at all anymore after that. Am I doing something wrong or is this the way it is intended to be? If so, is there any way around that behaviour? Is it just styling? Best regards, Raphael -- Posted via http://www.ruby-forum.com/.
2006 May 03
5
Finding the rhyme for has_many :through
Hi all, I am NOT a person with English as my mother language and I haven''t been programming long enough to be natural in these kind of things. And if that isn''t bad enough, I am a newbie on Rails too... So please enligthen. I am trying to build a simple tool for my shop. I have many products that I sell in my shop and of course I have many suppliers for the products. Thus
2009 Apr 21
0
Validate order lines on order creation (ActiveResource)
...d validation that code has to be <200, then the PurchaseOrder should never be created. The problem is, I am not aware of the rails way of doing it :) I started directing towards doing custom validation before after_create with this code: class PurchaseOrder < ActiveRecord::Base has_many :purchase_order_lines attr_accessor :new_lines def lines=(_lines) @new_lines ||= [] _lines.each do |_line_params| puts _line_params.inspect @new_lines << PurchaseOrderLine.new(_line_params) end end after_create :store_lines def store_lines new_lines.each do |line|...