Ruby on Rails
Friday, January 2, 2015
When I to call a method in a partial I get a 'undefined local method for class' error.
in my view, home.haml
= render "layouts/side"in my partial /layouts/_side.haml
%div - test_method? Is true.In the controller that serves home.haml I put
def test_method? return true endI even tried putting the method in the application helper file, no cigar. Any ideas?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/18003005-f84f-4a59-934f-b34ad86e666e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment