Confused about Ruby on Rails REST Routing
I am really confused about Ruby on Rails REST routing. Even though I have specified that after the success it should go to the confirm action it goes to the show action and pass the ID=confirm. 

     def create
        
        @article = Article.new(params[:article])
        
        respond_to do |format|
        if @article.save 
          format.html { redirect_to :action => "confirm" }
        else 
          format.html { render :action => "new" }
        end 
          
        end
        
      end

The error I get is the following: 

ActiveRecord::RecordNotFound in ArticlesController#show

Couldn't find Article with ID=confirm
Rails.root: /Projects/highoncoding

Application Trace | Framework Trace | Full Trace
app/controllers/articles_controller.rb:31:in `show'
Confused about Ruby on Rails REST Routing
===

I am really confused about Ruby on Rails REST routing. Even though I have specified that after the success it should go to the confirm action it goes to the show action and pass the ID=confirm. 

     def create
        
        @article = Article.new(params[:article])
        
        respond_to do |format|
        if @article.save 
          format.html { redirect_to :action => "confirm" }
        else 
          format.html { render :action => "new" }
        end 
          
        end
        
      end

The error I get is the following: 

ActiveRecord::RecordNotFound in ArticlesController#show

Couldn't find Article with ID=confirm
Rails.root: /Projects/highoncoding

Application Trace | Framework Trace | Full Trace
app/controllers/articles_controller.rb:31:in `show'