title: Render page and pass parameters
body: <p>I have three html pages.</p>
  
  <ul>
  <li>In the <strong>first page</strong>, I  view the list of data.</li>
  <li>In the <strong>second page</strong>, I view the data of a particular element of the list.</li>
  <li>In the <strong>third page</strong>, the user can edit data of a particular element of the list.</li>
  </ul>
  
  <p>When the user submits the 'form', how can I redirect the user in the second page? I tried in this way:</p>
  
  <pre><code>render :action =&gt; "show_details",:id=&gt;params[:id]
  </code></pre>
  
  <p>It  works. The link is correct. But the page is not opened if I do not refresh the page.</p>
  
  <p><strong>UPDATE I</strong></p>
  
  <p>I write my code in this action in the reports controller:</p>
  
  <pre><code> def setFixed
      rs=Report.find(params[:id])
      rs.state ="1"
      rs.save
      render :action =&gt; "show_details",:id=&gt;params[:id]
    end
  </code></pre>
  
  <p><strong>UPDATE II</strong>
  Reports controller code:</p>
  
  <pre><code>class ReportsController &lt; ApplicationController
  
    before_filter :authenticate_user, :only =&gt; [:index,:show,:show_details,:new]
  
    def stateDialog
      render :stateDialog, :current_state=&gt;params[:current_state]
    end
  
    def setFixed
      rs=Report.find(params[:id])
      rs.state ="1"
      rs.save
      render :action=&gt;"show_details",:id=&gt;params[:id]
    end
  
    def setNotFixed
      rs=Report.find(params[:id])
      rs.state ="0"
      rs.save
      render :action=&gt;"show_details",:id=&gt;params[:id]
    end
  
    def edit
      @report=Report.find(params[:id])
    end
  
    def update
      @report = Report.find(params[:id])
        if @report.update_attributes(params[:report])
          flash[:notice]=''
          render :action=&gt;"show_details",:id=&gt;params[:id]
        else
          flash[:notice]=''
          render :action=&gt;"show_details",:id=&gt;params[:id]
        end
    end
  
    def deleteDialog
      render "deleteDialog"
    end
  
    def focus_maps
      render "focus_maps"
    end
  
    def delete
      Report.find(params[:id]).destroy
      render "show"
    end
  
    def index
      @report=Report.new
    end
  
    def logged
      render "new"
    end
  
    def show
      render params[:page]
    end
  
    def new
      @report=Report.new
    end
  
    def show_details
      render "show_details"
    end
  
  
    def create
      @report=Report.new( params[:report] )
  
      if @report.save
         flash[:notice]='Segnalazione avvenuta!'
      else
         flash[:notice]='Impossibile sottoporre la segnalazione!'
      end
  
      render "show"
  
    end
  end
  </code></pre>