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 Folder'') @return_val.save return_data = '''' render :text=>return_data.to_json, :layout=>false end can anyone help to figure out the problem please!! Thanks in advance!! Nesan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---