Ruby on Rails
Thursday, May 12, 2016
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
On Thursday, May 12, 2016 at 6:19:23 PM UTC+5:30, Ruby-Forum.com User wrote:
-- file: /app/controllers/monitor/pap_tags_controller.rb
module Monitor
class PapTagsController < ApplicationController
...
end
end
On Thursday, May 12, 2016 at 6:19:23 PM UTC+5:30, Ruby-Forum.com User wrote:
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.
--
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/67cccdc6-c907-47d5-aa0d-c6e2748e8f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment