# Top

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

[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:** 1214

---

## [How to enable activerecord whitelist\_attributes in non-Rails environment?](https://www.ruby-forum.com/t/how-to-enable-activerecord-whitelist-attributes-in-non-rails-environment/222154)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 19, 2012, 2:49pm UTC](https://www.ruby-forum.com/t/how-to-enable-activerecord-whitelist-attributes-in-non-rails-environment/222154 "2012-08-19T14:49:44Z")

</div>

Hello all, I’m developing a sinatra application and loads ActiveRecord in, sometimes it will just report warning for mass for attributes, how can I enable it in non-Rails environment? checked in rails code, it’s conf…

---

## [Problem installing gem - please help](https://www.ruby-forum.com/t/problem-installing-gem-please-help/210085)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [July 30, 2011, 8:23am UTC](https://www.ruby-forum.com/t/problem-installing-gem-please-help/210085 "2011-07-30T08:23:14Z")

</div>

I need to install gem GData RobsMacAir:Developer rob$ sudo gem install GData -v=0.0.4 Password: ERROR: Error installing GData: hoe requires RubyGems version \>= 1.4 RobsMacAir:Developer rob$ sudo gem install RubyGem…

---

## [E' corretto usare il metodo last?](https://www.ruby-forum.com/t/e-corretto-usare-il-metodo-last/203171)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 2\
**Last updated:** [February 15, 2011, 12:53pm UTC](https://www.ruby-forum.com/t/e-corretto-usare-il-metodo-last/203171 "2011-02-15T12:53:48Z")

</div>

Customer has many deliveries. @customer=Customer.find(params\[:id\]) Tramite un form assegno una Delivery a @customer e faccio una redirect alla action show di Customer dove ho un @customer=Customer.find(params\[:id\]), …

---

## [Nginx v0.7.67 and php-fpm 5.3.3 SEO "pretty URL's" Problem](https://www.ruby-forum.com/t/nginx-v0-7-67-and-php-fpm-5-3-3-seo-pretty-urls-problem/192713)

<div class="topic-metadata">

**Author:** [@Per\_Hansson](https://www.ruby-forum.com/u/Per_Hansson)\
**Replies:** 2\
**Last updated:** [August 15, 2010, 1:01am UTC](https://www.ruby-forum.com/t/nginx-v0-7-67-and-php-fpm-5-3-3-seo-pretty-urls-problem/192713 "2010-08-15T01:01:58Z")

</div>

Hi, I’m having a problem with nginx after upgrading php-fpm from PHP version 5.3.2 \> 5.3.3 (internal php-fpm version 0.6.0 \> 0.6.5) After doing the upgrade a “pretty URL’s” fastcgi\_pass I use no longer works, now php-…

---

## [Redirections, Duplicate Content & Permalinks](https://www.ruby-forum.com/t/redirections-duplicate-content-permalinks/190059)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/redirections-duplicate-content-permalinks/190059 "2010-06-12T16:22:05Z")

</div>

Hi, Recently I’ve looked at trying to get a permalink system up to increase my site’s ranking in google (and to have nice looking URLs); however I’ve been very worried about google and duplicate content. I currently …

---

## [Using Rails form helpers on non-existent methods](https://www.ruby-forum.com/t/using-rails-form-helpers-on-non-existent-methods/183744)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 2\
**Last updated:** [February 19, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/using-rails-form-helpers-on-non-existent-methods/183744 "2010-02-19T15:12:42Z")

</div>

Normally, when using form helpers in Rails, each field directly correlates to a method on the appropriate object. However, I have a form (user signup) that needs to include fields that are not part of the user model i…

---

## [AIO cause memory leak](https://www.ruby-forum.com/t/aio-cause-memory-leak/180846)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 2\
**Last updated:** [December 31, 2009, 2:26am UTC](https://www.ruby-forum.com/t/aio-cause-memory-leak/180846 "2009-12-31T02:26:17Z")

</div>

I got the memory leak error on my linux server when I added ‘aio on;’ in my nginx.conf, The os is fedora 11(x86-64) and gentoo(x86-64),The kernel is 2.6.29+. I’ve already set 'directio 2m; sendfile on; ’ into nginx.co…

---

## [Overriding model's save method](https://www.ruby-forum.com/t/overriding-models-save-method/173802)

<div class="topic-metadata">

**Author:** [@Tommy\_Bergeron](https://www.ruby-forum.com/u/Tommy_Bergeron)\
**Replies:** 2\
**Last updated:** [August 16, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/overriding-models-save-method/173802 "2009-08-16T17:37:52Z")

</div>

Hi! Okay, so let’s start I’m starting rails so here’s a noob question for you! I did a little blog with scaffolding. Everything is working as expected but I’d like to modify it’s functionality. I’ve been a PHP devel…

---

## [ActionController::RoutingError (No route matches "/say/hello" with {:method=\>:get}):](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-matches-say-hello-with-method-get/173041)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [August 3, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror-no-route-matches-say-hello-with-method-get/173041 "2009-08-03T18:19:42Z")

</div>

Hello: I have found a whole lot of posts on this, however, none of them offer any sort of solution other than restarting the web server, which I can’t imagine everyone out there developing on Rails is doing. I am on …

---

## [Claiming interface 2 (RX) fails!](https://www.ruby-forum.com/t/claiming-interface-2-rx-fails/162668)

<div class="topic-metadata">

**Author:** [@ujala](https://www.ruby-forum.com/u/ujala)\
**Replies:** 2\
**Last updated:** [March 12, 2009, 6:38pm UTC](https://www.ruby-forum.com/t/claiming-interface-2-rx-fails/162668 "2009-03-12T18:38:42Z")

</div>

Hi! I am trying to write a program in C that interfaces between USRP and Windows, this is my initial code: #include “usb.h” #include “usrp\_spi\_defs.h” #include “usrp\_commands.h” #include “fpga\_regs\_standard.h” #in…

---

## [\[ANN\] RSpec-1.1.12 - RC1](https://www.ruby-forum.com/t/ann-rspec-1-1-12-rc1/156871)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 2:59am UTC](https://www.ruby-forum.com/t/ann-rspec-1-1-12-rc1/156871 "2009-01-05T02:59:00Z")

</div>

Hey all, I’m getting ready to do a 1.1.12 release of rspec and rspec-rails. Given the history of release-related compatibility problems, I offer you release candidate gems, which you can acquire thusly: \[sudo\] gem in…

---

## [Your word frequency calculator?](https://www.ruby-forum.com/t/your-word-frequency-calculator/155823)

<div class="topic-metadata">

**Author:** [@CSPohjanraito](https://www.ruby-forum.com/u/CSPohjanraito)\
**Replies:** 2\
**Last updated:** [December 18, 2008, 2:34am UTC](https://www.ruby-forum.com/t/your-word-frequency-calculator/155823 "2008-12-18T02:34:20Z")

</div>

Hi! I am studying various texts and code. Word frequency calculator is one basic tool. I find it an interesting, elementary problem to solve. I found this word frequency analyser by William J.: freq = Hash.new(0) lo…

---

## [Problema con varios controladores y una misma vista](https://www.ruby-forum.com/t/problema-con-varios-controladores-y-una-misma-vista/145366)

<div class="topic-metadata">

**Author:** [@maite](https://www.ruby-forum.com/u/maite)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/problema-con-varios-controladores-y-una-misma-vista/145366 "2008-08-08T17:00:59Z")

</div>

hola lista tengo varios controladores y una vista para todos, el application.html.erb; de todos los controladores que tengo para acceder a algunos necesito estar logeado y a otros no, por eso en la vista tengo if c…

---

## [Mechanize click()-Problem](https://www.ruby-forum.com/t/mechanize-click-problem/128835)

<div class="topic-metadata">

**Author:** [@kien](https://www.ruby-forum.com/u/kien)\
**Replies:** 2\
**Last updated:** [February 12, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/mechanize-click-problem/128835 "2008-02-12T13:28:21Z")

</div>

Hello, I try to log on to a website using mechanize. I can submit my username and password, but when I get redirected I have a problem. I want to click on a link using following code: link = page.links.href(/index.ph…

---

## [Guardar un campo de texto siempre em mayuscula, donde es tcnicamente hacerlo?](https://www.ruby-forum.com/t/guardar-un-campo-de-texto-siempre-em-mayuscula-donde-es-tcnicamente-hacerlo/127431)

<div class="topic-metadata">

**Author:** [@Angel\_Mauricio\_Pino](https://www.ruby-forum.com/u/Angel_Mauricio_Pino)\
**Replies:** 2\
**Last updated:** [February 7, 2008, 12:58am UTC](https://www.ruby-forum.com/t/guardar-un-campo-de-texto-siempre-em-mayuscula-donde-es-tcnicamente-hacerlo/127431 "2008-02-07T00:58:28Z")

</div>

Buenas, quiero guardar todos lo campos de texto en mayúscula, ¿donde es lo correcto integrar la orden, y como?, supongo que es en el modelo, pero no se como. creo que eso tiene que ver con la definiciónde atributos de…

---

## [ÃœberflÃ¼ssige automatisch an gehÃ¤ngte Parameter](https://www.ruby-forum.com/t/aoeberfla-ssige-automatisch-an-geha-ngte-parameter/127794)

<div class="topic-metadata">

**Author:** [@stephanos](https://www.ruby-forum.com/u/stephanos)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/aoeberfla-ssige-automatisch-an-geha-ngte-parameter/127794 "2008-02-01T12:00:46Z")

</div>

Hallo, ich habe folgendes Problem: Wenn ich mittels \<%= javascript\_include\_tag “scriptaculous” %\> eine Javascript-Datei einbinde, erhalte ich im Sourcecode Es wird also ein Zeitstempel mit angehängt. Leider zwingt …

---

## [Max File Upload & Max Execution Time](https://www.ruby-forum.com/t/max-file-upload-max-execution-time/118668)

<div class="topic-metadata">

**Author:** [@balaji](https://www.ruby-forum.com/u/balaji)\
**Replies:** 2\
**Last updated:** [November 16, 2007, 9:53am UTC](https://www.ruby-forum.com/t/max-file-upload-max-execution-time/118668 "2007-11-16T09:53:24Z")

</div>

Hi I have a application where i am allowing users to upload high resolution images ( most of them are more than 4.5 MB in size ) because of the file size i am getting server timeout errors , can anyone suggest me ,ho…

---

## [SQLite3::SQLException: no such function: get\_zy\_string](https://www.ruby-forum.com/t/sqlite3-no-such-function-get-zy-string/117035)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 2\
**Last updated:** [October 12, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/sqlite3-no-such-function-get-zy-string/117035 "2007-10-12T18:31:00Z")

</div>

with this script : require ‘sqlite3’ db = SQLite3::Database.new( “backpb.db” ) rows = db.execute( “select distinct UID, lastName, firstName, fullLastName from devicephonebook” ) rows.each { | row | db.execute( “UPD…

---

## [Multiple sites with mongrel and nginx](https://www.ruby-forum.com/t/multiple-sites-with-mongrel-and-nginx/113797)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/multiple-sites-with-mongrel-and-nginx/113797 "2007-09-05T15:45:50Z")

</div>

I’ve got a standard nginx config (NameBright - Coming Soon) which I use to server one php app and one rails app. My mongrel\_cluster.yml file resides in /etc/mongrel\_cluster and is a symlink to my\_app1’s config/mongre…

---

## [Session Problem with Ajax Call](https://www.ruby-forum.com/t/session-problem-with-ajax-call/107205)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 9:24am UTC](https://www.ruby-forum.com/t/session-problem-with-ajax-call/107205 "2007-06-22T09:24:41Z")

</div>

Hai, I am totally new to Ajax. I am trying to use ajax in my project. Its working fine, I am getting problem while session time expires. If session expires means i am redirecting to login page.Onclick i am calling on…

---

## [Understanding :dependent =\> :delete\_all?](https://www.ruby-forum.com/t/understanding-dependent-delete-all/83033)

<div class="topic-metadata">

**Author:** [@gmacgregor](https://www.ruby-forum.com/u/gmacgregor)\
**Replies:** 2\
**Last updated:** [January 23, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/understanding-dependent-delete-all/83033 "2007-01-23T15:39:39Z")

</div>

I can’t see what’s wrong here but that’s probably just because I’m so new to Rails! To get right into it… I have 4 tables that look like this: Sites id Projects id site\_id user\_id Tasks id project\_id user\_id U…

---

## [Activedirectory change password](https://www.ruby-forum.com/t/activedirectory-change-password/80829)

<div class="topic-metadata">

**Author:** [@paul](https://www.ruby-forum.com/u/paul)\
**Replies:** 2\
**Last updated:** [January 17, 2007, 10:01am UTC](https://www.ruby-forum.com/t/activedirectory-change-password/80829 "2007-01-17T10:01:31Z")

</div>

Hi all, I’m currently using Jusin Mecham’s activedirectory-0.9.3 plugin. Does anyone know how can I implement change password against active directory? as a matter of fact, is there a way to update all other info in…

---

## [Use of %() for Strings](https://www.ruby-forum.com/t/use-of-for-strings/68642)

<div class="topic-metadata">

**Author:** [@daveb](https://www.ruby-forum.com/u/daveb)\
**Replies:** 2\
**Last updated:** [September 14, 2006, 4:53am UTC](https://www.ruby-forum.com/t/use-of-for-strings/68642 "2006-09-14T04:53:10Z")

</div>

I notice a lot of code throughout Rails uses this approach to build up a String: a = %(This is line one) a \<\< %(This is line two) a After looking through two books I can’t seem to find a description of what exactly…

---

## [Behaviors, Page Parts and Extending Radiant](https://www.ruby-forum.com/t/behaviors-page-parts-and-extending-radiant/62723)

<div class="topic-metadata">

**Author:** [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Replies:** 2\
**Last updated:** [June 8, 2006, 3:30am UTC](https://www.ruby-forum.com/t/behaviors-page-parts-and-extending-radiant/62723 "2006-06-08T03:30:52Z")

</div>

Hi All: This is just an idea and I am not shure to what extent it fits into the no-fluff concept of Radiant. It seems that many people are trying to extend Radiant and in many cases their extensions have nothing to d…

---

## [Check if current route == some route](https://www.ruby-forum.com/t/check-if-current-route-some-route/58571)

<div class="topic-metadata">

**Author:** [@Henrik\_N](https://www.ruby-forum.com/u/Henrik_N)\
**Replies:** 2\
**Last updated:** [April 23, 2006, 5:00pm UTC](https://www.ruby-forum.com/t/check-if-current-route-some-route/58571 "2006-04-23T17:00:59Z")

</div>

I have a before\_filter in ApplicationController in which I want to check if the current location is the same as a certain route, so that I only redirect non-logged in visitors to the “join” page if they’re not on that…

---

## [Fastcgi or mod\_ruby?](https://www.ruby-forum.com/t/fastcgi-or-mod-ruby/77804)

<div class="topic-metadata">

**Author:** [@Dominik\_Werder](https://www.ruby-forum.com/u/Dominik_Werder)\
**Replies:** 2\
**Last updated:** [March 7, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/fastcgi-or-mod-ruby/77804 "2006-03-07T20:40:15Z")

</div>

Hello! Does anybody know whether mod\_ruby or fastcgi is the superior way of doing http based applications? I don’t need the eruby part of mod\_ruby, and at the moment I’m happy with fastcgi, but maybe it’s good to hear …

---

## [Fails to start webrick](https://www.ruby-forum.com/t/fails-to-start-webrick/54373)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 27, 2005, 1:33am UTC](https://www.ruby-forum.com/t/fails-to-start-webrick/54373 "2005-12-27T01:33:29Z")

</div>

hi I’m trying to setup ruby and rails. I’ve installed ruby and the rails but while trying to start the webserver webrick get the following message: C:\\TestApps\\Rails\>ruby script/server ruby: No such file or director…

---

## [Mail statistics](https://www.ruby-forum.com/t/mail-statistics/217566)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 6\
**Last updated:** [March 5, 2012, 10:40pm UTC](https://www.ruby-forum.com/t/mail-statistics/217566 "2012-03-05T22:40:10Z")

</div>

maybe this forum is not the ideal place for this question, but does anyone know how to track email statistics? such as clicks, delete, spam report.

---

## [How can I detect if the app is accessed from mobile?](https://www.ruby-forum.com/t/how-can-i-detect-if-the-app-is-accessed-from-mobile/141128)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 6\
**Last updated:** [May 13, 2011, 6:34am UTC](https://www.ruby-forum.com/t/how-can-i-detect-if-the-app-is-accessed-from-mobile/141128 "2011-05-13T06:34:43Z")

</div>

Hi, I want to make the divs of my views to take 100% width for mobile browsers and something else for “pc”. How can I detect that? Any hints? Thanks!

---

## [Interesting observation regarding varying time duration it takes to execute fg.start() \[a flowgraph](https://www.ruby-forum.com/t/interesting-observation-regarding-varying-time-duration-it-takes-to-execute-fg-start-a-flowgraph/184743)

<div class="topic-metadata">

**Author:** [@Bishal\_T](https://www.ruby-forum.com/u/Bishal_T)\
**Replies:** 6\
**Last updated:** [March 9, 2010, 12:36am UTC](https://www.ruby-forum.com/t/interesting-observation-regarding-varying-time-duration-it-takes-to-execute-fg-start-a-flowgraph/184743 "2010-03-09T00:36:54Z")

</div>

Hi, I have an interesting observation to share, and I want to see if anybody can help me shed some light. When I measure time in python in the following way: t1 = datetime.now() self.start() t2=datetime.now() di…

---

## [Needed - ass kicking rubyist level 4.2](https://www.ruby-forum.com/t/needed-ass-kicking-rubyist-level-4-2/154072)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 6\
**Last updated:** [November 25, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/needed-ass-kicking-rubyist-level-4-2/154072 "2008-11-25T20:12:51Z")

</div>

here’s the gig . startup . pays well and on time . gaining funding (in the current climate - whoot) . ruby, macs, linux, rails, bsd, mysql, merb, couchdb this’d be a contracting (hourly) situation, at least for a li…

---

## [Long Division (#180)](https://www.ruby-forum.com/t/long-division-180/151163)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 6\
**Last updated:** [October 21, 2008, 10:15am UTC](https://www.ruby-forum.com/t/long-division-180/151163 "2008-10-21T10:15:50Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Threads in JRuby vs standard Ruby](https://www.ruby-forum.com/t/threads-in-jruby-vs-standard-ruby/141309)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [June 24, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/threads-in-jruby-vs-standard-ruby/141309 "2008-06-24T17:32:46Z")

</div>

Hello guys, This is the first time I am working with threads and so far it gave me a good result in the speed of my code, using Ruby 1.8.6 in the native Mac OS X distribution. By I read in the book “The Ruby P.ming l…

---

## [Problem with in\_place\_editor\_field](https://www.ruby-forum.com/t/problem-with-in-place-editor-field/133046)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 6\
**Last updated:** [March 27, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/problem-with-in-place-editor-field/133046 "2008-03-27T16:25:08Z")

</div>

ok, I am really pulling my hair out here over something that should be simple. (Rails2, In\_place\_editor plugin) In my index.html.erb, I have: \<% @tasks.each do |root| %\> \<%= render(:partial =\> "task\_node", :o…

---

## [After scaffolding no data is shown](https://www.ruby-forum.com/t/after-scaffolding-no-data-is-shown/125792)

<div class="topic-metadata">

**Author:** [@imehesz](https://www.ruby-forum.com/u/imehesz)\
**Replies:** 6\
**Last updated:** [January 13, 2008, 3:21am UTC](https://www.ruby-forum.com/t/after-scaffolding-no-data-is-shown/125792 "2008-01-13T03:21:00Z")

</div>

hello, i’m a newbie . . . after a few installation problems finally i got ruby and the rails running. however, i did the scaffolding on a sample database (i created 2 records) and on the main page i see 2 edit and 2 …

---

## [Parsing Ruby code from database possible?](https://www.ruby-forum.com/t/parsing-ruby-code-from-database-possible/116525)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [October 6, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/parsing-ruby-code-from-database-possible/116525 "2007-10-06T21:10:38Z")

</div>

Security concerns aside, if I want to let the user write Rails code to my MySql database (e.g. \<%= "Hello world %\>, and the application would then parse the code, would that be possible?

---

## [Updating without auto timestamping](https://www.ruby-forum.com/t/updating-without-auto-timestamping/112114)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 6\
**Last updated:** [August 15, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/updating-without-auto-timestamping/112114 "2007-08-15T16:40:45Z")

</div>

Hi, Is there a way to stop the automatic timestamping. I have a model that has an updated\_on field. Its great that it updates on save however there is one operation i need to do that I dont want the updated\_on field …

---

## [Session questions - Rails internal operations](https://www.ruby-forum.com/t/session-questions-rails-internal-operations/111445)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 6\
**Last updated:** [August 8, 2007, 4:54am UTC](https://www.ruby-forum.com/t/session-questions-rails-internal-operations/111445 "2007-08-08T04:54:38Z")

</div>

Greetings, I need to explain why carrying around entire objects in the session is a bad idea in Rails. The folks I need to explain this to are relatively new to Rails, coming from a .net background (I personally have…

---

## [A simple Hpricot text setter](https://www.ruby-forum.com/t/a-simple-hpricot-text-setter/102331)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 6\
**Last updated:** [August 16, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/a-simple-hpricot-text-setter/102331 "2006-08-16T21:27:49Z")

</div>

If anyone is trying to use Hpricot to clean up the actual content of a site while leaving the markup alone, theymight find the following tiny method useful: class Hpricot::Text Adds a simple Hpricot method to change t…

---

## [Errors ... errors and errors](https://www.ruby-forum.com/t/errors-errors-and-errors/101324)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 6\
**Last updated:** [August 4, 2006, 12:05pm UTC](https://www.ruby-forum.com/t/errors-errors-and-errors/101324 "2006-08-04T12:05:36Z")

</div>

I bought the second edition of the ruby on rails, it seems to work fine now, did some adjustments to the code. But now I get a second error and I want to learn to understand to fix them myself. So here is the error. A…

---

## [Ruby and unicode](https://www.ruby-forum.com/t/ruby-and-unicode/95214)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 6\
**Last updated:** [May 24, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/ruby-and-unicode/95214 "2006-05-24T23:04:14Z")

</div>

Does Ruby support unicode? If not it’s a disappointment.

---

## [Scaffold Generation Problem](https://www.ruby-forum.com/t/scaffold-generation-problem/59545)

<div class="topic-metadata">

**Author:** [@doug3](https://www.ruby-forum.com/u/doug3)\
**Replies:** 6\
**Last updated:** [May 4, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/scaffold-generation-problem/59545 "2006-05-04T18:41:05Z")

</div>

Greetings all, I’m sure there is probably a very obvious reason for the following problem. However, after much hair pulling, I am just not seeing it yet. As you can see from the trace below, I am not able to complete…

---

## [Split Validations?](https://www.ruby-forum.com/t/split-validations/56504)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 6\
**Last updated:** [March 31, 2006, 9:38pm UTC](https://www.ruby-forum.com/t/split-validations/56504 "2006-03-31T21:38:46Z")

</div>

I have a single table that two people enter data into. Person A creates the record and I need to specify certain required fields in his form. Person B has a separate form and she fills in additional fields and I need …

---

## [Quick Regex Query](https://www.ruby-forum.com/t/quick-regex-query/74450)

<div class="topic-metadata">

**Author:** [@Neowulf](https://www.ruby-forum.com/u/Neowulf)\
**Replies:** 6\
**Last updated:** [December 27, 2005, 11:58am UTC](https://www.ruby-forum.com/t/quick-regex-query/74450 "2005-12-27T11:58:55Z")

</div>

Hi all, Really quick one for the regex gurus… Anyone know of a regex string which will extract out the stuff between “from” and “not” without the spaces between? User root from toronto-hs-216-138-233-211.s-ip.magma.c…

---

## [Templates and partials](https://www.ruby-forum.com/t/templates-and-partials/49279)

<div class="topic-metadata">

**Author:** [@patrick](https://www.ruby-forum.com/u/patrick)\
**Replies:** 6\
**Last updated:** [December 2, 2005, 11:30am UTC](https://www.ruby-forum.com/t/templates-and-partials/49279 "2005-12-02T11:30:41Z")

</div>

i´m having something like this: \<%= render(:partial =\> ‘interview’, :object =\> @interviews)%\> now, within the view, i´d like to pass the id-parameter to select a certain interview. like this (although this code is p…

---

## [Undefined method error](https://www.ruby-forum.com/t/undefined-method-error/231015)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [July 17, 2014, 8:53pm UTC](https://www.ruby-forum.com/t/undefined-method-error/231015 "2014-07-17T20:53:04Z")

</div>

so im trying to compile a bot for a video game and it gives me undefined method error for a certain script and i have no idea who to fix it. im getting this build\_tools/process\_files.rb:70:in generate\_version': undefin…

---

## [How do I make the block running](https://www.ruby-forum.com/t/how-do-i-make-the-block-running/230576)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [June 25, 2014, 8:13am UTC](https://www.ruby-forum.com/t/how-do-i-make-the-block-running/230576 "2014-06-25T08:13:14Z")

</div>

\<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"\> Hello, Suppose I have this : my\_array.sum(0) {|n| n \*\* 2 } I can do yield if block\_given? B…

---

## [Deny ips, and pick ips from a file](https://www.ruby-forum.com/t/deny-ips-and-pick-ips-from-a-file/223617)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [October 11, 2012, 1:03pm UTC](https://www.ruby-forum.com/t/deny-ips-and-pick-ips-from-a-file/223617 "2012-10-11T13:03:07Z")

</div>

Hi all, I need to deny users by ip. I assume we need to do something like this location / { block one workstation deny 192.168.1.1; allow anyone in 192.168.1.0/24 allow 192.168.1.0/24; drop rest of the world de…

---

## [Uninitialized constant VoiceSynth (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-voicesynth-nameerror/223033)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 20, 2012, 2:05am UTC](https://www.ruby-forum.com/t/uninitialized-constant-voicesynth-nameerror/223033 "2012-09-20T02:05:48Z")

</div>

Hello, I’m trying to access singleton class from different file and above error occurs. ============== vsynth.rb require ‘win32ole’ require ‘singleton’ class VoiceSynth include Singleton attr\_accessor :sapi def i…

---

## [How to get the model name of an AR instance](https://www.ruby-forum.com/t/how-to-get-the-model-name-of-an-ar-instance/216647)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [February 10, 2012, 7:28am UTC](https://www.ruby-forum.com/t/how-to-get-the-model-name-of-an-ar-instance/216647 "2012-02-10T07:28:16Z")

</div>

I have a polymorphic class Event class Event \< ActiveRecord::Base belongs\_to :taskable, :polymorphic =\> true so an event.instance has : event.taskable\_type and event.taskable\_id i.e. event\[:taskable\_type\] = “…

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

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