railsでPCと携帯で404ページとかを分けたい場合は ApplicationController で render_optional_error_file を上書きして 404_mobile.html とか作っちゃえばいいんじゃないかな jpmobileの場合はこんな感じ protected def render_optional_error_file(status_code) status = interpret_status(status_code) locale_path = "#{Rails.public_path}/#{status[0,3]}.#{I18n.locale}.html" if I18n.locale if request.try(:mobile?) path = "#{Rails.public_path}/#{status[0,3]}_mobile.html" else path = "#{Rails.public_path}/#{status[0,3]}.html" end if locale_path && File.exist?(locale_path) render :file => locale_path, :status => status, :content_type => Mime::HTML elsif File.exist?(path) render :file => path, :status => status, :content_type => Mime::HTML else head status end end エンコード周りがうまくいかなかったので仕方なくUTF-8にしてます・・・