# Top

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

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

---

## [Why is this method protected? (from agile book)](https://www.ruby-forum.com/t/why-is-this-method-protected-from-agile-book/89234)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 4\
**Last updated:** [March 24, 2007, 12:29am UTC](https://www.ruby-forum.com/t/why-is-this-method-protected-from-agile-book/89234 "2007-03-24T00:29:11Z")

</div>

Hello, This is form the 2.ed agile book in the product model: /models/product.rb: validates\_presence\_of :title, :description, :image\_url validates\_numericality\_of :price validates\_uniqueness\_of :title protected de…

---

## [Depot Application Tutorial and Foreign Keys](https://www.ruby-forum.com/t/depot-application-tutorial-and-foreign-keys/88882)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/depot-application-tutorial-and-foreign-keys/88882 "2007-03-15T21:49:30Z")

</div>

I’ve been working my way through the depot application tutorial in the Agile Rails book, and I’m at the “Check Out!” chapter. In the migration file for the line items, there are SQL commands to create foreign keys. Up…

---

## [Why this program not working?](https://www.ruby-forum.com/t/why-this-program-not-working/86556)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 4\
**Last updated:** [February 23, 2007, 10:29am UTC](https://www.ruby-forum.com/t/why-this-program-not-working/86556 "2007-02-23T10:29:04Z")

</div>

Hi I am trying to execute this program from cookbook. def endless\_string\_succession(start) while true yield start start = start.succ end end puts endless\_string\_succession ‘aa’ Error messages that I am getti…

---

## [Validation errors](https://www.ruby-forum.com/t/validation-errors/83502)

<div class="topic-metadata">

**Author:** [@rvent](https://www.ruby-forum.com/u/rvent)\
**Replies:** 4\
**Last updated:** [January 26, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/validation-errors/83502 "2007-01-26T20:16:09Z")

</div>

Hello again… I am trying to validate date input and i am having a few problems… I have looked at the api and so far i see nothing wrong with my code… Model: #Validates Length validates\_length\_of :part\_number, :minim…

---

## [Open3.popen3 $B$N=\*N;=hM}(B](https://www.ruby-forum.com/t/open3-popen3-b-n-n-hm-b/83233)

<div class="topic-metadata">

**Author:** [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Replies:** 4\
**Last updated:** [January 26, 2007, 4:01am UTC](https://www.ruby-forum.com/t/open3-popen3-b-n-n-hm-b/83233 "2007-01-26T04:01:55Z")

</div>

e$B$H$\_$?$G$9!#e(B Open3.popen3 e$B$,%3%^%s%I$Ne(B exec e$B$K\<:GT$7$?\>l9g$K!"DL\>o$N=\*N;=hM}$r9T$J$Ce(B e$B$F$7$^$$!"e(Bat\_exit e$BEy$,\<B9T$5$l$F$7$^$$$^$9!#e(B % ruby -ropen3 -e ‘at\_exit{p $$}; Open3.popen3("/bin/hog…

---

## [Mental Behaviors](https://www.ruby-forum.com/t/mental-behaviors/80796)

<div class="topic-metadata">

**Author:** [@hansman](https://www.ruby-forum.com/u/hansman)\
**Replies:** 4\
**Last updated:** [December 31, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/mental-behaviors/80796 "2006-12-31T20:23:20Z")

</div>

Hi, I am new to Radiant, so I decided to start with the mental branch. None of the stock behaviors seem to work. Is there a link where the behaviors have been updated or notes for making modifications? Rick

---

## [I can't work out how to set up my routes](https://www.ruby-forum.com/t/i-cant-work-out-how-to-set-up-my-routes/73213)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 4\
**Last updated:** [October 23, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/i-cant-work-out-how-to-set-up-my-routes/73213 "2006-10-23T15:32:42Z")

</div>

Hello. This is my first post to the forum so I’ll give a little introduction. I am currently at university in guildford, uk. I’m learning ruby on rails on the side of my course and currently building an application to…

---

## [Ferret 0.10.0 bugs](https://www.ruby-forum.com/t/ferret-0-10-0-bugs/66171)

<div class="topic-metadata">

**Author:** [@pyros](https://www.ruby-forum.com/u/pyros)\
**Replies:** 4\
**Last updated:** [August 24, 2006, 1:52am UTC](https://www.ruby-forum.com/t/ferret-0-10-0-bugs/66171 "2006-08-24T01:52:49Z")

</div>

Hi all ! Is Ferret 0.10.0 realy stable ? Because I converted all my code to the new API and many strange things appened. For exemple this, when I run a import script : /usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/f…

---

## [SCGI + Rails at System Startup](https://www.ruby-forum.com/t/scgi-rails-at-system-startup/100264)

<div class="topic-metadata">

**Author:** [@porkface](https://www.ruby-forum.com/u/porkface)\
**Replies:** 4\
**Last updated:** [July 28, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/scgi-rails-at-system-startup/100264 "2006-07-28T20:10:08Z")

</div>

All of the documentation for scgi\_ctrl says to run it from your Rails app directory, and I can’t get it to run from a single command line like you would in a system startup script. I’ve tried: scgi\_ctrl -c /www/myapp…

---

## [Question about Salted Hash Login Generator](https://www.ruby-forum.com/t/question-about-salted-hash-login-generator/97025)

<div class="topic-metadata">

**Author:** [@arnoldng](https://www.ruby-forum.com/u/arnoldng)\
**Replies:** 4\
**Last updated:** [July 4, 2006, 10:21pm UTC](https://www.ruby-forum.com/t/question-about-salted-hash-login-generator/97025 "2006-07-04T22:21:32Z")

</div>

Hi, I am using salted hash login generator to create my login page. In the user\_environment.rb file, I saw that there is a comment saying should NOT include the email field in the changeable user fields array. Does …

---

## [Re: What happened to clrtoeol?](https://www.ruby-forum.com/t/re-what-happened-to-clrtoeol/95412)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 4\
**Last updated:** [June 3, 2006, 2:51am UTC](https://www.ruby-forum.com/t/re-what-happened-to-clrtoeol/95412 "2006-06-03T02:51:16Z")

</div>

Sent: Tuesday, May 30, 2006 1:47 PM output text… is there anything else needed? If I can get a second I’ll do some research on this, but a quick google doesn’t show people screaming about curses being broken on wi…

---

## [Changing the color of :highlight](https://www.ruby-forum.com/t/changing-the-color-of-highlight/60060)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 4\
**Last updated:** [May 9, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/changing-the-color-of-highlight/60060 "2006-05-09T23:47:02Z")

</div>

Is there an easy way to change to color of the :highlight effect? :complete =\> visual\_effect(:highlight, “targetid”, :duration =\> 1) thanks

---

## [PHP and Rails integration](https://www.ruby-forum.com/t/php-and-rails-integration/58110)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 4\
**Last updated:** [April 18, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/php-and-rails-integration/58110 "2006-04-18T18:17:11Z")

</div>

There a few php solutions that I would like to integrate with my Rails app. Namely PHPBB(No offense RForum) and WordPress. Is it possible to use these in a Rails environment, and what kind of issues/stumbling blocks w…

---

## [The textilize method](https://www.ruby-forum.com/t/the-textilize-method/87047)

<div class="topic-metadata">

**Author:** [@stewartm](https://www.ruby-forum.com/u/stewartm)\
**Replies:** 4\
**Last updated:** [March 25, 2006, 2:13pm UTC](https://www.ruby-forum.com/t/the-textilize-method/87047 "2006-03-25T14:13:57Z")

</div>

I saw the guy in the 15 min blog video calling a method called textilize however when i call it rails says it cant find this method. Is this somehting extra i have to install to ruby… like a gem or somehting

---

## [Has\_one, the = operator and validates\_associated](https://www.ruby-forum.com/t/has-one-the-operator-and-validates-associated/50683)

<div class="topic-metadata">

**Author:** [@Harm\_Aarts](https://www.ruby-forum.com/u/Harm_Aarts)\
**Replies:** 4\
**Last updated:** [December 20, 2005, 11:47am UTC](https://www.ruby-forum.com/t/has-one-the-operator-and-validates-associated/50683 "2005-12-20T11:47:57Z")

</div>

Dear readers, I am puzzles by the following, imagine models A and B. A has\_one B and B belongs\_to A. So far so good. But rails does this great thing by relfecting on this relationship and enables me use the equals sig…

---

## [Advanced Ruby Book (was Forthcoming 2nd ed. of \_The Ruby Way](https://www.ruby-forum.com/t/advanced-ruby-book-was-forthcoming-2nd-ed-of-the-ruby-way/50399)

<div class="topic-metadata">

**Author:** [@pat\_eyler](https://www.ruby-forum.com/u/pat_eyler)\
**Replies:** 4\
**Last updated:** [December 16, 2005, 12:17am UTC](https://www.ruby-forum.com/t/advanced-ruby-book-was-forthcoming-2nd-ed-of-the-ruby-way/50399 "2005-12-16T00:17:00Z")

</div>

On 12/15/05, Patrick H. removed\_email\_address@domain.invalid wrote: On 12/15/05, Phil T. removed\_email\_address@domain.invalid wrote: We really need an advanced Ruby book now. Shifting the focus of the thread a litt…

---

## [(urgent) How to install shoulda](https://www.ruby-forum.com/t/urgent-how-to-install-shoulda/208906)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [June 30, 2011, 6:59am UTC](https://www.ruby-forum.com/t/urgent-how-to-install-shoulda/208906 "2011-06-30T06:59:26Z")

</div>

Hi, I have trouble about install Shoulda, can someone give me some instruction to install it I try some … it ask me to add those code Rails::Initializer.run do |config| config.gem “shoulda”, :lib =\> “shoulda” end t…

---

## [Rspec what I'm doing wrong?](https://www.ruby-forum.com/t/rspec-what-im-doing-wrong/206702)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [May 7, 2011, 11:12pm UTC](https://www.ruby-forum.com/t/rspec-what-im-doing-wrong/206702 "2011-05-07T23:12:24Z")

</div>

In controller I have: def search unless params\[:data\_search\].blank? shop\_data = params\[:data\_search\] @shops = Shop.data\_search(shop\_data).paginate(:per\_page =\> Settings.shops\_per\_page, :page =\> params\[:page\]) else …

---

## [Don't work an array](https://www.ruby-forum.com/t/dont-work-an-array/198789)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 5\
**Last updated:** [November 8, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/dont-work-an-array/198789 "2010-11-08T23:38:13Z")

</div>

Hello, this don’t work on ruby 1.9.2. What’s matter? $a = Array.new for i in 1…5 for j in 1…8 $a\[i\]\[j\] = i\*j end end

---

## [Cancelling "cancel account"](https://www.ruby-forum.com/t/cancelling-cancel-account/192789)

<div class="topic-metadata">

**Author:** [@maul](https://www.ruby-forum.com/u/maul)\
**Replies:** 5\
**Last updated:** [August 6, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/cancelling-cancel-account/192789 "2010-08-06T16:58:18Z")

</div>

Hi, How does cancel account work? Does it delete from database or it makes its status disable? How can I disable the cancel account property of devise? Thanks

---

## [Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?](https://www.ruby-forum.com/t/does-rails-3-0-0-beta3-work-with-ruby-1-9-1-on-windows-xp/189393)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 5\
**Last updated:** [May 31, 2010, 6:16pm UTC](https://www.ruby-forum.com/t/does-rails-3-0-0-beta3-work-with-ruby-1-9-1-on-windows-xp/189393 "2010-05-31T18:16:33Z")

</div>

Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP? It does not work for me, the sample program crashes with no error message.

---

## [WBX usage](https://www.ruby-forum.com/t/wbx-usage/188159)

<div class="topic-metadata">

**Author:** [@Gaetano\_M](https://www.ruby-forum.com/u/Gaetano_M)\
**Replies:** 5\
**Last updated:** [May 7, 2010, 2:53am UTC](https://www.ruby-forum.com/t/wbx-usage/188159 "2010-05-07T02:53:09Z")

</div>

Hi all, in order to use the new WBX daughterboards, do I have to get the new libusrp2 from git ? Regards Gaetano M. –

---

## [Newbie ..need help with metaprogramming](https://www.ruby-forum.com/t/newbie-need-help-with-metaprogramming/178886)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 5\
**Last updated:** [November 16, 2009, 11:46am UTC](https://www.ruby-forum.com/t/newbie-need-help-with-metaprogramming/178886 "2009-11-16T11:46:04Z")

</div>

hi, i wrote a small code to check metaprogramming in ruby…what am i doing wrong…can you pl help? class Testvar attr\_accessor :a1 def initialize @a1=‘init’ end end var =":a1" t = Testvar.new if t.respond\_to?("#{…

---

## [Creating a View(database) with Migration](https://www.ruby-forum.com/t/creating-a-view-database-with-migration/172664)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 5\
**Last updated:** [July 25, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/creating-a-view-database-with-migration/172664 "2009-07-25T15:39:37Z")

</div>

Hi, Is there a way to create a view using ruby migration? I could run a quick sql script to create a view, but I wanted to do this with migration to make it easier during deployment. Thanks, Kumi

---

## [SubDomain Queries](https://www.ruby-forum.com/t/subdomain-queries/169087)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 5\
**Last updated:** [June 1, 2009, 7:52am UTC](https://www.ruby-forum.com/t/subdomain-queries/169087 "2009-06-01T07:52:23Z")

</div>

Hi, I have a requirement in my rails application where i need to provide access to a blog from another domain. e.g: blog.company.com should point to my app’s blog\_controller’s show action. Is this possible. & if i…

---

## [Render custom mime types](https://www.ruby-forum.com/t/render-custom-mime-types/149637)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 5\
**Last updated:** [September 29, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/render-custom-mime-types/149637 "2008-09-29T21:08:09Z")

</div>

So I have this in my environment.rb file: Mime::Type.register\_alias “text/html”, :help Then in one of my views I have this: \<%= render :partial =\> formatted\_summary\_account\_path(“help”) %\> In my view folder I have \_s…

---

## [Load Balance Advice](https://www.ruby-forum.com/t/load-balance-advice/141273)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 5\
**Last updated:** [June 24, 2008, 9:18am UTC](https://www.ruby-forum.com/t/load-balance-advice/141273 "2008-06-24T09:18:27Z")

</div>

All, I have been using lighttpd for a long time now, sitting in front of a series of back end servers. I have been told to check out nginx because lighttpd is now starting to consume near on 100% of the CPU. I have …

---

## [Error en produccion](https://www.ruby-forum.com/t/error-en-produccion/138452)

<div class="topic-metadata">

**Author:** [@Mauricio\_D](https://www.ruby-forum.com/u/Mauricio_D)\
**Replies:** 5\
**Last updated:** [May 23, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/error-en-produccion/138452 "2008-05-23T14:54:07Z")

</div>

Hola, e terminado parte de mi aplicaciÃ³n en rails, y pase a probarla en mi host, pero me arroja el siguiente error en los logs, todo parece que es un problema de la base de datos de mysql, serÃ¡ por que la app la hic…

---

## [Strip method](https://www.ruby-forum.com/t/strip-method/136440)

<div class="topic-metadata">

**Author:** [@masiarek](https://www.ruby-forum.com/u/masiarek)\
**Replies:** 5\
**Last updated:** [May 2, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/strip-method/136440 "2008-05-02T21:23:46Z")

</div>

s = \<\<EOS a1\\t b1 a2\\tb2 EOS s.each{|e| a = e.strip.split("\\t") p a\[1\] } output: " b1" “b2” expected output: “b1” “b2” What is wrong?

---

## [Navigating model relationships](https://www.ruby-forum.com/t/navigating-model-relationships/79893)

<div class="topic-metadata">

**Author:** [@creativetags](https://www.ruby-forum.com/u/creativetags)\
**Replies:** 5\
**Last updated:** [December 20, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/navigating-model-relationships/79893 "2006-12-20T20:01:21Z")

</div>

i’m trying to understand navigating activerecord relationships. For example I’ve got: class Product \< ActiveRecord::Base has\_many :line\_items end class LineItem \< ActiveRecord::Base belongs\_to :product has\_one :pr…

---

## [RoR Hell. Agile Web Development book example problems](https://www.ruby-forum.com/t/ror-hell-agile-web-development-book-example-problems/73250)

<div class="topic-metadata">

**Author:** [@Zach\_I](https://www.ruby-forum.com/u/Zach_I)\
**Replies:** 5\
**Last updated:** [October 23, 2006, 10:25pm UTC](https://www.ruby-forum.com/t/ror-hell-agile-web-development-book-example-problems/73250 "2006-10-23T22:25:59Z")

</div>

http://pastie.caboo.se/19069 I’ve tried this with putting the app/ of the example over mine and tried running the whole thing but still no luck. Im using Locomotive 2.0.8 Please someone help :slight\_smile:

---

## [Efficient ajax calls using flash?](https://www.ruby-forum.com/t/efficient-ajax-calls-using-flash/72823)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 5\
**Last updated:** [October 19, 2006, 9:05pm UTC](https://www.ruby-forum.com/t/efficient-ajax-calls-using-flash/72823 "2006-10-19T21:05:39Z")

</div>

Hey guys, I do an ajax call to update a div in my view with a different partial. The new partial uses data that was originally queried when the page was loaded. It is kinda redundant to have to requery that record aga…

---

## [\[0.10.x\] Index#search with wildcard bug](https://www.ruby-forum.com/t/0-10-x-index-search-with-wildcard-bug/66923)

<div class="topic-metadata">

**Author:** [@pyros](https://www.ruby-forum.com/u/pyros)\
**Replies:** 5\
**Last updated:** [August 30, 2006, 12:12pm UTC](https://www.ruby-forum.com/t/0-10-x-index-search-with-wildcard-bug/66923 "2006-08-30T12:12:16Z")

</div>

Hello all, This script (Parked at Loopia) return this : Total hits = 100 Total hits = 0 This is not cool :frowning: Dave ? Jens ? Someone ? Do you have any idea ? Thanks in advance.

---

## [Search objects](https://www.ruby-forum.com/t/search-objects/64800)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/search-objects/64800 "2006-08-15T14:19:16Z")

</div>

I can use some help here: I’ve set up this class and objects and would like to “search” it similar to the way I would search a database. At this point I’m not concerned with adding regex for more liberal searches. A…

---

## [Simple Newbie db?](https://www.ruby-forum.com/t/simple-newbie-db/102198)

<div class="topic-metadata">

**Author:** [@chasconquest](https://www.ruby-forum.com/u/chasconquest)\
**Replies:** 5\
**Last updated:** [August 15, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/simple-newbie-db/102198 "2006-08-15T14:18:23Z")

</div>

I’m trying to simply write to a mysql db from the console. Model = Entry , table = entries Problem is my values keep getting turned into instance variables and end up nil. Entry.create(:title =\>“new title”, :body =\>…

---

## [Catch ^c/signals? blocks?](https://www.ruby-forum.com/t/catch-c-signals-blocks/98668)

<div class="topic-metadata">

**Author:** [@eliteforce](https://www.ruby-forum.com/u/eliteforce)\
**Replies:** 5\
**Last updated:** [July 17, 2006, 1:00pm UTC](https://www.ruby-forum.com/t/catch-c-signals-blocks/98668 "2006-07-17T13:00:03Z")

</div>

Hello, I’m kinda new to ruby and have a few questions. If i run a ruby script it can be interrupted with ^c or signals (e.g. killall ruby"). Is it possible to catch those to do cleanup stuff before exiting? Whats th…

---

## [Method in Model](https://www.ruby-forum.com/t/method-in-model/63168)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 5\
**Last updated:** [June 15, 2006, 1:22pm UTC](https://www.ruby-forum.com/t/method-in-model/63168 "2006-06-15T13:22:08Z")

</div>

I have a simple method in a model, to send out e-mails via the script/runner. def Reminder.dropoff @messages = Reminder.find(:all, :conditions =\> \[ “time \< now()”\]) @messages.each do |mes| Mailman::deliver\_send\_mess…

---

## [Does Ruby have something similar to PHP's =&](https://www.ruby-forum.com/t/does-ruby-have-something-similar-to-phps/243404)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 2\
**Last updated:** [October 16, 2015, 2:15am UTC](https://www.ruby-forum.com/t/does-ruby-have-something-similar-to-phps/243404 "2015-10-16T02:15:33Z")

</div>

I’m trying to write a class that relies on references, so I really want to retain the address of an object reference passed into a method. If I simply use @lhs = lhs (lhs is passed in as an argument), how can I be sur…

---

## [Unscrambling code](https://www.ruby-forum.com/t/unscrambling-code/242528)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [June 30, 2015, 8:18pm UTC](https://www.ruby-forum.com/t/unscrambling-code/242528 "2015-06-30T20:18:27Z")

</div>

Can anyone explain this line of code? puts “nercpyitno”.gsub(/(?.)(?.)/, ‘\\k\\k’) The textbook states that the result of this code is ‘encryption’. How does this method go about performing its task?

---

## [Saving Repeated Iterations to Database](https://www.ruby-forum.com/t/saving-repeated-iterations-to-database/242009)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [June 1, 2015, 12:34am UTC](https://www.ruby-forum.com/t/saving-repeated-iterations-to-database/242009 "2015-06-01T00:34:04Z")

</div>

I’m pretty new to Ruby on Rails. I have multiple datapoints that I am saving in my database for a subject called “quarterback”. All of those datapoints are added together to for the value “xoi\_qb”. This calculation is…

---

## [Junior and his project](https://www.ruby-forum.com/t/junior-and-his-project/232980)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [November 9, 2014, 3:18pm UTC](https://www.ruby-forum.com/t/junior-and-his-project/232980 "2014-11-09T15:18:39Z")

</div>

I’m rails junior. My general programming experiences is not great. I can’t find rails junior job for a long time. Many internet posts advised to do own cool projects and put it up on GitHub. But I don’t have any ideas …

---

## [Map within a map](https://www.ruby-forum.com/t/map-within-a-map/232725)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 2\
**Last updated:** [October 23, 2014, 11:48pm UTC](https://www.ruby-forum.com/t/map-within-a-map/232725 "2014-10-23T23:48:41Z")

</div>

Can I use multiple maps with a single map ? For example; map $ngxvar1 $myvar1 { default 0; ~\*string 1; } map $ngxvar2 $myvar2 { default 0; ~\*string 1; } map $ngxvar3 $myvar3 { default 0; ~\*string 1; $myvar1 …

---

## [Around empty subcarrier in 802.11n implementation](https://www.ruby-forum.com/t/around-empty-subcarrier-in-802-11n-implementation/236868)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [March 19, 2014, 8:31am UTC](https://www.ruby-forum.com/t/around-empty-subcarrier-in-802-11n-implementation/236868 "2014-03-19T08:31:53Z")

</div>

Hi list, I’m using gnuradio 3.6.0 together with USRPs N210 for implementing OFDM 802.11 n communications, just SISO for the moment (in the future it would be MIMO). I have properly modified parameters such as FFT si…

---

## [\[Need advice\] Dynamic URL pointing at controllers action](https://www.ruby-forum.com/t/need-advice-dynamic-url-pointing-at-controllers-action/238695)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 2\
**Last updated:** [January 24, 2014, 3:07pm UTC](https://www.ruby-forum.com/t/need-advice-dynamic-url-pointing-at-controllers-action/238695 "2014-01-24T15:07:47Z")

</div>

First of all sorry for the confusing title. I don’t really know how to explain what I want to do in one line. I am creating a Rails website in which Developers will be able to be listed and create profiles. In the pro…

---

## [Why not make Opal default for Rails?](https://www.ruby-forum.com/t/why-not-make-opal-default-for-rails/238306)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 2\
**Last updated:** [January 2, 2014, 4:20pm UTC](https://www.ruby-forum.com/t/why-not-make-opal-default-for-rails/238306 "2014-01-02T16:20:38Z")

</div>

Hello People, I just read this blog post http://piotrsarnacki.com/2014/01/01/i-am-tired-by-rails-should-fundamentally-change-crowd/ . Rails started with a mission to make web development easy. Part of its strategy i…

---

## [How to test whether IO object is open for writing](https://www.ruby-forum.com/t/how-to-test-whether-io-object-is-open-for-writing/236146)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 2\
**Last updated:** [August 9, 2013, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-test-whether-io-object-is-open-for-writing/236146 "2013-08-09T14:57:52Z")

</div>

Given an object of type IO (respectively File), what is the easiest way to see whether it is open for writing? I could try to write the null string to the object and, if I get an exception, assume that it is not write…

---

## [Match a value from hash which is inside array](https://www.ruby-forum.com/t/match-a-value-from-hash-which-is-inside-array/225632)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [January 20, 2013, 5:11pm UTC](https://www.ruby-forum.com/t/match-a-value-from-hash-which-is-inside-array/225632 "2013-01-20T17:11:21Z")

</div>

if result.has\_key?("Value) p result\["Value"\] && result\["#{Value}"\]\[“query”\]\[“location”\]\[“data”\] end Which will give me something like \[{“Value-1”=\>“Thu Dec 20 12:41:33 EST 2012”}, {“Value-7”=\>“Wed Dec 19 11:3…

---

## [Problem with fck editor](https://www.ruby-forum.com/t/problem-with-fck-editor/229316)

<div class="topic-metadata">

**Author:** [@saritha14](https://www.ruby-forum.com/u/saritha14)\
**Replies:** 2\
**Last updated:** [January 19, 2013, 10:05am UTC](https://www.ruby-forum.com/t/problem-with-fck-editor/229316 "2013-01-19T10:05:17Z")

</div>

HI ALL, 1. i am using fck editor in my application. 2. when i type any text in fck editor it was saved in hml format in database(i.e, mysql) 3. when i was try to retrieve the text it will displaying in html for…

---

## [Rvm broken on mint and cannot log a bug there](https://www.ruby-forum.com/t/rvm-broken-on-mint-and-cannot-log-a-bug-there/224343)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [November 8, 2012, 11:30am UTC](https://www.ruby-forum.com/t/rvm-broken-on-mint-and-cannot-log-a-bug-there/224343 "2012-11-08T11:30:57Z")

</div>

Freshly installed Mint Linux. Installed RVM using apt-get (command line) and get the following upon opening a new shell. Note I have installed it correctly on Mint Linux Maya 13 or whatever, it’s the most up-to-date…

---

## [\[ input \] -\> \[ PSK mod \] -\> \[ PSK Demod \] -\> \[ output \] =\> \[ input \] != \[ output \] - interesting](https://www.ruby-forum.com/t/input-psk-mod-psk-demod-output-input-output-interesting/222155)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 2\
**Last updated:** [August 15, 2012, 10:06pm UTC](https://www.ruby-forum.com/t/input-psk-mod-psk-demod-output-input-output-interesting/222155 "2012-08-15T22:06:28Z")

</div>

Greetings, In gnuradio-companion I connected output of a “PSK Mod” directly to a “PSK Demod” input. Both of the blocks have the same initializations, Number of Constellation Points:2 Gray Code:Yes Differential Encod…

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

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