[LRUG] redirect_to with additional parameters
Riccardo Tacconi
rtacconi at gmail.com
Wed Apr 28 09:12:16 PDT 2010
the redirect_to redirect my browser to (status is still missing, it seems
still nil)
<body>You are being <a
href="http://localhost:3000/management/questions/120?participant_id=95
<view-source:http://localhost:3000/management/questions/120?participant_id=95>">redirected</a>.</body>
On Wed, Apr 28, 2010 at 5:10 PM, Kenneth Lee <kenfodder at gmail.com> wrote:
> Where are you seeing that?
>
> Riccardo Tacconi wrote:
>
> yes there are nil I did not check that but now I get:
>
> You are being redirected<http://localhost:3000/management/questions/120?participant_id=95>
> .
>
> On Wed, Apr 28, 2010 at 4:53 PM, Matthew Rudy Jacobs <
> matthewrudyjacobs at gmail.com> wrote:
>
>> that should work
>> are params[:status] and params[:participant] nil in your use-case?
>>
>> On 28 April 2010 23:51, Riccardo Tacconi <rtacconi at gmail.com> wrote:
>>
>>> With this code:
>>>
>>> redirect_to(
>>> :controller => "management",
>>> :action => "questions",
>>> :id => @question.configuration_id,
>>> :participant_id => params[:participant_id],
>>> :status => params[:status]
>>> )
>>>
>>> I am trying to redirect to a url similar to this one:
>>> http://localhost:3000/management/questions/120?participant_id=95&status=HOST_INBOX
>>>
>>> But I get redirected to: http://localhost:3000/management/questions/120
>>>
>>> >From Rails's API seems that it is possible to have that redirect only
>>> using:
>>>
>>> redirect_to(
>>>
>>> "/management/answers/8742?participant_id=95&status=HOST_INBOX_READ"
>>> )
>>>
>>> Is that correct?
>>>
>>> Thanks,
>>>
>>> --
>>> Riccardo Tacconi
>>> Web developer at Wolseley UK
>>> VIRTUELOGIC LIMITED (Director)
>>>
>>> http://www.linkedin.com/in/riccardotacconi
>>> http://riccardotacconi.blogspot.com/
>>> http://twitter.com/rtacconi
>>> Linux user: #400461
>>>
>>> _______________________________________________
>>> Chat mailing list
>>> Chat at lists.lrug.org
>>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>
>>
>>
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
>
>
> --
> Riccardo Tacconi
> Web developer at Wolseley UK
> VIRTUELOGIC LIMITED (Director)
>
> http://www.linkedin.com/in/riccardotacconi
> http://riccardotacconi.blogspot.com/
> http://twitter.com/rtacconi
> Linux user: #400461
>
> ------------------------------
>
> _______________________________________________
> Chat mailing listChat at lists.lrug.orghttp://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
--
Riccardo Tacconi
Web developer at Wolseley UK
VIRTUELOGIC LIMITED (Director)
http://www.linkedin.com/in/riccardotacconi
http://riccardotacconi.blogspot.com/
http://twitter.com/rtacconi
Linux user: #400461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100428/4d43b22e/attachment-0003.html>
More information about the Chat
mailing list