Vote #66884
完了Parent select on Wiki rename page
0%
説明
I wont to add parent selection combobox on rename page, but when I change field type from text_field to collection_select string "Parent page" removed :(, how can I fix it?
!select-in-rename.png!
My patch for app/views/wiki/rename.rhtml
9c9 <<%= f.text_field :parent_title, :size => 100 %>
--- ><%= f.collection_select :parent_title, WikiPage.find(:all, :conditions => ["id <> ? ", @page.id ]), :title, :pretty_title, {:prompt => ""} %>
P.S.
I am novice in RoR
journals
--------------------------------------------------------------------------------
Feature added in r4375. The combo shows the page hierarchy.
--------------------------------------------------------------------------------
related_issues
duplicates,Closed,3617,Selecting wiki page parent from a list