Sha256: 2f6fda0ba03d55c2631113984905150478abc67964f9a791f8cbac4b4e847143

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

class <%= @class_name %>::<%= @class_name%>Controller < ApplicationController
  <% @args.each do |name| %>
  def <%= name %>
    render json: { result: "success",
        message: "returned from <%= @class_name %>.<%= name %>" }
  end
  <% end  %>
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_view_component-0.0.5 lib/generators/rails_view_component/erb/controller.rb.erb
rails_view_component-0.0.4 lib/generators/rails_view_component/erb/controller.rb.erb
rails_view_component-0.0.3 lib/generators/rails_view_component/erb/controller.rb.erb
rails_view_component-0.0.2 lib/generators/rails_view_component/erb/controller.rb.erb
rails_view_component-0.0.1 lib/generators/rails_view_component/erb/controller.rb.erb