<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body>
No problem. Re prev question, I was using cucumber to test that a link
was redirecting through to a page with a query string:<br>
<br>
When I follow "a link"<br>
Then I should be on the search page with search terms "london"<br>
<br>
And I was getting:<br>
<br>
expected "/search?terms=london"<br>
got "/search"<br>
<br>
After a bit of hair pulling, I found out that the 'Then I should be on'
step was removing the query string before testing the path. This might
have been changed in later versions of cucumber but I haven't tried.<br>
<br>
I was just wondering if you were having the same issue... guess not.<br>
<br>
<br>
Will<br>
<br>
<br>
<br>
On 28/04/2010 17:18, Riccardo Tacconi wrote:
<blockquote
cite="mid:o2r2afc4b3c1004280918p70503951z883cdb5f88e46735@mail.gmail.com"
type="cite">Ok, Thanks Will, I will check that. I am not sure I
understood your prev. question:<br>
<br>
"This might be a complete red herring, but I've had issues with the
query string being dropped from a path with automated tests. Did you
you try it in a browser?"<br>
<br>
Do you mean trying the redirect in my broswser? Yes, I am testing it
with the browser.<br>
<br>
<div class="gmail_quote">On Wed, Apr 28, 2010 at 5:11 PM, Will
Tomlins <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:will.tomlins@unboxedconsulting.com">will.tomlins@unboxedconsulting.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
:status is a reserved keyword, it's used to set the status code (404
etc.) That's probably why it's not working.
<div>
<div class="h5"><br>
<br>
<br>
<br>
On 28/04/2010 17:08, Riccardo Tacconi wrote:
<blockquote type="cite">yes there are nil I did not check that but
now I get:<br>
<br>
You are being <a moz-do-not-send="true"
href="http://localhost:3000/management/questions/120?participant_id=95"
target="_blank">redirected</a>.<br>
<br>
<div class="gmail_quote">On Wed, Apr 28, 2010 at 4:53 PM, Matthew
Rudy Jacobs <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:matthewrudyjacobs@gmail.com" target="_blank">matthewrudyjacobs@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">that
should
work<br>
are params[:status] and params[:participant] nil in your use-case?<br>
<br>
<div class="gmail_quote">
<div>
<div>On 28 April 2010 23:51, Riccardo Tacconi <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:rtacconi@gmail.com" target="_blank">rtacconi@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>With this code:<br>
<br>
redirect_to(<br>
:controller => "management",<br>
:action => "questions",<br>
:id => @question.configuration_id,<br>
:participant_id => params[:participant_id],<br>
:status => params[:status]<br>
)<br>
<br>
I am trying to redirect to a url similar to this one: <a
moz-do-not-send="true"
href="http://localhost:3000/management/questions/120?participant_id=95&status=HOST_INBOX"
target="_blank">http://localhost:3000/management/questions/120?participant_id=95&status=HOST_INBOX</a><br>
<br>
But I get redirected to: <a moz-do-not-send="true"
href="http://localhost:3000/management/questions/120" target="_blank">http://localhost:3000/management/questions/120</a><br>
<br>
>From Rails's API seems that it is possible to have that redirect
only
using:<br>
<br>
redirect_to(<br>
"/management/answers/8742?participant_id=95&status=HOST_INBOX_READ"<br>
)<br>
<br>
Is that correct?<br>
<br>
Thanks,<br clear="all">
<br>
-- <br>
Riccardo Tacconi<br>
Web developer at Wolseley UK <br>
VIRTUELOGIC LIMITED (Director)<br>
<br>
<a moz-do-not-send="true"
href="http://www.linkedin.com/in/riccardotacconi" target="_blank">http://www.linkedin.com/in/riccardotacconi</a><br>
<a moz-do-not-send="true"
href="http://riccardotacconi.blogspot.com/" target="_blank">http://riccardotacconi.blogspot.com/</a><br>
<a moz-do-not-send="true" href="http://twitter.com/rtacconi"
target="_blank">http://twitter.com/rtacconi</a><br>
Linux user: #400461<br>
<br>
</div>
</div>
_______________________________________________<br>
Chat mailing list<br>
<a moz-do-not-send="true" href="mailto:Chat@lists.lrug.org"
target="_blank">Chat@lists.lrug.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br>
</blockquote>
</div>
<br>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a moz-do-not-send="true" href="mailto:Chat@lists.lrug.org"
target="_blank">Chat@lists.lrug.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Riccardo Tacconi<br>
Web developer at Wolseley UK <br>
VIRTUELOGIC LIMITED (Director)<br>
<br>
<a moz-do-not-send="true"
href="http://www.linkedin.com/in/riccardotacconi" target="_blank">http://www.linkedin.com/in/riccardotacconi</a><br>
<a moz-do-not-send="true"
href="http://riccardotacconi.blogspot.com/" target="_blank">http://riccardotacconi.blogspot.com/</a><br>
<a moz-do-not-send="true" href="http://twitter.com/rtacconi"
target="_blank">http://twitter.com/rtacconi</a><br>
Linux user: #400461<br>
<pre><fieldset></fieldset>
_______________________________________________
Chat mailing list
<a moz-do-not-send="true" href="mailto:Chat@lists.lrug.org"
target="_blank">Chat@lists.lrug.org</a>
<a moz-do-not-send="true"
href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Chat mailing list<br>
<a moz-do-not-send="true" href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a moz-do-not-send="true"
href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Riccardo Tacconi<br>
Web developer at Wolseley UK <br>
VIRTUELOGIC LIMITED (Director)<br>
<br>
<a moz-do-not-send="true"
href="http://www.linkedin.com/in/riccardotacconi">http://www.linkedin.com/in/riccardotacconi</a><br>
<a moz-do-not-send="true" href="http://riccardotacconi.blogspot.com/">http://riccardotacconi.blogspot.com/</a><br>
<a moz-do-not-send="true" href="http://twitter.com/rtacconi">http://twitter.com/rtacconi</a><br>
Linux user: #400461<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Chat mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a>
</pre>
</blockquote>
<br>
</body>
</html>