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
    end

I 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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to