search for: craz8

Displaying 20 results from an estimated 26 matches for "craz8".

Did you mean: crazy
2006 Jan 21
4
acts_as_taggable clouds?
what is the easiest/established way to make a tag cloud using the acts_as_taggable plugin? any examples would be greatly appreciated! -A -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
2
DamageControl
Is there anyone on this list running DamageControl on a Debian or a Windows system ? If so would you care to share how you accomplished this (details ... it''s all in the details) ? While I will still work through the problems I am encountering (it''s a great learning experience) I would still like to have a working instance of DamageControl to use in the meantime. I am
2006 Apr 04
5
How to implement tag clouds using plugin?
The code on http://blog.craz8.com/articles/2005/10/28/acts_as_taggable-is-a-cool-piece-of-code is based on the acts_as_taggable gem,anybody has done that using the acts_as_taggable plugin?thanks! btw:the code above uses the tag_count method,which is defined in the gem: def tags_count(options = {}) options =...
2006 Mar 29
1
Fixing output_compression for Rails 1.1
...rails now, and changing one function call. Get the modified output_compression.rb file from http://devblog.famundo.com/output_compression.rb and give it a try. It''s also detailed in my devblog[2]. It you are interested in a diff or more explanations, let me know. Guy. [1] http://blog.craz8.com/articles/trackback/85 [2] http://devblog.famundo.com/articles/2006/03/29/fixing-output_compression-to-work-with-rails-1-1 -- Family management on rails: http://www.famundo.com - coming soon! My development related blog: http://devblog.famundo.com
2005 Dec 15
0
RJS Templates and the Replace semantics
I have an issue with the way replace_html works in an RJS template. This is a copy of a post on my blog (http://blog.craz8.com <http://blog.craz8.com/> ) that describes the problem and my working solution to the problem. If I have a collection of things that are output like this: <div id="things"> <% @things.each do |thing| %> <%= render :partial => ''thing'' %>...
2006 Jan 19
5
reload controller with FCGI
since webrick does not need to run with FCGI how do you get a rails app in FCGI mode to reload the controller (since it caches in production). Is it simply a restart of apache ? adam
2006 Jan 04
9
Resizeable
Has anyone done any work on a "Resizeable" class they''d be willing to share? I''m looking to do some stuff that''ll need resizable divs, but I didn''t want to re-invent the wheel if I can avoid it. -Jerod _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Dec 17
17
problems with quotes and escaping
First of all I''d like to say thanks for all the great work everyone has put into scriptaculous, I''m having a lot of fun playing with the framework, and easily moving into Web 2.0 territory. I''ve just hit a snag on my project though. So here''s my code: ... var newEvent= "<div
2006 Jan 12
6
Mysql::Error: Lost connection to MySQL server during query
I have been very VERY frustrated for the past week trying to solve a seemingly spurious problem with my Windows XP SP2 box with Ruby 1.8.2/Rails 1.0.0/MySQL 5.0.16 or 4.1.15 (yes, I tried both) installed running against a remote MySQL server that was either 3.23 or 4.1 (4.1.15 to be exact--we finally matched them both up to make sure that wasn''t the problem). So I post it here (as
2006 Jun 07
1
Flash Problem In Functional Test
I''m having some trouble with functional tests for a Rails application. I recently upgraded to version 1.1.2 of Rails and I have since noticed that I have a problem with flash notices in my functional tests. I''m not saying that the upgrade is necessarily the cause but the tests were working before. When I run the tests now and I expect the flash to contain a particular
2006 Mar 04
3
Gzip compression
How to enable automatic gzip compression for all .js .html ? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
2
Expiring cached actions outside of ActionController
In the site I''m building, my models are *almost* never updated within ActionController-- all new data comes in via command line scripts manipulating ActiveRecord directly. Can anyone offer any hints about expiring cached actions without Sweeper? -Ross
2006 Jan 25
2
how to define content charset?
I tried to define koi8-r charset in app/views/layouts/ like this: <head> <meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> <title>Cpu: <%= controller.action_name %></title> <%= stylesheet_link_tag ''scaffold'' %> </head> But it doesn''t work. I suppose WEBrick already sent utf8 charset
2007 Feb 03
1
How can I bypass caching for some users
I have action caching setup for several actions of an application but I want the caching to only run for my administrators and have all other users see non-cached pages. Is there a way to do this? Perhaps something like passing a block to caches_action or setting some sort of flag in my authentication method? If this is not possible with action or fragment caching does anyone know of a
2006 Jan 08
1
extend classes
Hello, How would I correctly extend the draggable class to e.g. add some resize functions. Any input is highly appreciated. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2005 Dec 02
0
Resizeable DIVs
...mitations, I won''t submit this for inclusion in the script.aculo.us library. They currently don''t affect my usage, and it is pretty cool, so I''m putting it out there for others to use (and improve?) Description, example and source code available here: http://blog.craz8.com/articles/2005/12/01/make-your-divs-resizeable Comments welcome _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Jan 08
0
RE: Replacing an html chunk with a different htmlchunk
...akes Sent: Saturday, January 07, 2006 4:48 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails-spinoffs] Replacing an html chunk with a different htmlchunk I have some code replaces an existing HTML element with new HTML. It can be found here: http://blog.craz8.com/articles/2005/12/15/rails-rjs-templates-need-bette r-re place-semantics The last chunk of code in that entry is an extension to the Element class that allows you to say: Element.replace(''foo'', ''<div id="foo">...</div>''); Just add thi...
2006 Jan 19
4
PHP ob_start in Ruby
I need to include Content-Length in each file. In PHP it would be: <?php ob_start(); ?> html <?php header(''Content-Length: '' . ob_get_length()); ob_end_flush(); ?> How can I do the same in Ruby? Thanks, eduard -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 19
7
Tag Cloud Code
Does anyone have any sample code for a tag cloud. I''ve looked at typo but they''ve just got complicated sql (which I don''t have a clue about). All I want is to select tags and make them bigger/smaller depending on the number of pages that are ''tagged'' by them. Thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Jan 08
2
Replacing an html chunk with a different html chunk
All, I''m a big fan of the Insertion.* classes in prototype (Insertion.Before, Insertion.After, Insertion.Top, Insertion.Bottom). These classes solve the problem of adding new html to existing html in the desired place. Very useful. But what about replacing one chunk of HTML with another? Or removing a specific chunk of HTML? These tasks come up just as often. 1)Am I correct that