Sha256: ccd3892a96c860cb1ea1dbd9697ef09893a6c858e451a0260a259859535d5f0d

Contents?: true

Size: 298 Bytes

Versions: 5

Compression:

Stored size: 298 Bytes

Contents

module <%= @generation_app_name %>::Controllers
  class List<%= @generation_class_name %> < R '/<%= @generation_view_name %>'
    def get
      @<%= @generation_view_name.pluralize %> = Models::<%= @generation_class_name %>.find_all
      render :list_<%= @generation_view_name %>
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bivouac-0.0.5 lib/bivouac/template/generate/scaffold_controller_list.rb
bivouac-0.0.6 lib/bivouac/template/generate/scaffold_controller_list.rb
bivouac-0.0.7 lib/bivouac/template/generate/scaffold_controller_list.rb
bivouac-0.0.8 lib/bivouac/template/generate/scaffold_controller_list.rb
bivouac-0.0.9 lib/bivouac/template/generate/scaffold_controller_list.rb