title: Rails: redirect_to :controller=>'tips', :action => 'show', :id => @tip.permalink
body: <p>I tried to redirect rails to show action  by passing controller, action, and params.  However, rails ignores the name of action totally!</p>
  
  <p>what I got is
  <a href="http://mysite/controllername/paramId" rel="noreferrer">http://mysite/controllername/paramId</a></p>
  
  <p>so i have error message....</p>
  
  <p>here is the action code I used:</p>
  
  <pre><code>def update
      @tip = current_user.tips.find(params[:id])
      @tip.attributes = params[:tip]
      @tip.category_ids = params[:categories]
      @tip.tag_with(params[:tags]) if params[:tags]
  
  
      if @tip.save
        flash[:notice] = 'Tip was successfully updated.'
        redirect_to :controller=&gt;'tips', :action =&gt; 'show', :id =&gt; @tip.permalink
      else
        render :action =&gt; 'edit'
      end
    end 
  </code></pre>