Handling incoming REST XML problem


That is strange, I would have thought that the first one would work.
Are you sure you are running edge and have simply_restful installed ?

I have found that one of the best REST apps to learn from is RestoLog :


I would go through their code and see where it differs to yours. Their
create statement goes like this :

# gets called when for POSTs to /articles
  def create
    @article = Article.new(params[:article])
    @article.user = current_user
    respond_to do |format|
      format.html do
        flash[:notice] = "Article was successfuly created"
        redirect_to article_url(@article)
      format.xml do
        headers["Location"] = article_url(@article)
        render :nothing => true, :layout => false, :status => "201
      # format.js
    respond_to do |format|
      format.html { render :action => 'new' }

I hope this puts you in the right direction. Sorry I can't be of more

Kind Regards

Ingo Weiss wrote: