Extjs on rails - return value

working on extjs on rails for tree structure
when creating a node, no value should be returned to the json
its giving an alert of the return value

def additem
@return_val = Tree.new(:parent_id=>params[:parentID],:node_name=>‘New
return_data = ‘’
render :text=>return_data.to_json, :layout=>false

can anyone help to figure out the problem please!!

Thanks in advance!!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs