:only keyword added to the layout calls
This commit is contained in:
parent
c6511c9299
commit
9c5b9b8767
3 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ class ProfilesController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => ['show']
|
before_filter :authenticate_user!, :except => ['show']
|
||||||
before_filter -> { @css_framework = :bootstrap }, only: [:show, :edit]
|
before_filter -> { @css_framework = :bootstrap }, only: [:show, :edit]
|
||||||
|
|
||||||
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
|
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:show, :edit]
|
||||||
|
|
||||||
respond_to :html, :except => [:show]
|
respond_to :html, :except => [:show]
|
||||||
respond_to :js, :only => :update
|
respond_to :js, :only => :update
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class ServicesController < ApplicationController
|
||||||
before_filter :abort_if_already_authorized, :abort_if_read_only_access, :only => :create
|
before_filter :abort_if_already_authorized, :abort_if_read_only_access, :only => :create
|
||||||
before_filter -> { @css_framework = :bootstrap }, only: [:index]
|
before_filter -> { @css_framework = :bootstrap }, only: [:index]
|
||||||
|
|
||||||
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
|
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:index]
|
||||||
|
|
||||||
respond_to :html
|
respond_to :html
|
||||||
respond_to :json, :only => :inviter
|
respond_to :json, :only => :inviter
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ class UsersController < ApplicationController
|
||||||
before_filter :authenticate_user!, :except => [:new, :create, :public, :user_photo]
|
before_filter :authenticate_user!, :except => [:new, :create, :public, :user_photo]
|
||||||
before_filter -> { @css_framework = :bootstrap }, only: [:privacy_settings, :edit]
|
before_filter -> { @css_framework = :bootstrap }, only: [:privacy_settings, :edit]
|
||||||
|
|
||||||
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }
|
layout ->(c) { request.format == :mobile ? "application" : "with_header_with_footer" }, only: [:privacy_settings, :edit]
|
||||||
|
|
||||||
use_bootstrap_for :getting_started
|
use_bootstrap_for :getting_started
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue