Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#6327

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

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

State: invalid
Milestone: none
Assigned to: Piotr Sarnacki Piotr Sarnacki
Importance: Low

Activity

  1. Piotr Sarnacki
    Piotr Sarnacki
    • 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.

    April 17th, 2011 @ 10:52 AM