Hello everybody, I've started digging into the CE code recently (I'm
new to ruby on rails) and I've stumbled at a problem: there is a
recently used piece of code like
redirect_to home_path
or
redirect_to user_path(@user)
I assume that home_path and user_path(@user) are defined somewhere,
because they provide redirect_to method with a path argument, but I
can't find where. Can someone point me to the place in code where they
are defined?
I also have another question regarding routing. As far as I
understand, all routing is defined in the routes.rb file. But I can't
understand what rule applies when we enter some invalid path. In this
case we get redirected to either home page or user profile page
(depends on whether we are logged in or not). Can anybody explain what
rule is applied?
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---