Skud
b743fe9465
Added friendly IDs for forum and role
2013-02-20 15:51:31 +11:00
Skud
0aab5286f0
General prettification and making it look nice.
...
Also upgraded Bootstrap, just for the hell of it.
2013-02-20 15:42:44 +11:00
Skud
11fa06b56c
show forum name in post meta
2013-02-20 14:54:38 +11:00
Skud
f12941576c
hooked roles up to cancan
...
Now only admins can create/edit forums, or mess with roles.
To add an admin user:
rails c
m = Member.find('skud')
r = Role.create(:name => 'admin')
r.members << m
We'll have to do this on the server to bootstrap the admin stuff.
Though actually, we should really write a rake task to generalise this.
2013-02-20 14:53:11 +11:00
Skud
0bc2ff25fe
Added roles, but haven't yet hooked them up to CanCan
2013-02-19 12:29:22 +11:00
Skud
cdee808933
prettified notifications inbox etc
2013-02-16 01:22:19 +11:00
Skud
4516a2f099
comments now generate notifications
2013-02-16 00:18:49 +11:00
Skud
cc2c63b2eb
added cancan abilities for reading notifications
2013-02-15 23:17:52 +11:00
Skud
b4c6a74caa
Display posts in summary on forum page
...
Also had to tweak timezone config so that "X minutes ago" display
worked. This *may* break tests or who knows what, for devs who are
elsewhere. Let's keep an eye out for that!
2013-02-14 13:35:23 +11:00
gnattery
de85a6dcce
added associations between forums, posts, and members
2013-02-13 15:17:40 +11:00
gnattery
e10ea7f180
rails g scaffold Forum
2013-02-13 12:55:17 +11:00
Miles Gould
42d9034fc6
rails g scaffold notifications.
2013-02-12 13:17:14 +00:00
Skud
192196ae8e
added map to profile.
...
also making sure lat/long are zeroed if location is blanked
2013-02-12 22:38:48 +11:00
Skud
c50a652eb7
geocode locations when saved, using google API
2013-02-12 11:36:33 +11:00
Skud
d37e7a148d
Delete comments when post is deleted
2013-02-08 17:45:37 +11:00
Skud
93edede4da
Merged from mistaken branch on G/g
2013-02-08 16:11:38 +11:00
Skud
363502a807
add show_email field to members
2013-02-06 16:25:17 +11:00
gnattery
6da3e4fae5
Added associations and tested them
2013-02-06 15:20:44 +11:00
gnattery
3cff543184
rails g scaffold Comment
2013-02-06 14:49:49 +11:00
Skud
6113be1e69
sorting gardens alphabetically, so behaviour is clearer
2013-01-28 18:19:59 +11:00
Miles Gould
dc1ab0912f
Order crops case-insensitively by default.
2013-01-25 11:19:15 +00:00
gnattery
9f788ba8df
added friendly IDs for plantings, and tests
2013-01-18 16:06:20 +11:00
gnattery
72f38118d9
Slight tweak to garden slug tests
2013-01-18 15:39:10 +11:00
gnattery
d1e3f8ce32
Added description field to gardens
2013-01-18 15:11:11 +11:00
Skud
501cad39f9
Plantings now show up on members and gardens pages
2013-01-17 15:12:37 +11:00
Skud
7579d894aa
Renamed default garden in /spec/factory/garden
...
"My Garden" was too generic and hard to test for -- tests like
rendered.should contain "Garden" are far too easy to have a false
positive pass. So I renamed it "Springfield Community Garden" so that
false-positive passes were less likely.
2013-01-13 21:32:54 +11:00
Skud
8da9a13eae
Changed garden.member_id to garden.owner_id
2013-01-13 21:29:28 +11:00
Skud
df76f2497a
renamed Post.member_id to Post.author
2013-01-13 20:57:28 +11:00
Skud
689448f87c
renamed Member.username to login_name
2013-01-13 19:14:46 +11:00
Skud
657ccf7cd8
s/users/members/g -- models and tests for them
2013-01-13 17:24:46 +11:00
Skud
21f0f39bf9
Model and controller spec files pass.
...
Views are another matter (and will explode badly at this point)
2013-01-13 16:12:45 +11:00
Skud
576ba289eb
FGified model/update tests
2013-01-13 15:51:09 +11:00
Skud
72bb1a641f
Made the :user factory be confirmed by default.
...
We hardly ever actually need an unconfirmed user, but if we do, there is
now :unconfirmed_user for that purpose.
2013-01-13 13:10:24 +11:00
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
Skud
ecd9cc19fc
FGified models/planting tests
2013-01-13 12:52:57 +11:00
Skud
8b44b97c7e
This doesn't need a confirmed user, just a basic one.
2013-01-13 11:37:13 +11:00
Skud
b1277d4132
FGified user model tests
2013-01-13 11:05:55 +11:00
gnattery
de49c6499a
Added model tests for scientific names
2013-01-11 12:12:41 +11:00
Skud
e854858971
factory-girl-ified models/crop tests
2013-01-11 11:41:51 +11: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
1fc2170a10
Fix Y10K bug in update tests, at @zoeimogen's insistence.
...
See https://twitter.com/zoeimogen/status/280699989674577921
2012-12-17 17:05:31 +00:00
Miles Gould
febd78d77a
Use username-yyyymmdd-subject-line slugs.
2012-12-17 12:50:51 +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
Miles Gould
c3940969c9
Remove "pending" tests
...
Most we deleted, because we couldn't think of any interesting tests to
write.
We added a test for the garden_slug method of Garden.
2012-12-11 00:53:39 +00:00
Skud
59083882d6
Merging in changes from dev to mygarden branch
2012-12-05 21:05:40 +11:00