I'm using the apn_on_rails gem, that has few models under a namespace named APN.
What is the correct way to generate a scaffold controller for the APN::Device model and route to it correctly?
rails g scaffold a_p_n::Device ...
which will generate this model for you:
class APN::Device < ActiveRecord::Base end
and it will generate routes for you:
namespace :a_p_n do resources :devices end