Hello, I have a problem with prepare data for JqGrid. I have used this plugin http://www.2dconcept.com/jquery-grid-rails-plugin and I need table with data from more models.
for example User model:
has_one :profile
has_many :users_roles
has_many :roles, :through=>:users_roles
and i need this data in jqGrid
[user.login, user.profile.email, user.roles.collect{|r| r.name}]
Thanks for your answers.