title: Rails3 and Respond_with problem
body: <p>I have an application, on which I have two user interfaces.</p>
  
  <p>The first one is for normal users and the second one is for iphone users.</p>
  
  <p>Everything was working fine until i refactored my code within controller to use the respond_with declarative instead of respond_to.</p>
  
  <p>The application is still working for the html interface(:format => :html) but not on the iphone interface(:format => :iphone).</p>
  
  <p>On the iphone, when I do the following action (:index, :new, :edit, :show) it works.</p>
  
  <p>But when i do (:create, :update, :destroy), I get errors saying the template is not found(create.iphone.haml for example).</p>
  
  <p>On my controller I have </p>
  
  <pre><code>respond_to :html, :iphone
  </code></pre>
  
  <p>And then for example, the edit and the update action</p>
  
  <pre><code>def edit
      @refund = Refund.find(params[:id])
      respond_with(@refund)
    end
    def update
      @refund = Refund.find(params[:id])
      if @refund.update_attributes(params[:refund])
        flash[:notice] = 'Refund was successfully updated.'
      end
      respond_with(@refund, :location =&gt; project_refunds_path(@project))
    end
  </code></pre>
  
  <p>In fact, I would like the :iphone format is handle as :html is ... and not by calling the to_format method as it is specified into the <a href="https://github.com/rails/rails/blob/600a89f2082beadf4af9fe140a1a2ae56386cd49/actionpack/lib/action_controller/metal/responder.rb#L125" rel="nofollow">doc</a>.</p>