search for: publicprofileconstraint

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

2012 Mar 05
1
Twitter like route
...og there is something I don''t like... When I hit /gregory this is what is happenning: 1. Going to public_profile#public # Good 2. hitting /assets and trying to find a user with asset token # Not good I thought my constraints would avoid this but it doesn''t seem like it... class PublicProfileConstraint def self.matches?(request) [''assets'', ''admin''].include?(request.session[:token]) end end get "/:token" => "profiles#public", :as => :public_profile, :constraints => PublicProfileConstraint Here is the log: Started GET...