Fix bug for mobile app routes

This commit is contained in:
chris committed 2013-02-04 18:01:03 +08:00
1 parent c33a723a2a
commit 87a89f81ce
9 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ class ApplicationController < ActionController::Base
respond_to do |format|
format.html { render :text => parse_page_content(@item), :layout => 'page_layout' }
format.rss { render_main_rss }
format.mobile { redirect_to mobile_path }
format.mobile { redirect_to mobile_path(:app => params[:app]) }
end
else
render :text => '404 Not Found'
+1 -1
View File
@@ -54,7 +54,7 @@ class MobileController < ApplicationController
protected
def no_footer_for_app
@no_footer = true if request.path.starts_with?("/app")
@no_footer = true if request.path =~ /app/
end
end