Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

using hallo in rails 4 #221

Open
mpepito13 opened this issue Jul 17, 2014 · 1 comment
Open

using hallo in rails 4 #221

mpepito13 opened this issue Jul 17, 2014 · 1 comment

Comments

@mpepito13
Copy link

Hi there,

I'm trying to use Hallo.js within a rails project but I can't figure how I can do that.

I've downloaded the latest hallo.js and move it into vendor/assets/javascripts
When I reload my browser, I encounter the following error :
TypeError: 'undefined' is not a function (evaluating 'jQuery.widget')

which point to the code at the very beginning of the file :

return jQuery.widget('IKS.hallo', {

I've seen some gem hallo_rails but the js code is not up to date…

I'm sorry if this is a newbie question…

best regards,
arnaud

@johnlane
Copy link

johnlane commented Nov 7, 2015

For anyone wanting to use this with Rails, it's easy. See here. Just put the Javascript in your assets. Don't bother messing around with the various gems (hallo and hallo-rails) - they contain outdated code and don't seem to be maintained.

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

No branches or pull requests

2 participants