It's finally seems to work :)
My ActiveResource model looks like this :
class User < ActiveResource::Base
class << self
def element_path(id, prefix_options = {}, query_options = nil)
check_prefix_options(prefix_options)
prefix_options, query_options = split_options(prefix_options
On 21 October 2012 21:53, chardy wrote:
> So, I tried to overwrite the methode collection_path :
>
> def collection_path(prefix_options = {}, query_options = nil)
> check_prefix_options(prefix_options)
> prefix_options, query_options = split_options(prefix_options) if
> query_optio
So, I tried to overwrite the methode collection_path :
def collection_path(prefix_options = {}, query_options = nil)
check_prefix_options(prefix_options)
prefix_options, query_options = split_options(prefix_options) if
query_options.nil?
"#{prefix(prefix_options)}#{collec
Yes, sorry I made a mistake it's only users.xml but the problem is the
same...
Is it possible to retrieve the data without the extension .xml but just
specify the type in the header?
I have not found anything on the web...
--
You received this message because you are subscribed to the Google G
On Sun, Oct 21, 2012 at 7:44 AM, chardy wrote:
> - UsersResource /users/ - Get list of all users [GET, public]
Not much for "documentation" :-/
http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users
returns an HTML page with a paginated listing of users, but that's
hardly what you want
On 21 October 2012 15:06, chardy wrote:
> Yes, good idea, now I can understand where is the problem :
>
> GET http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users/users.xml
Is the url supposed to be resources/users/users.xml? Perhaps it
should just be resources/users.xml.
Colin
> -->
Yes, it's for a project in my university. I know that the we need to
specify the format in the header and the server can handle json and xml
format.
Here is the documentation :
Read only resources:
- SportsResource / - Get list of all sports [GET, public]
- UsersResource /users
On Sun, Oct 21, 2012 at 7:06 AM, chardy wrote:
> GET http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users/users.xml
> --> 404 Not Found 32 (129ms)
>
> The server is not configured to respond for .xml (or .json).
If this server isn't under your control, shouldn't you have some kind
of d
Yes, good idea, now I can understand where is the problem :
GET http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users/users.xml
--> 404 Not Found 32 (129ms)
The server is not configured to respond for .xml (or .json). The content
type should be defined in the header...
Is it possible t
On 21 October 2012 11:45, chardy wrote:
> Thanks for your help Colin!
>
> My logs :
>
>>> Started GET "/users/index" for 127.0.0.1 at Thu Oct 18 23:01:19 +0200
>>> 2012
>>>
>>> Processing by UsersController#index as HTML
>>>
>>> Rendered users/index.html.erb within layouts/application (0.6ms)
>>
Thanks for your help Colin!
My logs :
Started GET "/users/index" for 127.0.0.1 at Thu Oct 18 23:01:19 +0200 2012
>
> Processing by UsersController#index as HTML
>
> Rendered users/index.html.erb within layouts/application (0.6ms)
>
> Completed 500 Internal Server Error in 140ms
>
>
>> ActionVi
On 18 October 2012 23:30, chardy wrote:
> Hi,
>
> I'm trying to work with a RESTful server but I have some problem to setup my
> project.
> I have a model class like this :
>
>> class User < ActiveResource::Base
>>
>> self.site =
>> "http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users
Hi,
I'm trying to work with a RESTful server but I have some problem to setup
my project.
I have a model class like this :
class User < ActiveResource::Base
self.site =
> "http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users/";
end
this controller :
class UsersController < Appl
13 matches
Mail list logo