Module: RailsJqGrid::JqGridHelper

Includes:
JqGridCssHelper, JqGridJsHelper
Defined in:
app/helpers/rails_jq_grid/jq_grid_helper.rb

Constant Summary

Constants included from JqGridCssHelper

RailsJqGrid::JqGridCssHelper::JQUERY_UI_THEMES_BASE, RailsJqGrid::JqGridCssHelper::STYLESHEETS_BASE

Constants included from JqGridJsHelper

RailsJqGrid::JqGridJsHelper::JS_BASE

Instance Method Summary collapse

Methods included from JqGridCssHelper

#jqgrid_stylesheets_tags

Methods included from JqGridJsHelper

#jqgrid_js_tags

Instance Method Details

#jqgrid(title, dom_id, url_for_options, options = {}, &option_block) ⇒ Object

Creates javascript-code for jqGrid



23
24
25
26
27
28
# File 'app/helpers/rails_jq_grid/jq_grid_helper.rb', line 23

def jqgrid(title, dom_id, url_for_options, options={}, &option_block)
  if url_for_options.is_a?(Hash)
    url_for_options[:controller]||=controller.controller_name
  end
  ::RailsJqGrid::JqGrid.new(title, dom_id, url_for_options, options, &option_block).to_html
end