mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
One of the tests is failing and I can't for the life of me figure out why. Everything looks fine when I try it with curl from the command line. Hmm.
29 lines
686 B
Ruby
29 lines
686 B
Ruby
class MembersController < ApplicationController
|
|
load_and_authorize_resource
|
|
def index
|
|
@members = Member.confirmed
|
|
|
|
respond_to do |format|
|
|
format.html # index.html.haml
|
|
end
|
|
end
|
|
|
|
def show
|
|
@member = Member.find_confirmed(params[:id])
|
|
@posts = @member.posts
|
|
# The garden form partial is called from the "New Garden" tab;
|
|
# it requires a garden to be passed in @garden.
|
|
# The new garden is not persisted unless Garden#save is called.
|
|
@garden = Garden.new
|
|
|
|
respond_to do |format|
|
|
format.html # show.html.haml
|
|
format.rss { render(
|
|
:layout => false,
|
|
:locals => { :member => @member }
|
|
)}
|
|
end
|
|
end
|
|
|
|
end
|