Sha256: 433b6552f11a18506daf31e21d5ccf8cf4c9361df30029d062058fed9fc175fd

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

  def index
    @<%= plural_name %> = <%= class_name %>.all
    
    respond_to do |format|
      format.html # index.html.erb
    <%- unless options[:no_xml] -%>
      format.xml  { render :xml => @<%= plural_name %> }
    <%- end -%>
    <%- unless options[:no_json] -%>
      format.json { render :json => @<%= plural_name %> }
    <%- end -%>
    end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jfs-generators-0.2.0 rails_generators/jfs_scaffold/templates/actions/index.rb
jfs-generators-0.2.4 rails_generators/jfs_scaffold/templates/actions/index.rb
jfs-generators-0.2.3 rails_generators/jfs_scaffold/templates/actions/index.rb