similar to: RE: Rails Digest, Vol 20, Issue 39

Displaying 20 results from an estimated 1000 matches similar to: "RE: Rails Digest, Vol 20, Issue 39"

2006 May 02
3
web services on the client side
i am reading through chapter 20 of the agile web development book and trying to figure out how to use web services. i set up two different rails apps. one as the server and one as the client. setting up the server seems to work fine. but when i use the example at the end of the chapter to set up a client, i get the following error when i open the page: Missing API definition file in
2007 Jan 18
2
How to use API from AWS -- help!
I''m building a users web service (direct dispatching) that will (I hope) allow several other applications to manage the same pool of users. Plus it will act as a single-sign-on solution for what I''m doing. But I''m having difficulty accessing the UserAPI. Here''s what I''ve done so far: $> rails usermanagement - "usermanagement" is the
2006 May 02
2
Installation problems
Complete newbite to ROR. I have installed Ruby, RubyGems, & Rails according to the information at the following url: http://xmlareas.com/ruby-rails-howto.html on a copy of Fedora Core 4. If I run the gem list command I can see the various packages including: actionmailer(1.2.1) rails(1.1.2) However the installation instructions end and the next step is a tutorial creating an application.
2006 May 01
5
Adding classes without script\generate
Can I add classes to a rails application manually i.e without using script generate Model/Controller? The reason I am asking, I added a class by putting it in the controller class. I can access the class and its method from command-line (irb), but when I try to instantiate it in another controller, I get "uninitialized constant" error. If I try using script\generate Model
2006 May 02
1
Tests just deleted my production Database!!!
Sorry, in my haste I forgot to modify the subject. 5/2/06, "Christian R. Garner" <olus@digitalapathy.net>wrote: > > All assumptions aside, "rectest" and "salt" are usernames not > databases/schemas according to the pasted config. If they were in fact > different databases/schemas, this problem could never have happened. > While >
2006 May 02
1
Tests just deleted my production Database!!! PLEASE
When you run your functional tests, rake wipes the "test" database clean and recreates it based on what is in the "development" database. Since it appears you are using the same database for both, that would explain why you lost your data. In addition, if you omit the data needed to access the development database you will get an error like you described, because
2006 May 30
0
[Fwd: Re: more fcgi problems on apache]
Sorry if this get listed twice. Evolution hates me today. -------- Forwarded Message -------- From: Charlie Bowman <charlie@castlebranch.com> To: rails@lists.rubyonrails.org Bcc: Drew Stinnett <drew@castlebranch.com> Subject: Re: [Rails] more fcgi problems on apache Date: Tue, 30 May 2006 15:43:09 -0400 The decision isn''t mine. I''m just the programmer. This is
2006 Nov 04
1
layere dispatching - please help!
Hi Folks, I''m having trouble with setting up web services with layered dispatching. I''ve defined my controller (backend_controller.rb) as: class BackendController < ApplicationController web_service_dispatching_mode :layered web_service_scaffold :invoke web_service (:car) {CarService.new} end and my service (node_service.rb) as:
2007 Jun 06
0
ActionWebService API ignoring multiple return values?
I''m using ActionWebService and defining the following API method: api_method(:validate, :expects => [{:id => :int}, {:value => :string}], :returns => [{:valid => :boolean}, {:error_message => :string}]) if I implement this method as follows: def validate(id, value) return true, ''no error'' end I get the following error
2016 Nov 03
0
Samba domain join issues
Still looking for some suggestions, recommendations or pointers on this issue. Kinda stuck with it. It was working well couple of months back and suddenly stopped working. No known changes were happned on both sides except installing and then uninstalling MS16-077 patch. Thanks, Pradeep On Tuesday, November 1, 2016, Pradeep Rawat <pradeeprawat85 at gmail.com> wrote: > We are running
2006 May 08
0
Including common code among multiple web services issue?
Hi all - I''m implementing some web services and every one has at the very least a "find_newer_than" method. In my models, I''ve split things up like this and it works great. ---------------------------------------------------------------------------------- class XyzService < WebService web_service_api XyzApi .... service specific methods go here... end class
2006 Jan 12
1
activewebservice::struct
So I''m playing with AWS. I''ve got a thing called a gallery. I''d like to return a list of them. I can do this fine if I want to return my ActiveRecord objects: class WxApiApi < ActionWebService::API::Base api_method :list_galleries, :expects=>[{:login=>:string}], :returns => [[Gallery]] end But the ActiveRecord object exposes a
2006 Apr 11
5
[OT] RailsConf Tickets ?
Just in case -- if anybody has got a spare ticket for RailsConf, i''d be very happy to buy it... I live in Chicago, so i can do this on very short notice as well, should anybody not be able to attend... :) Otherwise - this being Chicago - no question there''ll be scalpers... :) Thanks, Sebastian
2010 Oct 07
0
[LLVMdev] libcpu with m88k
What kinds of errors are you getting? On Thu, Oct 7, 2010 at 9:36 AM, Pradeep Ramachandran <pramach2 at uiuc.edu> wrote: > Hi, > I recently downloaded and installed the libcpu package (from http://libcpu.org > ) that uses llvm as the backend on my linux machine. I have a piece of > Motorola 88100 code (essentially the output of the 176.gcc benchmark > from SPEC CPU 2000) that
2007 Nov 13
5
how to ensure signature compliance while mocking in ruby
On 13/11/2007, Pradeep Gatram <pradeep.gatram at gmail.com> wrote: > > Let me put my dilemma as an example. Take a look at a snippet from > FooTest. > > #using mocha > def test_method1 > Bar.expects(:method2).with(''param1'', ''param2'').once > Foo.method1 > end > > And now the implementation > > class Foo > def
2006 May 01
7
where should I put my hand-coded classes
I have a class that is hand-coded (not generated using generator). Is there a preferred location for the file. app/components ? does it matter? Thanks, -- Posted via http://www.ruby-forum.com/.
2006 May 31
2
Rails Bug when loading required files for API?
Hello, I have seen some odd behaviour of my Web Services code plus some ''similar'' postings to this list, so I believe this may be a bug in Rails. But I''m failry new to RoR, so maybe I''m doing something wrong. I''ll explain: I have a WS API defined, communicating with a remote system that expects a stucture: When defined like this (all
2006 May 01
3
Using Classes in Rails
I am a beginner so please excuse me, if i am doing something totally wrong. I have created a class using "wsdl2ruby.rb" and here is what it looks like: class ServiceSoap < ::SOAP::RPC::Driver DefaultEndpointUrl = "http://balrog/services/SearchWorker/service.asmx" MappingRegistry = ::SOAP::Mapping::Registry.new Methods = [ ... -- Posted via
2006 Jun 13
0
CDATA as api_method expected parameter
I''d like to know if there is any way to accept a CDATA block as a parameter to an ActionWebService API method. I''d like to have something like this, class MyAPI < ActionWebService::API::Base api_method :test, :expects => [:cdata] end The client would pass "<![CDATA[ ...blah blah... ]]>" as the parameter to the method, test. Perhaps I need to specify
2006 Jul 22
0
multiple return values in action web service
Hi all, Does anyone have any advice about returning multiple values from an ActionWebService? That is, I''d like to implement something like the following. api_method :do_something, :expects => [{:id => :string}], :returns => [{:return_code => :int}, {:return_text => :string}] The easy way to do it would be to