Questions tagged [jrails]

jRails is a small library which replaces the Prototype/script.aculo.us helper functions with the lighter jQuery library.

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.

29 questions
8
votes
2 answers

Rails observe_field using jQuery

Is there an equivalent to the Rails/Prototype observe_field method using jQuery without jRails? I am doing a search-as-you-type with will_paginate: <%= observe_field('search', :frequency => 2, :update =>…
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
6
votes
1 answer

"rescue in const_missing" error with Ruby 1.9.1, Rails 2.3.2, and jrails 0.4

I recently started a project where the team decided we'd like to use jQuery rather than Prototype/Scriptaculous for our javascript needs. We set our project up, and began the switch. The plugin was installed via these instructions, and all went…
Mike Trpcic
  • 25,305
  • 8
  • 78
  • 114
5
votes
1 answer

Plugin/Gem to get Rails 3 style UJS in Rails 2.3.x?

I have a new application starting that's using Rails 2.3.8 for stability concerns and gem compatibility, however we'd like to begin being conscious of Unobtrusive JavaScript by implementing the Rails 3 style UJS in this application. Is there any…
4
votes
2 answers

Rails 3/Kaminari/JQuery - load more button: problem to display results (it loads the entire page layout and not only the partial layout)

Begin with ajax and jquery combined with rails, I am trying to create a "load more" link in the bottom of my user index page. My user index page should display the 10 first users, then clicking the link it loads the next 10 users on the bottom of…
benoitr
  • 6,025
  • 7
  • 42
  • 67
3
votes
1 answer

Is jRails a must for Rails + jQuery?

i'm new to rails (using rails 2.3.10) and would like to use jquery in particular jquery ui. the project is a brand new project and i'm planning to use some widgets from jquery ui like datapicker and selectable, etc. i having been hearing that jrails…
user661684
  • 221
  • 1
  • 4
  • 9
3
votes
2 answers

Load jQuery through Google API in Rails using HAML?

This feels like it should be pretty simple, but not much seems to be loading. I have this in my app/views/layouts/application.html.haml: = javascript_include_tag 'http://www.google.com/jsapi' %script{ :type => "text/javascript", :charset => "utf-8"…
neezer
  • 19,720
  • 33
  • 121
  • 220
2
votes
1 answer

Rake and Uninitialized Constants

I have spent hours upon days trying to resolve this. Rake is throwing the following error: dcarpenter$ rake rake aborted! uninitialized constant ActionView::Helpers::JavaScriptProxy I can't seem to find anyone who has had this issue on…
Drew
  • 2,583
  • 5
  • 36
  • 54
2
votes
3 answers

How to transmit a Rails variable to the jQuery function?

I'm making very simple ROR (rails 2.3.5) application and using jQuery plugin jRails. The idea is to lunch modified in jQuery youtube player, which will play random videos from ror's controller's list. controller.rb def show @clip =…
Maay
  • 575
  • 9
  • 27
1
vote
2 answers

Start doing Rails 3 and JRails 3 development on OS X 10.6

I have OS X 10.6 (Snow Leopard) that is already coming loaded with Rails 2. Rails now is at version 3 and I'm about to have Rails and JRails (JRuby on Rails) development. I don't want to mess things, what should I do? How to upgrade to Rails 3?…
Chiron
  • 20,081
  • 17
  • 81
  • 133
1
vote
1 answer

prototype_helpers in rails 3 with jquery - should i still use the jrails plugin? or is there a different way now?

I'm just getting to grips with rails 3. My latest speedbump is to do with the prototype helpers i use in js.rjs files. In some of my rails 2 apps, i ditched prototype in favour of jquery, and that's what i've done here. To get the helpers, eg…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
1
vote
1 answer

Multiple periodically_call_remote calls not behaving as expected

I've been doing ruby and rails for a long time but am a newbie when it comes to the more dynamic elements (currently jrails and jQuery), so it's entirely possible I'm missing something. That said, I've got a page where multiple elements need…
Atiaxi
  • 1,637
  • 1
  • 13
  • 18
1
vote
1 answer

jrails loading remote_form_tag rails

I recently switched to jQuery using jRails for an app. 99% of all my previous RJS seems to work perfectly, the only except is the :loading => callback when using the remote_form_tag. <% form_remote_tag :url => '/hostels/update_currency', :loading…
holden
  • 13,471
  • 22
  • 98
  • 160
1
vote
2 answers

Ruby 1.9.1 and Jrails

I'm getting error: uninitialized constant ActionView::Helpers::JavaScriptElementProxy::ActionView I've tried forcing a reinstall of jrails which didn't fix the error, and Googling the error has yet to yeild a result. Any suggestions? Ruby 1.9.1,…
Schneems
  • 14,918
  • 9
  • 57
  • 84
1
vote
1 answer

Using JRails on Appengine - Gotchas?

Is it possible to run JRails application over Appengine? Is there any experience/gotchas to be considered? Or is there anyother way to run Rails application over appengine? Now Appengine also supports Google Cloud SQL, so the applications can use…
18bytes
  • 5,951
  • 7
  • 42
  • 69
0
votes
1 answer

How to update a div with form_tag with remote in rails 3.1

I have the following code <% form_tag update_batting_order_tournament_path ,:complete => visual_effect(:appear, 'inning_update_success'), :method => :get, :remote => true do %> basically I want to update a div Inning Order Updated! This is not…
1
2