similar to: Non-Ruby REST client for Ruby REST server

Displaying 20 results from an estimated 5000 matches similar to: "Non-Ruby REST client for Ruby REST server"

2008 Aug 27
6
Restful routes
Hi, I''m pretty new to the concept of restful routing and am struggling to find any rails 2 info that helps with what I''m looking for. I have a regular scaffold setup and the routes are setup as default map.resources :pages I would like to be able to use titles in the url rather than relying on the id. Eg localhost:3000/pages/sometitle instead of just localhost:3000/pages/1
2008 Sep 19
1
Freezing Rails to 2.0.2
Hi, I am using Rails 2.1.1 to stay in touch with the latest. I need to freeze the rails to version 2.0.2 for a project. But... The command in Rake tasks for Freeze allows only to freeze for the latest version I am using Netbeans 6.1 and familiar with tools only... Not much familiar with Console currently. Is there any facility in that allows me to freeze to older versions. Thanks -- Posted
2009 Aug 06
20
Changing from database sqlite3 to mysql - windows
Hi Guys I''d like to know how to change from using sqlite3 to mysql. I''m running windows xp. What is the command that I must type under my application folder? How to I log into the mysql database afterwards? My database.yml file contents at the moment are: # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3
2012 Oct 18
2
Different return codes on exec during puppet agent run vs command line Windows
Trying to run this exec in one of our manifests. When the resource is run during a puppet run, it returns a error code 87. But when I execute the same command on command prompt, it returns 3010. Is there any way to dig and and find out why the return codes are different. FYI, I am using the sysnative path to avoid the file system redirection on windows. Platform: Windows 2008R2 64 bit
2007 Jun 22
1
AX.25 and centos 5.X
trying to find out how to get ax.25 enabled or started on centos 5, I am not able to mod-probe or find anything where I can yum, apt, or otherwise, get ax.25 on my machine. Thanks Evans F. Mitchell KD4EFM / AFA2TH FL; USAF MARS GMRS: WQFK894 D-STAR 145.670 Simplex WCF Section ARRL Member ARRL WCF Section Web Site http://www.arrlwcf.org Polk County ARES Web site http://www.polkemcomm.org
2006 Aug 11
2
Some questions of REST actions
I''ve set up my application to use edge rails in order to get REST functionality. I''ve a controller called team (team_controller.rb) with some actions (index, list, show, create, new....). Moreover in routes.rb I''ve added map.resources :team so I guess I could call localhost:3000/xxxx/team/1 or localhost:3000/xxxx/team/1;edit Well, when I do the first call, server
2007 Dec 06
2
Implementation of rest in ROR
Hi all, I am new to ROR world. I know the REST conceptually but find the difficulties in implementation can anybody guide me that which is the best book which i have to read. also some good links of implementation of rest in ROR. If anybody made a small application to restful in rails please forward me that application. i found some demo but i didn''t understand for what purpose they
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems sogood but i cant find any docs about it, if someone here using it can give some references or working examples about the plugin that will be excellent. So what you wanna rails today? -- Posted via http://www.ruby-forum.com/.
2006 Oct 28
5
RSpec, REST and different formats
Is anyone using RSpec with RESTful rails apps? In my rails controllers I check request.respond_to? and render different views accordingly. I noticed that the get method in the rails plugin doesn''t accept headers: controller_mixin.rb line 92 def get(action, parameters = nil) @request.env[''REQUEST_METHOD''] = ''GET'' process action,
2007 Apr 24
1
problem POSTing with curl and REST using scaffold_resource
I issued the following curl command to post to the database using REST: curl -i -X POST -d "<heartrate><heartRate>102</ heartRate><sessionID>1002</sessionID><timeStamp>15068</timeStamp></ heartrate>" http://localhost:3000/heartrates I have tested the GET (with curl also) and it works fine! curl http://localhost:3000/heartrates/45
2009 Sep 01
4
Passenger problem
I''ve used the Slicehost Intrepid instructions (http:// articles.slicehost.com/ubuntu-intrepid) to install a new Ubuntu server with Ruby, Rails and passenger. Everything seems to be working OK, save for one thing: my application only service up the files that are in its public folder. The Passenger gem is installed. I''ve done this whole process before without any problem. Any
2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
Hi, Given the convention of fat models to handle business logic, is there a point where you might be justified in using a separate plain ruby object(s) to orchestrate certain business logic interactions, essentially a middle layer between your controllers and models for high level functions? If you look at the InventoryTransaction model below you will see the sort of methods I mean. In this case
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a scaffold called listas, but when I acess /listas/new I get this error message: NoMethodError in Listas#new Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb where line #15 raised: undefined method `deep_symbolize_keys'' for nil:NilClass Extracted source (around line #15): 12: <% end %> 13: 14:
2008 Nov 18
3
Code changes are ignored due to code minor ver. were cached
Hi there! I study Ruby on Rails and met a problem. I placed a class definition code for class which is NOT a Model into separate file, assume MyToolClass.rb Then I started working on controller code and required ''MyToolClass'' While working on controller code I also corrected some code in MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were ignored by Rails until
2009 Mar 14
2
Pobrem with REST routes
Hi first at all sorry if mu english is not the best. I have this models: Encuesta->titulo and description are string. Encuesta has_many :preguntas Preguntas-> texto is string, encuesta_id and orden are integer. Pregunta belongs_to :encuesta and has_many :soluciones Soluciones-> texto is string, pregunta_id and orden are integer. Soluciones belongs_to :pregunta Routes: map.resources
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :) We have models Company, Reference and Applicant... and References and Applicants just inherit from Company, and are basically companies with the type field set to reference... All companies can have a phone number associated with them, and phone number is a different model... I''m having trouble using the form_for method with a company that
2009 Aug 16
5
any help with captcha in my comments ?
this is my error: Processing ApplicationController#create (for 127.0.0.1 at 2009-08-17 00:57:56) [POST] Parameters: {"comment"=>{"name"=>"asdasd", "body"=>"asdasd"}, "commit"=>"Add Comment", "post_id"=>"19",
2006 Jun 24
5
request.xhr? vs. respond_to
Searched around this forum, but didn''t find an answer for this question. Can you help this newbie understand any overlap and/or difference between request.xhr? and respond_to? If request.xhr? is true, should I expect it wants.js below? respond_to do |wants| wants.html { redirect_to(person_list_url) } wants.js wants.xml { render :xml => @person.to_xml(:include
2010 Nov 08
7
Webrick Failing with Illegal Instruction
I''ve just started a new rails project (3.0.1, ruby 1.9.2 on Mac OS X), and have a few parts of it built out. I''ve just created new controller/views using rails g scaffold_controller Lesson, and then added a route to routes.rb with "resources :lessons" Now, when i go to /lessons, Webrick fails with "Illegal instruction" The controller function getting hit is
2006 Aug 30
10
respond_to not detecting JS turned on. form_to_remote problem?
I''m trying to use respond_to to redirect visitors who have JS turned off to a different page. The problem I''m having is that respond_to is sending *everybody* there. It''s not recognizing that JS is turned on in the browser. The wanted_html.rhtml file below is rendered whether I''ve got JS turned on or off. I''ve looked at the Accept headers being sent