Rails 3.1 + jQuery + jQuery UI = data is null

47 views
Skip to first unread message

Niklas Nson

unread,
Jul 7, 2011, 1:49:36 AM7/7/11
to Ruby on Rails: Talk
Trying to get jQuery UI to work with my rails 3.1 setup, but i keep
getting errors that i cant see posted anywhere, this is driving my
insane so please have a look =>

[application.js]
// This is a manifest file that'll be compiled into including all the
files listed below.
// Add new JavaScript/Coffee code in separate files in this directory
and they'll automatically
// be included in the compiled file accessible from
http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll
appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .


[application.css]
...
@import "jquery-ui-1.8.14.custom.css";
...

If i try auto-complete demo, the code =>
<input id="tags">
gets rended to =>
<input id="tags" class="ui-autocomplete-input" autocomplete="off"
role="textbox" aria-autocomplete="list" aria-haspopup="true">
but nothing fires.

if i try the datepicker demo i get a =>
data is null in firebug console when page is loaded
and then a inst is undefined when clicking it ...

Anyone got any information about this ?!

I can see jQuery UI 1.8.12 in the rended application.js so i guess //=
require jquery-ui is working ?!

Niklas Nson

unread,
Jul 7, 2011, 2:53:22 AM7/7/11
to Ruby on Rails: Talk
If i remove "//= require_tree ." it works...


On 7 Juli, 07:49, Niklas Nson <niklasn...@meantime.se> wrote:
> Trying to get jQuery UI to work with my rails 3.1 setup, but i keep
> getting errors that i cant see posted anywhere, this is driving my
> insane so please have a look =>
>
> [application.js]
> // This is a manifest file that'll be compiled into including all the
> files listed below.
> // Add new JavaScript/Coffee code in separate files in this directory
> and they'll automatically
> // be included in the compiled file accessible fromhttp://example.com/assets/application.js

Sylvain Mazaleyrat

unread,
Jul 16, 2011, 9:15:42 AM7/16/11
to rubyonra...@googlegroups.com

If i remove "//= require_tree ." it works...
Thank you Niklas : really hard to find ...

 
Reply all
Reply to author
Forward
0 new messages