# Yaml for jqgrid

**URL:** <https://www.ruby-forum.com/t/yaml-for-jqgrid/173386>\
**Category:** Rails\
**Created:** [August 7, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/yaml-for-jqgrid/173386 "2009-08-07T19:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamdonquixote](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85e7bf/32.png) [@iamdonquixote](https://www.ruby-forum.com/u/iamdonquixote)\
**Post date:** [August 7, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/yaml-for-jqgrid/173386/1 "2009-08-07T19:49:43Z")

</div>

Anyone have a more extensive yaml file for jqgrid than the one that’s  
shown with the example Jqgrid Demos page?

Also, I’ve been successful in just using the straight jQuery javascript  
code, rather than invoking the yaml file to produce it), but sometimes  
get an “unitialized class variable @@grid\_name” error. I was doing this  
because all the code I see on the web to achieve anything, just shows  
the jQuery code, rather than the yaml code that produced it. I know  
that using the yaml file avoids hard-coding the grid name, but I don’t  
know how to create functions in yaml that turn out the way they look in  
the code that results. So the million dollar question is … should the  
code always be generated by invoking a yaml file (which seems to avoid  
getting the “unitialized class variable @@grid\_name” error", or is it ok  
to use the ‘straight’ jquery javascript code? Hope that makes sense.

Any help offered is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![iamdonquixote](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85e7bf/32.png) [@iamdonquixote](https://www.ruby-forum.com/u/iamdonquixote)\
**Post date:** [August 8, 2009, 11:53am UTC](https://www.ruby-forum.com/t/yaml-for-jqgrid/173386/2 "2009-08-08T11:53:18Z")

</div>

[http://www.2dconcept.com/jquery-grid-rails-plugin](http://www.2dconcept.com/jquery-grid-rails-plugin)  
maybe help you.
