Rails Archive
-
“TypeError: ‘undefined’ is not a function” for jquery-ui’s datepicker in a Rails 3.1 app
Posted on February 16, 2012 | No CommentsI am trying to introduce some jquery-ui widgets into a new Rails 3.1 app. When I add the hook for the datepicker, I get an error TypeError: 'undefined' is not... -
“(#tabs).tabs is not a function” – What’s wrong with jquery installation with rails 3.1.3?
Posted on February 14, 2012 | No CommentsThe error (in application.js) is shown in firebug when loading the login page with localhost:3000 and the page hangs. The Gemfile looks like: gem 'jquery-rails', '~>1.0.19' The code (including the... -
Rails proper method: Routing a remote call on a nested model
Posted on February 12, 2012 | No CommentsIn my rails app, I have a jQuery listener on a selectlist that loads a partial view when the user changes the select. I’m not sure what the proper way... -
$.getScript not working rails 3
Posted on February 7, 2012 | No CommentsEverything seems to work fine apart from the “$ .getScript(“/comments.js” part. i have tried to fix it but with no luck. i have my application.js file which has $ (function()... -
jQuery vTicker plug-in implementation in Rails 3
Posted on February 4, 2012 | No CommentsWe are using the jQuery vTicker plug-in for a scrolling news feed on the Home page of our Rails app. How would we go about using this $ ('.micropostclass').vTicker({ speed:... -
how to get @variable from rails’ controller via jquery .load() or else?
Posted on February 1, 2012 | No Commentsthere are fields for parameters and values, and autocomplete script for values’ fields in item’s form. i get values from variable @values. so when i change item’s category, i need... -
refeshing a div element using jQuery in Rails 3 app
Posted on January 27, 2012 | No CommentsI have a rails 3 app which uses resque to run long running jobs in the background and I want to create a view to the results on another page... -
Rails 3: submit Remote form via jQuery
Posted on January 27, 2012 | No CommentsHere how my rails form looks like: - form_tag rel_references, :remote => true, :id=>"references_form", :method => 'get' do = text_field_tag :rel_id, params[:rel_id], :id=>"reference_form_rel_id" = submit_tag "Get references", :id => "referencesubmit"... -
JQuery autocomplete validation in rails
Posted on January 26, 2012 | No CommentsI’m using the default rails validations, that generate a surrounding red box in the fields with errors. So, after a post, a code like this: <input id="post_date" name="post[date]" type="text"> will... -
Rails 3.1, JS, Simple Alert not showing up
Posted on January 24, 2012 | No CommentsMy experience with rails and Javascript is very limited. I am trying to pop up a basic alert function to make sure everything is in working order however its not...