lucasrenan / updated-by

Updated by provides functionality to store user which created/updated the given record.
https://github.com/lucasrenan/updated-by
MIT License
7 stars 2 forks source link

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

Open tiagopedras opened 12 years ago

tiagopedras commented 12 years ago

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…

lucasrenan commented 12 years ago

tiago,

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

thanks.

tiagopedras commented 12 years ago

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 commented 12 years ago

@tiagopedras

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