Heinz Strunk | 18 Jul 14:30

Session problem [restful authentication]


Hi,

I just installed "restful_auhtentication" to my application. The
installation iteself went just fine but when i try to access sites that
need authentication I get a strange error message from Firefox (German
so I dont know the original message from Firefox):
Redirecting loop: The website being called is redirecting a request
which cannot be terminated.

When I try to add a new post for example I get redirected to
/session/new and thats where I get that error. Does anybody has a clue
what's wrong here?!

Thanks a bunch,
Cojones
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Shandy Nantz | 18 Jul 16:54

Re: Session problem [restful authentication]


Heinz Strunk wrote:
> Hi,
> 
> I just installed "restful_auhtentication" to my application. The
> installation iteself went just fine but when i try to access sites that
> need authentication I get a strange error message from Firefox (German
> so I dont know the original message from Firefox):
> Redirecting loop: The website being called is redirecting a request
> which cannot be terminated.
> 
> When I try to add a new post for example I get redirected to
> /session/new and thats where I get that error. Does anybody has a clue
> what's wrong here?!
> 
> Thanks a bunch,
> Cojones

Is 'new' the name of the method name and not the name of the page? It 
sounds like maybe you aren't redirecting correctly?
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

Heinz Strunk | 18 Jul 17:46

Re: Session problem [restful authentication]


Shandy Nantz wrote:
> 
> Is 'new' the name of the method name and not the name of the page? It 
> sounds like maybe you aren't redirecting correctly?

Well, I did it like always, SessionController:
  # render new.rhtml
  def new
  end

new.rhtml.erb is located in Views\sessions and routes does have 
following entry:
map.resource :session

Quite normal I guess?
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Heinz Strunk | 19 Jul 12:02

Re: Session problem [restful authentication]


I'm desperate... any ideas?!
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Heinz Strunk | 19 Jul 16:06

Re: Session problem [restful authentication]


Added skip_before_filter :login_required to the SessionsController, 
problem solved.
--

-- 
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 rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane