From 9c5b9b8767f19e8a562803e0c11c84d5b6433694 Mon Sep 17 00:00:00 2001 From: Pablo Cuadrado Date: Sat, 28 Jun 2014 05:10:52 -0300 Subject: [PATCH] :only keyword added to the layout calls --- app/controllers/profiles_controller.rb | 2 +- app/controllers/services_controller.rb | 2 +- app/controllers/users_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 0f7d62604..4a78e21d4 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -6,7 +6,7 @@ class ProfilesController < ApplicationController before_filter :authenticate_user!, :except => ['show'] 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 :js, :only => :update diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index f33f87e22..69fc83a0e 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -10,7 +10,7 @@ class ServicesController < ApplicationController before_filter :abort_if_already_authorized, :abort_if_read_only_access, :only => :create 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 :json, :only => :inviter diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 059dfc7fb..ef0ec6d14 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -6,7 +6,7 @@ class UsersController < ApplicationController before_filter :authenticate_user!, :except => [:new, :create, :public, :user_photo] 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