This project is archived and is in readonly mode.

#6327 ✓invalid
danigb

undefined method `human_name' when using proxied models (isolated engine)

Reported by danigb | January 23rd, 2011 @ 09:34 PM

I get an undefined method 'human_name' for #<Class:0xb6a599b4>
when i write MyEngineNamespace::MyModelName.human_name into a view. For example:

<%= link_to Food::Soup.human_name, soup_path(soup) %>

There's no more info in the error message

Comments and changes to this ticket

  • Piotr Sarnacki

    Piotr Sarnacki April 17th, 2011 @ 10:52 AM

    • State changed from “new” to “invalid”
    • Importance changed from “” to “Low”

    There is no method named human_name for models - it won't also work on plain Rails model in standard application.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages