我的路线
scope :module => "group" do
resources :groups do
resources :topics
end
end
我的模型
class Post < ActiveRecord::Base
belongs_to :group
end
class Group < ActiveRecord::Base
has_many :posts
end
class Group::Topic < Post
end
我的表格:
<%= simple_form_for [@current_group, @topic], :html => {:id => "post_form", :class => 'form-horizontal'} do |f| -%>
end
错误信息是
未定义的方法“group_group_topics_path”