Routing error

Hi all,

for first sorry for my english.

I’ve a Rails app with a namespaced route that works fine on localhost
but does not work on remote Server.

This is my error:

ActionController::RoutingError (uninitialized constant
Monitor::PapTagsController):

My routes.rb

namespace :monitor do
resources :pap_tags do
resources :pap_tag_rules
end
end

file is: pap_tags_controller.rb

class PapTagsController < ApplicationController

end

It’s very strange, can you help me?

thanks.

Your PapTagsController should be inside monitor module. I don’t how it
worked in local server without that.

file: /app/controllers/monitor/pap_tags_controller.rb

module Monitor
class PapTagsController < ApplicationController

end
end

What routing error are you getting on the server?

On 12 May 2016 1:49 p.m., “Yuri R.” [email protected] wrote:

ActionController::RoutingError (uninitialized constant
file is: pap_tags_controller.rb
Posted via http://www.ruby-forum.com/.


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/bb7068001ae39b25499e6845a1c6c8dd%40ruby-forum.com
.