rubyforgood / applied-conservation

MIT License
7 stars 17 forks source link

Auto-prepopulate target name from target type #40

Closed jgaskins closed 6 years ago

jgaskins commented 6 years ago

This will help grease the wheels when you're choosing a target.

This commit also refactors the TargetsController to use ActiveRecord associations more fluently:

Target.create(project_id: project.id)

# vs

project.targets.create
jtwhittington commented 6 years ago

These are target names - AFAIK target types are one of


Terrestrial Ecosystem
Freshwater Ecosystem
Marine/Estuarine Ecosystem
Animal Species or Assemblage
Plant Species or Community
Other