Restful Polymorphic Post Path

Hi,

I’m trying to create a link_to_remote whereby it takes me to the
CREATE action of a polymorphic model (points). Ex:

<%= link_to_remote “up”, :url => comment_points_path(item), :method
=> :post %>

That takes me to the show action in the points controller instead of
create.

The routing looks something like:

map.resources :comments do |comment|
comment.resources :points, :name_prefix => ‘comment_’
end
map.resources :articles do |article|
article.resources :points, :name_prefix => ‘article_’
end


Can I do this using a restful route or will I have to do it long hand
(:url => {:controller => “points”, :action => “create”, :comment_id =>
item.id }? I figure I’ve got something slightly off.

Thanks,

Steve

Seems to be working now!