# Top

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

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

---

## [New to ruby - how can I take this further?](https://www.ruby-forum.com/t/new-to-ruby-how-can-i-take-this-further/173729)

<div class="topic-metadata">

**Author:** [@stooz](https://www.ruby-forum.com/u/stooz)\
**Replies:** 4\
**Last updated:** [August 14, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/new-to-ruby-how-can-i-take-this-further/173729 "2009-08-14T18:26:47Z")

</div>

Hi all I’m new to programming, and new to Ruby. I’ve written a little program listed below, a very simple math test, to get into the swing of things. My question; could someone point out what I could do to make this …

---

## [Ignore (or clear) too long cookie?](https://www.ruby-forum.com/t/ignore-or-clear-too-long-cookie/168582)

<div class="topic-metadata">

**Author:** [@teenage](https://www.ruby-forum.com/u/teenage)\
**Replies:** 4\
**Last updated:** [May 22, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/ignore-or-clear-too-long-cookie/168582 "2009-05-22T18:06:23Z")

</div>

Hello, is there a way witch NginX to ignore or delete a too long cookie ? (which produce a return 400 Bad Request) Thanks, Olivier

---

## [Paperclip not working on update action (rails 2.1)](https://www.ruby-forum.com/t/paperclip-not-working-on-update-action-rails-2-1/147935)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 4\
**Last updated:** [November 14, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/paperclip-not-working-on-update-action-rails-2-1/147935 "2008-11-14T17:37:16Z")

</div>

Paperclip is nice but its not working on the update action. Well, to be exact, I can attach new picture records via a scaffolded controller and edit them, but the edit controller loses them when the record is updated? …

---

## [Misconfiguration on different machine](https://www.ruby-forum.com/t/misconfiguration-on-different-machine/151468)

<div class="topic-metadata">

**Author:** [@JHuizingh](https://www.ruby-forum.com/u/JHuizingh)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 1:29am UTC](https://www.ruby-forum.com/t/misconfiguration-on-different-machine/151468 "2008-10-24T01:29:28Z")

</div>

I created and have a rails app running on one machine. It is using rails 2.1. I ran: rake rails:freeze and rake gems:unpack on my rails app to put all dependencies into the vendor directory. Then I checked it int…

---

## [Business logic in controller?](https://www.ruby-forum.com/t/business-logic-in-controller/147150)

<div class="topic-metadata">

**Author:** [@billv](https://www.ruby-forum.com/u/billv)\
**Replies:** 4\
**Last updated:** [August 29, 2008, 3:31am UTC](https://www.ruby-forum.com/t/business-logic-in-controller/147150 "2008-08-29T03:31:32Z")

</div>

I’ve been striving to learn proper Rails practices and have an “opinionated” question. I’ve seen stated in many places that the business logic belongs primarily in the model. How important is that? I have a case in …

---

## [Where should I put the loops](https://www.ruby-forum.com/t/where-should-i-put-the-loops/143350)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [July 21, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/where-should-i-put-the-loops/143350 "2008-07-21T18:50:37Z")

</div>

Hi all, I try to write a script to fecth some webpages from the internet, parse the webpages and write them into csv format file. Here are the formats of webpages: website…A001 … website…A101 website…B001 … webs…

---

## [Securing URL with Rails](https://www.ruby-forum.com/t/securing-url-with-rails/141294)

<div class="topic-metadata">

**Author:** [@Joshua\_Jackson](https://www.ruby-forum.com/u/Joshua_Jackson)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/securing-url-with-rails/141294 "2008-06-24T21:20:11Z")

</div>

Dear all, How do we secure URL with rails? So only authenticated and authorized users allowed to view certain URL. Is there any configuration that I must set for this? Many thanks

---

## [How can I schedule an action?](https://www.ruby-forum.com/t/how-can-i-schedule-an-action/132618)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 4\
**Last updated:** [March 22, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/how-can-i-schedule-an-action/132618 "2008-03-22T18:43:31Z")

</div>

I have a background code with backgroundfu: Simple, non-monitored worker. class ReportWorker def add() Report.generate\_rep() end end I want this code only to run on Fridays and only to run one time every Friday. H…

---

## [Where to put code for all methods in a Controller](https://www.ruby-forum.com/t/where-to-put-code-for-all-methods-in-a-controller/122187)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [December 5, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/where-to-put-code-for-all-methods-in-a-controller/122187 "2007-12-05T13:15:57Z")

</div>

Hello, I’m using this in almost all methods of my Customer Controler if params\[:type\]==‘in’ # handle incoming customers kind = ::KIND\_CUSTOMER else # handle outgoing customers kind = ::KIND\_SUPPLIER end I don’t …

---

## [How to delete Array](https://www.ruby-forum.com/t/how-to-delete-array/119579)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 4\
**Last updated:** [November 9, 2007, 11:48am UTC](https://www.ruby-forum.com/t/how-to-delete-array/119579 "2007-11-09T11:48:25Z")

</div>

This will be possible in Rubinius, but it requires savaging the source code. Is there a way to do it in normal Ruby? Is source code savagery required? – Giles B. Blog: http://gilesbowkett.blogspot.com Portfolio: ht…

---

## [Complicated controller find with lots of has\_one and boolean filters](https://www.ruby-forum.com/t/complicated-controller-find-with-lots-of-has-one-and-boolean-filters/118969)

<div class="topic-metadata">

**Author:** [@thoraxe](https://www.ruby-forum.com/u/thoraxe)\
**Replies:** 4\
**Last updated:** [November 2, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/complicated-controller-find-with-lots-of-has-one-and-boolean-filters/118969 "2007-11-02T12:52:33Z")

</div>

Hi! OK… here is some background. I’m creating a directory of stables and things and I’m now trying to build the search portion of it. I know that I can hack about using the filters and lots of logic to reduce the r…

---

## [Ruby 1.8.6-p110 released](https://www.ruby-forum.com/t/ruby-1-8-6-p110-released/115297)

<div class="topic-metadata">

**Author:** [@Urabe\_S](https://www.ruby-forum.com/u/Urabe_S)\
**Replies:** 4\
**Last updated:** [September 24, 2007, 1:39am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-p110-released/115297 "2007-09-24T01:39:06Z")

</div>

Hi all, I am pleased to announce that a new bug fix release for Ruby 1.8.6 has been released. This release includes some fixes made upon Ruby 1.8.6. The source code tarballs are available in several formats at the f…

---

## [Best way to DRY this?](https://www.ruby-forum.com/t/best-way-to-dry-this/103766)

<div class="topic-metadata">

**Author:** [@gnuvince](https://www.ruby-forum.com/u/gnuvince)\
**Replies:** 4\
**Last updated:** [May 10, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/best-way-to-dry-this/103766 "2007-05-10T18:22:00Z")

</div>

I am super new to rails and I was wondering how could I DRY this \<%- for page in @pages -%\> \<%= link\_to\_remote page.title, :url =\> { :action =\> "view\_page", :id =\> page.id} %\> \<%= link\_to\_re…

---

## [Gsub, help please](https://www.ruby-forum.com/t/gsub-help-please/93035)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 26, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/gsub-help-please/93035 "2007-04-26T21:36:37Z")

</div>

ok, been going on this for an hour now, and can not find a solution I want to find all content between tags in a string and replace the content of these with new formatted content. Any suggestions why the following c…

---

## [Uploading Images](https://www.ruby-forum.com/t/uploading-images/88704)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 12:35am UTC](https://www.ruby-forum.com/t/uploading-images/88704 "2007-03-16T00:35:00Z")

</div>

Hi all, I’m trying to do a file upload. I have followed the examples in Agile Web D. with Rails, and Rails Cookbook, and I can’t get it to work!! The following code is from the Rails Cookbook. I have two tables: …

---

## [Question about sessions and code re-use](https://www.ruby-forum.com/t/question-about-sessions-and-code-re-use/82022)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/question-about-sessions-and-code-re-use/82022 "2007-01-17T15:18:43Z")

</div>

hey there, i have a simple model called key\_words.rb the purpose of this is to hold system config data. it also holds the parameters that our system uses to judge the condition of the stuff we monitor. anyway, one o…

---

## [Mi screencast para la Conferencia Rails](https://www.ruby-forum.com/t/mi-screencast-para-la-conferencia-rails/77390)

<div class="topic-metadata">

**Author:** [@bomberstudios](https://www.ruby-forum.com/u/bomberstudios)\
**Replies:** 4\
**Last updated:** [November 27, 2006, 10:38pm UTC](https://www.ruby-forum.com/t/mi-screencast-para-la-conferencia-rails/77390 "2006-11-27T22:38:53Z")

</div>

Buenas, aquÃ­ estÃ¡ mi pequeÃ±a contribuciÃ³n a la Conferencia Rails 2006: un screencast bÃ¡sico, que pretendÃ­a ser el “Build a blog in 15 minutes” y acabÃ³ siendo un “Blog, migraciones, y sufrimiento con el software…

---

## [Who Uses GNU Radio?](https://www.ruby-forum.com/t/who-uses-gnu-radio/71479)

<div class="topic-metadata">

**Author:** [@Jeremy\_Chew](https://www.ruby-forum.com/u/Jeremy_Chew)\
**Replies:** 4\
**Last updated:** [October 9, 2006, 6:26pm UTC](https://www.ruby-forum.com/t/who-uses-gnu-radio/71479 "2006-10-09T18:26:05Z")

</div>

My research group is new to GNU Radio and I like to know what groups out there are using this. I’m aware that there’s the ORBIT testbed in Rutgers University and the work by University of Paderborn Computer Networks …

---

## [Ferret 0.10 and Fields](https://www.ruby-forum.com/t/ferret-0-10-and-fields/66177)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 4\
**Last updated:** [August 24, 2006, 10:01am UTC](https://www.ruby-forum.com/t/ferret-0-10-and-fields/66177 "2006-08-24T10:01:29Z")

</div>

Hey … I just tried to convert my code to 0.10 … But i’m currently not sure how to use fields… i really like some of the new api… its leaner and i like the fact that these strange consts are gone (like Ferret::Search…

---

## [Time-based cache fragment expiration](https://www.ruby-forum.com/t/time-based-cache-fragment-expiration/61864)

<div class="topic-metadata">

**Author:** [@phillyloco](https://www.ruby-forum.com/u/phillyloco)\
**Replies:** 4\
**Last updated:** [June 1, 2006, 2:41pm UTC](https://www.ruby-forum.com/t/time-based-cache-fragment-expiration/61864 "2006-06-01T14:41:18Z")

</div>

Hello, I’m trying to figure out how I could implement fragment caching that expires every x amount of time. I thought of writing a runner script that would expire the cache and set it as a cron job, but that doesn’t …

---

## [Strange Proc#call problems with profile](https://www.ruby-forum.com/t/strange-proc-call-problems-with-profile/94537)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [May 7, 2006, 9:16am UTC](https://www.ruby-forum.com/t/strange-proc-call-problems-with-profile/94537 "2006-05-07T09:16:56Z")

</div>

Hello all. I’ve striked with some strange problem. After transition from ruby1.8.2 =\> ruby1.9 I have the following problem: – require ‘profile’ l = lambda{|x| x} l.call(\[1,2,3\]) #\<== error goes here test\_profile.r…

---

## [HELP: Rails / Ajax with 3 Drop down lists (see code)](https://www.ruby-forum.com/t/help-rails-ajax-with-3-drop-down-lists-see-code/56301)

<div class="topic-metadata">

**Author:** [@JCJCJC](https://www.ruby-forum.com/u/JCJCJC)\
**Replies:** 4\
**Last updated:** [March 30, 2006, 11:34am UTC](https://www.ruby-forum.com/t/help-rails-ajax-with-3-drop-down-lists-see-code/56301 "2006-03-30T11:34:47Z")

</div>

Hi All, I have successfully implemented a two tier drop down lost with rails. However I’m stumped on how to make a third tier. For example: The form has three select lists; Catagory, Subcatagory and Make User Experie…

---

## [Validate against spaces](https://www.ruby-forum.com/t/validate-against-spaces/70173)

<div class="topic-metadata">

**Author:** [@alexander](https://www.ruby-forum.com/u/alexander)\
**Replies:** 4\
**Last updated:** [February 19, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/validate-against-spaces/70173 "2006-02-19T18:06:23Z")

</div>

How would I go about validating against spaces (for urls) Instead I wish to use dashes.

---

## [\[ANN\] Canada on Rails - Schedule Released](https://www.ruby-forum.com/t/ann-canada-on-rails-schedule-released/52728)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 4\
**Last updated:** [February 18, 2006, 4:54am UTC](https://www.ruby-forum.com/t/ann-canada-on-rails-schedule-released/52728 "2006-02-18T04:54:35Z")

</div>

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 …

---

## [Newbie ahead!: Ruby-Demo](https://www.ruby-forum.com/t/newbie-ahead-ruby-demo/63467)

<div class="topic-metadata">

**Author:** [@Meino\_Christian\_C](https://www.ruby-forum.com/u/Meino_Christian_C)\
**Replies:** 4\
**Last updated:** [January 20, 2006, 7:06pm UTC](https://www.ruby-forum.com/t/newbie-ahead-ruby-demo/63467 "2006-01-20T19:06:01Z")

</div>

Hi, can someone point me to a ruby demo-script? I want to show a friend the beauty of ruby and am myself fear if would try my best would acchieve the opposite of what I want. It dont need to do anything sophisticated…

---

## [About blocks](https://www.ruby-forum.com/t/about-blocks/86926)

<div class="topic-metadata">

**Author:** [@Surgeon](https://www.ruby-forum.com/u/Surgeon)\
**Replies:** 4\
**Last updated:** [January 2, 2006, 8:57pm UTC](https://www.ruby-forum.com/t/about-blocks/86926 "2006-01-02T20:57:44Z")

</div>

Hi, (This question might be answered previously. If so, I apologize.) Can we ALWAYS use plain methods instead of blocks? Yes, sometimes using a block may be obviously better than using a method but I mean, are there …

---

## [Error in Hash.value?](https://www.ruby-forum.com/t/error-in-hash-value/244709)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 31, 2016, 4:28pm UTC](https://www.ruby-forum.com/t/error-in-hash-value/244709 "2016-05-31T16:28:46Z")

</div>

I am not able to use the method hash.value ?. I want to compare with a parameter of the method, but is not working. Someone help? #I call the function: @typeOrder = “title” if validarOrders(@typeOrder) … … … #fu…

---

## [How to update feed using ajax in Rails 4.0](https://www.ruby-forum.com/t/how-to-update-feed-using-ajax-in-rails-4-0/242758)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [July 17, 2015, 2:22pm UTC](https://www.ruby-forum.com/t/how-to-update-feed-using-ajax-in-rails-4-0/242758 "2015-07-17T14:22:22Z")

</div>

I am trying to create an ajax functionality for a sample app of michael heart book . I created a feed model controller which is micropost in hear book . I am trying to use ajax like post feed method . But I am getting …

---

## [Trying to assemble logs through tcp, problems with multiple worker\_processes](https://www.ruby-forum.com/t/trying-to-assemble-logs-through-tcp-problems-with-multiple-worker-processes/232285)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 1, 2014, 3:25pm UTC](https://www.ruby-forum.com/t/trying-to-assemble-logs-through-tcp-problems-with-multiple-worker-processes/232285 "2014-10-01T15:25:48Z")

</div>

Hi, Im trying to collect access log by passing them with tcp to flume. But the two tools below I tried both give me the same sintums, that it seems there is a race condition, when running nginx with multiple worker\_p…

---

## [Stub not working](https://www.ruby-forum.com/t/stub-not-working/234996)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [May 25, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/stub-not-working/234996 "2013-05-25T17:33:23Z")

</div>

Hi, I am testing views. I dont understand why stubs are not working. Can anyone help. view code : before(:all) do @current\_user = stub(“User”) assigns\[:message\] = @current\_user end output: NoMethodError: undefi…

---

## [Help with installing thrift with ruby 1.9.3](https://www.ruby-forum.com/t/help-with-installing-thrift-with-ruby-1-9-3/228426)

<div class="topic-metadata">

**Author:** [@kenfc](https://www.ruby-forum.com/u/kenfc)\
**Replies:** 1\
**Last updated:** [April 22, 2013, 11:48am UTC](https://www.ruby-forum.com/t/help-with-installing-thrift-with-ruby-1-9-3/228426 "2013-04-22T11:48:55Z")

</div>

Hello, I have the system environment as: ruby -v ruby 1.9.3p392 (2013-02-22) \[x86\_64-linux\] gem -v 2.0.3 cat /etc/issue Ubuntu 10.04.4 LTS \\n \\l I can’t get success to install Thrift (thrift-0.9.0) on the host, when …

---

## [Rails devise with recaptcha](https://www.ruby-forum.com/t/rails-devise-with-recaptcha/216718)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [February 12, 2012, 2:21pm UTC](https://www.ruby-forum.com/t/rails-devise-with-recaptcha/216718 "2012-02-12T14:21:18Z")

</div>

I’m trying to use the recaptcha gem with devise 2.0.0 in rails 3.2.1. Every time I try, I am able to display the captcha and input the 2 words it asks about. But in my controller (using code I found on github for the…

---

## [Preventing LibXML from encoding all special characters to their html form?](https://www.ruby-forum.com/t/preventing-libxml-from-encoding-all-special-characters-to-their-html-form/210940)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 21, 2011, 7:15pm UTC](https://www.ruby-forum.com/t/preventing-libxml-from-encoding-all-special-characters-to-their-html-form/210940 "2011-08-21T19:15:52Z")

</div>

Hi. From what I unsertand, Rails uses by default LibXML. When doing a to\_xml, it encodes all special characters, which is useful for \<, &, \>, etc. but not really for , , etc. First, I can’t convert them back from ɒ …

---

## [MTU to increase to 1500 on Windows7](https://www.ruby-forum.com/t/mtu-to-increase-to-1500-on-windows7/210212)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 1\
**Last updated:** [August 2, 2011, 6:57pm UTC](https://www.ruby-forum.com/t/mtu-to-increase-to-1500-on-windows7/210212 "2011-08-02T18:57:12Z")

</div>

Hi All I searched the internet in vain… How to you increase the fastSendDatagramThreshold in Windows7 I’ve been to registry and added the entry key with DWORD decimal value of 1500, but it did not help. On a windows…

---

## [USRP sink with short input](https://www.ruby-forum.com/t/usrp-sink-with-short-input/207045)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 1\
**Last updated:** [May 17, 2011, 3:42am UTC](https://www.ruby-forum.com/t/usrp-sink-with-short-input/207045 "2011-05-17T03:42:39Z")

</div>

Hi All, Josh wrote here\[1\] that the UHD USRP(2?) sink accepts interleaved shorts as inputs. Two questions: Do those shorts get converted to floats before sending them over Ethernet to the USRP2? Or does the USRP2 …

---

## [Problem running "spec spec" or "rake spec" (does nothing)](https://www.ruby-forum.com/t/problem-running-spec-spec-or-rake-spec-does-nothing/194004)

<div class="topic-metadata">

**Author:** [@thelemcke](https://www.ruby-forum.com/u/thelemcke)\
**Replies:** 1\
**Last updated:** [August 27, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/problem-running-spec-spec-or-rake-spec-does-nothing/194004 "2010-08-27T19:46:33Z")

</div>

I have an unusual problem. I’m adding test coverage to my project, and I’d like to be able to run “rake spec” to run all the tests in the /spec folder of the app, but whenever I use the commands “spec spec” or “rake …

---

## [Imagenes fuera de la carpeta images](https://www.ruby-forum.com/t/imagenes-fuera-de-la-carpeta-images/181603)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 1\
**Last updated:** [January 28, 2010, 4:51am UTC](https://www.ruby-forum.com/t/imagenes-fuera-de-la-carpeta-images/181603 "2010-01-28T04:51:38Z")

</div>

Quiero cargar una imagen que esta fuera de la carpeta images, para ponerla en mi projecto, pero no quiero cambiar esa imagen a la carpeta images. Alguien sabe si eso se puede hacer?? uN SALUDO Gracias

---

## [How to validate presence of phone number or mobile phone](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/176277)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 1\
**Last updated:** [September 29, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-validate-presence-of-phone-number-or-mobile-phone/176277 "2009-09-29T13:03:20Z")

</div>

In my model of user.rb there are phone number and mobile number. i want to validate if phone number and mobile number are exist or not(not neccessary to do both). how to do that

---

## [Ruby/DL: How to create and use a buffer?](https://www.ruby-forum.com/t/ruby-dl-how-to-create-and-use-a-buffer/146441)

<div class="topic-metadata">

**Author:** [@Charles\_Turner](https://www.ruby-forum.com/u/Charles_Turner)\
**Replies:** 1\
**Last updated:** [August 21, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/ruby-dl-how-to-create-and-use-a-buffer/146441 "2008-08-21T16:08:54Z")

</div>

Hi all- I’m trying to hookup Erik de Castro Lopo’s libsndfile with Ruby via Ruby/DL: my first encounter with it. I’ve had some success with DL, but am stuck at creating a multibyte buffer that can be passed by referen…

---

## [Rake gems install with local .gem files](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/196780)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/196780 "2008-08-13T23:28:35Z")

</div>

Hi All, I’d like to take advantage of Rails 2.1 config.gem and rake gems install when deploying (with Capistrano). Unfortunately, outgoing HTTP is blocked in our production environment. I’m considering keeping a dire…

---

## [Problem mit SQLite und timestamp-Werten, die nil und doch nicht nil sind](https://www.ruby-forum.com/t/problem-mit-sqlite-und-timestamp-werten-die-nil-und-doch-nicht-nil-sind/135226)

<div class="topic-metadata">

**Author:** [@BjSSSSrn\_GroSSSSman](https://www.ruby-forum.com/u/BjSSSSrn_GroSSSSman)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/problem-mit-sqlite-und-timestamp-werten-die-nil-und-doch-nicht-nil-sind/135226 "2008-04-19T14:13:48Z")

</div>

Hallo, ich wÃ¼rde mich freuen, zu hÃ¶ren, ob jemand von Euch folgendes Problem schon mal gehabt hat: Ich habe eine (bestehende) SQLite3 Datenbank, die ich in Rails anzapfen mÃ¶chte. In meinem Model habe ich folgende…

---

## [Need help for my Presentation on ROR](https://www.ruby-forum.com/t/need-help-for-my-presentation-on-ror/116873)

<div class="topic-metadata">

**Author:** [@indraneel](https://www.ruby-forum.com/u/indraneel)\
**Replies:** 1\
**Last updated:** [October 10, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/need-help-for-my-presentation-on-ror/116873 "2007-10-10T21:43:29Z")

</div>

Hi, I need some documents, white papers etc for my presentation in my organization(My organization got Ruby fever!).My topic is lengthy one. Ruby on Rails ability to build small ,medium and large scale web/stand a…

---

## [\[OT\] Reproductor de video y audio para cms](https://www.ruby-forum.com/t/ot-reproductor-de-video-y-audio-para-cms/108705)

<div class="topic-metadata">

**Author:** [@Sergio\_Flores](https://www.ruby-forum.com/u/Sergio_Flores)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/ot-reproductor-de-video-y-audio-para-cms/108705 "2007-07-06T21:18:29Z")

</div>

Hola a todos !! Consulto a lista si alguien conoce algun reproductor de videos (¿fla?) y reproductor de audio (¿mp3?) para incluir en como componente en el desarrollo de un CMS, preferentemente que se pueda personaliz…

---

## [HTML table to matrix with WWW::Mechanize](https://www.ruby-forum.com/t/html-table-to-matrix-with-www-mechanize/75726)

<div class="topic-metadata">

**Author:** [@omgitsads](https://www.ruby-forum.com/u/omgitsads)\
**Replies:** 1\
**Last updated:** [November 12, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/html-table-to-matrix-with-www-mechanize/75726 "2006-11-12T20:30:56Z")

</div>

Hi, I am new to ruby and am trying to scrape a website table into a matrix, I have been playing around with WWW::Mechanize and have had some success getting the page, extracting the table I want and then separating th…

---

## [Watir and regexp](https://www.ruby-forum.com/t/watir-and-regexp/74731)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:54am UTC](https://www.ruby-forum.com/t/watir-and-regexp/74731 "2006-11-07T10:54:35Z")

</div>

We want to test a value given in a text field with a regular expression. We are trying to do it this way: @browser.text\_field(:name,“vareeier”).set(“123456789”) @browser.text\_field(:name,“vareeier”).value.should\_equal…

---

## [Gem and optparse : help needed](https://www.ruby-forum.com/t/gem-and-optparse-help-needed/73782)

<div class="topic-metadata">

**Author:** [@Zouplaz](https://www.ruby-forum.com/u/Zouplaz)\
**Replies:** 1\
**Last updated:** [November 7, 2006, 10:45am UTC](https://www.ruby-forum.com/t/gem-and-optparse-help-needed/73782 "2006-11-07T10:45:29Z")

</div>

Hello, I want to use optparse on a gem packaged bin/ file (eg/usr/lib/ruby/gems/1.8/gems/mypackage/bin/foo) The goal is to make foo usable from the command line without anything else except the name of the file (no .r…

---

## [Link\_to\_remote undefined within controller?](https://www.ruby-forum.com/t/link-to-remote-undefined-within-controller/68503)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 1\
**Last updated:** [September 13, 2006, 2:43pm UTC](https://www.ruby-forum.com/t/link-to-remote-undefined-within-controller/68503 "2006-09-13T14:43:13Z")

</div>

I can’t seem to use ActionView::Helpers::PrototypeHelpers from a controller - specifically, I’m trying to use the link\_to\_remote helper to create an Ajax link from within a controller function called from a previous l…

---

## [New AJAX function: remote\_replace\_with\_partial() \<-- write l](https://www.ruby-forum.com/t/new-ajax-function-remote-replace-with-partial-write-l/56952)

<div class="topic-metadata">

**Author:** [@Chris\_Larson](https://www.ruby-forum.com/u/Chris_Larson)\
**Replies:** 1\
**Last updated:** [April 6, 2006, 8:26am UTC](https://www.ruby-forum.com/t/new-ajax-function-remote-replace-with-partial-write-l/56952 "2006-04-06T08:26:42Z")

</div>

I hate writing controller actions that support simple lightweight ajax calls like this: def show\_buttons render :partial =\> “home\_buttons” end So the birth of remote\_replace\_with\_partial Now you can replace a div e…

---

## [Adding permissions to roles - example](https://www.ruby-forum.com/t/adding-permissions-to-roles-example/79209)

<div class="topic-metadata">

**Author:** [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Replies:** 1\
**Last updated:** [March 16, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/adding-permissions-to-roles-example/79209 "2006-03-16T18:33:07Z")

</div>

Hello, I have put up an example which shows how to use migrations to add permissions to different roles for the various controllers/actions. http://cuttingtheredtape.blogspot.com/2006/03/rails-user-engine-adding-perm…

---

## [\[Req\] : allow user to tag/flag messages, threads](https://www.ruby-forum.com/t/req-allow-user-to-tag-flag-messages-threads/94812)

<div class="topic-metadata">

**Author:** [@aravet](https://www.ruby-forum.com/u/aravet)\
**Replies:** 1\
**Last updated:** [December 16, 2005, 1:40am UTC](https://www.ruby-forum.com/t/req-allow-user-to-tag-flag-messages-threads/94812 "2005-12-16T01:40:18Z")

</div>

see title. This info is stored per user. Motivation: tag interesting messages, for later usage. =\> the logical next step is to display the user-entered tags =\> search previously tagged messages, by tag (Ã -la del.ici…

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

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