Fix bug for mobile app routes

This commit is contained in:
chris committed 2013-01-16 08:14:42 +08:00
1 parent 72e26fd92a
commit 91830f86aa
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