similar to: ActiveResource and file uploads

Displaying 20 results from an estimated 4000 matches similar to: "ActiveResource and file uploads"

2007 Aug 21
7
rails truncating raw_post_data?
Has anyone ever run into any problems with rails truncating raw_post_data. My situation is this: I''m the developer for RubyAMF (wiki.rubyamf.org). Which is a flash remoting application server. With the rails plugin, it allows flash to talk to a controller and return AMF data.. So long story short, the flash player makes a request to a rails controller sending AMF binary format in the
2011 Nov 24
2
This is not the error: ActionView::MissingTemplate
Hey everyone, I am getting the following error: Started POST "/rubyamf/gateway" for 127.0.0.1 at 2011-11-24 16:27:20 +1300 Processing by RubyamfController#gateway as */* Processing by ProjectsController#templates as */* ←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT `projects`.* FROM `projects` ←[0 m Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms) Completed 500
2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
Hey Everyone, I just found a slight problem with the "read_body" method in raw_post_data_fix.rb. This line: # Fix for Safari Ajax postings that always append \000 content.chop! if content[-1] == 0 This causes problems with Flash AMF binary format. As AMF always appends a \000 to the stream as well. I''m the developer over at RubyAMF and have been running into problems with AMF
2009 Oct 12
0
Flash / Flex on Rails (Ruby AMF)
Hi All, I repost my message on RubyAMF group to you all because the group seems dead and i can''t get help. I hope anyone here has done Flash - Rails development can answer my question. I''m creating a Flash - Rails application. From what i know Super Simple Remote (AS3 classes) has been migrated to Guttershark since early 2008 and i have tried some tutorials even the one in
2009 May 20
1
activeresource-2.3.2 HTTPHeaderSyntaxError
Hi, I''m upgrading my app from 2.2.2 to 2.3.2 and am having a problem with ActiveResource. class FooResource < ActiveResource::Base self.site = "whatever" self.element_name = "foo" end FooResource.create(:bar => ''baz'') raises: Net::HTTPHeaderSyntaxError: wrong Content-Length format from
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
2007 Jan 05
0
ActiveResource cache using memcache-client
I''ve created this class that overrides methods for find,delete,destroy,reload, and save in activeresource. The code populates a local memcache daemon and uses that cache for future find requests. I''m posting it here to get whatever feedback people have. I''m most interested in the pro/con of inheritance over a mixin and how such a module might be tested. $ cat
2006 Aug 31
0
ActiveResource
I''ve been sitting on an ActiveResource patch for a few weeks, waiting to get some feedback from David. But, I see other folks like Jeremy are starting to use it, so I committed my patch: http://dev.rubyonrails.org/changeset/4890 It gets all the basic operations in working order, and adds support for prefixes. I wasn''t quite sure how to pull this off. Right now, I''m
2009 May 28
0
Re: ActiveResource as API test rig? Two jsons?
bump... On Wed, May 20, 2009 at 3:57 PM, Marc Byrd <dr.marc.byrd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > I''m using ActiveResource as an API test rig for an API we''re developing for > our PHP app - the goal being to validate that we''re following some > externally validated conventions for ReSTful API and that we can support at >
2009 Sep 09
0
ActiveResource - Two simple questions
I''m struggling a bit with implementing ActiveResource on a custom RESTful API. Firstly, I can''t seem to disable the transforms it does when it parses the XML. For example "CamelCase" gets rendered as camel_case, likewise underscores get converted to dashes. The docs page for ActiveResource mentions being able to set ActiveSupport.camelise_xml = false In an
2007 Sep 22
4
ActiveResource, find(1) works but no find(:all)
Hi, I''m on edge and Fuser.find(1) works but Fuser.find(:all) shows the error [1]. Fuser is declared here [2]. Do you know what''s happening? Thanks. [1] ActiveResource::ServerError: Failed with 500 Internal Server Error from /.../vendor/rails/activeresource/lib/active_resource/connection.rb:124:in `handle_response'' from
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
2006 Sep 01
2
Include ActiveResource
Hello, I want to give ActiveResource a spin. I have all the code checked out from SVN in vendor/rails (yes, including ActiveResource). I''m trying to make sure it gets loaded. I did this in environment.rb: config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/activeresource/lib ) Unfortunately I still can''t use it. I have an ActiveResource derived model, Address: class
2007 Mar 29
0
using certificates with ActiveResource
I''m trying to hack ActiveResource to use a self-signed certificate when connecting to my RESTful rails app (seems like a pretty glaring hole that it doesn''t offer this out of the box... though I guess it is alpha software). I started out going through the ActiveResource code looking for somewhere I could set the cert and key. Didn''t find it, so I took the approach
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
2006 Sep 27
0
ActiveResource and query string parameters
I have an app that was built using the new RESTful methods and I''m trying to access its resources from another app using ActiveResource. (more about the app itself on my blog -- http://jystewart.net/process ) The app provides details of bus stops in Grand Rapids, Michigan, and the index method for the stops resource allows users to specify a point (using its longitude and
2006 Dec 25
0
Why ActiveResource won't make it...
One of ActiveRecord''s greatest strengthes is its fluidity. Change a col in your db, restart, wham!, new class. This type of behavior is great for *internal* code. But for published interfaces, it''s the exact opposite of what you want. Let''s say I have a calendar web app, and expose a web service - via ActiveResource - for you to hook in your local GUI app (or command
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
2006/6/28, Paul Barry <mail@paulbarry.com>: > Where can I find info about the "CRUD/resource-based features" that will be > in 1.2.0? In blogs. Especially about Railsconf and DHH''s keynotes. In trunk : http://dev.rubyonrails.org/browser/trunk/activeresource In DHH slides : Transcription of some slides from DHH''s talk at RubyKaigi 2006 (I suppose it must
2007 Jul 04
1
Edge Rails required for ActiveResource
Just wanted to make sure I''m not missing anything here... I''m trying to use ActiveResource and I was trying to avoid using Edge Rails. However, since ActiveResource depends on the edge version of activesupport, I appear to be stuck going edge... have flailed around for a while trying to get ActiveResource to work with 1.2.3 but it just ain''t happening. Am I right? Gotta
2009 Jul 16
1
ActiveResource timeout not functioning?
I''m trying to contact a REST API using ActiveResource on Rails 2.3.2. I''m attempting to use the timeout functionality so that if the resource I''m contacting is down I can fail quickly - I''m doing this with the following: class WorkspaceResource < ActiveResource::Base self.timeout = 5 self.site = "http://mysite.com/restAPI" end However, when I