search for: ujs

Displaying 20 results from an estimated 136 matches for "ujs".

Did you mean: js
2008 May 30
0
UJS for rails plugin Installation problems
Hello, I downloaded and installed the latest UJS plugin. I first got the error "uninitialized constant UJS" and this error wouldn''t go away no matter where I place the "UJS::routes" line in the routes.rb file. The only way I found to get rid of this error is to run "rake tmp:sessions:clear" but then I get a...
2006 Dec 27
13
Where did UJS go? UJS vs. RJS
I have not been able to access the UJS site, http://www.ujs4rails.com/ for two days. Does that mean there are problems or that it has been incorporated into Rails core? In general, what do you think of using UJS instead of RJS? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You receiv...
2006 Dec 08
2
UJS plugin incompatible with RSpec?
Hi all, Anyone using UJS with RSpec? I have the following view spec: ---- edit_spec.rb context "accounts/edit" do fixtures :users setup do assigns[:user] = users(:consumer) end specify "should display the user info to edit" do render ''/accounts/edit'' end end ---- e...
2013 Feb 25
7
Optimistic Locking Enhancements: Gem or Core?
I''m working on an app that makes use of rails'' optimistic locking feature and seeing some possibilities for improvements. It seems a bit tedious to have to add :lock_version to forms wherever the model is used. You also have to "hack" around rails'' UJS feature to add it as a URL parameter when using remote: true, method: [:put, :patch, :post, :delete]. On the controller side in rails 4 (or if you''re just using the strong_parameters gem in 3.x) you have to remember to permit the :lock_version parameter wherever you''re using...
2010 Jun 08
2
how to ignore rows missing arguments of a function when creating a function?
Hi, I am relatively new to R; when creating functions, I run into problems with missing values. I would like my functions to ignore rows with missing values for arguments of my function) in the analysis (as for example is the case in STATA). Note that I don't want my function to drop rows if there are missing arguments elsewhere in a row, ie for variables that are not arguments of my
2011 Sep 19
1
Rails and UJS guide - not having much luck
I refered to http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/ in hope of getting json data from my controller and displaying it in my view when an ajax request is made. I followed the instructions on the http://railsdog.com/blog/2011/02/28/callbacks-in-jquery-ujs-in-rails3/ and even corresponded with the author and also implemented his ''f...
2006 Oct 17
0
UJS Rails Plugin Group
UJS has started to get a lot of attention recently and we''ve found we''ve been getting tickets filed on trac that are more like support requests/help rather than real bugs. For that reason, we''ve set up a UJS4Rails Google Group. Feel free to ask questions, suggest features an...
2007 Jul 08
0
UJS and make_observed
...er => ''community'', :action => ''search'' } ) %> <div id="contresults"> </div> this should call this code def search puts params[ ''user_search'' ] end Of course I''ve included UJS, changed application.rb with various session_id stuff, included everything needed (it generates js files correctly, the problem is that it''s empty ...) Someone has an idea of what''s happening here ? ngw -- Nicholas Wieland nicholas.wieland-Re5JQEeQqe8AvxtiuMwx3w@public....
2010 May 12
1
Rails 3: perform controller action upon selecting menu item (UJS?)
...artial which could then be swapped into a div in my form. In Rails 3, I''m not getting any further with this approach than the following error when I try to display the view the first time: undefined method `observe_field'' Am I on the right track, or is there a new and improved, UJS-correct way of doing this in Rails 3? -- 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 em...
2010 Aug 14
1
Rail3: UJS submit after client-side validation
I am have some problems with UJS. I have a (potentially) large form that I was doing client side validation on (yes there is also some server side validation) using an old prototype validation routine that is not working with the current version. I actually got validation to work by coping and modifying some of the rail.js routi...
2006 Oct 04
0
UJS Plugin - apply_behaviour Question
Anyone using the Unobtrusive Javascript for Ruby On Rails Plugin? I have some code that looks like this. <% apply_behaviour ''select:click'' do |page, element, event| page.insert_html :top, ''the_list'', "<li>hi</li>" end %> What I would like to do is list the element.value rather than the string "hi" but I''m a
2010 May 31
0
Rails 3 UJS and delete action
Hi, I ve got a question concerning delete actions in the new rails 3 world with unobtrusive javascript. How may I perform an "ajax" delete in a list of products. if attribute data-method is specified rails.js handleMethod is called, which adds csrf params into a hidden form and form.submit is called. Works great, but form.submit is nt performed as an ajax request. Using data-remote
2011 Oct 03
0
rails ujs, multiple ajax requests
Is there a way if you have multiple say products(example) to comment with ajax on each one inline? I cannot seem to pass anything other than the id. products have may comments -- 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
2010 Oct 11
0
Converting observe_field to UJS in Rails 3
I am trying to rewrite my website in Rails 3 and Ruby 1.9.2. Can some one help me convert my observe_field which is working under Rails 2.3.5 to Rails 3. I would like to avoid using JQuery as over the last year everything I have tried in JQuery has failed, including this one. Perhaps due to my lack of knowledge. I would not like to install the legacy upgrade. What I have in my website is several
2013 Oct 02
2
Rails 4 ujs button only works after second click
Here''s the code https://gist.github.com/dasibre/6786245 *new.js.erb file has the following js code* $(''a.pinbutton'').on(''click'', function() { $(this).parent().append(''<%= escape_javascript(render("select")) %>'') }); *here''s the player index with the new link* <%= link_to "Pin",
2008 Aug 08
2
Audio CD problem on laptop VGN-SZ61MN
Is there anyone out there who has installed FreeBSD on the above Sony laptop ? Both ''cat filename > /dev/dsp0.0'' or ''vlc cdda:///dev/acd0@1 are OK. If I run ''cdcontrol -f /dev/acd0 play'', there is no sound. But the output of ''cdcontrol -f /dev/acd0 status audio'' is alright. (same behaviour for cd0 instead of acd0) And the output
2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
...ata that I defined to return from the destroy action in the parts controller (above) What am I missing? The json data gets returned but somehow, jquery is not intercepting it :( Is the ajax callback that I put in application.js errorneous/ incomplete? Any good references (that work) with rails 3 UJS (ajax)? My references were: 1) http://net.tutsplus.com/tutorials/javascript-ajax/using-unobtrusive-javascript-and-ajax-with-rails-3/comment-page-1/#comment-377817 2) http://rails3stuff.posterous.com/#!/59899595 3) http://docs.jquery.com/Ajax_Events 4) http://railscasts.com/episodes/205-unobtrusi...
2007 Mar 19
3
jQuery Users...
...s to be the best of any library I''ve seen and it is great in separating the JScript from the HTML. Any suggestions on where to get started? I''ve read this (http://b.lesseverything.com/2006/12/31/making-jquery-and- prototype-play-nice-in-rails) but was looking into some more. Also UJS looks interesting and has greater support - are more people using this? --~--~---------~--~----~------------~-------~--~----~ 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-/JYP...
2007 Jun 19
4
back button for AJAX in rails
Greetings all, I am wondering are there any thing like link_to_remote(:update, :url) in rails which preserves the navigation feature (back & forward button as well as bookmarks) of the browser? Thanks very much! Cheers, Difei -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2007 Apr 16
3
Jigdoes of CentOS 4.4 and 5.0 i386/x86_64 CD/DVD available.
I've gone through the trouble (after some 10 rounds I finally have something I'm happy with) and generated jigdo/template files for CentOS 5.0 iso's (CD/DVD i386/x86_64) (and CentOS 4.4 while I was at it: CD/DVD/ServerCD SRPMS/i386/x86_64). (and I started on this before the thread about creating the DVD's from the CD's started ;-) ) They are available at: