# Top

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

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

---

## [Problem with single form and two models](https://www.ruby-forum.com/t/problem-with-single-form-and-two-models/149742)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 4\
**Last updated:** [September 29, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/problem-with-single-form-and-two-models/149742 "2008-09-29T17:32:20Z")

</div>

Hello everyone Just started to learn ROR.Does anyone have an idea on how to store fields in two tables using a single form? I wish to store the registration details in ‘users’ table and the langauges selected by the …

---

## [Switching to Rails 2.1](https://www.ruby-forum.com/t/switching-to-rails-2-1/146500)

<div class="topic-metadata">

**Author:** [@birk](https://www.ruby-forum.com/u/birk)\
**Replies:** 4\
**Last updated:** [September 9, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/switching-to-rails-2-1/146500 "2008-09-09T17:07:08Z")

</div>

Hi everyone. Here is my problem: I’ve been working on a RoR project for a while (its quite big project), but have to stop the work on it for some half a year. Now I’m back on it and I’d like to switch to the newest v…

---

## [Want to compare data in two files](https://www.ruby-forum.com/t/want-to-compare-data-in-two-files/146513)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 22, 2008, 9:22am UTC](https://www.ruby-forum.com/t/want-to-compare-data-in-two-files/146513 "2008-08-22T09:22:33Z")

</div>

I have two CSV files and i want to find the duplicates records. For ex. Sheet1 Sheet2 Vipul Anthony John Wayne …

---

## [Beginner Question on Ruby](https://www.ruby-forum.com/t/beginner-question-on-ruby/136474)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 4\
**Last updated:** [May 2, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/beginner-question-on-ruby/136474 "2008-05-02T14:28:39Z")

</div>

Hi all, I am beginning to learn ruby and cant seem to reason this behaviour. I expect since empty or nill is the array, arr\*n shouldnt change it. Why is this behaviour so? Code: num\_arr = Array.new puts “Num Alpha:…

---

## [Role based restriction for fields (not views or actions)](https://www.ruby-forum.com/t/role-based-restriction-for-fields-not-views-or-actions/133297)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 4\
**Last updated:** [March 31, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/role-based-restriction-for-fields-not-views-or-actions/133297 "2008-03-31T14:45:07Z")

</div>

I have an application that requires some complex access rules. Certain fields can only be edited by certain roles. I am using restful\_authentication and role\_requirement plugins so I am fine with restricting an entir…

---

## [Making nginx "feel" faster?](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346)

<div class="topic-metadata">

**Author:** [@Phillip\_B\_Oldham](https://www.ruby-forum.com/u/Phillip_B_Oldham)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 9:01am UTC](https://www.ruby-forum.com/t/making-nginx-feel-faster/131346 "2008-03-10T09:01:18Z")

</div>

Hi guys I’m working on a mediatemple server (US) from the UK and it looks like there’s a limit with the bandwidth from the server. Sites on that box are slow, whether they’re dynamic or not. nginx has 8 worker threads …

---

## [The best way to do primary keys?](https://www.ruby-forum.com/t/the-best-way-to-do-primary-keys/130677)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 4\
**Last updated:** [March 1, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/the-best-way-to-do-primary-keys/130677 "2008-03-01T23:39:24Z")

</div>

I’ve just made a simple test app - it’s a very basic blog. I ran this (or something vaguely like this): ruby script/generate scaffold article title:string body:text id:primary\_key Now, I’ve got the scaffold, but it s…

---

## [How ca I validate two correlated fields?](https://www.ruby-forum.com/t/how-ca-i-validate-two-correlated-fields/120158)

<div class="topic-metadata">

**Author:** [@jprogramista](https://www.ruby-forum.com/u/jprogramista)\
**Replies:** 4\
**Last updated:** [November 14, 2007, 11:28am UTC](https://www.ruby-forum.com/t/how-ca-i-validate-two-correlated-fields/120158 "2007-11-14T11:28:51Z")

</div>

Hello, I have problem with custom validator which should check such situation: I have two fields text\_field ‘object’, ‘others’ and text\_field ‘object’, ‘others\_area’ I “raise” error if others is nil but others\_area …

---

## [Puts if exists?](https://www.ruby-forum.com/t/puts-if-exists/85819)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/puts-if-exists/85819 "2007-09-25T23:10:23Z")

</div>

i have a real simple one today… here’s how it works. i have a field called address2 that is in most cases, blank… the rhtml that does this looks like: \<%= place\[:address1\] %\> \<%= place\[:address2\] %\> \<%= place\[:city\] …

---

## [Accessing ruby 1.9 interpreter from other threads](https://www.ruby-forum.com/t/accessing-ruby-1-9-interpreter-from-other-threads/113175)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 4\
**Last updated:** [September 5, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/accessing-ruby-1-9-interpreter-from-other-threads/113175 "2007-09-05T20:44:58Z")

</div>

Hi, I seem to recall hearing 1.9 is using native threads now. If so, does that mean it’s now safe for multiple OS threads to call into the 1.9 ruby interpreter, and eval or execute ruby code? (I’m assuming some sort…

---

## [Xml-map](https://www.ruby-forum.com/t/xml-map/109319)

<div class="topic-metadata">

**Author:** [@marcin\_r](https://www.ruby-forum.com/u/marcin_r)\
**Replies:** 4\
**Last updated:** [August 13, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/xml-map/109319 "2007-08-13T20:11:45Z")

</div>

Hello. Thanks to my bas from softwarelab.eu (little advert) I’m starting to release code that i wrote so far :slight\_smile: for now there’s little - or no- documentation but i’ll be working on it back to the topic: x…

---

## [Can you use a mixin to add action methods to an ActionContro](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104230)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [May 15, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/can-you-use-a-mixin-to-add-action-methods-to-an-actioncontro/104230 "2007-05-15T20:24:36Z")

</div>

I am trying to use a module to define a common interface between several ActiveRecord model classes, but I am having trouble setting the instance variable in the mixin functions. For example, I have a mixin, module …

---

## [Newbie: where is File documented?](https://www.ruby-forum.com/t/newbie-where-is-file-documented/80641)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [December 30, 2006, 2:56am UTC](https://www.ruby-forum.com/t/newbie-where-is-file-documented/80641 "2006-12-30T02:56:47Z")

</div>

Hello, I’m trying to work some examples (The Poignant Guide), I can’t seem to find any official docs on the File class, found this half-finished tutorial: http://pleac.sourceforge.net/pleac\_ruby/fileaccess.html Is…

---

## [Strange works on Mac but not on linux](https://www.ruby-forum.com/t/strange-works-on-mac-but-not-on-linux/72871)

<div class="topic-metadata">

**Author:** [@Henrik\_Ekenberg](https://www.ruby-forum.com/u/Henrik_Ekenberg)\
**Replies:** 4\
**Last updated:** [November 10, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/strange-works-on-mac-but-not-on-linux/72871 "2006-11-10T21:17:27Z")

</div>

Hello, I have created an application on my macbook and it works well Then when I moved the rails files to an linux server I have a strange problem. 1/10 of the application get one error Logs NoMethodError in LogsCon…

---

## [Pluralization of tables lost in a hosting environment](https://www.ruby-forum.com/t/pluralization-of-tables-lost-in-a-hosting-environment/71865)

<div class="topic-metadata">

**Author:** [@sanand83](https://www.ruby-forum.com/u/sanand83)\
**Replies:** 4\
**Last updated:** [October 17, 2006, 7:57pm UTC](https://www.ruby-forum.com/t/pluralization-of-tables-lost-in-a-hosting-environment/71865 "2006-10-17T19:57:56Z")

</div>

I am trying to deploy my Ruby on Rails application into textdrive. I get MySql errors like these. Mysql::Error: Table ‘session’ doesn’t exist: SHOW FIELDS FROM session The problem is the table is called “sessions” and…

---

## [Packaging hybrid extension?](https://www.ruby-forum.com/t/packaging-hybrid-extension/71561)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 4\
**Last updated:** [October 10, 2006, 2:55am UTC](https://www.ruby-forum.com/t/packaging-hybrid-extension/71561 "2006-10-10T02:55:18Z")

</div>

I’m writing something which is partially written in ruby, but uses an extension which adds methods to some of the classes in the ruby part. Right now I’ve got a directory which contains both the ruby code and the so c…

---

## [RJS Doesn't work for me :(](https://www.ruby-forum.com/t/rjs-doesnt-work-for-me/70152)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 4\
**Last updated:** [September 27, 2006, 6:34am UTC](https://www.ruby-forum.com/t/rjs-doesnt-work-for-me/70152 "2006-09-27T06:34:46Z")

</div>

I’m developing on my Mac OS X Powerbook using just Mongrel. I’ve been trying to get the simplest of RJS to work: view ruby link\_to\_remote ‘update’, :url=\>{:action=\>:doit} controller def doit render :update do |page| …

---

## [Not sure what is wrong. strange error](https://www.ruby-forum.com/t/not-sure-what-is-wrong-strange-error/68830)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 4\
**Last updated:** [September 15, 2006, 11:47pm UTC](https://www.ruby-forum.com/t/not-sure-what-is-wrong-strange-error/68830 "2006-09-15T23:47:29Z")

</div>

My class declation is like this class TorontoTraderLoader INDEX\_SYMBOL=2 STOCK\_SYMBOL=1 @backTestDb=\[‘backtestBackTest’, ‘user’,‘pass’\] def initialize(backTesting) @exchanges=@industries=@sectors=@stocksymbols='' …

---

## [Has a method been called?](https://www.ruby-forum.com/t/has-a-method-been-called/67886)

<div class="topic-metadata">

**Author:** [@aidy](https://www.ruby-forum.com/u/aidy)\
**Replies:** 4\
**Last updated:** [September 7, 2006, 5:53pm UTC](https://www.ruby-forum.com/t/has-a-method-been-called/67886 "2006-09-07T17:53:25Z")

</div>

Hi, Is it possible to find out if a method has been called except by adding a flag to it? class Whatever @flag = 0 def method\_called @flag += 1 end def has\_method\_been\_called false return true if @flag \> 0 end …

---

## [Button on view](https://www.ruby-forum.com/t/button-on-view/65528)

<div class="topic-metadata">

**Author:** [@ar1](https://www.ruby-forum.com/u/ar1)\
**Replies:** 4\
**Last updated:** [August 18, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/button-on-view/65528 "2006-08-18T23:23:23Z")

</div>

Hi, I have a page containing 3 views (2 are partials). One of the partials needs to have a button that will clear a table called “messages” in the database. I can put a button like this “\<%= button\_to “Clear Messages…

---

## [Render :action =\> 'list'](https://www.ruby-forum.com/t/render-action-list/55533)

<div class="topic-metadata">

**Author:** [@gonzalo](https://www.ruby-forum.com/u/gonzalo)\
**Replies:** 4\
**Last updated:** [March 21, 2006, 11:45pm UTC](https://www.ruby-forum.com/t/render-action-list/55533 "2006-03-21T23:45:32Z")

</div>

does anybody know what the hell “render :action =\> ‘list’” means??? is “render” a method? is :action a parameter? thanks a lot.

---

## [Ruby group in Orlando Florida](https://www.ruby-forum.com/t/ruby-group-in-orlando-florida/50308)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 4\
**Last updated:** [December 31, 2005, 2:34pm UTC](https://www.ruby-forum.com/t/ruby-group-in-orlando-florida/50308 "2005-12-31T14:34:00Z")

</div>

Hi all, Are there any Ruby U. Groups in Orlando Florida, or anywhere in Orange or Seminole County Florida? SteveT Steve L. removed\_email\_address@domain.invalid

---

## [Blog for Ruby](https://www.ruby-forum.com/t/blog-for-ruby/72742)

<div class="topic-metadata">

**Author:** [@anonymouz](https://www.ruby-forum.com/u/anonymouz)\
**Replies:** 4\
**Last updated:** [December 20, 2005, 8:05pm UTC](https://www.ruby-forum.com/t/blog-for-ruby/72742 "2005-12-20T20:05:02Z")

</div>

Hi! At the request of a friend of mine, I am doing a blog as I learn to program, and I am using Ruby to learn. So if you would like to check out the progress, suggest sites that should be linked to, or point other ne…

---

## [Split string](https://www.ruby-forum.com/t/split-string/129634)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 8\
**Last updated:** [February 20, 2008, 9:45am UTC](https://www.ruby-forum.com/t/split-string/129634 "2008-02-20T09:45:36Z")

</div>

Hi I have @selected\_ciid\_and\_asso\_types ( its content is 3:43,2:65,3:50, ) How can i split it like 3 43 2 65 3 50 These are actually two columns of a table…If i get it like above I can directly save it to …

---

## [Modeling a Database](https://www.ruby-forum.com/t/modeling-a-database/119325)

<div class="topic-metadata">

**Author:** [@seank](https://www.ruby-forum.com/u/seank)\
**Replies:** 8\
**Last updated:** [November 10, 2007, 1:13am UTC](https://www.ruby-forum.com/t/modeling-a-database/119325 "2007-11-10T01:13:01Z")

</div>

All of the rails tutorials I’ve read show how to create simple table relationships within a database. For example: A store model relating to a product model through a join table. However, in the application I’m build…

---

## [Array find\_index](https://www.ruby-forum.com/t/array-find-index/253666)

<div class="topic-metadata">

**Author:** [@ceitsol](https://www.ruby-forum.com/u/ceitsol)\
**Replies:** 0\
**Last updated:** [January 27, 2020, 8:59pm UTC](https://www.ruby-forum.com/t/array-find-index/253666 "2020-01-27T20:59:51Z")

</div>

select code,name,gender from employee the result of above query is obtained in an array ar\_employee=con.exec "select code,name,gender from employee I want to find a specific code in the array by using array.find\_index…

---

## [CanCan use table alias in define ability](https://www.ruby-forum.com/t/cancan-use-table-alias-in-define-ability/253457)

<div class="topic-metadata">

**Author:** [@jason9364](https://www.ruby-forum.com/u/jason9364)\
**Replies:** 0\
**Last updated:** [December 11, 2019, 4:57pm UTC](https://www.ruby-forum.com/t/cancan-use-table-alias-in-define-ability/253457 "2019-12-11T16:57:58Z")

</div>

I want to add a read restriction for a user - I am going to use an SQL WHERE clause eg. cannot :read, ApplianceManufacturer, \[“developer\_id IS NOT ?”, nil\] do |manufacturer| !manufacturer.developer\_id.nil? end But in…

---

## [Looking for a mentor in Ruby on Rails](https://www.ruby-forum.com/t/looking-for-a-mentor-in-ruby-on-rails/243422)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [October 22, 2015, 3:25pm UTC](https://www.ruby-forum.com/t/looking-for-a-mentor-in-ruby-on-rails/243422 "2015-10-22T15:25:55Z")

</div>

Looking for a mentor in Ruby on Rails. Ready to work on a real project helping you. Basic knowledge of Ruby, Ruby on Rails, Bootstrap/Foundation frameworks. 10-20 hours per week.

---

## [(Jobs) Senior Ruby on Rails Developer](https://www.ruby-forum.com/t/jobs-senior-ruby-on-rails-developer/243359)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [September 25, 2015, 5:45pm UTC](https://www.ruby-forum.com/t/jobs-senior-ruby-on-rails-developer/243359 "2015-09-25T17:45:22Z")

</div>

Senior Ruby on Rails Developer Based in Boulder, Colorado, We are a multidisciplinary team of digital artisans that bring together passion, collaboration, and creativity to create high-concept digital solutions that a…

---

## [Bootstrap :File to import not found or unreadable](https://www.ruby-forum.com/t/bootstrap-file-to-import-not-found-or-unreadable/223273)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 10:30am UTC](https://www.ruby-forum.com/t/bootstrap-file-to-import-not-found-or-unreadable/223273 "2012-09-27T10:30:05Z")

</div>

Hello! I have found alredy some topics about my problem but I didnt understand how it should be fixed. Sorry =) I was following http://ruby.railstutorial.org/chapters/filling-in-the-layout#fnref-5\_5 tutorial and s…

---

## [\[ANN\] Rails 3.0.9.rc5 has been released!](https://www.ruby-forum.com/t/ann-rails-3-0-9-rc5-has-been-released/208233)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 0\
**Last updated:** [June 13, 2011, 12:00am UTC](https://www.ruby-forum.com/t/ann-rails-3-0-9-rc5-has-been-released/208233 "2011-06-13T00:00:27Z")

</div>

OMG!! I released Rails 3.0.9.rc5! As usual, please test this against your application and report any regressions to the rails core mailing list. I would like to hear your feedback, good or bad. I will release the …

---

## [Geza Tendai/NB/BII is out of the office](https://www.ruby-forum.com/t/geza-tendai-nb-bii-is-out-of-the-office/162614)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 12, 2009, 12:26am UTC](https://www.ruby-forum.com/t/geza-tendai-nb-bii-is-out-of-the-office/162614 "2009-03-12T00:26:11Z")

</div>

I will be out of the office starting 03/04/2009 and will not return until 03/16/2009. I will respond to your message when I return. The server made the following annotations This message contains information that…

---

## [Rails 2.3 (minus) engines = headaches](https://www.ruby-forum.com/t/rails-2-3-minus-engines-headaches/159917)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 0\
**Last updated:** [February 10, 2009, 1:04am UTC](https://www.ruby-forum.com/t/rails-2-3-minus-engines-headaches/159917 "2009-02-10T01:04:16Z")

</div>

Engine-Users mailing list removed\_email\_address@domain.invalid http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

---

## [Validation without ActiveRecord (was Re: contact form/no db](https://www.ruby-forum.com/t/validation-without-activerecord-was-re-contact-form-no-db/47807)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 0\
**Last updated:** [November 14, 2005, 1:38am UTC](https://www.ruby-forum.com/t/validation-without-activerecord-was-re-contact-form-no-db/47807 "2005-11-14T01:38:41Z")

</div>

On Sunday 13 Nov 2005 23:47, Nathaniel S. H. Brown wrote: When you generate your model, simply remove the “\< ActiveRecord::Base” within the class definition, \[…\] You will not get all the nice features of ActiveRecor…

---

## [Ruby method](https://www.ruby-forum.com/t/ruby-method/244659)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [May 23, 2016, 8:57am UTC](https://www.ruby-forum.com/t/ruby-method/244659 "2016-05-23T08:57:19Z")

</div>

Question I wrote this method but the array doesnt hold the values I would like the array length to increase each time the method is called

---

## [How to show applicants list according to posted jobs id](https://www.ruby-forum.com/t/how-to-show-applicants-list-according-to-posted-jobs-id/243942)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [January 27, 2016, 2:07pm UTC](https://www.ruby-forum.com/t/how-to-show-applicants-list-according-to-posted-jobs-id/243942 "2016-01-27T14:07:36Z")

</div>

I am a newbie in ruby on rails it’s also my first ruby application. I applied for a job according to posted\_jobs\_id as a jobseeker and applied successfully. Now I am a recruiter want to show specific applicants for sp…

---

## [Associations in console](https://www.ruby-forum.com/t/associations-in-console/243748)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [December 30, 2015, 8:26am UTC](https://www.ruby-forum.com/t/associations-in-console/243748 "2015-12-30T08:26:51Z")

</div>

if users has one profile and profiles has many schools should i be able to see schools at u.profiles.schools where u is a user object

---

## [Nginx 1.9 from package & RTMP](https://www.ruby-forum.com/t/nginx-1-9-from-package-rtmp/241928)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [May 13, 2015, 7:15am UTC](https://www.ruby-forum.com/t/nginx-1-9-from-package-rtmp/241928 "2015-05-13T07:15:16Z")

</div>

I just install nginx 1.9 on my ubuntu 15.04 machine using precompiled package “apt-get install”, nginx in working and now how can I add RTMP module? Posted at Nginx Forum:

---

## [Find and replace](https://www.ruby-forum.com/t/find-and-replace/234762)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 29, 2015, 4:11pm UTC](https://www.ruby-forum.com/t/find-and-replace/234762 "2015-03-29T16:11:38Z")

</div>

I have a text file that contains file paths as follows: I want to replace the string “drug” by “med” wherever it occurs. I used something like the following: gsub!(/(drug)/,‘medication’) if contents.include? ‘drug’ …

---

## [Adding expires on all images break nginx rewrite](https://www.ruby-forum.com/t/adding-expires-on-all-images-break-nginx-rewrite/234614)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 17, 2015, 7:03pm UTC](https://www.ruby-forum.com/t/adding-expires-on-all-images-break-nginx-rewrite/234614 "2015-03-17T19:03:43Z")

</div>

Hello, I host a website based on Laravel with Nginx 1.6.2 + PHP-FPM 5.6. Most images on the website are in /static folder and are served to visitors with a PHP file (see /static location). I want to add a 30 days ex…

---

## [Squelch\_base\_cc.h not installed](https://www.ruby-forum.com/t/squelch-base-cc-h-not-installed/234497)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [March 9, 2015, 3:43pm UTC](https://www.ruby-forum.com/t/squelch-base-cc-h-not-installed/234497 "2015-03-09T15:43:27Z")

</div>

I am trying to use the Power Squelch CC, but when I go to compile I get the following error: /opt/local/include/gnuradio/analog/pwr\_squelch\_cc.h:27:10: fatal error: ‘gnuradio/analog/squelch\_base\_cc.h’ file not found …

---

## [Incorporating Google Maps into your app](https://www.ruby-forum.com/t/incorporating-google-maps-into-your-app/232365)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [October 6, 2014, 7:52am UTC](https://www.ruby-forum.com/t/incorporating-google-maps-into-your-app/232365 "2014-10-06T07:52:17Z")

</div>

Hey guys, I have an idea for an app I want to build, but that app would need to be able to communicate with Google maps or some ‘map’ system somehow. Is that possible? one feature of the app would be to locate perso…

---

## [Pid file location even after setting pid directive](https://www.ruby-forum.com/t/pid-file-location-even-after-setting-pid-directive/231297)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 1, 2014, 5:23pm UTC](https://www.ruby-forum.com/t/pid-file-location-even-after-setting-pid-directive/231297 "2014-08-01T17:23:44Z")

</div>

Hi, I have added pid directive to nginx config. Pid /home/ubuntu/ngx.pid Nginx -t -c (conf) also succeeds. However when I run nginx, and later try to stop it with nginx -s stop, I get following error: Open failed (…

---

## [PyBOMBS skip volk\_profile](https://www.ruby-forum.com/t/pybombs-skip-volk-profile/230978)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [July 15, 2014, 11:07pm UTC](https://www.ruby-forum.com/t/pybombs-skip-volk-profile/230978 "2014-07-15T23:07:58Z")

</div>

Is there a clean way to skip volk\_profile when rebuilding gnuradio with PyBOMBS? This setting seems to be automated and I can’t find where to switch it off. Thanks, Sean

---

## [Capistrano: deploying production and staging to same database](https://www.ruby-forum.com/t/capistrano-deploying-production-and-staging-to-same-database/240809)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [May 1, 2014, 7:22pm UTC](https://www.ruby-forum.com/t/capistrano-deploying-production-and-staging-to-same-database/240809 "2014-05-01T19:22:56Z")

</div>

I have the production and staging site on two different server ips. But the database, another server ip, is the same database used by both production and staging. When i set up the capistrano deploy task for both the …

---

## [499 in a proxy environment and short execution php scripts](https://www.ruby-forum.com/t/499-in-a-proxy-environment-and-short-execution-php-scripts/240474)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [April 17, 2014, 2:12pm UTC](https://www.ruby-forum.com/t/499-in-a-proxy-environment-and-short-execution-php-scripts/240474 "2014-04-17T14:12:34Z")

</div>

Hello Nginx Before writing this I have checked the meaning of the 499 error code as result of that the client closed the connection before the server answered the request. Thats clear as water. PROBLEM: Iam measuring…

---

## [Harmony gem issue](https://www.ruby-forum.com/t/harmony-gem-issue/239380)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 1\
**Last updated:** [February 27, 2014, 4:56pm UTC](https://www.ruby-forum.com/t/harmony-gem-issue/239380 "2014-02-27T16:56:28Z")

</div>

Hello everyone, saravanan@ubuntu:~$ ruby -v ruby 2.0.0p353 (2013-11-22 revision 43784) \[x86\_64-linux\] saravanan@ubuntu:~$ rails -v Rails 4.0.3 saravanan@ubuntu:~$ rvm -v rvm 1.24.4 (stable) by Wayne E. Seguin remov…

---

## [Ruby gsub for Wild Card Search](https://www.ruby-forum.com/t/ruby-gsub-for-wild-card-search/239432)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [February 26, 2014, 9:15am UTC](https://www.ruby-forum.com/t/ruby-gsub-for-wild-card-search/239432 "2014-02-26T09:15:30Z")

</div>

Hi, I am very new to Ruby. I have a script to remove unwanted text from Spiceworks (Ticketing system). For that, I need to do a wild card search on a string and replace a particular text block. Text block is as bel…

---

## [Re: Error in hier block with 4 outputs and an async message!](https://www.ruby-forum.com/t/re-error-in-hier-block-with-4-outputs-and-an-async-message/238848)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 31, 2014, 12:41am UTC](https://www.ruby-forum.com/t/re-error-in-hier-block-with-4-outputs-and-an-async-message/238848 "2014-01-31T00:41:07Z")

</div>

Marcus, the error is still there even if you don’t have direct connections between in/out pads. See attached Achilleas

---

## [Question on some simple codes in ngx\_buf.c](https://www.ruby-forum.com/t/question-on-some-simple-codes-in-ngx-buf-c/238538)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 1\
**Last updated:** [January 16, 2014, 5:50pm UTC](https://www.ruby-forum.com/t/question-on-some-simple-codes-in-ngx-buf-c/238538 "2014-01-16T17:50:58Z")

</div>

Hello there, code snippet in the definition of ngx\_chain\_add\_copy in ngx\_buf.c: ll = chain; for (cl = \*chain; cl; cl = cl-\>next) { ll = &cl-\>next; } Why is ll assigned repeatedly? I’m sorry for failed thinking …

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

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