# Top

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

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

---

## [My number column returns boolean values](https://www.ruby-forum.com/t/my-number-column-returns-boolean-values/111197)

<div class="topic-metadata">

**Author:** [@d.ryan](https://www.ruby-forum.com/u/d.ryan)\
**Replies:** 2\
**Last updated:** [August 3, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/my-number-column-returns-boolean-values/111197 "2007-08-03T21:05:54Z")

</div>

Hi everyone, I’m working on a new rails project and have to build it on top of a legacy oracle database. I’m trying to figure out how to get the number value from a NUMBER(1) datatype. So far I’m only getting a “…

---

## [Problems with a new module](https://www.ruby-forum.com/t/problems-with-a-new-module/104613)

<div class="topic-metadata">

**Author:** [@davide\_a](https://www.ruby-forum.com/u/davide_a)\
**Replies:** 2\
**Last updated:** [May 22, 2007, 11:54am UTC](https://www.ruby-forum.com/t/problems-with-a-new-module/104613 "2007-05-22T11:54:52Z")

</div>

Hi List, I have some problem to compile and test a new module I write starting from gnuradio code. This is what I do: take the “how to write blah blah” code and directory structure; modify code and src/lib/Makefile.…

---

## [Setup rails on freebsd](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491)

<div class="topic-metadata">

**Author:** [@rst](https://www.ruby-forum.com/u/rst)\
**Replies:** 2\
**Last updated:** [May 7, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/setup-rails-on-freebsd/103491 "2007-05-07T22:37:03Z")

</div>

Hello, I’m migrating some ruby on rails sites from one server to a new one. (both freebsd 6.x) Rails was setup previously by someone else. I’ve already installed rubygem rails from ports, and I’m using the same httpd…

---

## [Method defined in module doesn't have access to Constant in](https://www.ruby-forum.com/t/method-defined-in-module-doesnt-have-access-to-constant-in/91490)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 12:33am UTC](https://www.ruby-forum.com/t/method-defined-in-module-doesnt-have-access-to-constant-in/91490 "2007-04-10T00:33:05Z")

</div>

Does anyone know why a method defined in a module that is then included in a class does not have access to the constants of that class? Doesn’t including the module make all its methods into instance methods of th…

---

## [Sorting an array based on two attributes of objects](https://www.ruby-forum.com/t/sorting-an-array-based-on-two-attributes-of-objects/102725)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/sorting-an-array-based-on-two-attributes-of-objects/102725 "2007-03-26T16:00:11Z")

</div>

Hi all, I want to sort the objects of array based on two attributes.I want sort an employee class based on his salary and name , so that if two person has same salary it should be sorted with name. Lets say for examp…

---

## [Dom id on form\_remote\_tag](https://www.ruby-forum.com/t/dom-id-on-form-remote-tag/63107)

<div class="topic-metadata">

**Author:** [@seanb](https://www.ruby-forum.com/u/seanb)\
**Replies:** 2\
**Last updated:** [June 12, 2006, 11:17am UTC](https://www.ruby-forum.com/t/dom-id-on-form-remote-tag/63107 "2006-06-12T11:17:09Z")

</div>

I want to make use of a form\_remote\_tag to submit a form asynchronously. Easy done. However, we also want to add an observe\_form tag to check for some value changes while the form is being entered. The observe\_form t…

---

## [Update\_attributes](https://www.ruby-forum.com/t/update-attributes/95037)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 2\
**Last updated:** [May 19, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/update-attributes/95037 "2006-05-19T21:54:21Z")

</div>

My application is so far mostly built from scaffold. When I edit an existing record (I’ve turned off validation) the update method is called. I get this error: NoMethodError in /#update You have a nil object when you…

---

## [Using Rails with Subversion](https://www.ruby-forum.com/t/using-rails-with-subversion/61003)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 2\
**Last updated:** [May 19, 2006, 11:35am UTC](https://www.ruby-forum.com/t/using-rails-with-subversion/61003 "2006-05-19T11:35:00Z")

</div>

I followed the instructions at Hivelogic on Building Subversion (SVN) on Mac OS X and installed it on my machine. Now I am following the rubyonrails wiki on How to Use Rails With Subversion, it assumes that you have…

---

## [ActionMailer not working correctly](https://www.ruby-forum.com/t/actionmailer-not-working-correctly/81723)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 2\
**Last updated:** [March 14, 2006, 5:47pm UTC](https://www.ruby-forum.com/t/actionmailer-not-working-correctly/81723 "2006-03-14T17:47:42Z")

</div>

Anyone know why this wouldn’t work? I’m using acts\_as\_authenticated for my login, and the mail is not getting sent. I’m using dreamhost. Here’s my settings: ActionMailer::Base.delivery\_method = :smtp ActionMailer::Ba…

---

## [Link\_to and Routing](https://www.ruby-forum.com/t/link-to-and-routing/225043)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [December 9, 2012, 4:27pm UTC](https://www.ruby-forum.com/t/link-to-and-routing/225043 "2012-12-09T16:27:47Z")

</div>

I am a newbie to ruby/rails. I almost don’t know anything about rails, however, I am familiar with MVC3 of ASP.Net. Please help me with this question as I am about to fail a course. :frowning: In my routes.rb file I h…

---

## [How to replace plain strings?](https://www.ruby-forum.com/t/how-to-replace-plain-strings/221573)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 21, 2012, 5:15pm UTC](https://www.ruby-forum.com/t/how-to-replace-plain-strings/221573 "2012-07-21T17:15:09Z")

</div>

I’m executing the following code: “a b c”.sub(“b”, “believe\\+me”) And I get “a believeme c” in return. That’s bad: Where have the two characters, “\\+”, gone? I suspect it has to do with the RegExp replacement pattern…

---

## [Apparent Math issues](https://www.ruby-forum.com/t/apparent-math-issues/218405)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 30, 2012, 5:36pm UTC](https://www.ruby-forum.com/t/apparent-math-issues/218405 "2012-03-30T17:36:34Z")

</div>

Hello guys, I’m just starting out with the Ruby language, and appear to either be doing something wrong, or have run into a rather basic math bug. When running “irb”, simple math additions seem to sometimes have weir…

---

## [Google Summer of Code '12 is On](https://www.ruby-forum.com/t/google-summer-of-code-12-is-on/216534)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 9, 2012, 3:09pm UTC](https://www.ruby-forum.com/t/google-summer-of-code-12-is-on/216534 "2012-02-09T15:09:18Z")

</div>

Given the discussion at the GNU Radio Conference about GSoC, what do our fearless leaders say about giving it a try this year? Josh, with all his amazing programming capabilities, can only do so much :wink: - MLD \< …

---

## [Easy loop question](https://www.ruby-forum.com/t/easy-loop-question/216508)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [February 7, 2012, 9:27am UTC](https://www.ruby-forum.com/t/easy-loop-question/216508 "2012-02-07T09:27:52Z")

</div>

Hello guys, this loop makes all the even numbers being divided by two and odd numbers multiplied by three plus one. But how would you make the loop stop when it gets to number one? Thank you def f n # this function c…

---

## [Routing issue](https://www.ruby-forum.com/t/routing-issue/204734)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [March 21, 2011, 5:04pm UTC](https://www.ruby-forum.com/t/routing-issue/204734 "2011-03-21T17:04:32Z")

</div>

Hi! I have two models, artists and songs. I have this in my route file: resources :artists, :path =\> “ackord” do resources :songs end Which gives me urls like this (I’m using to create and manage slugs): example…

---

## [Bundler for Rails 3 Engine](https://www.ruby-forum.com/t/bundler-for-rails-3-engine/188155)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 5\
**Last updated:** [September 17, 2010, 4:28pm UTC](https://www.ruby-forum.com/t/bundler-for-rails-3-engine/188155 "2010-09-17T16:28:40Z")

</div>

Hello All, My google-fu did not find this answer : How do I configure a Rails-3 Engine so that the engine’s Gemfile is integrated with the parent-Rails-app’s bundle? Thanks Peter F. (847) 859-9550 Email: removed\_e…

---

## [Will\_paginate resulting in server 500 error](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 5\
**Last updated:** [January 2, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951 "2010-01-02T16:54:43Z")

</div>

Hello there, On my site I have a basic search form that uses find\_by\_ferret which will return users within the site and render the data that matches the search criteria If multiple rows are returned, the rows are ren…

---

## [Cannot access gems](https://www.ruby-forum.com/t/cannot-access-gems/148958)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 5\
**Last updated:** [September 20, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/cannot-access-gems/148958 "2008-09-20T18:35:48Z")

</div>

I seem to have run right into my ignorance again. Working on Kubuntu Linux 8.04.1, I’ve a fresh compile of ruby 1.8.6. Irb runs. I have installed rubygems from the adept package manager - the install produced no error…

---

## [Storing encrypted password in to database](https://www.ruby-forum.com/t/storing-encrypted-password-in-to-database/145360)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 5\
**Last updated:** [August 8, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/storing-encrypted-password-in-to-database/145360 "2008-08-08T17:40:52Z")

</div>

Hi, I want to store encrypted password in to database… If you have any solution plz reply Thanx in advance

---

## [Mark, alloc and free functions in C extensions](https://www.ruby-forum.com/t/mark-alloc-and-free-functions-in-c-extensions/133339)

<div class="topic-metadata">

**Author:** [@Gerardo\_SSGSSS\_mez](https://www.ruby-forum.com/u/Gerardo_SSGSSS_mez)\
**Replies:** 5\
**Last updated:** [March 31, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/mark-alloc-and-free-functions-in-c-extensions/133339 "2008-03-31T18:11:35Z")

</div>

I have a class A written in C that contains a C structure. I have defined the functions mark, alloc and free. I have another class B, written in C, that derives from class A and adds another piece of C data. Should t…

---

## [Ruby Threads question](https://www.ruby-forum.com/t/ruby-threads-question/113913)

<div class="topic-metadata">

**Author:** [@overworked\_phd](https://www.ruby-forum.com/u/overworked_phd)\
**Replies:** 5\
**Last updated:** [September 6, 2007, 6:39am UTC](https://www.ruby-forum.com/t/ruby-threads-question/113913 "2007-09-06T06:39:53Z")

</div>

The following code is a slight modification of the code found at the top of page 136 in the book “Programming Ruby The Pragmatic Programmers’ Guide” by Dave T. with Chad F. and Andy H. #!/usr/bin/ruby -w require ‘net…

---

## [\[ANN\] CriteriaQuery](https://www.ruby-forum.com/t/ann-criteriaquery/67829)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 5\
**Last updated:** [April 5, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/ann-criteriaquery/67829 "2007-04-05T18:52:13Z")

</div>

The first public release of the CriteriaQuery plugin is available. CriteriaQuery is an extension to the ActiveRecord find mechanism. It allows object-oriented construction of queries. In short, it lets you write: Per…

---

## [Error\_messages\_for, can the css be turned off?](https://www.ruby-forum.com/t/error-messages-for-can-the-css-be-turned-off/89081)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 5\
**Last updated:** [March 18, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/error-messages-for-can-the-css-be-turned-off/89081 "2007-03-18T16:05:33Z")

</div>

i looked in the api, but it seems the method doesnt take any parameters except for the object. basically all i want is the string of errors but without the form fields highlighted and such. thanks.

---

## [Acts\_as\_authenticated strangeness](https://www.ruby-forum.com/t/acts-as-authenticated-strangeness/85116)

<div class="topic-metadata">

**Author:** [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Replies:** 5\
**Last updated:** [February 10, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/acts-as-authenticated-strangeness/85116 "2007-02-10T16:38:27Z")

</div>

hi the strangest thing is happening. on my local machine acts\_as\_authenticated works fine, but whe on the server \[dreamhost\] it refuses to log in. no error messages. nothing. just reloads the login page again. here\`…

---

## [Rails::VERSION::STRING shows 1.1.6, but 1.2.1 expected](https://www.ruby-forum.com/t/rails-string-shows-1-1-6-but-1-2-1-expected/84446)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 5\
**Last updated:** [February 5, 2007, 4:09am UTC](https://www.ruby-forum.com/t/rails-string-shows-1-1-6-but-1-2-1-expected/84446 "2007-02-05T04:09:49Z")

</div>

Hi All I’ve written an application using rails 1.1.8 or 1.1.6 (I’m not really sure) Anyway, I’ve updated rails to 1.2.1, like gem update rails --include-depedencies Now when I create a new project likerails newProjec…

---

## [Install vs. zip](https://www.ruby-forum.com/t/install-vs-zip/81369)

<div class="topic-metadata">

**Author:** [@dtdtdt](https://www.ruby-forum.com/u/dtdtdt)\
**Replies:** 5\
**Last updated:** [January 9, 2007, 2:27am UTC](https://www.ruby-forum.com/t/install-vs-zip/81369 "2007-01-09T02:27:47Z")

</div>

Can anyone explain me one bitter fact of Ruby: you always need two things - Internet connection and installation? Why is it so hard to make something the guys at IBM made with Eclipse or something that Cygwin partiall…

---

## [Updating database entries through ActionController](https://www.ruby-forum.com/t/updating-database-entries-through-actioncontroller/74122)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 5\
**Last updated:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/updating-database-entries-through-actioncontroller/74122 "2006-11-07T10:47:18Z")

</div>

Guys, I’ve just thought of the following situation: When updating a database entry ruby calls x/update/7 where 7 is the database id. Now if someone was to copy a form locally and change the form action to 8 (lets as…

---

## [Parseexcel and email fields](https://www.ruby-forum.com/t/parseexcel-and-email-fields/70684)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 5\
**Last updated:** [October 2, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/parseexcel-and-email-fields/70684 "2006-10-02T21:13:52Z")

</div>

I am having a problem reading in a spreadsheet that contains email addresses in one of the columns. I get a “cannot convert nil into String” error when I try to parse the spreadsheet (see below). Has anyone else had…

---

## [Weird string problem](https://www.ruby-forum.com/t/weird-string-problem/66618)

<div class="topic-metadata">

**Author:** [@Peter\_CSVerhage](https://www.ruby-forum.com/u/Peter_CSVerhage)\
**Replies:** 5\
**Last updated:** [August 31, 2006, 12:51pm UTC](https://www.ruby-forum.com/t/weird-string-problem/66618 "2006-08-31T12:51:28Z")

</div>

Hi, I’ve got some weird string problem that in the end causes an error in SOAP4R / ActionWebService. I have a simple (SOAP) structure with some string attributes. The value assigned to this structure are read from a …

---

## [XHTML + JavaScript problem caused by slug ending with /](https://www.ruby-forum.com/t/xhtml-javascript-problem-caused-by-slug-ending-with/65754)

<div class="topic-metadata">

**Author:** [@gui\_dos](https://www.ruby-forum.com/u/gui_dos)\
**Replies:** 5\
**Last updated:** [August 21, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/xhtml-javascript-problem-caused-by-slug-ending-with/65754 "2006-08-21T17:15:38Z")

</div>

Hi, I’m generating some script tags that reference JavaScript in my content. The JavaScript is not external but part of the database content, and is rendered with a layout that gives it the text/javascript mime type. …

---

## [One authentication for multiple rails apps](https://www.ruby-forum.com/t/one-authentication-for-multiple-rails-apps/58884)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 5\
**Last updated:** [April 28, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/one-authentication-for-multiple-rails-apps/58884 "2006-04-28T20:36:51Z")

</div>

i am in the process of taking all of our php applications for the company i work for and rewriting them in ruby on rails. just to help with username and password management, i had a program where we could create a use…

---

## [Rails using Ruby that ships with RHEL 4](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 5\
**Last updated:** [April 26, 2006, 3:41am UTC](https://www.ruby-forum.com/t/rails-using-ruby-that-ships-with-rhel-4/58777 "2006-04-26T03:41:11Z")

</div>

Hi, RHEL 4 ships with Ruby 1.8.1. I take it that won’t work with Rails 1.1.2? Thanks, Joe

---

## [Where does logic for the layout go?](https://www.ruby-forum.com/t/where-does-logic-for-the-layout-go/58776)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 5\
**Last updated:** [April 25, 2006, 9:48pm UTC](https://www.ruby-forum.com/t/where-does-logic-for-the-layout-go/58776 "2006-04-25T21:48:50Z")

</div>

on the main layout for my controller, i need a list of users - each with their own link to a lists of tasks that they have been assigned. i did have a line inside the .rhtml file that found all the users, but i’m gues…

---

## [Reading MySQL rows](https://www.ruby-forum.com/t/reading-mysql-rows/57524)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 5\
**Last updated:** [April 12, 2006, 1:08pm UTC](https://www.ruby-forum.com/t/reading-mysql-rows/57524 "2006-04-12T13:08:15Z")

</div>

Hi there, I´m having difficulties reading the content of some rows in my database. Tried to use some of the code at page 221 in the pickaxe, but didn´t make it work. The SQL query works fine directly against the data…

---

## [Re: Quickest way to do this string op](https://www.ruby-forum.com/t/re-quickest-way-to-do-this-string-op/54703)

<div class="topic-metadata">

**Author:** [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Replies:** 5\
**Last updated:** [March 13, 2006, 3:20pm UTC](https://www.ruby-forum.com/t/re-quickest-way-to-do-this-string-op/54703 "2006-03-13T15:20:35Z")

</div>

“BOCA RATON”.replace “Boca Raton” # :stuck\_out\_tongue: Probably “BOCA RATON”.split(/\\b/).map{|s| s.capitalize }.join It is quick to write, at least… HTH “BOCA RATON”.gsub(/\\w+/){|w| w.capitalize} is even shorter :…

---

## [Need for threads](https://www.ruby-forum.com/t/need-for-threads/54053)

<div class="topic-metadata">

**Author:** [@tony\_summerfelt](https://www.ruby-forum.com/u/tony_summerfelt)\
**Replies:** 5\
**Last updated:** [February 22, 2006, 1:51pm UTC](https://www.ruby-forum.com/t/need-for-threads/54053 "2006-02-22T13:51:30Z")

</div>

a discussion of tcl threads came up in that newsgroup. one of the posts stopped me cold. the msg boiled down to: on a single non-ht cpu if your program can’t do soemthnig while waiting on a resource there’s no real ne…

---

## [Ruby design patterns and idioms](https://www.ruby-forum.com/t/ruby-design-patterns-and-idioms/101849)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 5\
**Last updated:** [February 7, 2006, 6:28am UTC](https://www.ruby-forum.com/t/ruby-design-patterns-and-idioms/101849 "2006-02-07T06:28:16Z")

</div>

I’ve read Design Patterns and similar material. While I’ve certainly picked up some good ideas, it seems that most of the techniques are simply the normal ruby way, or are only necessary for lower level languages and …

---

## [Drop\_receiving\_element question](https://www.ruby-forum.com/t/drop-receiving-element-question/49902)

<div class="topic-metadata">

**Author:** [@jeff.gray](https://www.ruby-forum.com/u/jeff.gray)\
**Replies:** 5\
**Last updated:** [December 10, 2005, 6:18pm UTC](https://www.ruby-forum.com/t/drop-receiving-element-question/49902 "2005-12-10T18:18:40Z")

</div>

Hi… First I’d like to say that this mailing list is EXTREMELY helpful to me. Thank all of you for answering questions. I am hoping that someone can help me with this problem: I have a draggable element being dropped …

---

## [What the hack](https://www.ruby-forum.com/t/what-the-hack/236334)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 6\
**Last updated:** [August 27, 2013, 7:36pm UTC](https://www.ruby-forum.com/t/what-the-hack/236334 "2013-08-27T19:36:53Z")

</div>

Hi, could someone please explain me what the hack is happening here? $ irb irb(main):001:0\> 2.718281828459045 =\> 2.718281828459045 irb(main):002:0\> Math.tan(2.718281828459045) =\> -0.4505495340698077 irb(main):003:…

---

## [Save 2 value in diffrent field in one field at database](https://www.ruby-forum.com/t/save-2-value-in-diffrent-field-in-one-field-at-database/225129)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 6\
**Last updated:** [December 16, 2012, 12:00pm UTC](https://www.ruby-forum.com/t/save-2-value-in-diffrent-field-in-one-field-at-database/225129 "2012-12-16T12:00:20Z")

</div>

i want to get value from 2 diffrent field, first from text\_field, and second from select\_date, and i want to save it in one field “TTL” in database, this is the syntax, i change my model file to be like this: class A…

---

## [Ruby-GNOME2 1.1.0](https://www.ruby-forum.com/t/ruby-gnome2-1-1-0/215478)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 6\
**Last updated:** [January 19, 2012, 1:49pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-1-1-0/215478 "2012-01-19T13:49:46Z")

</div>

Hi, The Ruby-GNOME2 project released Ruby-GNOME2 1.1.0. This release fixes a crash bug by GC on Ruby 1.9. (It’s not occurred on Ruby 1.8.) If you’re using Ruby-GNOME 2 on Ruby 1.9, we recommend that you update it. R…

---

## [Problem installing MySQL with gem](https://www.ruby-forum.com/t/problem-installing-mysql-with-gem/198490)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 6\
**Last updated:** [November 2, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/problem-installing-mysql-with-gem/198490 "2010-11-02T21:40:24Z")

</div>

Hello there. Iam new to Rails and yesterday started the procedure of installing/updating my ruby, rails, gem and mysql so that i can start learning the language. Im on Macintosh Snow Leopard 10.6 I issued the follow…

---

## [Class initialization](https://www.ruby-forum.com/t/class-initialization/193728)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [August 23, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/class-initialization/193728 "2010-08-23T22:50:47Z")

</div>

This is an example similar to the one here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/56755 class Foo def initialize @var = “var” end def to\_s “This is a customized string” end end var = Foo.…

---

## [What happens when Rails 1.3.5 is installed on top of 2.3.5?](https://www.ruby-forum.com/t/what-happens-when-rails-1-3-5-is-installed-on-top-of-2-3-5/188982)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 6\
**Last updated:** [May 23, 2010, 4:59pm UTC](https://www.ruby-forum.com/t/what-happens-when-rails-1-3-5-is-installed-on-top-of-2-3-5/188982 "2010-05-23T16:59:53Z")

</div>

On a Mac running Snow Leopard, the Rails version was 2.3.5 (by using rails -v) and then I used gem install to install about 20 things, and maybe there was a line on the instructions that was there in the past that sa…

---

## [Re: how do you support languages? \[DAMN IT!\*\]](https://www.ruby-forum.com/t/re-how-do-you-support-languages-damn-it/149002)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 6\
**Last updated:** [September 19, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/re-how-do-you-support-languages-damn-it/149002 "2008-09-19T15:10:09Z")

</div>

nobody ever answer my questions!! :slight\_smile: On Thu, Sep 18, 2008 at 7:30 PM, Emanuele T. removed\_email\_address@domain.invalidwrote: welcome: \*Benvenuto\* sul Sito – Emanuele T. +1 (619) 549 3230 4955 Narragan…

---

## [Enumerator in ruby 1.9](https://www.ruby-forum.com/t/enumerator-in-ruby-1-9/131803)

<div class="topic-metadata">

**Author:** [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Replies:** 6\
**Last updated:** [March 13, 2008, 2:13pm UTC](https://www.ruby-forum.com/t/enumerator-in-ruby-1-9/131803 "2008-03-13T14:13:22Z")

</div>

One could write module Enumerable def sum inject(0) {|f,x| f+x} end end And we have puts \[1,2,3,4\].sum # =\> 10 But it works only for numbers. I would like to write more general code: module Enumerable def sum eac…

---

## [Embeding Flash With Ruby](https://www.ruby-forum.com/t/embeding-flash-with-ruby/127468)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [February 11, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/embeding-flash-with-ruby/127468 "2008-02-11T18:38:19Z")

</div>

Hi, All, i am working on an application that will allow my users to upload files and then display these files on a generated page. file types that they will be uploading include flash SWF files. is there any way of i…

---

## [Combining gr.trellis and mod\_pkt](https://www.ruby-forum.com/t/combining-gr-trellis-and-mod-pkt/127299)

<div class="topic-metadata">

**Author:** [@stevenc](https://www.ruby-forum.com/u/stevenc)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/combining-gr-trellis-and-mod-pkt/127299 "2008-02-06T22:36:42Z")

</div>

'lo all. I would like to place code in the rx\_callback of the packet mod architecture that takes each received payload and runs it though gr.trellis’s viterbi decoder. Should this be possible? It seems like I’d have…

---

## [Merb-0.4.0](https://www.ruby-forum.com/t/merb-0-4-0/119667)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 6\
**Last updated:** [November 14, 2007, 11:15am UTC](https://www.ruby-forum.com/t/merb-0-4-0/119667 "2007-11-14T11:15:57Z")

</div>

Hello Friends- Just a quick note to announce the release of Merb-0.4.0. this is a significant release for the project and has way too many features and changes to list here. You can read about the new changes here on…

---

## [Has\_many and the \<\< operator?](https://www.ruby-forum.com/t/has-many-and-the-operator/119098)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 6\
**Last updated:** [November 3, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/has-many-and-the-operator/119098 "2007-11-03T16:28:48Z")

</div>

In the AWDWR book it mentions that the \<\< operator (or method?) just adds the child model the child collection within the parent model. For some reason when I am using it it doesn’t work as expected. Here is what I ha…

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

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