Skip to content
This repository was archived by the owner on Apr 5, 2018. It is now read-only.
This repository was archived by the owner on Apr 5, 2018. It is now read-only.

Js console errors when using in Rails 3.2.16 #8

@spilliton

Description

@spilliton

Hello,

I'm attempting to use this gem for the first time. I added the line to my gemfile and did bundle install. I then added

//= require aloha

in my application.js file after my require of jquery and added the link to the stylesheets in my layout. This causes the following scripts to be loaded on the page:

<script src="/assets/aloha/preinit.js?body=1" type="text/javascript"></script>
<script src="/assets/aloha/lib/require.js?body=1" type="text/javascript"></script>
<script src="/assets/aloha/lib/aloha.js?body=1" type="text/javascript"></script>
<script src="/assets/aloha.js?body=1" type="text/javascript"></script>

The preinit attempts:

window.Aloha.settings.baseUrl = '/assets/aloha/lib/';

but throws: Cannot read property 'settings' of undefined

aloha.js itself then throws:

Uncaught TypeError: Object function (module, callback) {
return _require("", module, callback);
} has no method 'config'

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions