# Top

**URL:** https://www.ruby-forum.com/top.md?page=1467

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1468

---

## [How to play .avi and view jpg?](https://www.ruby-forum.com/t/how-to-play-avi-and-view-jpg/110449)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 3:16am UTC](https://www.ruby-forum.com/t/how-to-play-avi-and-view-jpg/110449 "2007-07-27T03:16:55Z")

</div>

I’m trying to write some client software that can play .avi videos, either in a window or full screen, as well as display photos. What is the best way to do this in Ruby? A library that works across platforms would be…

---

## [Dynamic sort\_by criteria, making it DRY](https://www.ruby-forum.com/t/dynamic-sort-by-criteria-making-it-dry/108017)

<div class="topic-metadata">

**Author:** [@Josselin](https://www.ruby-forum.com/u/Josselin)\
**Replies:** 4\
**Last updated:** [June 29, 2007, 8:15am UTC](https://www.ruby-forum.com/t/dynamic-sort-by-criteria-making-it-dry/108017 "2007-06-29T08:15:39Z")

</div>

I am presently using a sort\_by on my array =\> buddies = user\_buddies.sort\_by {|item| item.last\_seen\_at} I would like to be able to do the same , based on a variable @criteria set to the item key to be used @crit…

---

## [Nil objects that are not nil elsewhere in same scope](https://www.ruby-forum.com/t/nil-objects-that-are-not-nil-elsewhere-in-same-scope/105291)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 4\
**Last updated:** [May 28, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/nil-objects-that-are-not-nil-elsewhere-in-same-scope/105291 "2007-05-28T15:11:47Z")

</div>

hi there how can an object be nil in line 37 but not nil in lines 34 & 40??? Parameters: {“activity\_id”=\>“7”, “action”=\>“show”, “id”=\>“15”, “controller”=\>“photos”} User Columns (0.016000) SHOW FIELDS FROM users Us…

---

## [Model and lazy loading](https://www.ruby-forum.com/t/model-and-lazy-loading/103035)

<div class="topic-metadata">

**Author:** [@mario](https://www.ruby-forum.com/u/mario)\
**Replies:** 4\
**Last updated:** [May 1, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/model-and-lazy-loading/103035 "2007-05-01T14:12:54Z")

</div>

Is there a concept of having a model attribute loaded only when necessary. For example, I have a model called product with an attribute called file which is stored in the database as a blob. I would like to be able …

---

## [Is there something I am missing?](https://www.ruby-forum.com/t/is-there-something-i-am-missing/93008)

<div class="topic-metadata">

**Author:** [@darushin](https://www.ruby-forum.com/u/darushin)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/is-there-something-i-am-missing/93008 "2007-04-27T17:16:31Z")

</div>

this s more of a syntax question then a problem persay. I was optimizing some older code on one of my projects when I hit and interesting problem. First the Working Code: placeholder = 0 while(@record\_album\[placehold…

---

## [Caching one page breaks another](https://www.ruby-forum.com/t/caching-one-page-breaks-another/93073)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 6:24am UTC](https://www.ruby-forum.com/t/caching-one-page-breaks-another/93073 "2007-04-27T06:24:06Z")

</div>

Hi, I am caching the index page for a resource using caches\_page :index. Now it looks like when I POST a resource to the same (index-)URL which should be routed to the ‘create’ method, the rails app doesn’t even proc…

---

## [Slow ruby execution on FreeBSD](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92598)

<div class="topic-metadata">

**Author:** [@Guy\_S](https://www.ruby-forum.com/u/Guy_S)\
**Replies:** 4\
**Last updated:** [April 21, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92598 "2007-04-21T15:20:09Z")

</div>

Howdy, Total green-horn here. A few weeks ago, a test website we were bulding (on freebsd with mysql) slowed waaaay down. I believe I have the problem narrowed down to this line of code in /vendor/rails/railties/li…

---

## [Confirmation su link\_to in IE](https://www.ruby-forum.com/t/confirmation-su-link-to-in-ie/90230)

<div class="topic-metadata">

**Author:** [@chiaroscuro](https://www.ruby-forum.com/u/chiaroscuro)\
**Replies:** 4\
**Last updated:** [March 28, 2007, 8:53am UTC](https://www.ruby-forum.com/t/confirmation-su-link-to-in-ie/90230 "2007-03-28T08:53:22Z")

</div>

ho un problema su IE con la confirmation in link\_to. sia che io prema ok o cancel, viene effettuata una chiamata a OK. su firefox invece se premo cancel non viene effettuata nessuna chiamata, come dovrebbe essere. i…

---

## [Extend url\_for](https://www.ruby-forum.com/t/extend-url-for/89944)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 4\
**Last updated:** [March 26, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/extend-url-for/89944 "2007-03-26T22:50:39Z")

</div>

Hi! I want to extend the url\_for function (and some more functions) with a plugin. Now I tried this: ExtendBase module ActiveController class Base def url\_for 'OK' end end end def url\_for ‘OK’ end But that …

---

## [Detecting when a record is saved](https://www.ruby-forum.com/t/detecting-when-a-record-is-saved/89419)

<div class="topic-metadata">

**Author:** [@chris\_finch](https://www.ruby-forum.com/u/chris_finch)\
**Replies:** 4\
**Last updated:** [March 22, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/detecting-when-a-record-is-saved/89419 "2007-03-22T16:38:52Z")

</div>

Hi all, I have wrote a RoR app that analyzes results in a mysql database. Data is input to the database with a java GUI. Is it possible to automatically detect when new data is saved into the DB and then do something…

---

## [Buscar tags mediante el plugin acts\_as\_taggable](https://www.ruby-forum.com/t/buscar-tags-mediante-el-plugin-acts-as-taggable/87499)

<div class="topic-metadata">

**Author:** [@Joselo](https://www.ruby-forum.com/u/Joselo)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 1:18pm UTC](https://www.ruby-forum.com/t/buscar-tags-mediante-el-plugin-acts-as-taggable/87499 "2007-03-04T13:18:52Z")

</div>

Hola a todos, una pregunta con respecto a acts\_as\_taggable: El escenario: He usando acts\_as\_taggable para colocar tags a Libro. Ahora necesito hacer un buscador en la pagina principal que permita encontrar un libro: …

---

## [Initializing dynamic instance methods](https://www.ruby-forum.com/t/initializing-dynamic-instance-methods/85555)

<div class="topic-metadata">

**Author:** [@Lars\_O](https://www.ruby-forum.com/u/Lars_O)\
**Replies:** 4\
**Last updated:** [February 15, 2007, 4:35am UTC](https://www.ruby-forum.com/t/initializing-dynamic-instance-methods/85555 "2007-02-15T04:35:17Z")

</div>

Hi list! What’s the best way to remedy the error/warning that the following code produces? class Parent def self.foo() module\_eval(“def foo(); @foo; end”) module\_eval(“def foo=(newfoo); @foo = newfoo; end”) end e…

---

## [Posipele to jump to another line in the program?](https://www.ruby-forum.com/t/posipele-to-jump-to-another-line-in-the-program/80978)

<div class="topic-metadata">

**Author:** [@hanez](https://www.ruby-forum.com/u/hanez)\
**Replies:** 4\
**Last updated:** [January 2, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/posipele-to-jump-to-another-line-in-the-program/80978 "2007-01-02T19:41:27Z")

</div>

Okay guys! I am pritty new to Ruby programing and i need your help. Is it possibel to ask the program to go back to another program line number and then proceed from there? an exampele: ans1 = gets.chomp \<----------…

---

## [Easy way to do a HTTPS POST?](https://www.ruby-forum.com/t/easy-way-to-do-a-https-post/75583)

<div class="topic-metadata">

**Author:** [@gregarican](https://www.ruby-forum.com/u/gregarican)\
**Replies:** 4\
**Last updated:** [November 12, 2006, 9:45pm UTC](https://www.ruby-forum.com/t/easy-way-to-do-a-https-post/75583 "2006-11-12T21:45:13Z")

</div>

For a business banking app I needed to script out something that would upload a PGP-encrypted text file through a HTTPS POST command. Since Ruby is my language of choice for quick hitters like this I looked into using…

---

## [R4Rails book is losing me](https://www.ruby-forum.com/t/r4rails-book-is-losing-me/71422)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 4\
**Last updated:** [October 8, 2006, 10:36pm UTC](https://www.ruby-forum.com/t/r4rails-book-is-losing-me/71422 "2006-10-08T22:36:25Z")

</div>

I’ve spent this past week reading the Ruby4Rails book, and for the most part, it’s great. After the initial introduction on rails, and the indepth ruby information, it takes me back to the rails stuff, which i was loo…

---

## [Question on exec subprocesses](https://www.ruby-forum.com/t/question-on-exec-subprocesses/70416)

<div class="topic-metadata">

**Author:** [@Phy\_P](https://www.ruby-forum.com/u/Phy_P)\
**Replies:** 4\
**Last updated:** [September 29, 2006, 2:34am UTC](https://www.ruby-forum.com/t/question-on-exec-subprocesses/70416 "2006-09-29T02:34:20Z")

</div>

Folks, Can someone shed some light on how I can accomplish something similar to this: exec(“foo action”) exec(“foobar action”) Process.wait I want to wait on the second process, yet in ruby 184, all processes are …

---

## [OpenExp 2006 di Verona](https://www.ruby-forum.com/t/openexp-2006-di-verona/69607)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [September 22, 2006, 1:12pm UTC](https://www.ruby-forum.com/t/openexp-2006-di-verona/69607 "2006-09-22T13:12:57Z")

</div>

La settimana prossima, da venerdì, a Verona si terrà l’OpenExp. Dopo una breve ricerca ho notato che nonostante ci saranno diversi talk su Ruby, Rails e Web 2.0 non se ne è ancora parlato in questa ML, quindi provved…

---

## [Massive data insert during migration](https://www.ruby-forum.com/t/massive-data-insert-during-migration/68637)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 4\
**Last updated:** [September 14, 2006, 4:55am UTC](https://www.ruby-forum.com/t/massive-data-insert-during-migration/68637 "2006-09-14T04:55:11Z")

</div>

Hello all, I’ve got a site that will be used by people (hopefully) all over the world. One of the requirements of registration is country and province of residence. I have a list of all the countries in the world and …

---

## [Ruby httpd/cgi server for a directory](https://www.ruby-forum.com/t/ruby-httpd-cgi-server-for-a-directory/64856)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 4\
**Last updated:** [August 17, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/ruby-httpd-cgi-server-for-a-directory/64856 "2006-08-17T16:41:28Z")

</div>

Hello, I have a set of ruby scripts I run manually from the command line. I’d like to put a simple web front-end to them and use them as cgi scripts. I also want to be able to keep them on a USB stick and run them an…

---

## [Gems not working (Windows 184-20)](https://www.ruby-forum.com/t/gems-not-working-windows-184-20/65035)

<div class="topic-metadata">

**Author:** [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Replies:** 4\
**Last updated:** [August 17, 2006, 1:52am UTC](https://www.ruby-forum.com/t/gems-not-working-windows-184-20/65035 "2006-08-17T01:52:19Z")

</div>

I hate that I don’t understand why this is failing, and have to turn to the list for help. The problem is that rubygems can’t find files that it itself installed. In an attempt to fix things, I just deleted my entire …

---

## [How To Test For W3C compliance locally and possibly to inclu](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105)

<div class="topic-metadata">

**Author:** [@monozub](https://www.ruby-forum.com/u/monozub)\
**Replies:** 4\
**Last updated:** [July 27, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105 "2006-07-27T16:54:22Z")

</div>

Hi Everyone, As many of you out there I’m “protected” by the firewall which prevents me from checking my code for W3C compliance, I am able to check the production code but i would like to test my code before it goes…

---

## [Roles based authentication](https://www.ruby-forum.com/t/roles-based-authentication/100153)

<div class="topic-metadata">

**Author:** [@sabin](https://www.ruby-forum.com/u/sabin)\
**Replies:** 4\
**Last updated:** [July 27, 2006, 4:17pm UTC](https://www.ruby-forum.com/t/roles-based-authentication/100153 "2006-07-27T16:17:46Z")

</div>

hi! im trying to implement a role based authentication in my project, but im writing too many conditions, and i think thats not the right way to proceed. i have search in google, but there are a lot of plugins and “t…

---

## [Rake doc:rails fails](https://www.ruby-forum.com/t/rake-doc-rails-fails/59769)

<div class="topic-metadata">

**Author:** [@regularfry](https://www.ruby-forum.com/u/regularfry)\
**Replies:** 4\
**Last updated:** [May 7, 2006, 10:17am UTC](https://www.ruby-forum.com/t/rake-doc-rails-fails/59769 "2006-05-07T10:17:31Z")

</div>

Hi there, Running doc:rails and doc:rerails on a fresh rails directory after running ‘rake freeze\_gems’ fail with the following error: Don’t know how to build task ‘vendor/rails/activesupport/README’ Should it work…

---

## [Up-dates](https://www.ruby-forum.com/t/up-dates/94296)

<div class="topic-metadata">

**Author:** [@mohammad](https://www.ruby-forum.com/u/mohammad)\
**Replies:** 4\
**Last updated:** [April 28, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/up-dates/94296 "2006-04-28T15:19:51Z")

</div>

I started working on a chat program but, I’m having this problem chatroom.rhtml \<%= periodically\_call\_remote( :update =\> "chatroom", :url =\> {:action =\> :chat }, …

---

## [Changing accessor list order](https://www.ruby-forum.com/t/changing-accessor-list-order/55821)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 4\
**Last updated:** [March 24, 2006, 5:57am UTC](https://www.ruby-forum.com/t/changing-accessor-list-order/55821 "2006-03-24T05:57:17Z")

</div>

Ok, I’m pretty new to Rails and I’m building a bug tracker as my first real project. I have a situation where a bug can have multiple comments. Pretty simple. When I show the comments on the screen, I want to make su…

---

## [Activerecord - mysql blobs](https://www.ruby-forum.com/t/activerecord-mysql-blobs/55515)

<div class="topic-metadata">

**Author:** [@barinek](https://www.ruby-forum.com/u/barinek)\
**Replies:** 4\
**Last updated:** [March 23, 2006, 4:06pm UTC](https://www.ruby-forum.com/t/activerecord-mysql-blobs/55515 "2006-03-23T16:06:37Z")

</div>

I’m struggling with activerecord and mysql blobs (uploading files)… blobs over 400K-ish cause the below exception… ActiveRecord::StatementInvalid in File#upload Mysql::Error: Lost connection to MySQL server during que…

---

## [Link\_to\_remote doubles border size](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546)

<div class="topic-metadata">

**Author:** [@genghis](https://www.ruby-forum.com/u/genghis)\
**Replies:** 4\
**Last updated:** [February 17, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/link-to-remote-doubles-border-size/69546 "2006-02-17T18:18:34Z")

</div>

I have a div with a border around it. I use link\_to\_remote to change the content, and the border size doubles. Example: \<%= link\_to\_remote("Test", :update =\> "test", :url =\> { :controller =\> "tester", :action =\> "te…

---

## [File\_column](https://www.ruby-forum.com/t/file-column/91786)

<div class="topic-metadata">

**Author:** [@scidept](https://www.ruby-forum.com/u/scidept)\
**Replies:** 4\
**Last updated:** [December 2, 2005, 11:02am UTC](https://www.ruby-forum.com/t/file-column/91786 "2005-12-02T11:02:05Z")

</div>

I’m trying to use the file\_column plugin, and the upload portion of it works beautifully. I’m trying to display the images now and I’m having a couple problems. First is, when I try to use url\_for\_file\_column, I get …

---

## [New to programming help with this study drill](https://www.ruby-forum.com/t/new-to-programming-help-with-this-study-drill/242909)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [August 7, 2015, 11:24am UTC](https://www.ruby-forum.com/t/new-to-programming-help-with-this-study-drill/242909 "2015-08-07T11:24:25Z")

</div>

Been programming only 3 days. Sorry for the extreme newbie question but I am working on a study drill where I am suppose to ask the user for a money amount and give back 10% of it. So far It looks like it works but I …

---

## [Nginx configuration recovery](https://www.ruby-forum.com/t/nginx-configuration-recovery/234604)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [March 17, 2015, 8:49pm UTC](https://www.ruby-forum.com/t/nginx-configuration-recovery/234604 "2015-03-17T20:49:08Z")

</div>

Hi, Sorry for spamming but I’m in deep trouble. I’ve accidentally overwritten /etc/nginx/site-availabe/default with some xyz file. I’m using Ubuntu 14.04. The server is still running. Is there any way I could recove…

---

## [Download and movie alias](https://www.ruby-forum.com/t/download-and-movie-alias/233766)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [January 11, 2015, 3:27pm UTC](https://www.ruby-forum.com/t/download-and-movie-alias/233766 "2015-01-11T15:27:35Z")

</div>

Hello, i use static directory for my css files, video files and download directory. I understand not why the link www.example.com/download not work but www.example.com/download/ works. Has someone an idea what is wro…

---

## [Counter with lambda syntax error](https://www.ruby-forum.com/t/counter-with-lambda-syntax-error/238476)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 14, 2014, 4:54am UTC](https://www.ruby-forum.com/t/counter-with-lambda-syntax-error/238476 "2014-01-14T04:54:06Z")

</div>

When I run this exercise: def counter(start) -\>(start) { start++ } end count = counter 0 (1…10).each do |i| puts “#{count.call(i)}\\n” end … I get this error: ex1.rb:2: syntax error, unexpected ‘}’ ex1.rb:8: syn…

---

## [Gnuradio at FOSDEM 2014](https://www.ruby-forum.com/t/gnuradio-at-fosdem-2014/238344)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 5, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/gnuradio-at-fosdem-2014/238344 "2014-01-05T18:03:06Z")

</div>

Hi, I have seen that on sunday, the 2nd of february, there is a complete “Software Defined Radio” devroom at FOSDEM 2014 (Free and OpenSource Developers Eurooean Meeting) here in Brussels. https://fosdem.org/2014/sch…

---

## [How is mongoid syntax implemented?](https://www.ruby-forum.com/t/how-is-mongoid-syntax-implemented/237094)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 24, 2013, 8:02pm UTC](https://www.ruby-forum.com/t/how-is-mongoid-syntax-implemented/237094 "2013-10-24T20:02:30Z")

</div>

In mongoid, a ORM mapped database object is like below. The part “type: String” seems to me to not fit into any standard ruby syntax and I was curious how does mongoid implement that ? class Step include Mongoid::Doc…

---

## [\[JOBS\] Ruby on Rails - Freelancing](https://www.ruby-forum.com/t/jobs-ruby-on-rails-freelancing/236344)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [September 2, 2013, 11:36am UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-freelancing/236344 "2013-09-02T11:36:35Z")

</div>

Hi, Looking an expert in Ruby on Rails for maintaining & implementing new concepts and optimization of our website. For more details write back. Regards, Arun M Thrillophilia.com http://www.thrillophilia.com

---

## [How to redirect to a specific page?](https://www.ruby-forum.com/t/how-to-redirect-to-a-specific-page/245862)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 2\
**Last updated:** [July 21, 2013, 8:48am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-a-specific-page/245862 "2013-07-21T08:48:36Z")

</div>

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to redirect localhost:3000 to a specific page. i opened routes.rb file and uncommented the line map.root :controller =\> “Welcome” I created a contro…

---

## [\[HELP\] Error cannot load (or bundle) 'pg' gem on local windows 7 Ruby on Rails](https://www.ruby-forum.com/t/help-error-cannot-load-or-bundle-pg-gem-on-local-windows-7-ruby-on-rails/235442)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [June 22, 2013, 7:42pm UTC](https://www.ruby-forum.com/t/help-error-cannot-load-or-bundle-pg-gem-on-local-windows-7-ruby-on-rails/235442 "2013-06-22T19:42:18Z")

</div>

I posted a question on SO, but no one answered so far.rubygems - Error cannot load 'pg' gem on local windows 7 Ruby on Rails - Stack Overflow I just started to learn ruby on rails. I have pg gem installed. And ‘pg’ is…

---

## [Memory leaks nginx with lua memc upstream\_keepalive modules/](https://www.ruby-forum.com/t/memory-leaks-nginx-with-lua-memc-upstream-keepalive-modules/216903)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [February 17, 2012, 5:07am UTC](https://www.ruby-forum.com/t/memory-leaks-nginx-with-lua-memc-upstream-keepalive-modules/216903 "2012-02-17T05:07:38Z")

</div>

\[root@VKRT083 /home/fish\]# uname -a FreeBSD VKRT083.local 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 removed\_email\_address@domain.invalid:/usr/obj/usr/src/sys/GENERIC amd64 \[root@VKRT083 …

---

## [How do you create a sub-layout or a partial that wraps a lot of custom html?](https://www.ruby-forum.com/t/how-do-you-create-a-sub-layout-or-a-partial-that-wraps-a-lot-of-custom-html/207244)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [May 23, 2011, 10:56pm UTC](https://www.ruby-forum.com/t/how-do-you-create-a-sub-layout-or-a-partial-that-wraps-a-lot-of-custom-html/207244 "2011-05-23T22:56:06Z")

</div>

Basically I’d like to create a layout inside of a layout using erb. Something like this: \<%= render :partial =\> ‘support’ do %\> \<%= @help\_document.question %\> \<%= @help\_document.content %\> \<div id="helpDocumen…

---

## [Creating Rails Developer Guide](https://www.ruby-forum.com/t/creating-rails-developer-guide/204171)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [March 7, 2011, 2:04pm UTC](https://www.ruby-forum.com/t/creating-rails-developer-guide/204171 "2011-03-07T14:04:45Z")

</div>

Hello, One of the things, that I really enjoy about the rails project is the comprehensive developer guides (http://guides.rubyonrails.org/) I am currently working on some projects where I need to create a user guide…

---

## [Specing a model to make sure it implements act\_as\_authentic](https://www.ruby-forum.com/t/specing-a-model-to-make-sure-it-implements-act-as-authentic/200237)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 2\
**Last updated:** [December 16, 2010, 7:22am UTC](https://www.ruby-forum.com/t/specing-a-model-to-make-sure-it-implements-act-as-authentic/200237 "2010-12-16T07:22:54Z")

</div>

Is it possible to spec that a model should acts\_as\_authentic which is from the authlogic gem? I’m using rspec-1.3.x Cheers Stephen

---

## [Link\_to using a hashed :token instead of :id](https://www.ruby-forum.com/t/link-to-using-a-hashed-token-instead-of-id/198842)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 2\
**Last updated:** [November 9, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/link-to-using-a-hashed-token-instead-of-id/198842 "2010-11-09T15:44:03Z")

</div>

With Rails 3, how do I create a “link\_to” reference that uses a pre- exisiting token value instead of the record id? Is there a way to use the URLHelpers to do this, or do I need to use the old style “link\_to” syntax …

---

## [Ruby 1.9 and Redis](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 2\
**Last updated:** [September 7, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587 "2010-09-07T16:34:42Z")

</div>

Hello, I’m running on Snow Leopard, Ruby 1.9.1-p429 and i’m using the Redis 2.0.5 gem. Now when I’m running this line on OS X: redis.keys("") it fails, when I run it on Linux, it works! on OS X, I’m getting the foll…

---

## [View spec template.base\_path](https://www.ruby-forum.com/t/view-spec-template-base-path/185769)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 2\
**Last updated:** [March 27, 2010, 12:15am UTC](https://www.ruby-forum.com/t/view-spec-template-base-path/185769 "2010-03-27T00:15:05Z")

</div>

I have a helper method def partial\_path\_for(partial, options = {}) base\_path = options\[:base\_path\] || self.template.base\_path “\_partials/#{base\_path}/#{partial}” end and use it in a template (haml) like = render :p…

---

## [Single php file location match](https://www.ruby-forum.com/t/single-php-file-location-match/184609)

<div class="topic-metadata">

**Author:** [@drewrockshard](https://www.ruby-forum.com/u/drewrockshard)\
**Replies:** 2\
**Last updated:** [March 5, 2010, 2:24pm UTC](https://www.ruby-forum.com/t/single-php-file-location-match/184609 "2010-03-05T14:24:20Z")

</div>

How would I go about running a PHP file that is only matched by the request of that file? Meaning, how can someone request a file and nginx run this configuration ONLY when this PHP file is requested. Here is what I …

---

## [Integrate \*own\* ruby on rails chat application, is there a gem for that?](https://www.ruby-forum.com/t/integrate-own-ruby-on-rails-chat-application-is-there-a-gem-for-that/174063)

<div class="topic-metadata">

**Author:** [@JGoodrich](https://www.ruby-forum.com/u/JGoodrich)\
**Replies:** 2\
**Last updated:** [August 21, 2009, 12:44am UTC](https://www.ruby-forum.com/t/integrate-own-ruby-on-rails-chat-application-is-there-a-gem-for-that/174063 "2009-08-21T00:44:38Z")

</div>

So, I abhor using 3rd party API’s personally, as it creates extra dependencies and extra possible points of failure for our business. As a result, no, we’re not going to use meebo, etc, or similar (they spammed us WAY…

---

## [Mongrel Malformed Request error - help!](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 2\
**Last updated:** [June 29, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258 "2009-06-29T17:50:18Z")

</div>

I’ve just migrated my system over to a new macbook. I’ve been having a nightmare today trying to get the site I’m working on to work… All gems are in place, MySQL etc. However - I am stuck on this error form Mongrel: …

---

## [Plugin calendar\_date\_select](https://www.ruby-forum.com/t/plugin-calendar-date-select/166637)

<div class="topic-metadata">

**Author:** [@aprendiz\_ror](https://www.ruby-forum.com/u/aprendiz_ror)\
**Replies:** 2\
**Last updated:** [April 28, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/plugin-calendar-date-select/166637 "2009-04-28T16:21:51Z")

</div>

Buenas. encontre problemas al querer usar este plugin mas de una vez en la misma vista, sobre todo cuando actualizo datos ya que borra una de las dos fechas o cambia la fecha entre dia y mes. saludos

---

## [Q: hash parameter passed to c++ ruby extension is incomplete](https://www.ruby-forum.com/t/q-hash-parameter-passed-to-c-ruby-extension-is-incomplete/162552)

<div class="topic-metadata">

**Author:** [@yurid](https://www.ruby-forum.com/u/yurid)\
**Replies:** 2\
**Last updated:** [March 11, 2009, 10:42am UTC](https://www.ruby-forum.com/t/q-hash-parameter-passed-to-c-ruby-extension-is-incomplete/162552 "2009-03-11T10:42:17Z")

</div>

I’m trying to pass following hash to my c++ ruby extension: h1 = {“G804988.19” =\> 0, “G804988.21” =\> 0, “NH3812.06” =\> 0, “NH3812.10” =\> 0} myext.SomeFunction(h1) The hash looks fine from script: h1.each\_pair {| key…

---

## [\[RSpec\] Cannot save or be\_valid when using xss\_terminate](https://www.ruby-forum.com/t/rspec-cannot-save-or-be-valid-when-using-xss-terminate/159236)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [February 2, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/rspec-cannot-save-or-be-valid-when-using-xss-terminate/159236 "2009-02-02T18:07:05Z")

</div>

Hi, I have a Rails app that uses xss\_terminate to sanitize the user input before it gets saved to the DB. In my specs when I call @product.should be\_valid or @product.save, I get the following error message: NoMethodE…

[Previous page](https://www.ruby-forum.com/top.md?page=1466&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1468&per_page=50)
