From aac48399683c9dde6eb082740416102a4c63e497 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Fri, 7 Dec 2012 12:01:03 +0000 Subject: [PATCH] Update comments in controller classes. They referred to (now nonexistent) .erb files - I've changed them to refer to the corresponding .haml files. --- app/controllers/crops_controller.rb | 6 +++--- app/controllers/members_controller.rb | 4 ++-- app/controllers/scientific_names_controller.rb | 6 +++--- app/controllers/updates_controller.rb | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/controllers/crops_controller.rb b/app/controllers/crops_controller.rb index 00d0e9325..f8074c2d5 100644 --- a/app/controllers/crops_controller.rb +++ b/app/controllers/crops_controller.rb @@ -6,7 +6,7 @@ class CropsController < ApplicationController @new_crops = Crop.limit(20).order('created_at desc').all respond_to do |format| - format.html # index.html.erb + format.html # index.html.haml format.json { render json: @crops } format.rss { render :layout => false } end @@ -18,7 +18,7 @@ class CropsController < ApplicationController @crop = Crop.find(params[:id]) respond_to do |format| - format.html # show.html.erb + format.html # show.html.haml format.json { render json: @crop } end end @@ -29,7 +29,7 @@ class CropsController < ApplicationController @crop = Crop.new respond_to do |format| - format.html # new.html.erb + format.html # new.html.haml format.json { render json: @crop } end end diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index f3f7f3770..edca03b9c 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -3,7 +3,7 @@ class MembersController < ApplicationController @members = User.all respond_to do |format| - format.html # index.html.erb + format.html # index.html.haml format.json { render json: @members} end end @@ -13,7 +13,7 @@ class MembersController < ApplicationController @updates = @member.updates respond_to do |format| - format.html # show.html.erb + format.html # show.html.haml format.json { render json: @member } format.rss { render( :layout => false, diff --git a/app/controllers/scientific_names_controller.rb b/app/controllers/scientific_names_controller.rb index 4c1e32adc..8e37c6670 100644 --- a/app/controllers/scientific_names_controller.rb +++ b/app/controllers/scientific_names_controller.rb @@ -5,7 +5,7 @@ class ScientificNamesController < ApplicationController @scientific_names = ScientificName.all respond_to do |format| - format.html # index.html.erb + format.html # index.html.haml format.json { render json: @scientific_names } end end @@ -16,7 +16,7 @@ class ScientificNamesController < ApplicationController @scientific_name = ScientificName.find(params[:id]) respond_to do |format| - format.html # show.html.erb + format.html # show.html.haml format.json { render json: @scientific_name } end end @@ -27,7 +27,7 @@ class ScientificNamesController < ApplicationController @scientific_name = ScientificName.new respond_to do |format| - format.html # new.html.erb + format.html # new.html.haml format.json { render json: @scientific_name } end end diff --git a/app/controllers/updates_controller.rb b/app/controllers/updates_controller.rb index a7c4ae01f..94589c04d 100644 --- a/app/controllers/updates_controller.rb +++ b/app/controllers/updates_controller.rb @@ -7,7 +7,7 @@ class UpdatesController < ApplicationController @recent_updates = Update.limit(100).order('created_at desc').all respond_to do |format| - format.html # index.html.erb + format.html # index.html.haml format.json { render json: @updates } format.rss { render :layout => false } #index.rss.builder end @@ -19,7 +19,7 @@ class UpdatesController < ApplicationController @update = Update.find(params[:id]) respond_to do |format| - format.html # show.html.erb + format.html # show.html.haml format.json { render json: @update } end end @@ -30,7 +30,7 @@ class UpdatesController < ApplicationController @update = Update.new respond_to do |format| - format.html # new.html.erb + format.html # new.html.haml format.json { render json: @update } end end