I am trying to test the mobile way .. using mobile_fu and adding the :mobile format most of my test code is running adding :format => :mobile when necessary, but I wonder how when a controller respond to the :mobile format, the routing can use the request format In this test case ( contact form) , when the request is coming from a mobile, redirect_to new_contact_url is still using :html thanks for feedback has_mobile_fu respond_to :html, :mobile, :tablet def new @contact = ContactForm.new() end def create destination = Rails.configuration.contact_address @contact = ContactForm.new(subject: I18n.t("mail_form.contact_form_subject"), destination: destination, name: params[:contact_form][:name], email: params[:contact_form] [:email], message: params[:contact_form][:message]) if @contact.save flash[:notice] = t(:message_send) @contact = ContactForm.new() redirect_to new_contact_url else render :new end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.