Rename no_js layout to no_ember

While *sometimes* `no_js` was used for visitors without js (for example
disabling it on your browser) it was also used for some pages that were
disabled to JS capable browsers, including the 404 page.

Even worse, sometimes it was used on pages that *had* Javascript, such
as our `/activate-account` route. It has been renamed to `no_ember` to
indicate what it really is, a layout for the site that doesn't load our
Ember.js application.
This commit is contained in:
Robin Ward
2015-01-15 15:56:53 -05:00
parent e4e239c159
commit 987504c6ab
7 changed files with 11 additions and 11 deletions

View File

@ -126,7 +126,7 @@ class ApplicationController < ActionController::Base
# from the above rescue_from blocks will fail because that isn't valid json.
render status: error, layout: false, text: (error == 404) ? build_not_found_page(error) : message
else
render text: build_not_found_page(error, include_ember ? 'application' : 'no_js')
render text: build_not_found_page(error, include_ember ? 'application' : 'no_ember')
end
end