Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Messed up with my title() method (layout helper) #6

Open
tiagopedras opened this issue Feb 6, 2012 · 3 comments
Open

Messed up with my title() method (layout helper) #6

tiagopedras opened this issue Feb 6, 2012 · 3 comments
Assignees

Comments

@tiagopedras
Copy link

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…

@ghost ghost assigned lucasrenan Feb 6, 2012
@lucasrenan
Copy link
Owner

tiago,

this gem is up to date :(
but I promise a big code refactor.
can you share more info about your enviroment?

thanks.

@tiagopedras
Copy link
Author

Sure.
I'm running Ruby 1.9.2, Rails 3.2 and my app is using ryanb's nifty scaffolds and layout.

After going through your readme steps it automatically stopped working because of that title error. It couldn't find the method on the helper.

Thanks

@lucasrenan
Copy link
Owner

@tiagopedras

I'm still investigating the problem.
maybe, it's easier to release a new one =/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants