Displaying 2 results from an estimated 2 matches for "webservicecontroller".
2006 May 19
1
Strange error when testing layered web service
...ought to be
looking at http://localhost/webservice/api (on port 3000).
What am I doing wrong? Am I supposed to be setting that somewhere?
Here''s my simple test:
require File.dirname(__FILE__) + ''/../test_helper''
require ''webservice_controller''
class WebserviceController
def rescue_action(e)
raise e
end
end
class HardwareControllerApiTest < Test::Unit::TestCase
fixtures :stuff
def setup
@controller = WebserviceController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new...
2006 Apr 21
8
web services and dealing with before_filter
Hi all,
I''ve got a Rails app with a ApplicationController that looks like this:
class ApplicationController < ActionController::Base
before_filter :authorize, :except => :login
def authorize
unless session[:user]
flash[:notice] = "Please log in"
session[:jumpto] = request.parameters
redirect_to :controller =>