[email protected] wrote:
> On 10 Mar., 14:21, Youyou Semsem <[email protected]>
> wrote:
>> [email protected] wrote:
>> > The #request_http_basic_authentication method prompts the user for a
>> > password. Maybe that is the "popup" you're talking about.
>>
>> Yes I confirm that it is. When I remove it. Nothing happens when you
>> click on a link_to_remote (js)
> 
> Then I guess it's because the user is not authenticated. The method is
> called #access_denied, you know. Maybe you're having problems with
> sessions or something similar. Do you have a #logged_in? method, and
> if yes, what does it return?

Thanks rubyguy. It's expected that the user isn't logged in. Let me 
summarize my problem. When the user clicks on a link_to (html) the 
redirection to the login page works fine. But when the user clicks on 
link_to_remote (js) the popup comes into play. Ideally i want the last 
case to redirect to the login page similar to html.

Thanks,
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to