Sha256: a2588492ed94e90fa2db2f69b59ba659fa657803561dfc930c641fbcad694a0a

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

  # GET /<%= plural_name %>
  # GET /<%= plural_name %>.xml
  def index
    @<%= plural_name %> = <%= class_name %>.paginate(:page => params[:page])

    respond_to do |format|
      format.html # index.html.<%= view_language %>
      format.xml  { render :xml => @<%= plural_name %> }
    end
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iain-pizza-generators-0.1.3 rails_generators/pizza_scaffold/templates/actions/index.rb