I'm not quite sure if this is what you are looking for, but:
One option is to create a route
match ':community_name' => 'users#show_users_for_community'
and then in UserController
def show_users_for_community
@community = Community.find_by_name(params[:community_name])
<do what you need to do here>
end
, URL- - . , , , .