hi brett thanks for the detailed response. i'm sorry to say i have little to no experience with rails or hobo. a little light scripting with ruby is all i've done. i come from the java, objective-c world, and have pretty much worked webobjects for 10 years and little else. so, my view is also quite narrow, not that i'm not willing to learn though. i'm very attracted to the hobo way of doing things and your jqigrid adaption (from the ui side) is very impressive. i'm looking around for something to learn and use for my own photography site, and learn at the same time. webobjects is a tad heavy for it, especially on the hosting front.
On 31.08.2009, at 19:20, Brett Nelson wrote: > > The interface with the databases is a bit of a hack and not currently > in a state that would be useful in production mode, but if there is > interest, and with a little help from some more experienced Rails/Hobo > developers, this could be fixed. yes, very sorry, i won't be much help there, have to learn hobo first. > > What happens is when the DRYML tag <jqigrid ..> is called it passes > the colmodel attribute to a function which stores it in a global. would it, speculatively, be possible to use a sha/md5 of the table/ entity name to id the table in the db? > This > lets it know which columns are going to be requested via JSON. This > data is stored in a global persistent hash on the server, but not in a > way that would probably work with multiple server instances running. > That is if the page was served from one server instance, and then the > javascript JSON AJAX call was made to get the data got served by a > different server instance, it probably wouldn't have the global hash > listing the columns. Perhaps that is where the nil error is coming > from. a dedicated table for the hashes? i only have one instance running from the shell, must be something else. rails 2.3.3 > > The difficulty is that the Tomov grid does not send back the column > list when it requests data, so that it requires a custom server > response be coded for each variation in a grid. But I wanted it to be > as easy as just dropping in a <jqigrid ...> tag and then having > everything else be taken care of behind the scenes so I coded the hack > in that stores the global variable containing column info. The > response is handled by mixing some code into the ApplicationController > that handles the JSON requests for data, you can see that in lib/ > hobo_jqi.rb. > > I'm willing to fix it, just too inexperienced to know the best way to > go about it. My thinking was too modify the javascript of Tomovs grid > to send back metadata like table and column names when it does the > JSON AJAX calls. couldn't you just use an id attr in the jqigrid tag, that seems like minimum fuss. master detail is of course what i'm after, hooked up to a tree. > > Now that I have seen extjs maybe time would be better spent on that > but it has the licensing complication of having to pay if you use it > for commercial work. yuck, though it's very impressive. > > I have run the install of the jqi-grid on a fresh hobo install from > git with the instructions that I put out and got it to work in > development mode so if you are just running a single instance of a > server there might be a different issue that you are experiencing. being a noob, but that's not a character flaw. i had some trouble installing hobo on leopard, had to get rid of ruby from macports and update system etc. so, maybe a reinstall. it's in dev mode so i'm not sure what i'm doing. i for one would welcome further work on jq and hobo, but i know what it's like. i can help out testing, and give you feedback but it will be a while before i'm useful in any capacity. and life is too short to implement all the cool stuff that could be... i'll let you know how i get on with the reinstall of hobo. is there a place i can subscribe to see changes you make to the jq grid effort? best cornelius --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
