Sha256: 934e8f325102946203308960845fa62192caa269ebd7895d23b46f3e1c362755

Contents?: true

Size: 345 Bytes

Versions: 11

Compression:

Stored size: 345 Bytes

Contents

class ComponentsController < ApplicationController
  def index
    if params[:component]
      component_name = params[:component].gsub("::", "_").underscore
      render :inline => "<%= netzke :#{component_name}, :class_name => '#{params[:component]}', :height => 400 %>", :layout => true
    else
      redirect_to root_path
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
netzke-basepack-0.8.2 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.7 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/controllers/components_controller.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/controllers/components_controller.rb