Sha256: 06f207fc6c20403d64f42f6a2ab742cd77cd26d797c6d1e50166600d7392fd00
Contents?: true
Size: 700 Bytes
Versions: 13
Compression:
Stored size: 700 Bytes
Contents
class ComponentsController < ApplicationController def index component_name = params[:component].gsub("::", "_").underscore render :inline => "<%= netzke :#{component_name}, :class_name => '#{params[:component]}', :height => 400 %>", :layout => true end # For panel_with_autoload def autoloaded_content render :inline => "<%= netzke :simple_panel, :height => 300, :bbar => ['->', 'Some text'], :html => 'Autoloaded Panel' %>", :layout => "nested" end # Just a test for a pure Ext component - not sure if it's useful. def ext component_name = params[:component].gsub("::", "_").underscore render :inline => "<%= ext :#{component_name} %>", :layout => true end end
Version data entries
13 entries across 13 versions & 1 rubygems