Do you happen to have a filter that is directing all your users (who are not
logged in) to the login page.  That way they are going

/maybies/categories => /login => /maybies/categories => /login ... etc..


Hope that helps,
Jim
http://www.thepeoplesfeed.com/contribute

On Tue, Sep 1, 2009 at 8:01 AM, Vijay Ks
<[email protected]>wrote:

>
> I have a controller file "maybies_controller.rb"
>
> class MaybiesController < ApplicationController
>    def login
>        redirect_to "/maybies/categories"
>    end
>
>    def categories
>        @category = Category.find(:all)
>    end
> end
>
> routes.rb file
> map.connect '/maybies/:login', :controller => 'maybies', :action =>
> 'login'
>
> map.connect '/maybies/:categories', :controller => 'maybies', :action =>
> 'categories'
>
>
> The page is not re directing to categories page. It is getting stucked
> in infinite loop in login page. pls help to resolve
> --
> 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