Skip to content


Very minor change in title() method. #114

merged 1 commit into from

2 participants


Swapped order of operations inside title(), fixes strange 'true' being printed to the screen in Rails 3.0.9. I wish I could say why this works, but it was just an instinct to try it while debugging.

@ryanb ryanb merged commit 4fc8d25 into ryanb:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 29, 2011
  1. @walterdavis

    Swapped order of operations in title, fixes strange 'true' being prin…

    walterdavis committed
    …ted to the screen in Rails 3.0.9
Showing with 1 addition and 1 deletion.
  1. +1 −1 rails_generators/nifty_layout/templates/helper.rb
2 rails_generators/nifty_layout/templates/helper.rb
@@ -4,8 +4,8 @@
# helper :layout
module LayoutHelper
def title(page_title, show_title = true)
- @content_for_title = page_title.to_s
@show_title = show_title
+ @content_for_title = page_title.to_s
def show_title?
Something went wrong with that request. Please try again.