Displaying 20 results from an estimated 400 matches similar to: "UJS plugin incompatible with RSpec?"
2006 Dec 07
3
Newbie Error Running specs
I''m new to rspec. I just installed these:
rspec (0.7.4) RSpec-0.7.4 (r1201) (rspec gem)
rspec_on_rails .3 plugin (on vendor/plugin)
I''ve set up a simple spec - spec/library/test_spec.rb:
require File.dirname(__FILE__) + ''/../spec_helper''
context "test context" do
setup do
#nothing
end
specify "nothing to specify" do
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 another error which is "can''t convert
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 ''fix''
in
2010 May 12
1
Rails 3: perform controller action upon selecting menu item (UJS?)
In Rails 3, I have a form that has a menu on it. I would like to
render an area containing text fields within the form differently
depending on what''s selected in the menu.
Prior to Rails 3, one way it appears I could do this is by using
observe_field on the menu and call an action in my controller that
renders the appropriate partial which could then be swapped into a div
in my form.
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 and discuss how you are using the
plugin.
http://groups.google.com/group/ujs4rails
2007 Jul 08
0
UJS and make_observed
<p class="lastwinner">
<%= text_field_tag :user_search, params[ :user_search ] %>
</p>
<%= apply_behaviour "#user_search",
make_observed( :field,
:update => ''contresults'',
:with => "''user_search='' +
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 routine to observer submit. I also had some javascript toggles
that I got
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 received this message because you are subscribed to the Google
2007 Jan 12
2
spec_ui problems
While looking into spec_ui, I decided to run the examples.
The watir example works a little, but always chokes on the ''better
than fudge'' spec (failure output below). Also, is there any command
to pause the "browser"? If my connection slows, the test gets out of
whack.
The selenium example fails right away (output below). I do have the
0.9.0 selenium-rc
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
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
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 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
2006 Jul 21
3
Unobtrusive Javascript plugin
Hi,
I downloaded the unobtrusive_javascript pluing from this link
(http://www.lukeredpath.co.uk/index.php/2006/06/06/introducing-unobtrusive-javascript-for-rails/)
since I needed to have dynamic content in javascript (for a pop-up
menu).
Unfortunately I have been unable to make the plugin work. I followed the
instructions on the website, but for some reason the javascript doesn?t
work (for
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
2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
Hi, guys,
I''m in the midst of moving an app from rails 2.3.8 to rails 3.0.9.
Sadly, rails 3 no longer has javascript generators and I''m now forced
to do more javascript.
For my project, I have selected jQuery as the javascript framework for
my rails 3.0.9 app.
What I have done to have my app''s deletion link (for each item)
trigger an alert box when the deletion
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",
2006 Aug 01
0
Unobtrusive Javascript for Rails 0.2
Dan Webb (http://www.vivabit.com) and I are happy to announce the
latest release of the Unobtrusive Javascript plugin for Rails. This
release packs in lots of cool new features, a few changes to old ones
and some performance enhancements.
Now you can write your behaviours in Ruby, attach behaviours directly
to elements using content_tag and apply behaviours to elements
without HTML IDs.
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed
the steps for Rails UJS mentioned here:
https://github.com/rails/jquery-ujs
The last time I went ahead and added jQuery UI as well:
$ rails generate jquery:install --ui
remove public/javascripts/prototype.js
remove public/javascripts/effects.js
remove public/javascripts/dragdrop.js
2007 Mar 13
0
Retrieve session_key
The unobtrusive javascript plugin stores its generate javascript files
in the session.
But it has some issues currently putting things into the wrong session
(because it doesn''t check to see what session key is being set in the
application controller). As such, it doesn''t work unless you
explicitly set the session key.
Currently I just added a line to my application controller