# Top

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

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

---

## [How to send data into many bursts?](https://www.ruby-forum.com/t/how-to-send-data-into-many-bursts/245198)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [January 4, 2017, 11:06am UTC](https://www.ruby-forum.com/t/how-to-send-data-into-many-bursts/245198 "2017-01-04T11:06:48Z")

</div>

Hi all, My task was to develop a GFSK transmitter based on the following requirements • Preamble : 55 55 • Synchro : F6 72 • L-field ( data + CRC) : 20 • Data (30 bytes) : FFFFFFFFFFFFFFFFFFFFFFFFFF0110AABBBBBBCE98…

---

## [Opposite behavior of keepalive (nginx reverse proxy on ElasticSearch)](https://www.ruby-forum.com/t/opposite-behavior-of-keepalive-nginx-reverse-proxy-on-elasticsearch/244111)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 0\
**Last updated:** [February 22, 2016, 9:53am UTC](https://www.ruby-forum.com/t/opposite-behavior-of-keepalive-nginx-reverse-proxy-on-elasticsearch/244111 "2016-02-22T09:53:13Z")

</div>

I am setting up a nginx reverse proxy for ElasticSearch (with HTTP Basic Auth) as described in this article: This is my nginx config file: events { worker\_connections 1024; } http { upstream elasticsearch { ser…

---

## [How to check that $request\_body has some string and use it like a caching key?](https://www.ruby-forum.com/t/how-to-check-that-request-body-has-some-string-and-use-it-like-a-caching-key/211892)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 0\
**Last updated:** [September 16, 2011, 5:09am UTC](https://www.ruby-forum.com/t/how-to-check-that-request-body-has-some-string-and-use-it-like-a-caching-key/211892 "2011-09-16T05:09:45Z")

</div>

Hi everybody, I have the following situation: Incoming request with method POST has binary body. I would like to extract piece(s) from the payload to use it like a caching key. Something like: if ( $request\_body ~\* …

---

## [Decoupling Views from Controllers in Rails (Smalltalk MVC Style)](https://www.ruby-forum.com/t/decoupling-views-from-controllers-in-rails-smalltalk-mvc-style/263287)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 9:52pm UTC](https://www.ruby-forum.com/t/decoupling-views-from-controllers-in-rails-smalltalk-mvc-style/263287 "2022-09-23T21:52:35Z")

</div>

This blog post is an oldie but a goodie: “Decoupling Views from Controllers in Rails (Smalltalk MVC Style)”. Its concepts come straight out of desktop development, providing examples of how web development could be inspi…

---

## [Block positions and connections in flowgraph change on different machines](https://www.ruby-forum.com/t/block-positions-and-connections-in-flowgraph-change-on-different-machines/260989)

<div class="topic-metadata">

**Author:** [@gsrflo](https://www.ruby-forum.com/u/gsrflo)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 3:01pm UTC](https://www.ruby-forum.com/t/block-positions-and-connections-in-flowgraph-change-on-different-machines/260989 "2021-02-17T15:01:51Z")

</div>

Hi guys, how do you manage working on the same flowgraph in GRC while using different machines? While the flowgraph and each block’s position seem pretty decent on one PC, blocks aren’t aligned and connections aren’t s…

---

## [Ruby bundle command in AWS](https://www.ruby-forum.com/t/ruby-bundle-command-in-aws/260407)

<div class="topic-metadata">

**Author:** [@pawel9091](https://www.ruby-forum.com/u/pawel9091)\
**Replies:** 0\
**Last updated:** [October 22, 2020, 9:24am UTC](https://www.ruby-forum.com/t/ruby-bundle-command-in-aws/260407 "2020-10-22T09:24:04Z")

</div>

Hi, I first of all I m not programmer :smiley: but I need zip. file from ruby, I have compile ruby file with Gemfile file and etc. and I m trying to sent this in my AWS Lmabda Function and test this, but I have problem : …

---

## [\-ve amplitude value in wx fft sink spectrum](https://www.ruby-forum.com/t/ve-amplitude-value-in-wx-fft-sink-spectrum/244555)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 7:02am UTC](https://www.ruby-forum.com/t/ve-amplitude-value-in-wx-fft-sink-spectrum/244555 "2016-05-03T07:02:43Z")

</div>

Respected members I am new in GNU radio and i just want to share about one problem i came across related to the WX FFT SINK spectrum i.e. how can i get +ve amplitude values of the fft spectrum(signal amplitude)? The …

---

## [Ruby On Rails Developer for Mumbai, India](https://www.ruby-forum.com/t/ruby-on-rails-developer-for-mumbai-india/241860)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 0\
**Last updated:** [May 6, 2015, 5:10pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-for-mumbai-india/241860 "2015-05-06T17:10:54Z")

</div>

One of our client in the Real Estate domain in Mumbai is looking for a lead web developer having hands-on experience in Ruby on Rails. The details of the job are the following: Job Synopsis: · Designation: Le…

---

## [Ruby on Rails Developer – Zurich, Switzerland – Visasponsorship](https://www.ruby-forum.com/t/ruby-on-rails-developer-zurich-switzerland-visasponsorship/234475)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [March 7, 2015, 8:48am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-zurich-switzerland-visasponsorship/234475 "2015-03-07T08:48:16Z")

</div>

Our client is looking for high calibre Ruby Developer to join a new product development team. As a highly skilled Ruby Developer you will be part of a small focused project team which is responsible for innovation and…

---

## [Nested\_Hash\_Creation\_in\_Ruby](https://www.ruby-forum.com/t/nested-hash-creation-in-ruby/237981)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 3\
**Last updated:** [April 1, 2014, 3:34am UTC](https://www.ruby-forum.com/t/nested-hash-creation-in-ruby/237981 "2014-04-01T03:34:02Z")

</div>

\#!/usr/bin/ruby #hash\_of\_hash.rb list={“app1”=\>101,“app2”=\>104,“app3”=\>109,“app4”=\>123} h=Hash.new{ |h,id| h\[id\]=Hash.new{ |h,dt| h\[dt\]={} }} h\[“company”\]\[“products”\]=list puts h edit this code if you’ve much easie…

---

## [GSoC2014 Turbo Equalizer](https://www.ruby-forum.com/t/gsoc2014-turbo-equalizer/239412)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 3\
**Last updated:** [March 3, 2014, 8:44am UTC](https://www.ruby-forum.com/t/gsoc2014-turbo-equalizer/239412 "2014-03-03T08:44:57Z")

</div>

Hi everyone, I am a student at Communications Engineering Lab (CEL) at Karlsruhe Institute of Technology. I major in “communication systems” and I am currently doing my masterthesis on “Parallel log-map decoders for …

---

## [Problem with regular expression for checking date](https://www.ruby-forum.com/t/problem-with-regular-expression-for-checking-date/237001)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [October 18, 2013, 10:22am UTC](https://www.ruby-forum.com/t/problem-with-regular-expression-for-checking-date/237001 "2013-10-18T10:22:53Z")

</div>

hi, I checking the validation of date here as a=~/^(0\[1-9\]|1\[012\])//\\d\\d$/ It’s working fine, But when I give FEB-30 It’s accepting because in the above expression it’s not restricted. So How do I impose the conditio…

---

## [Multiple Instances of Server?](https://www.ruby-forum.com/t/multiple-instances-of-server/123702)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 3\
**Last updated:** [September 23, 2013, 2:10pm UTC](https://www.ruby-forum.com/t/multiple-instances-of-server/123702 "2013-09-23T14:10:42Z")

</div>

Hello- Is it not possible to run multiple instances of ‘ruby script/server’ for different applications? I have 2 apps, say App1 and App2 and I would like to be able to host these locally at the same time using ruby s…

---

## [Creating a nested attributes form for polymorphic/single table inheritance associations](https://www.ruby-forum.com/t/creating-a-nested-attributes-form-for-polymorphic-single-table-inheritance-associations/235581)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 0\
**Last updated:** [July 1, 2013, 11:18pm UTC](https://www.ruby-forum.com/t/creating-a-nested-attributes-form-for-polymorphic-single-table-inheritance-associations/235581 "2013-07-01T23:18:32Z")

</div>

I am working on a form (using SimpleForm) that allows you to edit embedded associations. The problem that I’m running into is that the nested models are subclasses so they are different types with potentially differe…

---

## [Are you a Rubyist looking to re-locate from Spain to London, UK?](https://www.ruby-forum.com/t/are-you-a-rubyist-looking-to-re-locate-from-spain-to-london-uk/228208)

<div class="topic-metadata">

**Author:** [@rhysy](https://www.ruby-forum.com/u/rhysy)\
**Replies:** 0\
**Last updated:** [April 13, 2013, 12:30pm UTC](https://www.ruby-forum.com/t/are-you-a-rubyist-looking-to-re-locate-from-spain-to-london-uk/228208 "2013-04-13T12:30:09Z")

</div>

I’m interested in speaking to a number of Rubyists regarding a range of jobs available with various partners who are based London, UK. Who am I? I’m Rhys, a recruiter who’s been helping smart/savvy Rubyists all over …

---

## [How to pass established/defined arrays into def method](https://www.ruby-forum.com/t/how-to-pass-established-defined-arrays-into-def-method/229693)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 3\
**Last updated:** [February 7, 2013, 4:28am UTC](https://www.ruby-forum.com/t/how-to-pass-established-defined-arrays-into-def-method/229693 "2013-02-07T04:28:30Z")

</div>

I am trying to pass a defined array into a method. Ruby is interpreting it as an undefined local variable. Is there a way around this? Also, can a def method take a string and an array as parameters? player1 = \[ \[“Ten…

---

## [Gedit - graphic display of block of code](https://www.ruby-forum.com/t/gedit-graphic-display-of-block-of-code/225081)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [December 14, 2012, 7:07am UTC](https://www.ruby-forum.com/t/gedit-graphic-display-of-block-of-code/225081 "2012-12-14T07:07:37Z")

</div>

Hi, I am using gedit for coding and I like it very much. The one thing I do miss is the graphic display of a block of code, which looks like a node. For example between If and End. Is this available in gedit? I have …

---

## [Rouge](https://www.ruby-forum.com/t/rouge/223701)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [October 25, 2012, 2:10pm UTC](https://www.ruby-forum.com/t/rouge/223701 "2012-10-25T14:10:37Z")

</div>

Hi all, I’d like to announce Rouge, which is an implementation of Clojure on Ruby. https://github.com/unnali/rouge#readme The readme above shows example of some Rouge code, most of which is currently taken from the …

---

## [Watir wait.until](https://www.ruby-forum.com/t/watir-wait-until/222170)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 3\
**Last updated:** [August 16, 2012, 1:53pm UTC](https://www.ruby-forum.com/t/watir-wait-until/222170 "2012-08-16T13:53:00Z")

</div>

What is the meaning of the statement: Watir::Wait.until(22) { value.exists? }

---

## [\[ruby-trunk - Bug #5731\]\[Open\] enum for を使うと method missing にブロックが渡されない](https://www.ruby-forum.com/t/ruby-trunk-bug-5731-open-enum-for-method-missing/214673)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [December 19, 2011, 3:05am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-5731-open-enum-for-method-missing/214673 "2011-12-19T03:05:30Z")

</div>

Issue #5731 has been reported by Masahiro T… Bug #5731: enum\_for を使うと method\_missing にブロックが渡されない Author: Masahiro T. Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p0 (2011…

---

## [How to read http\_userid's Base64 encoded userid from Ruby?](https://www.ruby-forum.com/t/how-to-read-http-userids-base64-encoded-userid-from-ruby/183170)

<div class="topic-metadata">

**Author:** [@Sven\_CSKoehler](https://www.ruby-forum.com/u/Sven_CSKoehler)\
**Replies:** 3\
**Last updated:** [September 9, 2011, 9:29pm UTC](https://www.ruby-forum.com/t/how-to-read-http-userids-base64-encoded-userid-from-ruby/183170 "2011-09-09T21:29:20Z")

</div>

Hey, I am using the http user id module and have not yet figured out how I can read the base64 encoded cookie from Ruby. It seems like nginx uses a different form of base64 than Ruby does… Example: | uid value = E…

---

## [Multiple database sources with Rails 2.2.2](https://www.ruby-forum.com/t/multiple-database-sources-with-rails-2-2-2/159838)

<div class="topic-metadata">

**Author:** [@slauki](https://www.ruby-forum.com/u/slauki)\
**Replies:** 3\
**Last updated:** [August 7, 2011, 12:19am UTC](https://www.ruby-forum.com/t/multiple-database-sources-with-rails-2-2-2/159838 "2011-08-07T00:19:11Z")

</div>

Hi everyone, I’m quite new to RoR but in general wanna try get some of my holes within Ruby on Rails plugged. At the moment my biggest question is: How can you as elegantly as the standard database config use multiple …

---

## [Assertion "imu \>= 0" failed on random times](https://www.ruby-forum.com/t/assertion-imu-0-failed-on-random-times/206098)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [May 2, 2011, 12:07pm UTC](https://www.ruby-forum.com/t/assertion-imu-0-failed-on-random-times/206098 "2011-05-02T12:07:58Z")

</div>

Hello, in the program I am currently working on, I sometimes get the following error messsage: python: gri\_mmse\_fir\_interpolator\_cc.cc:66: gr\_complex gri\_mmse\_fir\_interpolator\_cc::interpolate(const gr\_complex\*, float…

---

## [Rails Tutorials](https://www.ruby-forum.com/t/rails-tutorials/205563)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [April 8, 2011, 8:22pm UTC](https://www.ruby-forum.com/t/rails-tutorials/205563 "2011-04-08T20:22:53Z")

</div>

Hi, I’ve begun watching the rails tutorials video, and have downloaded the iterm application. I did a search for GIT (git-1.7.4.1-x86\_64-leopard.dmghttp://code.google.com/p/git-osx-installer/downloads/detail?name=gi…

---

## [Rails way of constructing an url with post parameters of a form](https://www.ruby-forum.com/t/rails-way-of-constructing-an-url-with-post-parameters-of-a-form/201960)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 3\
**Last updated:** [January 19, 2011, 5:55pm UTC](https://www.ruby-forum.com/t/rails-way-of-constructing-an-url-with-post-parameters-of-a-form/201960 "2011-01-19T17:55:47Z")

</div>

I would like to do that’s the best way of actually accomplishing the following on Rails. I have a “Booking Form” with 5 fields (Property, Amount of Children, Amount of Adults and 2 Dates - Departure and Arrival) based…

---

## [Inheriting a ruby class from different file location](https://www.ruby-forum.com/t/inheriting-a-ruby-class-from-different-file-location/199597)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 24, 2010, 7:42pm UTC](https://www.ruby-forum.com/t/inheriting-a-ruby-class-from-different-file-location/199597 "2010-11-24T19:42:08Z")

</div>

So I’d like to inherit a ruby class as such: class ClassOne \< ClassOneA def blah1 end def blah2 end end The caveat is that ClassOneA is NOT in the same file location as ClassOne. How do I allow for ClassOne to “l…

---

## [How to print](https://www.ruby-forum.com/t/how-to-print/195656)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 3\
**Last updated:** [September 27, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-print/195656 "2010-09-27T22:11:57Z")

</div>

A submit action shows me the show.html.erb page. How to print this page to a printer? I have to use javascript print() method?

---

## [ORM Designer and Ruby ORM](https://www.ruby-forum.com/t/orm-designer-and-ruby-orm/193196)

<div class="topic-metadata">

**Author:** [@ludekvodicka](https://www.ruby-forum.com/u/ludekvodicka)\
**Replies:** 3\
**Last updated:** [August 13, 2010, 9:01am UTC](https://www.ruby-forum.com/t/orm-designer-and-ruby-orm/193196 "2010-08-13T09:01:52Z")

</div>

Hello, My name is Ludek Vodicka and I’m the main developer of ORM Designer tool (http://www.orm-designer.com). During last months several people asked us if we could create a support for RoR ORM in ORM Designer. Toda…

---

## [Injecting an instance method into another class' class method](https://www.ruby-forum.com/t/injecting-an-instance-method-into-another-class-class-method/193123)

<div class="topic-metadata">

**Author:** [@cremes](https://www.ruby-forum.com/u/cremes)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/injecting-an-instance-method-into-another-class-class-method/193123 "2010-08-12T21:16:06Z")

</div>

I’d like to reopen a class Foo and redefine one of its methods to use an instance method from class Bar. I can’t seem to figure out how to do it or even if it is possible. I tried lots of different techniques and none…

---

## [How to analyse web with nokogiri?](https://www.ruby-forum.com/t/how-to-analyse-web-with-nokogiri/186651)

<div class="topic-metadata">

**Author:** [@luofeiyu](https://www.ruby-forum.com/u/luofeiyu)\
**Replies:** 3\
**Last updated:** [April 11, 2010, 1:30pm UTC](https://www.ruby-forum.com/t/how-to-analyse-web-with-nokogiri/186651 "2010-04-11T13:30:03Z")

</div>

how to analyse web with nokogiri? there is my html web: date 2009-12-31 2009-09-30 asset 580 680 cash 1,693 1,777 finance 201 2497 note 500 700 can i get array,such as a with nokogiri? a\[0\]=date,asset,cas…

---

## [Photo gallery for each User](https://www.ruby-forum.com/t/photo-gallery-for-each-user/183849)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/photo-gallery-for-each-user/183849 "2010-03-02T21:02:28Z")

</div>

What is the fastest and easiest way to build a photo gallery for each user in my User model? I’d just like to have a very simple gallery for each user, perhaps limited to just 5 small photos each to display to other u…

---

## [I need some help](https://www.ruby-forum.com/t/i-need-some-help/182388)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 3\
**Last updated:** [January 27, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/i-need-some-help/182388 "2010-01-27T17:13:16Z")

</div>

I can’t start webrick from the command line. always have this error below. Some one help, please. C:\\Users\\imedia1\\applica\>ruby script/server =\> Booting WEBrick =\> Rails 2.3.5 application starting on http://0.0.0.0:3…

---

## [Code Review: rails2](https://www.ruby-forum.com/t/code-review-rails2/182042)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 3\
**Last updated:** [January 22, 2010, 1:55am UTC](https://www.ruby-forum.com/t/code-review-rails2/182042 "2010-01-22T01:55:00Z")

</div>

tfpt review “/shelveset:rails2;REDMOND\\sborde” Comment : Added active\_resource and action\_mailer tests to irtests.rb Added a category (disable\_unstable\_tests) of unstable tests to utr.rb so that we can track non-det…

---

## [Another htaccess rewrite help](https://www.ruby-forum.com/t/another-htaccess-rewrite-help/181260)

<div class="topic-metadata">

**Author:** [@darvil](https://www.ruby-forum.com/u/darvil)\
**Replies:** 3\
**Last updated:** [January 13, 2010, 12:07am UTC](https://www.ruby-forum.com/t/another-htaccess-rewrite-help/181260 "2010-01-13T00:07:09Z")

</div>

Hey guys. I posted this on WHT but I didn’t get the help I wanted. I’m helping someone move their site to nginx but they have some htaccess that I don’t know how to convert. I’ve done the easy rewrites but when it …

---

## [Noob learning DRY](https://www.ruby-forum.com/t/noob-learning-dry/174229)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [August 23, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/noob-learning-dry/174229 "2009-08-23T13:03:57Z")

</div>

I am very new to RoR (this is my second day). I have started my first application, and want to follow best practices as much as possible. I created a select box that lists all the items in a table column on a new.ht…

---

## [How quickly can I retune?](https://www.ruby-forum.com/t/how-quickly-can-i-retune/173263)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 3\
**Last updated:** [August 5, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/how-quickly-can-i-retune/173263 "2009-08-05T23:28:47Z")

</div>

I’m using the TVRX, and my goal is to be able to take enough samples to listen to two arbitrary frequencies (more than 6MHz apart). Given that the bandwidth of the TVRX is 6MHz, I think that means I need 12Msamples/s…

---

## [Can you get the 1st occurrence of a value using grep?](https://www.ruby-forum.com/t/can-you-get-the-1st-occurrence-of-a-value-using-grep/168008)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/can-you-get-the-1st-occurrence-of-a-value-using-grep/168008 "2009-05-14T23:30:56Z")

</div>

Can you get a 1st occurence of a sting inside a huge text file? For instance, I know that there will be 1 or more occurrences of a the string ‘fail’ in a text file and I only want to get the first line containing the…

---

## [I want to automate this text field](https://www.ruby-forum.com/t/i-want-to-automate-this-text-field/166747)

<div class="topic-metadata">

**Author:** [@ashacta](https://www.ruby-forum.com/u/ashacta)\
**Replies:** 3\
**Last updated:** [April 29, 2009, 8:15am UTC](https://www.ruby-forum.com/t/i-want-to-automate-this-text-field/166747 "2009-04-29T08:15:44Z")

</div>

Hi I want to automate this text field. ie.text\_field(:name, “JMSText”).set(‘TEST’). Instead of TEST i want to copy content from text file and paste it in text filed. if i change the text in notepad …it shoudl take t…

---

## [Nil.symbolize\_keys -- error with attachment\_fu](https://www.ruby-forum.com/t/nil-symbolize-keys-error-with-attachment-fu/92327)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 3\
**Last updated:** [April 23, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/nil-symbolize-keys-error-with-attachment-fu/92327 "2009-04-23T19:33:21Z")

</div>

I’ve spent at least 2 hours on this one problem. On my local machine in my controller I have this: def new @page\_title = “New User” @user = User.new @photo = Photo.new end All is good. Now, on the remote server I…

---

## [Problem with visual scriptaculous puff](https://www.ruby-forum.com/t/problem-with-visual-scriptaculous-puff/164750)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 3\
**Last updated:** [April 5, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/problem-with-visual-scriptaculous-puff/164750 "2009-04-05T20:03:43Z")

</div>

Hello, I’m trying to using the puff effect of Scriptaculous in part of my website. I have it working in some part of my website as follows: respond\_to do |wants| wants.html do flash\[:notice\] = ‘client successfully …

---

## [Should I install ruby 1.9?](https://www.ruby-forum.com/t/should-i-install-ruby-1-9/164271)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 3\
**Last updated:** [April 1, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/should-i-install-ruby-1-9/164271 "2009-04-01T15:50:33Z")

</div>

I’ve updated rails to 2.3.2, should I update ruby to 1.9? What are the advantages/disadvantages in doing so? I’m on os x. thanks

---

## [Modificare un record da controller diversi](https://www.ruby-forum.com/t/modificare-un-record-da-controller-diversi/159779)

<div class="topic-metadata">

**Author:** [@mammaorsadj](https://www.ruby-forum.com/u/mammaorsadj)\
**Replies:** 3\
**Last updated:** [February 9, 2009, 9:47am UTC](https://www.ruby-forum.com/t/modificare-un-record-da-controller-diversi/159779 "2009-02-09T09:47:02Z")

</div>

Ciao a tutti, ho iniziato da poco a creare una webapp in RoR per gestire il workflow degli ordini di produzione che ho in azienda. I cicli di produzione vengono caricati dall’utente A, quindi l’utente B indica l’iniz…

---

## [\[Feature #1029\] \\C-z as an EOF](https://www.ruby-forum.com/t/feature-1029-c-z-as-an-eof/158210)

<div class="topic-metadata">

**Author:** [@Yuki\_S](https://www.ruby-forum.com/u/Yuki_S)\
**Replies:** 3\
**Last updated:** [January 21, 2009, 3:41am UTC](https://www.ruby-forum.com/t/feature-1029-c-z-as-an-eof/158210 "2009-01-21T03:41:24Z")

</div>

Feature #1029: \\C-z as an EOF http://redmine.ruby-lang.org/issues/show/1029 e$B5/I\<\<Te(B: Yuki S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target version: 1.9.x http://pc11.2ch.net/test/rea…

---

## [\[Bug #919\] tool/file2lastrev.rb$B$G%(%i!\<(B](https://www.ruby-forum.com/t/bug-919-tool-file2lastrev-rb-b-g-i-b/156197)

<div class="topic-metadata">

**Author:** [@sugie](https://www.ruby-forum.com/u/sugie)\
**Replies:** 3\
**Last updated:** [December 23, 2008, 7:47am UTC](https://www.ruby-forum.com/t/bug-919-tool-file2lastrev-rb-b-g-i-b/156197 "2008-12-23T07:47:19Z")

</div>

Bug #919: tool/file2lastrev.rbe$B$G%(%i!\<e(B http://redmine.ruby-lang.org/issues/show/919 e$B5/I\<\<Te(B: Tadashi S. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Yuki S., Target version: 1.9.x e$B%=!\<%9$…

---

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

<div class="topic-metadata">

**Author:** [@archanab25](https://www.ruby-forum.com/u/archanab25)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/ruby-encryption/155648 "2008-12-16T16:27:33Z")

</div>

I want to translate exactly the below php code into ruby for encryption. echo up\_getEncrypted(‘mypassword’, 1); function up\_getEncrypted($password, $user\_id) { srand(); $td = mcrypt\_module\_open('rijndael-128', '…

---

## [Install a ruby library with it's .gem file](https://www.ruby-forum.com/t/install-a-ruby-library-with-its-gem-file/153613)

<div class="topic-metadata">

**Author:** [@lyes](https://www.ruby-forum.com/u/lyes)\
**Replies:** 3\
**Last updated:** [November 27, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/install-a-ruby-library-with-its-gem-file/153613 "2008-11-27T13:51:49Z")

</div>

Hello everybody! May some one tell me how can I install a ruby library using it’s “.gem” file I’ve tried to proceed like this: gem install --install-dir PATH library\_name the output was like this Successfully insta…

---

## [Inserting a Request header before proxying](https://www.ruby-forum.com/t/inserting-a-request-header-before-proxying/150777)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [October 13, 2008, 11:28am UTC](https://www.ruby-forum.com/t/inserting-a-request-header-before-proxying/150777 "2008-10-13T11:28:05Z")

</div>

I’d like to insert a custom HTTP header (eg: X-foobar) into a request before doing a proxy\_pass. Is there any way to do this without changing the proxy module itself? I read that there can be only one handler per requ…

---

## [Error trying to save DateTime object in DataBase](https://www.ruby-forum.com/t/error-trying-to-save-datetime-object-in-database/147775)

<div class="topic-metadata">

**Author:** [@mrbrett](https://www.ruby-forum.com/u/mrbrett)\
**Replies:** 3\
**Last updated:** [September 8, 2008, 9:12am UTC](https://www.ruby-forum.com/t/error-trying-to-save-datetime-object-in-database/147775 "2008-09-08T09:12:40Z")

</div>

Hello I am having trouble with datetime objects, I had the “good” idea of making a form, asking for the parameters of DateTime and then give this object to the Database, apparently this is not the way. I have this err…

---

## [REST w/ multiple views](https://www.ruby-forum.com/t/rest-w-multiple-views/143810)

<div class="topic-metadata">

**Author:** [@Mike\_Joslyn](https://www.ruby-forum.com/u/Mike_Joslyn)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 12:17am UTC](https://www.ruby-forum.com/t/rest-w-multiple-views/143810 "2008-07-23T00:17:22Z")

</div>

I have app that will need to be able to display records matching a search criteria. What is the RESTful way to do this? Just an plain index action with search parameters? Should the query parameters be built into the …

---

## [Reloading a div with a changed session variable](https://www.ruby-forum.com/t/reloading-a-div-with-a-changed-session-variable/104500)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [July 16, 2008, 3:00am UTC](https://www.ruby-forum.com/t/reloading-a-div-with-a-changed-session-variable/104500 "2008-07-16T03:00:20Z")

</div>

New to this, so bear with me. Controller: def show @client = Client.find\_by\_permalink(params\[:permalink\]) @images = ClientImage.find\_all\_by\_client\_id(@client, :order =\> “id ASC”) session\[:client\] = @client if sess…

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

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