end
def show
- @ground_color = GroundColor.show(params[:id], [@user, @admin])
+ @item = GroundColor.show(params[:id], [@user, @admin])
respond_to do |format|
format.html # show.html.erb
- format.prof { render :template => 'top/prof', :layout => true }
- format.json { render json: @ground_color.to_json(GroundColor.show_json_opt) }
+ format_prof format
+ format.json { render json: @item.to_json(GroundColor.show_json_opt) }
end
end