Sha256: ad06e3090fdd1ef27fd83a66c213bd829c4fe37ad2399ec006d3f15adb215ef4

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

class ComponentsController < ApplicationController
  def index
    component_name = params[:component].gsub("::", "_").underscore
    render :inline => "<%= netzke :#{component_name}, :class_name => '#{params[:component]}' %>", :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

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.6.7 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.6 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.5 test/rails_app/app/controllers/components_controller.rb