akshatpradhan/parcel — pull request #30 by bbarton (2012-11-21 07:08:08+00:00)
Title: Users must be logged in to edit/update/delete

I added a few extras you'll probably want.

I noticed that users don't need to be logged in to create a garden, so I enforced that (gardens without users break the app- but I fixed that too, so if you want to change it back it'll still work). To change it back, add this line to the top of gardens_controller:

before_filter :authenticate_user!, except: [:index, :show, :new, :create]

Added flash messages too. Also moved some code in gardens/index into a partial.

I'd recommend adding a Facebook app for use in development.

Let me know if you have any questions! Love the idea.