similar to: Validate order lines on order creation (ActiveResource)

Displaying 20 results from an estimated 200 matches similar to: "Validate order lines on order creation (ActiveResource)"

2006 Dec 12
1
Drag and Drop in IE7 vs FF
Hi, I''ve got drag and drop (DD) working for my app in FF. However, the same code doesn''t work in 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: <%
2006 Jun 01
4
can''t convert Fixnum into String ??
I have been getting this error message on various pages, just wondering if anyone could explain whats going wrong, and the best way to correct it code that is cuasing the problem is below @project = Project.find(:first, :conditions => "id = " + @purchaseorder.project_id) -- Posted via http://www.ruby-forum.com/.
2006 May 12
4
default value in text field
hi, This should be really simple, but i cant seem to find the answer anywhere!! In my _form.rhtml I have the following text field, how can I define a default value? <%= text_field ''purchaseorder'', ''number'' %> -- Posted via http://www.ruby-forum.com/.
2008 Nov 06
3
Verifying some understanding about manipulating DB data in before/after callbacks in RSpec
We had an after(:each) callback that looked like this: PurchaseOrder.find(:all).each {|po| DraftInvoice.find_all_by_po_number(po.po_number).each {|di| di.destroy}} which we were hoping would reset some purchase order data in a certain way. However, because we have "self.use_transactional_fixtures = true" set in test_helper.rb, this code was never getting committed. So, I just
2010 Dec 10
2
[LLVMdev] Parallel testsuite run breaks
greened at obbligato.org (David A. Greene) writes: > greened at obbligato.org (David A. Greene) writes: > >> For now, I think if I tweak the way I do the build to always build >> without pointing to llvm-gcc first, build and test LLVM then build >> llvm-gcc and re-build LLVM, it should work. It will take much longer, >> though. :( > > I updated the bug
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
2003 Jun 27
0
dealing with renamed files
Hello, If I rename a directory full of files, or a bunch of files, and I use Rsync to update the directory tree, Rsync will upload all these files again and delete the old ones. This is suboptimal since all the data is already there. Rsync should be able to check for renamed files by scanning for files with the same MD5 hashes, checksums, or delta signatures (is that what you called them?).
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/.
2008 Sep 04
0
ActiveResource testing
Hi, I''m trying to make some good testing on active resources, but I''ve some trouble with the *post* method. Basically this is my mock, where I set the POST verb and the expected URI. ActiveResource::HttpMock.respond_to do |mock| mock.post "/locations/buildings.xml?description=new- description&name=new-name", {}, @variable, 201 end Now, if I call the post
2011 Mar 18
1
ActiveResource: prefix attributes that are mass assigned are not readable - Stale ?
Hi, I noticed that 2 days ago that this ticket was marked "stale". https://rails.lighthouseapp.com/projects/8994/tickets/6171 But the issue is still here (I checked just now), and it reminded me I had a patch for it I forgot to submit, so I attached the patch file to the ticket. Since I''m still new on this, can someone please point me the right procedure ? Should I have
2008 Apr 23
0
Upload a file using Net:HTTP multipart post or ActiveResource
Hi Guys, I am trying to upload a file to a rails server using a ruby script. http://pastie.org/185380 I verified the parameters of the Net:HTTP post request and they seem to be right. However the recipient, mongre,l shows following message in console and the parameters sent, the file data, is all corrupted. oh and one very weird thing happened. the console running mongrel looks like following
2009 Jun 24
3
ActiveResource:: HttpMock
I''m trying to set up testing on my ActiveResource project. The HttpMock appears to be what I want, but whenever I use the code in the "documentation", I get the error NameError: uninitialized constant ActiveResource::HttpMock Is there something I need to do to enable HttpMock testing? Thanks, Tom
2009 Oct 28
2
What's the simplest way to use ActiveResource in ruby (without rails)?
I would like to use this class in a standalone project, but I have been unsuccessful thus far. Also, how does this class exactly communicate with the web server? Thank you. class Person < ActiveResource::Base self.site = "http://localhost:3000/" end
2009 Jul 24
1
Modifying ActiveResource classes
I''ve been struggling with an issue with ActiveResource for a bit now: when a hostname resolves for an ActiveResource request, but there''s no server on the other end to return information, ActiveResource''s timeout value doesn''t work. The request just hangs. After reviewing the ActiveResource code, I''ve realized that this is because the underlying
2012 Feb 26
0
Getting ArgumentError calling initialize with ActiveResource 3.2.1
instantiate_record calls new, and new implicitly calls initialize (unless I''m not understanding the mystery) In base.rb def instantiate_record(record, prefix_options = {}) new(record, true).tap do |resource| resource.prefix_options = prefix_options end end As it''s written get an ArgumentError as this calls new(record, true). If I change the code in base.rb to the
2008 Jun 26
0
ActiveResource - 404 when resources use the :as parameter
Hi, I have another question about ActiveResource. In a REST server I have resources defined with the :as parameter, like: map.resources :alerts, :as => ''alertas'' But when I try an ActiveResource client to access that, it tries to access ''/alerts.xml'', which returns a 404. I tried defining the resource on the client too, but it seems it doesn''t
2009 Apr 10
0
ActiveRecord belongs_to ActiveResource
class Thing < ActiveRecord::Base belongs_to :other_thing end class OtherThing < ActiveResource::Base self.site = ... end The association here works. I can access other_thing from thing with no problems until, as usual, testing. Specifically functionally test the things_controller. The things controller is simple scaffold, however, having the association to an active resource model
2012 Feb 22
0
ActiveResource wrong constant name 0
The fields_for tag, when working with ActiveResource''s accepts_nested_attributes_for returns the params like this: "book"=>{"name"=>"sdfas", "chapters_attributes"=>{"0"=>{"name"=>"sdfaasdf"}}} Note thé "0" as a key to the "chapters_attributes" hash. When working with
2008 Sep 18
0
ActiveResource Breaking Under FastCGI
I''m developing a web service in rails which uses JSON as the transport format. I also have a front end rails site that talks to that web service to retrieve various bits of data. I''m using ActiveResource to accomplish that. When running my unit tests for the ActiveResource clients I''ve written against a WebBrick server, they all pass fine. However when I run them
2006 Oct 24
0
ActiveResource and SOAP
Hi guys, I''ve recently been digging into ActiveResource and the REST principle in edge rails. I want to push things even further, since about everyone in the world is doing SOAP (Yahoo, Google, Flickr) and more important, .NET and the upcoming release of Microsoft Navision/Dynamics, I''m trying to enhance ActiveResource in a way that it would make me possible to for example, do a