A little more information.

Decided to toy with this in Firefox/Firebug instead of in Chrome.
This revealed a little more information:

First off ; here's the URL generated out of jquery:

http://ubuntu:3000/billing_details/jqitbl_json/billingdetails__jqitbl-mygrid?nd=1268052543409&_search=false&rows=20&page=1&sidx=&sord=asc

And the stack trace (thank you firebug!)

.../vendor/plugins/hobo-jqi/lib/hobo_jqi.rb:200:in `jqitbl_json'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
1331:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
1331:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:617:in `call_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:638:in `run_before_filters'
/var/lib/gems/1.8/gems/hobo-1.0.0/lib/hobo/controller.rb:23:in `call'
/var/lib/gems/1.8/gems/hobo-1.0.0/lib/hobo/controller.rb:23:in
`included_in_class'
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/
callbacks.rb:182:in `call'
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/
callbacks.rb:182:in `evaluate_method'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:184:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:635:in `run_before_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:615:in `call_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/
benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
rescue.rb:160:in `perform_action_without_flash'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/flash.rb:
146:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
532:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
532:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
filters.rb:606:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
391:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:
386:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/
route_set.rb:437:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
dispatcher.rb:87:in `dispatch'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
dispatcher.rb:121:in `_call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
dispatcher.rb:130:in `build_middleware_stack'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
query_cache.rb:29:in `call'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
query_cache.rb:29:in `call'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
query_cache.rb:9:in `cache'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
query_cache.rb:28:in `call'
/var/lib/gems/1.8/gems/activerecord-2.3.4/lib/active_record/
connection_adapters/abstract/connection_pool.rb:361:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in
`call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
params_parser.rb:15:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/session/
cookie_store.rb:93:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
failsafe.rb:26:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `synchronize'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
dispatcher.rb:114:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
reloader.rb:34:in `run'
/var/lib/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/
dispatcher.rb:108:in `call'
/var/lib/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:31:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `each'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `call'
/var/lib/gems/1.8/gems/rails-2.3.4/lib/rails/rack/debugger.rb:17:in
`call'
/var/lib/gems/1.8/gems/rails-2.3.4/lib/rails/rack/log_tailer.rb:17:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:13:in
`call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/chunked.rb:15:in `call'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:61:in
`process'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
`process_client'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`process_client'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`initialize'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`initialize'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/var/lib/gems/1.8/gems/rack-1.0.0/lib/rack/handler/mongrel.rb:34:in
`run'
/var/lib/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3



