mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 14:26:14 -04:00
Merge pull request #59 from pozorvlak/haml_comments
Update comments in controller classes.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user