Sha256: 50ac3f8ac905b14f807d332b81762f23218285710b54e84793d230108ad32192

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
netzke-core-0.6.4 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.3 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.2 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.1 test/rails_app/app/controllers/components_controller.rb
netzke-core-0.6.0 test/rails_app/app/controllers/components_controller.rb