Shalon Wood <[email protected]> writes: > Hmm. I'm actually using full urls in each feature, since I do use > subdomains, so would that actually be a problem?
Apparently so; a get to http://playground.playground.pele.cx/login does what it should, but that form (from merb-auth-slice-password) has '/login' for the form's action, and when 'I press "Log In"', it does a post to '/login', rather than the full url: ~ REQUESTING PAGE: GET http://playground.playground.pele.cx/login with {} and HTTP headers {} ~ Started request handling: Sun Jan 25 14:20:54 -0600 2009 ~ Routed to: {"action"=>"unauthenticated", "controller"=>"exceptions"} ~ Params: {"action"=>"unauthenticated", "controller"=>"exceptions"} ~ ESC[4;35;1mStyle Load (0.2ms)ESC[0m ESC[0mSELECT theme FROM `styles` WHERE (user=-1) GROUP BY themeESC[0m ~ {:dispatch_time=>0.003007, :before_filters_time=>0.000309, :action_time=>0.002381, :after_filters_time=>2.2e-05} ~ ~ REQUESTING PAGE: POST /login with {"Submit"=>"Log In", "username"=>"<test user>", "_method"=>"PUT", "password"=>"<test password>"} and HTTP headers {"HTTP_REFERER"=>"http://playground.playground.pele.cx/login"} That doesn't seem right to me -- a browser would have to turn the relative url '/login' into an absolute url, wouldn't it? So shouldn't click_button do that? Shalon Wood --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
