similar to: javascript_include_tag -- time stamp

Displaying 20 results from an estimated 30000 matches similar to: "javascript_include_tag -- time stamp"

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 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
2006 Apr 07
3
Strange errors in generated html
Hi! This: <%= javascript_include_tag :defaults %> <%= stylesheet_link_tag ''doitwithstyle'' %> generates this: <script src="/javascripts/prototype.js?1144418901" type="text/javascript"></script> <script src="/javascripts/effects.js?1144418901" type="text/javascript"></script> <script
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>
2008 Apr 04
4
Auto Complete Problems
Hello All, I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m having some difficulties. When I start typing in my input box, instead of getting a nice drop down, the styling on my page is getting all out of wack (ie my background colours change, link styling changes, etc) and I''m not seeing any autcompletion data. Here are the steps I''ve taken
2007 Aug 09
3
javascript_include_tag - release number instead of time stamp
I''ve noticed that the major part of my pages'' load time is the Javascript for prototype and effects. Instead of forcing a reload per request (by attaching the ?timestamp parameter), I''d like to force reload this per release. Right now, I load the CSS and JS manually (without the Rails helpers) and just append a release number manually. It''s OK, but when I
2011 Oct 12
4
How to access controller's instance variable in a js.erb loaded by javascript_include_tag?
Hello! In rails 3.1 app I have a controller UsersController with ''show'' action. show.html.erb contains: <% content_for(:head) do %> <%= javascript_include_tag ''myscript'' %> <% end %> <p>Hello @user.name</p> And I have this in myscript.js.erb $jQuery(document).ready(function() { alert(<%= @user.name %>); }); @user is being
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application. I like to use script.aculos.us script in my app. I faced the following problem. 1. first i creat my application. 2. Then I copied the files scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and slider.js and prototype.js into my app/public/javascripts/ 3. Then included the <%= javascript_include_tag :defaults %> code into head
2006 Mar 17
4
using ajax and layouts
Hi. I copied the layout-example from agile web dev. in rails. When I want to use ajax to create a search field including <head><%= javascript_include_tag "prototype" %></head> does''nt work when I include the line in my app/views/layout/demo.rhtml. Name of controller is demo_controller.rb. The search-field is in app/views/demo/observer.rthml and I have to
2011 Aug 10
3
javascript_include_tag error
<!DOCTYPE html> <html> <head> <title><%= @title %></title> <%= csrf_meta_tag %> <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "jquery.rails.js" %> <script type="text/javascript"> ...app/views/layouts/application.html.erb:7: syntax error, unexpected
2007 Jan 19
4
Problem with link tags
Hell all, I have a layout were I add my stylesheets and javascript in the following manner: <%= stylesheet_link_tag "/form" %> <%= stylesheet_link_tag "/text" %> <%= javascript_include_tag :defaults %> But what happens is that in the actual web page the source is the following: <link href="/form.css?1168168516" media="screen"
2005 Nov 08
2
Scriptaculous insertion fails when XHTML Strict used in FireFox
Hi ! I'm getting an uncaught exception requiring the Scriptaculous libraries when everything says XHTML 1.0 Strict: class ApplicationController < ActionController::Base before_filter :set_content_type protected def set_content_type response.headers['Content-Type'] = 'application/xhtml+xml; charset=ISO-8859-1' end end <?xml version="1.0"
2006 Aug 13
4
Javascript compression / How to hook in to rails development
Hi there, I thought it''s rather neat to use the javascript compression from http://dojotoolkit.org/docs/compressor_system.html This removes javascript comments and renames variables and seems pretty reliable and effective. For example, I keep the original htmlarea.js file from http://xinha.gogo.co.nz/ in a file htmlarea.js.txt and it compresses from 200K to 100K. With gzip it
2009 Nov 29
3
Views/index to views/show loses javascript functionality
I am testing a local copy of my website using Mongrel trying to introduce a scriptaculous multi-level drop down menu. the menu is a partial that is loaded into every layout I have many pages with their individual layout file. When I jump from page to page(index to index) all works OK. When I jump from any "view/index" to "view/show" I lose the javascript and the drop down menu
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 Oct 05
9
Rearchitect the new :cache feature of javascript_include_tag, similar to ToolbawksPacker
I have done some work with the javascript and stylesheet helpers for ToolbawksPacker.. http://svn.toolbawks.com/toolbawks_packer/trunk/ Which more/less takes all executed javascript_include_tags and stylesheet_link_tag on any converged view (combines all partials and such) and builds a list of js and css files respectively and uses that to form a cache. In additon, it also minifies the JS using
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 =>
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml Ajax link requires JavaScript "prototype" and live validation requires "jquery". i got "element.dispatchEvent is not a function" on the firebug console when i used "prototype" and "jquery" in same page index.rhtml after i removed javascript "prototype" library, i got "Ajax is
2006 Mar 29
4
Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
Why aren''t builder.js, slider.js, and scriptaculous.js part of the Rails 1.1 javascripts? rab:javascripts $ pwd /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts rab:javascripts $ ls -l total 288 -rw-r--r-- 1 root wheel 148 Mar 28 08:56 application.js -rw-r--r-- 1 root wheel 28036 Mar 28 08:56 controls.js -rw-r--r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js
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