lucasrenan/updated-by — Issue #6: Messed up with my title() method (layout helper)
Author: tiagopedras
Created: 2012-02-06 12:55:47+00:00
State: open

Hi Lucas

When installing your gem it totally messed up my title method that I had defined in the layout helper (created when generating nifty:scaffold and nifty:layout).

def title(page_title, show_title = true)
content_for(:title) { h(page_title.to_s) }
@show_title = show_title
end

def show_title?
@show_title
end

def stylesheet(*args)
content_for(:head) { stylesheet_link_tag(*args) }
end

def javascript(*args)
content_for(:head) { javascript_include_tag(*args) }
end

It's a simple method and I think that none of my helper methods are now available…