search for: forum_topic_path

Displaying 2 results from an estimated 2 matches for "forum_topic_path".

Did you mean: forum_topics_path
2010 Feb 18
1
restful route paths... has something changed?
So I have this resources :forums do resources :topics end But when I try to do this: <%= forum_topics_path(1, 2) %> I get: /forums/1/topics.2 Why the dot? Expecting a slash This is rails3.. so maybe I am doing it wrong to what I''m used to cheers for any info! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 Mar 02
0
polymorphic_path not getting generated
...# Helps keep track of which entity owns this forum end class Topic < ActiveRecord::Base belongs_to :forum end class School < ActiveRecord::Base has_many :forums, :as => :forum_owner end Now in the index.html.erb for forum I had the following line <%= link_to t(:view), forum_topic_path(:forum_id => forum, :id => forum.recent_post.topic_id, :page => forum.recent_post.topic.last_page, :anchor => forum.recent_post.dom_id) %> This line generates "http://127.0.0.1:3001/forums/1/topics/1? page=1#posts-1" as the url. To make it polymorphic, I need the schools i...