similar to: Rearchitect the new :cache feature of javascript_include_tag, similar to ToolbawksPacker

Displaying 20 results from an estimated 2000 matches similar to: "Rearchitect the new :cache feature of javascript_include_tag, similar to ToolbawksPacker"

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
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 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.
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting toolbar that will be added to all of your text areas that utilize the TEH feature. TEH was developed to provide a more WYSIWYG-ish option for users of our Rails CMS called slate while still letting us use Textile. ====================== = So what are the features? ====================== These are a list of the current features
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
2006 Dec 11
3
javascript_include_tag -- time stamp
Using, for example, <%= javascript_include_tag ''prototype'' %> results in <script src="/javascripts/prototype.js?1164912447" type="text/javascript"></script> I take it the number 1164912447 is the timestamp of the file (in seconds since the epoch) Isn''t it redundant to include this information? Isn''t part of the HTTP
2007 Jun 18
8
Ruby v/s PHP
Which is better Ruby or PHp? watch this video of comparison between this languages http://www.dekhona.com/watch.php?v=ebcecrnto --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2008 Jan 01
26
Did DHH have a suit on?
So I''m wondering about the origin of "ActiveRecord" and "ActionPack" and the like in Rails. I''ve always thought that perhaps DHH found himself in a suit one day (maybe he had to attend a friend''s wedding or something), and as long as he had the suit on, decided to lapse into a one of the barely lucid frenzies that Marketing people are prone to when
2008 Feb 01
0
javascript_include_tag and controller actions
Hello folks, I''d like to include the javascript generated by an RJS file in an RHTML file using the <script></script> tags. I was going to use javascript_include_tag to do this, mostly in order to ensure that the contents are not cached by the browser. Unfortunately, javascript_include_tag appends a ".js" to the file name if there is not a period in the file name.
2007 Jan 04
0
javascript_include_tag emits self-closing <script> tag
hello, here is a sample rhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><%= javascript_include_tag :defaults %></head> <body>test</body> </html> the
2009 Sep 01
0
Problem with "javascript_include_tag :all" tag.
Hello Friends, I m using auto_complete pluging for text_field. When using "javascript_include_tag :all" tag pagination is not working .. Anybody tell me what''s happen here ??? Thanx. -- Posted via http://www.ruby-forum.com/.
2008 Jun 02
0
stylesheet_link_tag, javascript_include_tag, caching problems
So, the new caching for stylesheet_link_tag, javascript_include_tag which rolls up the files into one all.js or all.css files is great ... however I''ve run into an issue: If all.cs or all.js don''t exist, they get generated ... great, I''ve reduced the number of gets ... The problem is what occurs when the files already exist ... even if I''ve changed my list of
2009 Feb 10
0
javascript_include_tag -- 500 internal server error
Hi, I''m trying to use (in my view/layout) javascript_include_tag and it generates something like: <script type="text/javascript" src="http://apps.facebook.com/fbml_static_get.php?src=%2Fcanvas_name%2Fjavascripts%2Ffacebooker.js%3F1234225416&appid=my_app_id&pv=1&sig=995d0e338609600ecbc28c3caf156f29&filetype=js"></script> But when trying
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
2007 Apr 20
2
Partitioning around mediods (PAM)
Hi, I need some help understanding the output from PAM. When I look at the output it doesn't list the cluster number by the median vlaues on each of the variables (like it does with k-means) Instead I have the following: So I know for instance cluster 1 has a mean for variable1 of 33.33, however when I run PAM i get: variable 1 variable2 29 32 12 97 12
2006 May 07
1
Canada on Rails presents.. Riding the Rails Workshop - May 27th & 28th
Canada on Rails presents, Riding the Rails Workshop on May 27th and 28th in Vancouver, BC, Canada. This is a two day intensive workshop for those eager to get into Ruby on Rails. Alex will drive you through the principles behind Ruby on Rails, such as MVC, convention over configuration, Code Generators, and the other core principles driving Ruby on Rails to be the most celebrated technology
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is currently being used within my routes.rb file to do some case/when switching for specific domains such as this cgi = ActionController::CgiRequest.new(CGI.new) case cgi.domain(1) when /www/ map.connect '''', :controller => ''public'', :action => ''index'' when
2006 Jan 18
4
Canada on Rails - Schedule Released
We are extremely pleased to announce that we have finalized the schedule (http://canadaonrails.com/yvr06-schedule.html) for the upcoming Ruby on Rails conference in Vancouver, BC on April 13th - 14th, 2006. There are 15 speakers packed into two full days of presentations ranging from 30 minutes to 90 minute keynotes. Presentation topics include: * Where will Rails be riding next? * Enterprise
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
2007 Sep 22
2
Dynamic view - is it possible at all?
I have the following question. It sounds weird, but still. We all have app/views/say.rhtml or any other template for the view. It can include of course instructions in <% %> So the question is next -- is it possible to use .rhtml as a view which we just uploaded? I.e. user uploads his own .rhtml, controller saves it in the database, and shows the view using it. Is it possible at all?