Commit Graph

7 Commits

Author SHA1 Message Date
Miles Gould
5866cc5bbc Document current_user vs current_member usage. 2013-03-29 15:19:01 +00:00
Skud
21960a5494 Tried to get controller tests passing.
All are fine except for plantings.  I'm pretty sure hte problem is to do
with these two lines in app/model/ability.rb

  can :update, Planting, :garden => { :owner_id => member.id }
  can :destroy, Planting, :garden => { :owner_id => member.id }

I'm pretty sure that's the right syntax (according to
https://github.com/ryanb/cancan/wiki/Defining-Abilities) but since it's
the update and delete actions that are failing, I guess I must have it
wrong somehow.  Any hints?
2013-02-01 13:25:06 +11:00
Skud
2d6f1ae210 redirect to previous page if available 2013-02-01 11:29:14 +11:00
Skud
cd469264bd this seems to mostly work 2013-02-01 11:21:13 +11:00
Skud
ed2e73832d sorta kinda works, but login/homepage are b0rked 2013-02-01 11:10:12 +11:00
Skud
ea8f30bd8d tweaked cancan defaults (we don't have current_user) 2013-02-01 10:25:54 +11:00
Cesy Avon
95145f2869 Moving development to top level directory 2012-08-23 10:41:00 -07:00