]> git.openstreetmap.org Git - rails.git/commit
Refactor diary entry form
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 14:09:14 +0000 (16:09 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 14:09:14 +0000 (16:09 +0200)
commit1b1d90a0f951a4aa26a6cb6f912a35efd5762962
treee1d4ee4e41ee40e445444fce7b90fd086f601403
parentfbcd2bc10a5f97a1ecd5d6d76a039ebd85365d2e
Refactor diary entry form

This uses the built-in helpers for naming form elements, rather than
having to override with specific i18n labels. It also changes the label
to 'Update', and capitalizes the title on the edit page.
app/views/diary_entries/_form.html.erb [new file with mode: 0644]
app/views/diary_entries/edit.html.erb
app/views/diary_entries/new.html.erb
config/locales/en.yml
test/controllers/diary_entries_controller_test.rb