mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-25 01:13:03 -04:00
Compare commits
2 Commits
release73
...
editabled-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb8014a231 | ||
|
|
c189fa94a7 |
@@ -194,6 +194,7 @@ class CropsController < ApplicationController
|
||||
params.require(:crop).permit(
|
||||
:name, :en_wikipedia_url,
|
||||
:parent_id, :perennial,
|
||||
:sowing_method, :description, :sun_requirements,
|
||||
:request_notes, :reason_for_rejection,
|
||||
:rejection_notes,
|
||||
scientific_names_attributes: %i(scientific_name _destroy id)
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
%span.help-block
|
||||
Link to the crop's page on the English language Wikipedia (required).
|
||||
|
||||
= f.text_area :description
|
||||
= f.text_field :sun_requirements
|
||||
= f.text_field :sowing_method
|
||||
|
||||
-# Only crop wranglers see the crop hierarchy (for now)
|
||||
- if can? :wrangle, @crop
|
||||
= f.collection_select(:parent_id, Crop.all.order(:name), :id, :name,
|
||||
|
||||
Reference in New Issue
Block a user