Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table plus should work with Hashes #141

Open
iox opened this issue Feb 24, 2015 · 0 comments
Open

Table plus should work with Hashes #141

iox opened this issue Feb 24, 2015 · 0 comments

Comments

@iox
Copy link
Member

iox commented Feb 24, 2015

Comment by Lea:


With Rails 4.0.3 and Hobo 2.1.0 I had the following pieces of code:

EventController:

    ... collect...stuff...
   @statistics = Hash[ ...collected...stuff... ]
   hobo_show @statistics

View:
    ...
    <table-plus>
        <repeat with="&@statistics">
           ....
        </repeat>
    </table-plus>   

It's not pretty, but this worked absolutely fine.

But now with Rails 4.0.13 and Hobo 2.1.1 I get a ActionView::Template::Error
      undefined method `method_defined?' for #<Event:0xb26e1d1c>
where the Event is the context model.

If I replace the <table-plus> with <table> it's error-free, but of course not how I want it to look.

The statistics hash is just a hash of arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant