given a blog style application:
#models
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
end
#routes.rb
map.resources :posts do |posts|
posts.resources :comments
end
how do I generate routes to an id on a page? Examples
/posts/1#comments
/posts/2#comment14