similar to: including third party javascript API in Rails 3.1 works in server mode, but not when testing

Displaying 20 results from an estimated 3000 matches similar to: "including third party javascript API in Rails 3.1 works in server mode, but not when testing"

2011 Nov 27
0
Managing third-party javascript libraries
Hi guys, I was wondering how I should manage external javascript libraries in Rails 3.1. For instance, say I want to use a jQuery plugin in my Rails project. Since it''s not a native Rails plugin, but a generic javascript library, I would clone its github repository (e.g. https://github.com/loopj/jquery-tokeninput), copy the necessary js files into vendor/assets/javascripts/. So far so
2010 Jul 12
1
newbie: what is preferred approach for including javascript files?
Hi, What is the cost of not cacheing javascript? If that cost is serious, do I prefer to selectively include javascript files only for view where they are needed? In other words I see four options: 1) Cache everything in layouts/application.html.erb and don''t worry about selective inclusion of .js files where they are needed; 2) cache some things in (e.g., dependencies like jquery) and
2008 Apr 28
0
Monday, April 28 - Samba Mashup Report
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ** Samba Mashup Report (SMR) for Monday April 28, 2008 ** Table of Contents: 0. Greetings to the Inaugural SMR (samba Mashup Report) 1. Plans in Motion for 6 Month Samba 3.x Release Cycles 2. Samba 3.2.0pre3 Released 3. Samba XP 2008 Concludes as YASC (yet another successful conference) 4. Samba Documentation repository moved from SVN
2008 Apr 28
1
Monday, April 28 - Samba Mashup Report
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ** Samba Mashup Report (SMR) for Monday April 28, 2008 ** Table of Contents: 0. Greetings to the Inaugural SMR (samba Mashup Report) 1. Plans in Motion for 6 Month Samba 3.x Release Cycles 2. Samba 3.2.0pre3 Released 3. Samba XP 2008 Concludes as YASC (yet another successful conference) 4. Samba Documentation repository moved from SVN
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2011 Nov 12
1
Including multiple third party libraries in an extension
Hi, I've got a C extension structured roughly like: package/ src/ Makevars foo.c some-lib/... some-other-lib/.. where foo.c and Makevars define dependencies on some-lib and some-other-lib. Currently I'm having Makevars configure;make install some-lib and some-other-lib into a local build directory, which produces shard libraries that ultimately I reference for foo.o in
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody I''m currently reading through the Pragmatic Programmers RSpec book, and I really enjoy it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to work properly, so I tried it with a 1.8.7 installation, but there I had some other problems
2023 Aug 23
1
[EXT] Re: oggenc argument to make the stream not cut in the middle
On Aug 22 09:38:17, u.windl at ukr.de wrote: > I wonder: What happens if you disable cURL's (default) buffering? With curl -N, I see the same behaviour. That's curl 8.1.2. What about you? I still can't see the original problem. Jan > -----Original Message----- > From: Vorbis <vorbis-bounces at xiph.org> On Behalf Of Jan Stary > Sent: Tuesday, August 22, 2023
2011 Apr 26
1
new goodness, Capybara::RSpecMatchers in helper specs
This https://github.com/rspec/rspec-rails/commit/59793dcc349b64f4ebcf742606371001256c774d is exciting news!! ("this adds capybara matchers to view and helper specs") Now, if I just knew how to take advantage of it? Do I have to require something else in spec_helper? I have already added included gem ''rspec-rails'', ''~> 2.6.0.rc2'' gem
2006 May 02
0
Web mashup tutorial using Ruby on Rails
Hi, I wrote a step-by-step web mashup using Ruby on Rails tutorial, going through how I created a simple job search mashup with Indeed, Google Maps and Yahoo web search service. The tutorial is at http://saush.com/blog/?page_id=48 The source code is available at the last writeup. Comments and feedback welcome! -- Sau Sheong http://blog.saush.com http://www.projectible.com
2023 Aug 25
0
[EXT] Re: oggenc argument to make the stream not cut in the middle
First of all, keep the replies on the mailing list. Are you subscribed to the mailing list? On Aug 24 09:44:56, nguyenquocthao00 at gmail.com wrote: > The file ogg is the same, I know that. So oggenc must have produced exactly the same audio. So it must be specific to the "live" playing. > And the problem is not from curl, > curl is only an example to replicate my problem.
2011 Oct 08
1
Rails view spec expectations/matchers
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can''t really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that if you want that functionality, you should just use Capybara or some such... is that
2010 Apr 09
2
dynamically linking to ajax.googleapis jquery
Hi I am using jquery and jqueryui in my application And in layout I use <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"%> <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" %> <%= stylesheet_link_tag
2012 Jun 28
2
Best practice on Javascript and rails
Hi, I get constantly nervy whenever trying to implement any javascript / jquery in rails, basically because I''m not sure where to put things in the project! I know the people at rails have thought long and hard about how to best structure an app, so I''d like to learn the correct way. I''m using rails 3.2, ruby 1.9.3 ///////////// 1st situation - using a gem to include
2012 Jul 22
1
RSpec/rails & Capybara: #within
I''m new with Capybara and after a good amount of google, I still can''t figure out how the #within methods works! I can use it only if I call visit before? There''s no way to use it on a string, like the `page = Capybara.string(html_string)` trick? When describe a view, I want something like that: describe "path/to/view.html.erb" do it "should pass"
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody I have worked quite to near the end of The RSpec Book, but now I''m having some troubles. I''m trying to get the last few Cucumber steps to work, which are: Then /^Caddyshack should be in the Comedy genre$/ do visit genres_path click_link "Comedy" save_and_open_page response.should have_content("1 movie") response.should
2010 Nov 26
0
Cucumber + Capybara + tiny_mce Problem
Hello I want to test the the tiny_mce using cucumber and capybara and I got a solution in the following thred " http://groups.google.com/group/ruby-capybara/browse_thread/thread/711d08ddceb9276?pli=1" but somehow I am getting the following error *private method `bridge'' called for #<Selenium::WebDriver::Driver:0x..fb55cd4f0 browser=:firefox> (NoMethodError)* Is there
2011 Nov 18
0
Capybara + Selenium + JS
Hi, I''ve recently been working with Capybara 0.4.0 and the bundled Selenium driver in Rails 2.3.8 with Ruby 1.8.7 to do integration testing with javascript. The problem I have is that Capybara''s page object does not seem to be affected by the Javascript, even though I can see the changes happening in the browser, they are not reflected in that object''s markup. Here is
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
On this server I already installed it in the gemsets for Ruby 1.8.7 and Rails 2.3.11 without any problem ... but trying (many times .. ) to install in Ruby 1.9.2 (Rails 3.0.5) raises an error ... It''s not related to the gem itself as the gem doesn(t build any native extension .. but to one dependency... I don''t know where to start looking for ... here is the log message :
2012 Jul 19
0
Capybara and a post request
Hi there! In my app I have an entry page that is called with an post-request from another site. This post-request contains a parameter called key and is used for an app authorisation of that other site. How can I simulate such a behaviour in respect and capybara? In the moment I have a controller and action that serves me a Form where I fill in the key and click submit via capybara. But I think