i have a situation where i want to be able to list records based on certain criteria and I''d like to be able to do something like: /MyApp/user/list/type/4 and /MyApp/user/list/active/1 where these would list users whose type_id = 4 and list users whose active_flag = 1 using link_to "Type 4 Users", :action => :list, :type => 4, i get /MyApp/user/list?type=4 which is not what i want. in UserController, i would have: def list @users = case @params[:criteria] when "type" find(:all, :conditions => ["type_id = ?", @params[:id]]) when "active" find(:all, :conditions => ["active_flag = ?", @params[:id]]) # and so on for other criteria else find(:all) end end i''m guessing in routes.rb, i need to setup something like: map.connect "user/list/:criteria/:id", :controller => "user", :action => "list", :criteria => nil, :id => /\d+/ i''m a little confused on how to create the link. any help would be appreciated. Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails