New node id is now returned complete
This commit is contained in:
parent
f75401ae29
commit
19f05fbf8d
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class NodeController < ApplicationController
|
|||
node.user_id = @user.id
|
||||
node.visible = 1
|
||||
if node.save_with_history
|
||||
render :text => node.id
|
||||
render :text => node.id.to_s
|
||||
else
|
||||
render :nothing => true, :status => 500
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue