lib/flammarion/engraving.rb in flammarion_rails-0.2.3 vs lib/flammarion/engraving.rb in flammarion_rails-0.2.4

- old
+ new

@@ -77,10 +77,10 @@ params[:method] = params[:_method] end http_method = (params[:method] ||= :get).to_s.upcase! path_params = recognize_path(uri.path, params.merge!(query_params)) - unless path_params.key?(:controller) + unless path_params && path_params.key?(:controller) raise ActionController::RoutingError, "No route matches [#{http_method}] #{url}" end controller_name = "#{path_params[:controller].underscore.camelize}Controller" controller = ActiveSupport::Dependencies.constantize(controller_name)