similar to: ActiveResource (was: 1.1.3 available.)

Displaying 20 results from an estimated 1000 matches similar to: "ActiveResource (was: 1.1.3 available.)"

2007 Aug 22
1
ActiveResource find method and restful controllers.
Hi, What''s the best way to add support for the activeresource find method in the controllers in my rails app? As I understand it when you invoke something like: Person.find(:all, :params => {:name = ''toby''}) this generates a request of: GET /people.xml?name=toby Does this mean that in my index method in PeopleController in my rails app I have params[name] set to
2006 Jun 18
0
Rails Core Weekly June 11 - June 18
This is another edition of Rails Core Weekly, affectionately known as RCW. A much nicer pre-web 3.0 version is available from the following url : http://www.pinupgeek.com/articles/category/rails-core-weekly-news We have an Atom/RSS feed available there as well. Rails Core Weekly summarizes the rails-core mailing list, a list dedicated to Ruby on Rails internals and its development. RCW is
2006 Jun 29
6
Naming Convention for Controllers?
Hello! I just read DHH''s presentation pdf. In his examples, he wrote PeopleController instead of PersonController. I''ve been using singular words in controller''s name. Which is more common? Thanks. Sam -- Posted via http://www.ruby-forum.com/.
2006 Nov 04
0
How do CRUD and REST work for a wizard-style application?
I''m rewriting an application with the intention to use the elegant CRUD and REST design principles as outlined by DHH in his RailsConf Keynote[1]. The question is: how do you use those principles for an application that is of a sequential nature? The application works much like an MS Windows wizard: user begins at screen foo. After doing (or not) some stuff in screen foo, he is taken to
2008 Jan 18
3
Please help
Hello all, I have developed a RESTFul webservice in RoR. Here under is the controller --------------------------------------------------------------------------------------------------------- class PeopleController < ApplicationController def index list render :action => ''list'' end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
2005 Mar 30
2
Production Log Analyzer 1.1.0
First public release of Production Log Analyzer! Download it at: http://rubyforge.org/frs/?group_id=586 The Production Analyzer lets you find out which pages on your site are dragging you down. pl_analyze requires the use of SyslogLogger (included) because the default Logger doesn''t give any way to associate lines logged to a request. SyslogLogger gives you many other
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
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 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
2007 Jun 21
2
does activeresource only work with edge?
hey all, I''ve just installed the activeresource gem and it wasn''t working, so I did gem update rails and it worked. But now I have rails-1.2.3.6906 and I think this is edge right? Is there a way to work on regular rails 1.2.3 with activeresource? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
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
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
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 >
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
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
2006 Jul 13
0
How to get dependent Model(s) from Controller
How can I get the dependent Model class from a Controller? I tried PeopleController.model and PeopleController.dependecies_on(:model) with no success. I''d like to avoid going through the Inflector.classify(self.controller_name) workaround. Thanks. Cheers, Marco
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 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
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