title: Rails How to fix Missing mobile template?
body: <p>i'm trying to update the user information when on mobile but rails log show:</p>
  
  <p>someone know why this happen on mobile mode?</p>
  
  <blockquote>
    <p>Missing template users/update, application/update with
    {:locale=>[:"en"], :formats=>[:mobile], :handlers=>[:erb, :builder, 
    :coffee]}. Searched in:</p>
  </blockquote>
  
  <pre><code>def update
      @user = User.find(params[:id])
      respond_to do |format|
        format.html do
          @states = State.all
          @cities = City.where('state_id = ?', State.first.id)
          if @user.update_attributes(params[:user])
            redirect_to(action: :edit, id: @user, only_path: true, format: :html)
            flash[:notice] = 'updated'
  
          else
            render :edit
          end
        end
        format.json do
          @user.update_attributes(params[:user])
          render nothing: true
        end
      end
    end
  </code></pre>