Sha256: f5955b00bf16b8bf4c66bb4a5678231a164095953893f4a52d144a485ba884f4

Contents?: true

Size: 290 Bytes

Versions: 17

Compression:

Stored size: 290 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Controller < <%= parent_class_name.classify %>
<% actions.each do |action| -%>
  def <%= action %>
    render Views::<%= class_name %>::<%= action.camelize %>.new
  end
<%= "\n" unless action == actions.last -%>
<% end -%>
end
<% end -%>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
phlex-rails-0.6.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.6.0 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.5.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.5.0 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.4.2 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.4.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.4.0 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.3.2 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.3.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.3.0 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.2.2 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.2.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-rails-0.2.0 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-0.5.3 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-0.5.2 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-0.5.1 lib/generators/phlex/controller/templates/controller.rb.erb
phlex-0.5.0 lib/generators/phlex/controller/templates/controller.rb.erb