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 with jqi because 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%[email protected]>
> > > .
> > > 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