Refactor diary entries to use create and update methods
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 13:37:23 +0000 (15:37 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 May 2019 13:37:23 +0000 (15:37 +0200)
commitb7893df84ed0de89bff772cd9bf94caf8fcfc383
tree37dbf0601f97a2ec3a4ce3869f1c1db1ebd441c0
parent21bf5d79d680f7dc0447b1b5980ad5ce0a4b830c
Refactor diary entries to use create and update methods

This brings it slightly more into line with resourceful routing.
app/abilities/ability.rb
app/controllers/diary_entries_controller.rb
app/views/diary_entries/edit.html.erb
app/views/diary_entries/index.html.erb
app/views/diary_entries/new.html.erb [new file with mode: 0644]
config/locales/en.yml
config/routes.rb
test/controllers/diary_entries_controller_test.rb
test/controllers/users_controller_test.rb
test/integration/user_diaries_test.rb