Sha256: 385efcacb9240439c569d06d2390ec934417e241b5583bb07ca6c7f7b92465de

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-basepack-0.6.2 test/rails_app/app/controllers/components_controller.rb
netzke-basepack-0.6.1 test/rails_app/app/controllers/components_controller.rb
netzke-basepack-0.6.0 test/rails_app/app/controllers/components_controller.rb