On Mar 5, 9:18 am, bretweinraub <[email protected]> wrote:
> Thanks for the input.  I'll investigate over the weekend and post my
> findings.
>
> Thanks,
> Bret
>
> On Mar 4, 10:19 am, Brett Nelson <[email protected]> wrote:
>
>
>
> > Also it looks like you are adding it to the frontpage which is not a
> > typical index page (with impicit db table context) so that is probably
> > why it is not working.
>
> > Brett
>
> > On Mar 4, 10:12 am, Brett Nelson <[email protected]> wrote:
>
> > > Tried the DRYML code in the first thread message and it worked, but
> > > would probably be better to include the JS like this.
> > > <index-page>
> > >   <append-scripts:>
> > >     <jqgrid-includes theme="smoothness"/>
> > >   </append-scripts:>
> > >   ....
>
> > > This plugin was built more as a demonstration to generate interest in
> > > using a grid like this with hobo, but be aware that it is not fully
> > > developed so may not work in something more complex than a simple
> > > index page.
>
> > > Brett
>
> > > On Mar 4, 9:53 am, Owen Dall <[email protected]> wrote:
>
> > > > Yes, please share what you find.
>
> > > > On Thu, Mar 4, 2010 at 11:42 AM, Brett Nelson 
> > > > <[email protected]>wrote:
>
> > > > > I just tested with 1.0 and it is working for me, show me your code, if
> > > > > it is complex create the simplest example that creates the problem and
> > > > > I will try to recreate it.
>
> > > > > Brett
>
> > > > > On Mar 4, 2:13 am, bretweinraub <[email protected]> wrote:
> > > > > > Tested now w/ both Hobo 0.9 and Hobo 1.0 ; same results.
>
> > > > > > Any suggestions on how to get the whole stack trace out of this 
> > > > > > baby?
>
> > > > > > On Mar 3, 4:12 am, bretweinraub <[email protected]> wrote:
>
> > > > > > > Here's my index page if it helps:
>
> > > > > > > <page>
> > > > > > >   <body: class="front-page"/>
> > > > > > >   <content:>
> > > > > > >     <header class="content-header">
> > > > > > >       <jqi-grid-includes theme="smoothness"/>
> > > > > > >     </header>
> > > > > > >     <jqi-grid id="mygrid"/>
> > > > > > >   </content:>
> > > > > > > </page>
>
> > > > > > > But it always renders no data....... (and some mysterious server
> > > > > > > errors, see below).
>
> > > > > > > I wonder if I'm having this problem withjqibecause I upgraded my
> > > > > > > hobo gems to 1.0.
>
> > > > > > > Anyway I get two different kind of errors, depending on the type 
> > > > > > > of
> > > > > > > model I have.
>
> > > > > > > If the model name is one word (like Customer), I get this from the
> > > > > > > server (mongrel):
>
> > > > > > > rows: 20
> > > > > > > params:
> > > > > > > nd1267613894075
> > > > > > > sordasc
> > > > > > > actionjqitbl_json
> > > > > > > idcustomers__jqitbl-mygrid
> > > > > > > page1
> > > > > > > rows20
> > > > > > > _searchfalse
> > > > > > > controllercustomers
> > > > > > > searchfalse
> > > > > > > sidx
> > > > > > > rows,page : 20,1
> > > > > > > Customer.count(:all)
> > > > > > >    [4;36;1mSQL (2.7ms) [0m    [0;1mSELECT count(*) AS count_all 
> > > > > > > FROM
> > > > > > > "customers"  [0m
> > > > > > > !!!Customer.find(:all,:limit => 20,:offset => 0)
> > > > > > >    [4;35;1mCustomer Load (0.9ms) [0m    [0mSELECT * FROM 
> > > > > > > "customers"
> > > > > > > LIMIT 20 OFFSET 0 [0m
> > > > > > > ASAP
> > > > > > > Ckuru
> > > > > > > Aura Software LLC
>
> > > > > > > SystemStackError (stack level too deep):
> > > > > > >   hobo (1.0.0) lib/hobo/controller.rb:23:in `call'
> > > > > > >   hobo (1.0.0) lib/hobo/controller.rb:23:in `included_in_class'
>
> > > > > > > Rendered rescues/_trace (433.8ms)
> > > > > > > Rendered rescues/_request_and_response (0.9ms)
> > > > > > > Rendering rescues/layout (internal_server_error)
>
> > > > > > > For the life of me I can't beat the whole stack trace out ... if I
> > > > > > > could I probably wouldn't be posting here :(
>
> > > > > > > Now if I have a two word model, I get something else (like
> > > > > > > InvoiceDetail)
>
> > > > > > > rows: 20
> > > > > > > params:
> > > > > > > nd1267614426601
> > > > > > > sordasc
> > > > > > > actionjqitbl_json
> > > > > > > idinvoicedetails__jqitbl-mygrid
> > > > > > > page1
> > > > > > > rows20
> > > > > > > _searchfalse
> > > > > > > controllerinvoice_details
> > > > > > > searchfalse
> > > > > > > sidx
> > > > > > > rows,page : 20,1
>
> > > > > > > RuntimeError (Unable to locate model: Invoicedetail):
> > > > > > >   hobo (1.0.0) lib/hobo/controller.rb:23:in `call'
> > > > > > >   hobo (1.0.0) lib/hobo/controller.rb:23:in `included_in_class'
>
> > > > > > > Rendered rescues/_trace (194.0ms)
> > > > > > > Rendered rescues/_request_and_response (5.4ms)
> > > > > > > Rendering rescues/layout (internal_server_error)
>
> > > > > > > Notice how it munged my class name; yikes!
>
> > > > > > > I got in my mind that this had to do with the active record
> > > > > > > associations and/or view hints, so I commented those all out.  
> > > > > > > Same
> > > > > > > errors :(
>
> > > > > > > Anyway anybody out there ever seen/battled anything like this?  Oh
> > > > > > > yeah, personal NOOB factor w/ hobo: significant.  Rails wise 
> > > > > > > (this is
> > > > > > > 2.3.4) I've been to a couple of rodeos.
>
> > > > > > > Thx,
> > > > > > > Bret
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups
> > > > > "Hobo Users" group.
> > > > > To post to this group, send email to [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<hobousers%2bunsubscr...@googlegroups
> > > > >  .com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/hobousers?hl=en.
>
> > > > --
> > > > Thanks,
> > > > - Owen

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to