Commit Graph

23 Commits

Author SHA1 Message Date
Skud
cf7c092220 FGified models/garden tests.
Also tweaked slug generation to be lowercase, and avoid spaces in slugs.
This probably needs more work to handle unusual characters, but I
punted on that for now.
2013-01-13 12:58:26 +11:00
Miles Gould
5d4ba46ce4 Move "is user confirmed" checks into model. 2012-12-28 13:29:46 +00:00
Skud
5f13567dd1 Added stringification for crops
to prevent plantings from having to know too much about the crop model
2012-12-19 21:31:17 +11:00
Skud
0b75494c50 added owner for gardens, and to_s for users 2012-12-19 21:08:32 +11:00
Skud
785aa8b178 Added accessor for 'owner' 2012-12-19 20:52:00 +11:00
Skud
f0b0b79906 made the plantings/ page look less crap 2012-12-19 15:45:57 +11:00
Skud
0af986021e Generated scaffold for plantings 2012-12-19 13:30:40 +11:00
Miles Gould
febd78d77a Use username-yyyymmdd-subject-line slugs. 2012-12-17 12:50:51 +00:00
Miles Gould
b02eced9b7 Include dates in update URLs.
/update/:slug still works, though.
2012-12-15 00:18:53 +00:00
Miles Gould
d2de7bc6f2 Add slugs to updates.
- add column to Update table
 - add a slug to all old updates
 - use slugs in URLs
 - make update slugs unique (we'll need them for delete URLs)
2012-12-15 00:18:46 +00:00
Miles Gould
bf58ff22a6 Give each user a default garden, called "Garden"
- created by an after_create callback on the user object
 - added test on model object
 - changed test of GET /gardens to expect Garden.all
2012-12-11 15:50:28 +00:00
Skud
59083882d6 Merging in changes from dev to mygarden branch 2012-12-05 21:05:40 +11:00
Skud
08302a4864 Randomly display 8 crops on the garden page 2012-11-26 21:34:23 +11:00
Skud
760cf03b2c Fixed tests by getting rid of valid_session 2012-11-26 19:04:43 +11:00
Norman Ancajas
b39ee792b4 give each user a garden. note: tests broken! 2012-11-05 14:29:04 +08:00
Norman Ancajas
77c2e83c64 wrote migration to add test users, fixed tests 2012-11-05 13:03:19 +08:00
Norman Ancajas
f89815b6b3 added gardens table 2012-11-05 11:45:56 +08:00
Skud
3b72a9ed17 Set up friendly IDs for crops aka slugs (eww!) 2012-10-27 15:08:30 +11:00
Miles Gould
1d9c1b14fc Generate scaffold for Crops; refactor tests
Add link to Crops page from index
Refactored index/application tests to better reflect where things are.
2012-10-02 11:32:56 +01:00
Skud
9792abbf87 made user accounts confirmable by email 2012-09-03 13:16:24 +01:00
Skud
dcd4f79bdc You can now login using either username or email 2012-09-03 12:38:58 +01:00
Skud
89cb3c276f added devise and rspec, set up very basic login/signup links on homepage 2012-09-03 10:49:45 +01:00
Cesy Avon
95145f2869 Moving development to top level directory 2012-08-23 10:41:00 -07:00