:only keyword added to the layout calls

This commit is contained in:
Pablo Cuadrado 2014-06-28 05:10:52 -03:00
parent c6511c9299
commit 9c5b9b8767
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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