similar to: Problem in including javascript files

Displaying 20 results from an estimated 9000 matches similar to: "Problem in including javascript files"

2006 May 09
2
Problem creating new record
Hi I have two tables 1. devices 2. device_categories both associated with each other via foreign key device_category_id in device table. I use scaffold and create a base system. I associate the two models together via belongs_to declaration in device model, and has_many declaration in device_categories model. I also add a device category drop-down box on create page to select
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
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi. In my environment.rb, I have: ActionController::AbstractRequest.relative_url_root = "/foobar" In my layout, I have: <%= javascript_include_tag :defaults %> Question 1: I am getting an error: ActionController::RoutingError (no route found to match "/javascripts/prototype.js" with {:method=>:get}): When I remove the relative_url_root, everything works great.
2006 Jan 25
3
Application Helper and Javascript
I have a "javascript_include_tag" including a Javascript function. I have a function being invoked via a helper in the same view, which prints out a script tag that uses the javascript function above. Problem is, the function being invoked via the helper can''t find the javascript function included in the "javascript_include_tag". I hardcoded the javascript that
2013 May 29
2
Why can't get remote javascript libraries on Rails 4
In rails 3, I included this line: *<%= javascript_include_tag "http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js" %>* But when migrate to rails 4, its not posible and I get the next error: *Invalid argument - C:/Ruby193/findiner/app/assets/javascripts/http://cdn.leafletjs.com/leaflet-0.5.1 * So far, I won''t be able to get remote libraries. Thanks for help! -- You
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 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as simple as posible. And I''m trying to put some custom css and js to my own index.html.erb (not public/index.html.erb), I inluded this on the layout file: layout file: <!DOCTYPE html> <html> <head> <title>Volei</title> <%= stylesheet_link_tag "application", :media =>
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition". In Chapter 11, Iteration C2: Adding a Page Layout 1 <!DOCTYPE html> - <html> - <head> - <title>Pragprog Books Online Store</title> 5 <%= stylesheet_link_tag "scaffold" %> - <%= stylesheet_link_tag "depot", :media => "all" %> - <%=
2006 May 10
0
rubygems installation location
Hi I just want to know where exactly gem should install. I had rails already installed in my system. I just installed gem package and tried to install a package through it. Unfortunately its prompting me to install rails also as dependency. I would also like to state that both rails and gem are installed on different locations. Regards Chetan Thapliyal
2006 Aug 15
2
Using Ajax and FireFox
Hi all, I have created a new application 1month ago. In that application i have a link Add New. This link is given using Ajax(<%= link_to_remote( ''Add New'', :update => "abc", :url =>{ :controller=>"xyz",:action => :new}, :position => "after"
2007 Oct 27
1
Edge Javascript caching just not working
For some reason, in production, with this one line of code: javascript_include_tag :all, :cache => true I get this: <script cached="true" src="/javascripts/prototype.js?1193454472" type="text/javascript"></script> <script cached="true" src="/javascripts/effects.js?1193454472" type="text/javascript"></script>
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system. I see that when I use <%= javascript_include_tag "defaults" %> that when used, the webrick reports GET /javascripts/prototype.js GET /javascripts/dragdrop.js GET /javascripts/effects.js GET /javascripts/controls.js but on the system that I am trying to develop on and doing similarly, the webrick only reports
2011 Sep 01
7
couldn't find file 'jquery' rails 3.1 stable mountable engine
When I create a new engine in Rails 3.1 stable and then access the dummy app or the engine I get an error say that the app can''t find jquery. I''ve created the engine using rails plugin new coffee --mountable I''ve also created a basic controller in the engine and the dummy app. If I remove the javascript include tag, everything works. But with the tag there it just
2007 Mar 19
1
Wine Developers Wanted for Commercial Open Source project - Wine on Cygwin and Windows
My company is looking for experienced Wine Developers to work on a commerical Open Source Project involving getting wine working under cygwin and Windows. Can anyone point me to the right mailing list / forum to make a posting at or can interested developers contact me please - chetan.venkatesh@gmail.com Regards Chetan
2011 Aug 31
4
Issue with asset pipeline helper with Rails 3.1 final release.
Hi, I''ve just updated my app to the final 3.1 release and deployed it to the staging server after running tests but there is a problem with the precompiled assets. The precompiled assets are all in the public directory, like they were before, Capistrano doesn''t throw any error and running `rake assets:precompile` in the current directory work as expected. But the asset
2011 Mar 18
2
HP-UX compilation warnings
Chetan, Could you check the contents of the include/nut-stdint.h file, to see why there are compilation warnings on the HP-UX buildbot? Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...
2005 Mar 04
1
chan_h323 & codecs
Hi, Can anyone confirm that if I want to do h323 proxying that I do not need codecs installed? For example if the codec being used is g723.1, I don't need the codec installed locally because there is no compression or decompression being done on my server; the incoming traffic is simply being sent out on another h323 channel (h323 in->h323 out). Is this correct? Thanks, Chetan
2008 Oct 31
2
Stubbing #javascript_include_tag in a helper spec
When writing specs for a helper method, how do you set an expectation for #javascript_include_tag ? describe NeighbourhoodsHelper do describe ''#initialise_map'' do it ''should include the "foo" JS file'' do # expectation here helper.foobar end end end I''ve tried replacing "# expectation here" with the
2010 Jun 29
1
[PATCH] virt-what.in: Added VMware virt detection using cpuid in wrapper script
Brief discussion thread - http://lkml.org/lkml/2010/6/29/355 Added VMware detection via cpuid.Mimic'd VMware's balloon driver's init-time check(cpuid followed by dmi-checks). Moved the existing logic into a simple function to achieve that. Tested virt-what.in(ran as a script) and virt-what-cpuid-helper within a Linux guest on ESX. Thanks. Signed-off-by: Chetan Loke <loke.c at