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_options.nil?

"#{prefix(prefix_options)}#{collection_name}.#{format.extension}#{query_string(query_options)}"
end
by

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)}#{collection_name}#{query_string(query_options)}"
end

And now it's OK :)
GET http://diufvm31.unifr.ch:8090/CyberCoachServer/resources/users
--> 200 OK 1260 (1735.7ms)

...But :(
I have an other error now :
NoMethodError (undefined method `collect!' for #<Hash:0x1030aeed0>):
app/controllers/users_controller.rb:6:in `index'
What do you think that error might mean?

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 12 of 13 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 19, '12 at 10:49a
activeOct 21, '12 at 9:17p
posts13
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2021 Grokbase