Sha256: 7f5bc842e646efd69ff81beda891afb2c53981622ff16aeaf46234cb3e765804
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
# GET /<%= plural_name %>/1 <%- if xml? -%> # GET /<%= plural_name %>/1.xml <%- end -%> def show @<%= singular_name %> = <%= class_name %>.find(params[:id]) <%- if xml? -%> respond_to do |format| format.html # show.html.<%= view_language %> format.xml { render :xml => @<%= singular_name %> } end <%- end -%> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iain-pizza-generators-0.1.4 | rails_generators/pizza_scaffold/templates/actions/show.rb |