hej mam tak zdefiniowany routing:
namespace :mobile do
get 'bestcoolfunmobileads' => 'mobile#bestcoolfunmobileads', :as => :bestcoolfunmobileads
end
w katalogu app/controllers/mobile/ mam kontroler:
mobile_controller.rb
class Mobile::MobileController < ApplicationController
def bestcoolfunmobileads
end
end
Kiedy wywoluje callback: http://localhost:3000/mobile/bestcoolfunmobileads
dostaje error:
[code]Routing Error
uninitialized constant MobileController[/code]
rake routes:
mobile_bestcoolfunmobileads GET /mobile/bestcoolfunmobileads(.:format) {:action=>"bestcoolfunmobileads", :controller=>"mobile/mobile"}