Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Getting an error whilst using with Rails Admin #48

Open
robbied72 opened this issue May 2, 2012 · 2 comments
Open

Getting an error whilst using with Rails Admin #48

robbied72 opened this issue May 2, 2012 · 2 comments

Comments

@robbied72
Copy link

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

@geron-cn
Copy link

i finnaly find this;
change

project.update_attributes(project.attributes)

to

project.save

@mibamur
Copy link

mibamur commented Feb 16, 2014

@robbied72 so you may close it or no?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants