Skud
b86014b04f
attempting to fix libv8 problem occurring on heroku
2014-04-28 13:02:23 +10:00
Skud
66a7dca5ab
apparently leaflet.ie isn't a thing any more?
...
https://github.com/Leaflet/Leaflet/issues/2159
2014-04-28 12:54:07 +10:00
Skud
14318ec235
Merge pull request #342 from pozorvlak/harvest_grams
...
Allow harvesting non-integer quantities.
2014-04-28 11:02:08 +10:00
Miles Gould
79f96f5ef4
Insist that crops created by db:seed are new.
...
This shaves 2s off the 22s runtime of `rake db:seed` on my machine.
2014-01-10 18:11:27 +00:00
Miles Gould
deb706607e
Explain step="any" in harvest _form view.
2014-01-05 12:27:10 +00:00
Miles Gould
96675e2eca
Allow harvesting non-integer quantities.
...
Some browsers (grrr Firefox for Android grrrr) assume "number" means
"integer" unless you specify `step="any"`. Perhaps the developers were
inspired by Kronecker?
http://mathoverflow.net/questions/34445/meaning-of-kroneckers-comment-to-lindemann
This was reported as a bug for non-integer weights; I've allowed
non-integer quantities in the other field, because some allowable units
(eg litres) are obviously divisible.
2014-01-03 21:03:01 +00:00
pozorvlak
06f1d9cb7e
Merge pull request #338 from Skud/crop-mentions
...
Crop mentions
2014-01-02 03:16:40 -08:00
Miles Gould
338a7512e8
Explain reordering of plant_parts in a comment.
2014-01-02 11:04:57 +00:00
Miles Gould
18ccb0d9fb
Merge branch 'dev' into harvest-parts
...
Conflicts:
spec/models/harvest_spec.rb
2013-12-03 13:25:18 +00:00
Miles Gould
2a260abf05
Fix Postgres problem with PlantParts#crops
...
Postgres complains if the ORDER BY clause of a SELECT DISTINCT query is
not precisely one of the SELECTed fields. The default sort order on
crops is lower(name), and Postgres is not smart enough to notice that it
can calculate this from fields which are selected. The solution is to
override PlantParts#crops to remove the ORDER BY clause, and replace it
with `ORDER BY name`. This is not perfect, because it means the crops
associated to plant parts will not be sorted in the same order as crops
on the rest of the site.
2013-12-03 12:56:57 +00:00
Skud
9c899e80a3
Updated help text for markdown
2013-11-11 11:11:12 +11:00
Skud
8620236cb0
Use growstuff markdown everywhere (except policy)
2013-11-11 10:33:20 +11:00
Skud
ce7bf82336
Make growstuff markdown actually work
2013-11-11 10:20:52 +11:00
Skud
c575638962
Added harvests and plant parts to crops CSV
2013-11-06 12:00:36 +11:00
Skud
5afaea90b9
Added plant part to harvest CSV
2013-11-06 11:23:52 +11:00
Skud
60eb4c7296
Show aggregate 'grown from' data on crop page
2013-11-06 11:21:08 +11:00
Skud
838f3c6e36
Add plant parts to harvest views
2013-11-06 10:45:03 +11:00
Skud
a1ea1fd9c1
prettify plant part views
2013-11-06 10:39:32 +11:00
Skud
ba27bb6490
plant parts have crops through harvests
2013-11-06 10:38:50 +11:00
Skud
ac5027ec27
Can't delete plant parts that are being used
2013-11-06 10:38:28 +11:00
Miles Gould
084bdc4f40
Add friendly URLs to plant parts.
2013-10-31 00:19:48 +00:00
Miles Gould
e9a3c0f4ee
rails g scaffold PlantPart...
...
Also migration to remove the string plant_part.
2013-10-30 23:32:20 +00:00
Skud
94cb16acbd
List inactive gardens separately
2013-10-31 09:29:38 +11:00
Skud
eb8497e1fb
Add RSS link to crops index page
2013-10-31 09:25:23 +11:00
Skud
315da26542
Don't show garden location if blank
2013-10-31 09:23:39 +11:00
Skud
26bd744d31
Improve help wording for garden location
2013-10-31 09:18:38 +11:00
pozorvlak
85f132edff
Merge pull request #335 from Skud/crop-harvests
...
Show harvests on crop page
2013-10-29 04:31:27 -07:00
Skud
40eac92013
Moved help text so it flows more nicely
2013-10-29 17:33:02 +11:00
Skud
5302dd58b1
Added pollen as a harvestable plant part
2013-10-29 17:31:16 +11:00
Skud
f90da16cb1
Added plant part to harvest form
2013-10-29 17:29:01 +11:00
Skud
7a5bfa5e07
Added 'other' and 'whole plant' to harvestable plant parts
2013-10-29 17:28:51 +11:00
Skud
721692277d
Added plant_part validation to harvest model
2013-10-29 17:17:12 +11:00
Skud
f89c5e5b86
Added plant_part attribute to harvest
2013-10-29 17:00:32 +11:00
Skud
9917b3a489
Show harvests in crop page sidebar
...
Also tweaked seed display to make them more consistent.
2013-10-29 16:23:17 +11:00
Skud
8dcd3932fa
Added a partial to display a member's location.
2013-10-29 16:22:48 +11:00
Skud
0ae0e54369
Sort harvests by created_at DESC
2013-10-29 15:17:01 +11:00
Skud
3494651685
Fixed quantity display bug
2013-10-29 15:02:32 +11:00
Skud
e26544f5ad
Added owner link to the garden page
2013-10-25 23:51:08 +11:00
Skud
86aae6534b
Default garden location to the owner's location, if known
2013-10-25 23:25:23 +11:00
Skud
1798696a7b
Don't allow planting in inactive gardens
2013-10-25 23:07:48 +11:00
Skud
60392c30ce
Only list active gardens in planting form
2013-10-25 23:05:22 +11:00
Skud
dcf5855643
Added new fields to gardens index
2013-10-25 23:01:23 +11:00
Skud
aee0adde43
Added active/inactive scopes
2013-10-25 22:58:40 +11:00
Skud
96b5a6cd94
Added new garden fields to gardens/show
2013-10-25 22:48:02 +11:00
Skud
aee35aeeca
Added new fields to garden form
2013-10-25 22:32:40 +11:00
Skud
803f8244c9
Added various fields to garden
...
- active (default: true)
- location, latitude and longitude (because when you move house, you
don't take your garden with you)
- area and area units (square feet or metres)
2013-10-25 21:54:13 +11:00
Skud
0aa0c38f1f
Removed intentional errors accidentally left in when testing better_errors
2013-10-25 12:34:13 +11:00
Skud
52716df6e9
Fixing up confused crop names from two recent pull requests
2013-10-25 12:26:58 +11:00
Skud
a25ba32476
Merge branch 'system_name_to_name' of https://github.com/pozorvlak/growstuff into pozorvlak-system_name_to_name
...
Conflicts:
db/seeds.rb
2013-10-25 12:14:01 +11:00
Skud
22df0a43fd
Merge pull request #328 from Skud/crop-csv-upload
...
Crop csv upload
2013-10-24 18:07:09 -07:00