Hello,
I am having a strange problem w/ rails 3 routing constraints. I have
this custom class w/ a self.matches? method as such:
[code]
class PersonalizedDomain
def self.matches?(request)
Rails.logger.info("self.matches? NEVER CALLED!!!!")
end
[/code]
and in routes I use the custom Class like this:
[code]
constraints(PersonalizedDomain) do
Rails.logger.info("constraints block ENTERED")
root :to => "projects#show"
end
[/code]
The self.matches?(request) method never gets called and I don't understand
why?
--
View this message in context:
http://old.nabble.com/Problem-w--routes-constraints-tp31472374p31472374.html
Sent from the RubyOnRails Users mailing list archive at Nabble.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.