search for: looper_url

Displaying 1 result from an estimated 1 matches for "looper_url".

2007 Jan 09
10
Writing a breakable loop? If it gets a match it should stop.
...n true, if not it will return false. This method is used to check when someone logs out if they can be redirected to where they are, or if they need to be redirected to the home URL, it protects from an infinite login loop. [code] # true if this is a protected url that would cause a login loop def looper_url?(url) rights = Right.find(:all) for right in rights if url_for(right) == url return true exit end end [/code] This is what I came up with, it doesn''t work but it should be pretty enough to give you an idea of what I''m trying to do. I think the problem is just in m...