Update device_controller.rb

typo MessagesController should have been DeviceController