Note that there are some explanatory texts on larger screens.

plurals
  1. PONoMethodError (undefined method `body' for #<Hash:0xbc3ee74>):
    primarykey
    data
    text
    <p>Getting an obscure error which originates from the ActiveResource standard Rails library. The line within Rails causing this problem is given below along with the output. Any idea on how to resolve this problem please?</p> <pre><code>class Search &lt; ActiveResource::Nestful::Base self.collection_name = "search" schema do string :type object :event end def self.query(params) find(:all, :params =&gt; params) end def self.per_page 3 end def record attributes[attributes["type"]] end end </code></pre> <p>OUTPUT</p> <pre><code>Started GET "/search?utf8=%E2%9C%93&amp;q=Hammersmith&amp;location=&amp;commit=Search" for 127.0.0.1 at 2012-09-17 15:10:53 +0100 Processing by SearchController#index as HTML Parameters: {"utf8"=&gt;"✓", "q"=&gt;"Hammersmith", "location"=&gt;"", "commit"=&gt;"Search"} Completed 500 Internal Server Error in 2343247ms NoMethodError (undefined method `body' for #&lt;Hash:0xbc3ee74&gt;): activeresource (3.2.8) lib/active_resource/base.rb:901:in `find_every' activeresource (3.2.8) lib/active_resource/base.rb:814:in `find' app/models/search.rb:12:in `query' app/controllers/search_controller.rb:14:in `index' actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action' actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `block in process_action' activesupport (3.2.8) lib/active_support/callbacks.rb:426:in `block in _run__1005704495__process_action__837521650__callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_208' app/controllers/application_controller.rb:55:in `block in with_oauth' /home/jaygemang/.rvm/gems/ruby-1.9.3-p194/bundler/gems/activeresource-nestful-3b28ffcfe788/lib/active_resource/nestful.rb:15:in `oauth' </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload