Refactor message creation to use a create action
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Aug 2018 06:18:20 +0000 (14:18 +0800)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Aug 2018 06:18:20 +0000 (14:18 +0800)
commitf38e03f0ed01d7624a6a8ae79234ad1ac3918f2b
treeb6afeb5a2324c1730cf81f1f887beff245526462
parent06915a77b5af2ab0354e895c3c1ceb0e028f37fb
Refactor message creation to use a create action

This makes it more conventional, rather than handling posts to the new action. The posting of the form was also reworked to use a hidden field for the displayname, rather than in the url, again for convention.
app/controllers/messages_controller.rb
app/views/messages/new.html.erb
config/locales/en.yml
config/routes.rb
test/controllers/messages_controller_test.rb