nested_set icon indicating copy to clipboard operation
nested_set copied to clipboard

Getting an error whilst using with Rails Admin

Open robbied72 opened this issue 12 years ago • 2 comments

Hi All,

Seem to be getting this error whilst creating a page in my Rails Admin CMS -

Unauthorized assignment to lft: it's an internal field handled by acts_as_nested_set code, use move_to_* methods instead.

Full Page Code -

 ActiveRecord::ActiveRecordError in RailsAdmin::MainController#new

 Unauthorized assignment to lft: it's an internal field handled by acts_as_nested_set code, use move_to_* methods instead.

 Rails.root: /Users/Robbie/VSWeb/ecoslide
 Application Trace | Framework Trace | Full Trace

 Request

 Parameters:

{"utf8"=>"✓",
 "authenticity_token"=>"eSnjsMt/Ukbf7pltwc6TtJlooxKcimJPHMueTIJzod0=",
 "page"=>{"menu"=>"About",
 "title"=>"About ECOSlide",
 "slug"=>"",
 "content"=>"<pre>\r\nUnauthorized assignment to lft: it&#39;s an internal field handled by acts_as_nested_set code,
 use move_to_* methods instead.</pre>\r\n",
 "metakw"=>"",
 "metadesc"=>"",
 "parent_id"=>"",
 "lft"=>"0",
 "rgt"=>"0",
 "page_order"=>"2",
 "active"=>"1"},
 "return_to"=>"http://ecoslide.dev/ecoadmin/page",
 "_save"=>"",
 "model_name"=>"page"}

Show session dump

Show env dump
Response

Headers:

None

Help would be appreciated

Regards

Robbie

robbied72 avatar May 02 '12 11:05 robbied72

i finnaly find this; change

project.update_attributes(project.attributes)

to

project.save

geron-cn avatar Jul 25 '12 09:07 geron-cn

@robbied72 so you may close it or no?

mibamur avatar Feb 16 '14 20:02 mibamur