Commit Graph

11 Commits

Author SHA1 Message Date
Lilly
14021a4fae Redirect to Garden after deleting planting 2013-05-09 13:39:31 +10:00
Miles Gould
b87bd202f6 Create new plantings with planted_at set to today.
There may be issues with time zones: can someone not on UTC test this?
2013-03-26 19:27:45 +11:00
Skud
58e5d04d50 controller tests for plantings now pass 2013-02-01 22:55:48 +11: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
Amy
0d84f0dde1 Added recent_plantings variable
Wrote tests for recent_plantings, recent_posts, new_crops
2013-01-28 19:30:23 -05:00
gnattery
9f788ba8df added friendly IDs for plantings, and tests 2013-01-18 16:06:20 +11:00
Skud
8da9a13eae Changed garden.member_id to garden.owner_id 2013-01-13 21:29:28 +11:00
Skud
fdb309cdd2 s/users/members/g -- controllers and their tests 2013-01-13 17:53:24 +11:00
Skud
dd301d1777 improved crop/garden pre-selection in planting form 2012-12-23 10:20:51 +11:00
Skud
02daab4fc1 added crop_id and garden_id params to controller 2012-12-23 10:01:19 +11:00
Skud
0af986021e Generated scaffold for plantings 2012-12-19 13:30:40 +11:00