You can clone with
HTTPS or Subversion.
When trying to save an object I get the following error
Can't mass-assign protected attributes: parent_id
In the form I've used code from the wiki
<%= f.label :parent_id %><br />
<%= f.collection_select :parent_id, @pages, :id, :name_for_selects, :include_blank => true %>
And in my create method I have
@page = Page.new(params[:page])
The debut post shows my form values
I've followed the readme to include has_ancestry in my Page model. It also fails with the same error from console
Page.create! :title => 'Test', :parent => Page.create!(:title=>'Test Parent')
What am I missing?
Have you got attr_accessible :parent_id in your Page model?
Ah for some reason I thought that would be bad. Yes it works with that in attr accessible