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

View Helpers not Working in Rails 3.1 #147

Closed
JackCA opened this issue Jan 15, 2012 · 6 comments
Closed

View Helpers not Working in Rails 3.1 #147

JackCA opened this issue Jan 15, 2012 · 6 comments
Labels

Comments

@JackCA
Copy link

JackCA commented Jan 15, 2012

I've got a setup like follows:
node do |i| { created: time_ago_in_words(i.created_at)} end

and am receiving the following error:


I am using the head version of Rabl.
Is there something more I have to do to include such type of view helpers?

@nesquena
Copy link
Owner

Which version of rabl are you using? Try 0.5.5.j and let me know if the problem persists...

@brian-mann
Copy link

Does not work with 0.5.5.j either.

@brian-mann
Copy link

Actually this is an issue related to the gon gem. Once I prevent passing the rabl json to gon it works fine. I'm looking into this further.

@nesquena
Copy link
Owner

Any update? Is this a rabl problem?

@gazay
Copy link

gazay commented Apr 17, 2012

Sorry for delay, I just released gon gem version 3.0.0 where I fixed this problem with including ActionView::Helpers into Rabl::Engine. I cloned repo of Rabl and ran specs with including this helpers - all specs passed except one, which not related to my changes, so I think I'm not affect any functionality of Rabl.

@nesquena
Copy link
Owner

OK, I am going to close this issue, thanks!

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

No branches or pull requests

4 participants