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 ?! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If i remove "//= require_tree ." it works... On 7 Juli, 07:49, Niklas Nson <niklasn...-5ZBJkHaGu7EwFerOooGFRg@public.gmane.org> 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 > // 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 ?!-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sylvain Mazaleyrat
2011-Jul-16 13:15 UTC
[Rails] Re : Re: Rails 3.1 + jQuery + jQuery UI = data is null
If i remove "//= require_tree ." it works... Thank you Niklas : really hard to find ... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8eKD3mC2pWcJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.