jrails

Rake and Uninitialized Constants

筅森魡賤 提交于 2020-01-02 18:25:01
问题 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 Google, this site or elsewhere. What steps should I take to resolve this and what do I need to know? rake --trace yields: /Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing' /Users/dcarpenter/Dropbox/workspace/gems

Rake and Uninitialized Constants

你。 提交于 2020-01-02 18:24:10
问题 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 Google, this site or elsewhere. What steps should I take to resolve this and what do I need to know? rake --trace yields: /Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing' /Users/dcarpenter/Dropbox/workspace/gems

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

痴心易碎 提交于 2019-12-30 02:28:11
问题 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 the user div, etc.. I use Kaminari for pagination. I started with the following code: User_controller.rb def index @users = User.page(params[:page]).per(10) end User/index.html.erb <div id="users"> <%= render :partial => @users %> </div> <%= link_to

Rails observe_field using jQuery

こ雲淡風輕ζ 提交于 2019-12-17 18:43:43
问题 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 => 'results', :loading => "Element.show('spinner')", :complete => "Element.hide('spinner')", :url => { :controller => 'foo', :action => 'search' }, :with => "'search=' + escape(value)") %> 回答1: Using jQuery, you'd need to use a selector, something like this should work $("#search").bind("blur",

Is jRails a must for Rails + jQuery?

﹥>﹥吖頭↗ 提交于 2019-12-07 17:20:21
问题 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 can be installed to replace prototype in rails2 and i have the following questions. what is the difference between rails with and without jrails in term of developing a new rails app? what is the advantage of using jrails? is jrails a must for

Rake and Uninitialized Constants

青春壹個敷衍的年華 提交于 2019-12-06 15:39:33
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 Google, this site or elsewhere. What steps should I take to resolve this and what do I need to know? rake --trace yields: /Users/dcarpenter/Dropbox/workspace/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing' /Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6.0/lib/jrails.rb:231:in `<module:Helpers>' /Users/dcarpenter/Dropbox/workspace/gems/jrails-0.6

Is jRails a must for Rails + jQuery?

为君一笑 提交于 2019-12-05 18:38:54
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 can be installed to replace prototype in rails2 and i have the following questions. what is the difference between rails with and without jrails in term of developing a new rails app? what is the advantage of using jrails? is jrails a must for using jquery ui widgets in my rails app? any recommended tutorials of integrating jquery plugins in

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

我的未来我决定 提交于 2019-11-30 07:36:35
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 the user div, etc.. I use Kaminari for pagination. I started with the following code: User_controller.rb def index @users = User.page(params[:page]).per(10) end User/index.html.erb <div id="users"> <%= render :partial => @users %> </div> <%= link_to "Load more", "#", :class => "next" %> _user.html.erb <div id="box"> <%= link_to full_name(user), user %

Rails observe_field using jQuery

怎甘沉沦 提交于 2019-11-28 08:43:14
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 => 'results', :loading => "Element.show('spinner')", :complete => "Element.hide('spinner')", :url => { :controller => 'foo', :action => 'search' }, :with => "'search=' + escape(value)") %> Using jQuery, you'd need to use a selector, something like this should work $("#search").bind("blur", function() { $("#spinner").show(); // show the spinner var form = $(this).parents("form"); // grab the form