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