# Top

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

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

---

## [Using win32ole to print .txt, .pdf, .xps files](https://www.ruby-forum.com/t/using-win32ole-to-print-txt-pdf-xps-files/87972)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 7, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/using-win32ole-to-print-txt-pdf-xps-files/87972 "2007-03-07T16:46:56Z")

</div>

good afternoon to all. i am creating a simple script to automate the printing of pdf, txt, and xps files. i’m using this exercise as my first step in learning ruby. i am able to print doc, xls, and ppt files using co…

---

## [I18n friendly, plugable Rails Core](https://www.ruby-forum.com/t/i18n-friendly-plugable-rails-core/66122)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 1\
**Last updated:** [August 29, 2006, 8:14am UTC](https://www.ruby-forum.com/t/i18n-friendly-plugable-rails-core/66122 "2006-08-29T08:14:27Z")

</div>

Below is a copy of a discussion I just posted on Rails Core mailing list. The reason not to take the discussion here is that I think that we all agree on that Rails sometimes can be extremely difficult to deal with o…

---

## [Ruby flaws , follow up to Ruby goodies](https://www.ruby-forum.com/t/ruby-flaws-follow-up-to-ruby-goodies/64369)

<div class="topic-metadata">

**Author:** [@roggan](https://www.ruby-forum.com/u/roggan)\
**Replies:** 7\
**Last updated:** [June 26, 2006, 3:23am UTC](https://www.ruby-forum.com/t/ruby-flaws-follow-up-to-ruby-goodies/64369 "2006-06-26T03:23:32Z")

</div>

Ok Ive got a fair picture of whats good about Ruby. Now what would you consider to be the biggest flaws or limitations in ruby? I personally thought that going from a type safe language to a dynamic one would be more…

---

## [Comp.lang.ruby FAQ](https://www.ruby-forum.com/t/comp-lang-ruby-faq/102770)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [May 15, 2006, 7:39pm UTC](https://www.ruby-forum.com/t/comp-lang-ruby-faq/102770 "2006-05-15T19:39:42Z")

</div>

RUBY NEWSGROUP FAQ – Welcome to comp.lang.ruby! (Revised 2005-4-14) This FAQ contains information for those who want to: learn more about Ruby, and want to post to comp.lang.ruby or to the ruby-lang mail list, or wan…

---

## [How to insert Current DateTime value into database?](https://www.ruby-forum.com/t/how-to-insert-current-datetime-value-into-database/93650)

<div class="topic-metadata">

**Author:** [@tiwaripk](https://www.ruby-forum.com/u/tiwaripk)\
**Replies:** 1\
**Last updated:** [April 5, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/how-to-insert-current-datetime-value-into-database/93650 "2006-04-05T16:09:39Z")

</div>

Hi, I want to insert onto database the Current DateTime Value into database field “Store\_date” with datatype (DATETIME). How to do tihs? I am usiing hidden variable into my form as follows:- \<%= hidden\_field(“store”, …

---

## [Bad HTML in "forgotten password" page](https://www.ruby-forum.com/t/bad-html-in-forgotten-password-page/54396)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 1\
**Last updated:** [March 3, 2006, 12:49pm UTC](https://www.ruby-forum.com/t/bad-html-in-forgotten-password-page/54396 "2006-03-03T12:49:24Z")

</div>

Here’s the HTML. You have tags without a table. And, instead of continuing the table model, the button bar is in a div (not truly bad, but incosistent). Enter your email address in the field below and click…

---

## [Next release of engine plugin?](https://www.ruby-forum.com/t/next-release-of-engine-plugin/69015)

<div class="topic-metadata">

**Author:** [@afg](https://www.ruby-forum.com/u/afg)\
**Replies:** 1\
**Last updated:** [February 16, 2006, 5:13pm UTC](https://www.ruby-forum.com/t/next-release-of-engine-plugin/69015 "2006-02-16T17:13:53Z")

</div>

Not trying to rush anybody, but I understand the dateboxengine requires the engine plugin from SVN. I prefer to use released tools, etc. If the current SVN engine plugin is close to being released I will just wait on…

---

## [(ActiveRecord::AdapterNotSpecified) Error](https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444)

<div class="topic-metadata">

**Author:** [@Kavika\_V](https://www.ruby-forum.com/u/Kavika_V)\
**Replies:** 1\
**Last updated:** [January 16, 2006, 12:03am UTC](https://www.ruby-forum.com/t/activerecord-adapternotspecified-error/61444 "2006-01-16T00:03:09Z")

</div>

All, I am on Mac OS X 10.4, went through all the installation steps for mysql and ruby on rails. Now, I am getting this error when trying to start webrick or when trying to create the tables: /usr/lib/ruby/gems/1.8/g…

---

## [\[Req\] : threaded display mode](https://www.ruby-forum.com/t/req-threaded-display-mode/49339)

<div class="topic-metadata">

**Author:** [@aravet](https://www.ruby-forum.com/u/aravet)\
**Replies:** 1\
**Last updated:** [December 2, 2005, 8:39pm UTC](https://www.ruby-forum.com/t/req-threaded-display-mode/49339 "2005-12-02T20:39:00Z")

</div>

… for forum browsing and search result display

---

## [Advice how to get the word out of new Ruby Jobs(without being a pest)](https://www.ruby-forum.com/t/advice-how-to-get-the-word-out-of-new-ruby-jobs-without-being-a-pest/216133)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 26, 2012, 10:27pm UTC](https://www.ruby-forum.com/t/advice-how-to-get-the-word-out-of-new-ruby-jobs-without-being-a-pest/216133 "2012-01-26T22:27:00Z")

</div>

Don’t want to spam but would like to let Ruby on the Rails people know of a client that has immediate and periodic openings. Any suggestions of boards, groups, you know of would be greatly appreciated. Cheers, Steve …

---

## [Upgrading my application - 2.3.5 to 3.2](https://www.ruby-forum.com/t/upgrading-my-application-2-3-5-to-3-2/216034)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [January 23, 2012, 3:27pm UTC](https://www.ruby-forum.com/t/upgrading-my-application-2-3-5-to-3-2/216034 "2012-01-23T15:27:31Z")

</div>

Hello everybody… i was trying update my application from 2.3.5 (yes… i know, very old) to 3.2. as we know, many changes occurred during that time and i don’t know if this ploblem is a know problem or other rule of pl…

---

## [What is inject doing here?](https://www.ruby-forum.com/t/what-is-inject-doing-here/203994)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 3, 2011, 7:13pm UTC](https://www.ruby-forum.com/t/what-is-inject-doing-here/203994 "2011-03-03T19:13:42Z")

</div>

Why does this not do what I expect? irb(main):001:0\> RUBY\_VERSION =\> “1.9.2” irb(main):002:0\> (0…3).inject {|s, i| a = i%2 == 0 ? 1 : -1; p a} -1 1 -1 =\> -1 I would think the result should be 1 -1 1 -1 =\> -1 …

---

## [Flowgraph slows down and hangs when using benchmark\_tx with a custom block](https://www.ruby-forum.com/t/flowgraph-slows-down-and-hangs-when-using-benchmark-tx-with-a-custom-block/199153)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [November 16, 2010, 5:55am UTC](https://www.ruby-forum.com/t/flowgraph-slows-down-and-hangs-when-using-benchmark-tx-with-a-custom-block/199153 "2010-11-16T05:55:35Z")

</div>

Hi, I have a modified dbpsk.py in which I use a custom block after the self.diffenc (differential encoder block). This custom C++ block outputs 1000 output\_items of size ‘gr\_sizeof\_char’ for each input\_item of size ‘…

---

## [Re: Re: find\_usrps only succeed when an sniffer is ON](https://www.ruby-forum.com/t/re-re-find-usrps-only-succeed-when-an-sniffer-is-on/194603)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 7:20pm UTC](https://www.ruby-forum.com/t/re-re-find-usrps-only-succeed-when-an-sniffer-is-on/194603 "2010-09-08T19:20:46Z")

</div>

Thanks for your quick answer. A problem with a firewall was an idea that also came to my mind but I disabled the Ubuntu firewall with the command “sudo ufw disable” so that no firewall is running into my machine and t…

---

## [OpenSSL](https://www.ruby-forum.com/t/openssl/194634)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 11:52am UTC](https://www.ruby-forum.com/t/openssl/194634 "2010-09-08T11:52:13Z")

</div>

Hello anyone used OpenSSL before? Why do we need to pay for expensive SSL certs when there is OpenSSL which is provided free? Is there a difference? I’ve got an ecommerce website, and wondering if OpenSSL is enough? Y…

---

## [Testing authentication with basic\_auth](https://www.ruby-forum.com/t/testing-authentication-with-basic-auth/191275)

<div class="topic-metadata">

**Author:** [@anywho](https://www.ruby-forum.com/u/anywho)\
**Replies:** 4\
**Last updated:** [July 30, 2010, 5:32am UTC](https://www.ruby-forum.com/t/testing-authentication-with-basic-auth/191275 "2010-07-30T05:32:17Z")

</div>

hi, I’ve got an api which is using authenticate\_or\_request\_with\_http\_basic What are you guys using to test this? I’m using rspec, and before I was using rspec-rails, I was using authorize from Rack::Test to do the au…

---

## [Best way to internationalize content from database](https://www.ruby-forum.com/t/best-way-to-internationalize-content-from-database/190985)

<div class="topic-metadata">

**Author:** [@andersonleite](https://www.ruby-forum.com/u/andersonleite)\
**Replies:** 4\
**Last updated:** [July 3, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/best-way-to-internationalize-content-from-database/190985 "2010-07-03T12:25:20Z")

</div>

Hello all. It’s ok to internationalize thing at app using rails, but how to deal with content from database ? What’s the best aproach ? I don’t wanna do things like: \<% if english %\> \<%= obj.name\_english%\> \<% else …

---

## [USRP2 Diagnostics in GRC](https://www.ruby-forum.com/t/usrp2-diagnostics-in-grc/186102)

<div class="topic-metadata">

**Author:** [@Umair\_N](https://www.ruby-forum.com/u/Umair_N)\
**Replies:** 4\
**Last updated:** [April 2, 2010, 12:56am UTC](https://www.ruby-forum.com/t/usrp2-diagnostics-in-grc/186102 "2010-04-02T00:56:35Z")

</div>

Hi, I have a problem concerning USRP2. I am using GRC to make flow graphs but I can not find USRP2 when I use USRP source block. When I run a simple program with only two blocks (USRP source and Scope Sink) I get fol…

---

## [How to install rails without gems?!](https://www.ruby-forum.com/t/how-to-install-rails-without-gems/184424)

<div class="topic-metadata">

**Author:** [@janita\_kinsi](https://www.ruby-forum.com/u/janita_kinsi)\
**Replies:** 4\
**Last updated:** [March 17, 2010, 9:51am UTC](https://www.ruby-forum.com/t/how-to-install-rails-without-gems/184424 "2010-03-17T09:51:40Z")

</div>

i have install ruby on my computer. but what if i want to install rails manually without install gem first?!

---

## [Fascism is coming to Internet](https://www.ruby-forum.com/t/fascism-is-coming-to-internet/183994)

<div class="topic-metadata">

**Author:** [@Joan\_M](https://www.ruby-forum.com/u/Joan_M)\
**Replies:** 4\
**Last updated:** [February 24, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/fascism-is-coming-to-internet/183994 "2010-02-24T15:49:29Z")

</div>

Sorry by this off topic message, but this is too important Fascism is coming fastly to Internet because is the only communication way that governements (managed by the bank and multinationals) cann’t control

---

## [Authlogic](https://www.ruby-forum.com/t/authlogic/182372)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [January 30, 2010, 4:48am UTC](https://www.ruby-forum.com/t/authlogic/182372 "2010-01-30T04:48:09Z")

</div>

Hi I am using authlogic version 2.1.3. I have two models companies and users. company has\_many users user belongs\_to company Upon registration one company and a user is created at the same time. And the flow is af…

---

## [Documenting DSLs](https://www.ruby-forum.com/t/documenting-dsls/176945)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 4\
**Last updated:** [October 10, 2009, 9:43am UTC](https://www.ruby-forum.com/t/documenting-dsls/176945 "2009-10-10T09:43:40Z")

</div>

Has anyone done any work on documenting Ruby DSLs? Eg. RDoc can document this: This plugin … class MyThing \< Plugin # This does … def some … end end But if one were to make a DSL out of it, say: This plugin … pl…

---

## [Render a file](https://www.ruby-forum.com/t/render-a-file/174067)

<div class="topic-metadata">

**Author:** [@mahesh](https://www.ruby-forum.com/u/mahesh)\
**Replies:** 4\
**Last updated:** [August 20, 2009, 10:32am UTC](https://www.ruby-forum.com/t/render-a-file/174067 "2009-08-20T10:32:20Z")

</div>

Im trying render a file 404 from public folder Is possible to render a file from ruby code i have a separate code in the lib file.i got a error like undefined method \`render’ for AdminController:Class

---

## [Possible to sweep USRP oscillator?](https://www.ruby-forum.com/t/possible-to-sweep-usrp-oscillator/171322)

<div class="topic-metadata">

**Author:** [@bruh](https://www.ruby-forum.com/u/bruh)\
**Replies:** 4\
**Last updated:** [June 30, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/possible-to-sweep-usrp-oscillator/171322 "2009-06-30T19:48:41Z")

</div>

Hey all, Is it possible to increase and decrease the USRP or daughter-boards oscillator frequency in real time in order to transmit a frequency modulated continuous wave from the frontend? Bruh

---

## [How can I access currently selected records in the view?](https://www.ruby-forum.com/t/how-can-i-access-currently-selected-records-in-the-view/160767)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 4\
**Last updated:** [February 19, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/how-can-i-access-currently-selected-records-in-the-view/160767 "2009-02-19T16:58:19Z")

</div>

One of my views enables searching records using a text field. The rendered view contains only records that match the search. After the view has rendered, I want to add an option to perform an update on the displayed r…

---

## [Loop?](https://www.ruby-forum.com/t/loop/91725)

<div class="topic-metadata">

**Author:** [@Ali\_Y](https://www.ruby-forum.com/u/Ali_Y)\
**Replies:** 4\
**Last updated:** [November 12, 2008, 9:09am UTC](https://www.ruby-forum.com/t/loop/91725 "2008-11-12T09:09:41Z")

</div>

hi how can I make a loop, to make the program run foreve r’?

---

## ["Remember Me" feature](https://www.ruby-forum.com/t/remember-me-feature/151932)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 4\
**Last updated:** [October 29, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/remember-me-feature/151932 "2008-10-29T19:25:14Z")

</div>

Posted by Ben K. (biguniverse) on 28.10.2008 02:28 I realize this has probably been asked on these forums before but I wanted to get the latest information on what’s available. We need to implement the typical “Rememb…

---

## [Helper methods from controller](https://www.ruby-forum.com/t/helper-methods-from-controller/150178)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 4\
**Last updated:** [October 6, 2008, 2:51am UTC](https://www.ruby-forum.com/t/helper-methods-from-controller/150178 "2008-10-06T02:51:02Z")

</div>

Hi, I’m not sure i’m my design is correct, but i have around\_filter in the controller, where i want to add a small javascript at the end of the page. Is there someway i can use the javascript\_tag from the controller? …

---

## [Simple testing question: Handling login in functional tests](https://www.ruby-forum.com/t/simple-testing-question-handling-login-in-functional-tests/150031)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 4\
**Last updated:** [October 2, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/simple-testing-question-handling-login-in-functional-tests/150031 "2008-10-02T17:40:21Z")

</div>

When writing functional (e.g. controller unit) tests, I’m running into a simple problem that I’m sure is very easy to fix, but I’m not sure of the correct approach. If I request a resource in my test case, via somethi…

---

## [Find with includes, conditions on included tables, and limit](https://www.ruby-forum.com/t/find-with-includes-conditions-on-included-tables-and-limit/147684)

<div class="topic-metadata">

**Author:** [@Artifact](https://www.ruby-forum.com/u/Artifact)\
**Replies:** 4\
**Last updated:** [September 10, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/find-with-includes-conditions-on-included-tables-and-limit/147684 "2008-09-10T12:01:57Z")

</div>

I have my main Night model, which has and belongs to many Users and Genres. I’m trying to put a limit on my find statement, but it causes SQL problems. Here’s what I’m trying to do: conditions = \[“genres\_nights.genre\_…

---

## [Speed up Rails and cgi script](https://www.ruby-forum.com/t/speed-up-rails-and-cgi-script/147882)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 4\
**Last updated:** [September 7, 2008, 1:29am UTC](https://www.ruby-forum.com/t/speed-up-rails-and-cgi-script/147882 "2008-09-07T01:29:04Z")

</div>

Hello! I have a Rails application and a CGI script which uses this application models (api script). The application makes http requests to the api script and shows result. It works really slow… I have found some good…

---

## [Validate access to object field](https://www.ruby-forum.com/t/validate-access-to-object-field/145158)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 4\
**Last updated:** [August 7, 2008, 3:19am UTC](https://www.ruby-forum.com/t/validate-access-to-object-field/145158 "2008-08-07T03:19:07Z")

</div>

Suppose I have a Model called House with a field called name how can I validate the name field, I tried name in the validate method but it doesn’t work, i tried name, :name, House.name, I don’t know how I can validat…

---

## [Using gems:unpack into vendor/gems still requires the gems to be installed via gems:install](https://www.ruby-forum.com/t/using-gems-unpack-into-vendor-gems-still-requires-the-gems-to-be-installed-via-gems-install/141546)

<div class="topic-metadata">

**Author:** [@ben-oakes](https://www.ruby-forum.com/u/ben-oakes)\
**Replies:** 4\
**Last updated:** [June 28, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/using-gems-unpack-into-vendor-gems-still-requires-the-gems-to-be-installed-via-gems-install/141546 "2008-06-28T15:43:08Z")

</div>

Maybe I’m missing something, but why do gem dependencies that have been unpacked into vendor/gems have to be installed on the machine as well? This doesn’t make much sense to me – if the gems are already on the machi…

---

## [Dojo Tree](https://www.ruby-forum.com/t/dojo-tree/125169)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 4\
**Last updated:** [May 21, 2008, 10:20am UTC](https://www.ruby-forum.com/t/dojo-tree/125169 "2008-05-21T10:20:04Z")

</div>

Hello, I need to implement a drag and drop tree in rails. I saw the demo of the dojo tree and that is something that i wwould like to have. Can anyone please tell me how do i make that tree by getting the data from th…

---

## [Mod\_rails blocking processes?](https://www.ruby-forum.com/t/mod-rails-blocking-processes/136459)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 4\
**Last updated:** [May 9, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/mod-rails-blocking-processes/136459 "2008-05-09T22:41:52Z")

</div>

I’m not really sure how mod\_rails / passenger works but it’s producing some strange behavior for me. I wrote a simple controller action that sleeps for 5 seconds before returning the current time. I then called that a…

---

## [Do I need to use sessions if I don't store anything in them?](https://www.ruby-forum.com/t/do-i-need-to-use-sessions-if-i-dont-store-anything-in-them/135099)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 4\
**Last updated:** [April 21, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/do-i-need-to-use-sessions-if-i-dont-store-anything-in-them/135099 "2008-04-21T13:42:56Z")

</div>

Hi, I got very small app that has user part and admin part. The problem is that after a while the sessions table has ~150mb. I don’t really need to store any user data in the session for the user part. I only need it…

---

## [Testing Layout](https://www.ruby-forum.com/t/testing-layout/134942)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 4\
**Last updated:** [April 17, 2008, 7:38am UTC](https://www.ruby-forum.com/t/testing-layout/134942 "2008-04-17T07:38:06Z")

</div>

Is there a way to specify which layout an action should use in a controller? Andy

---

## [How to make asynchronus http request?](https://www.ruby-forum.com/t/how-to-make-asynchronus-http-request/129955)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 4\
**Last updated:** [February 25, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/how-to-make-asynchronus-http-request/129955 "2008-02-25T21:44:27Z")

</div>

Hi, In my application I have to send an http post request to another server for some processing. My application crashes if it has to make 100+ requests in a loop based on some business logic. Basically, user is just …

---

## [Has\_many and belongs\_to in rails 2.0.2 (child.Parent) is not working](https://www.ruby-forum.com/t/has-many-and-belongs-to-in-rails-2-0-2-child-parent-is-not-working/129912)

<div class="topic-metadata">

**Author:** [@hhvm](https://www.ruby-forum.com/u/hhvm)\
**Replies:** 4\
**Last updated:** [February 22, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-in-rails-2-0-2-child-parent-is-not-working/129912 "2008-02-22T21:41:38Z")

</div>

Hi All I have 2 models working well in rails 1.2.6 : class TypeService \< ActiveRecord::Base has\_many :Services end class Service \< ActiveRecord::Base belongs\_to :TypeService end I was able to get the name of the …

---

## [Best place to update child an do some operations](https://www.ruby-forum.com/t/best-place-to-update-child-an-do-some-operations/123209)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [December 15, 2007, 11:02am UTC](https://www.ruby-forum.com/t/best-place-to-update-child-an-do-some-operations/123209 "2007-12-15T11:02:35Z")

</div>

ok, here comes a general question … I know that if we save a parent record, their childs aren’t get saved. I also read in some threads, that this option is very expensive, and we can’t loop for each child, we’ve just …

---

## [Sup 0.3 released](https://www.ruby-forum.com/t/sup-0-3-released/121419)

<div class="topic-metadata">

**Author:** [@trucker](https://www.ruby-forum.com/u/trucker)\
**Replies:** 4\
**Last updated:** [November 28, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/sup-0-3-released/121419 "2007-11-28T17:57:58Z")

</div>

Sup version 0.3 has been released! http://sup.rubyforge.org Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact- list management, and…

---

## [Blocks expected arguments and metaprogramming](https://www.ruby-forum.com/t/blocks-expected-arguments-and-metaprogramming/114726)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/blocks-expected-arguments-and-metaprogramming/114726 "2007-09-25T23:00:17Z")

</div>

hi all, in this (Parked at Loopia ) code : module Kernel def expected\_argument\_list 2 end def before (name) puts :hola define\_method(name){ if expected\_argument\_list==1 yield :only\_one else yield :one,:two e…

---

## [Dynamic detection of bang and question methods](https://www.ruby-forum.com/t/dynamic-detection-of-bang-and-question-methods/114988)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 4\
**Last updated:** [September 20, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/dynamic-detection-of-bang-and-question-methods/114988 "2007-09-20T20:07:00Z")

</div>

I got this idea of a sort of neat syntatic sugar of bang (foo!) and question (foo?) methods. Take a look at this pastie: http://pastie.caboo.se/98638 The idea is that you’ll have two keywords added to Ruby - bang\_give…

---

## [Add a method to a class at runtime?](https://www.ruby-forum.com/t/add-a-method-to-a-class-at-runtime/113409)

<div class="topic-metadata">

**Author:** [@bwv549](https://www.ruby-forum.com/u/bwv549)\
**Replies:** 4\
**Last updated:** [August 30, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/add-a-method-to-a-class-at-runtime/113409 "2007-08-30T22:35:43Z")

</div>

module SomeModule def happy? puts ‘yes’ end end I can do this: some\_object.extend(SomeModule) some\_object.happy? # -\> ‘yes’ But I really need to give the class the method (not just instances) because I have a co…

---

## [Array access](https://www.ruby-forum.com/t/array-access/110444)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 11:19am UTC](https://www.ruby-forum.com/t/array-access/110444 "2007-07-27T11:19:56Z")

</div>

I have an Array with two Target objects. How can I manage to take each value of the objects? p("targets size: " + @targets.length.to\_s) # “targets size: 2” (OK) p @targets # \[#\<Target:0x471c2f4 @attributes={“hit…

---

## [Variable numbers of terms in a query](https://www.ruby-forum.com/t/variable-numbers-of-terms-in-a-query/104417)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 4\
**Last updated:** [May 18, 2007, 10:37am UTC](https://www.ruby-forum.com/t/variable-numbers-of-terms-in-a-query/104417 "2007-05-18T10:37:00Z")

</div>

I have to produce a front end to a database where users can select from a variety of parameters they want to search on, e.g. a \> 1 b = 2 c \>= 3 The numerical values could be floats as well as integers, and so a dro…

---

## [Firebrigade + hoe?](https://www.ruby-forum.com/t/firebrigade-hoe/85197)

<div class="topic-metadata">

**Author:** [@Mat\_S](https://www.ruby-forum.com/u/Mat_S)\
**Replies:** 4\
**Last updated:** [February 12, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/firebrigade-hoe/85197 "2007-02-12T20:01:52Z")

</div>

I used newgem to create my ‘sparehand’ gem. The rakefile now depends on Hoe, but it also looks like newgem creates a Rakefile such that hoe can’t be a dependency. I tried adding ‘hoe’ as a dependency with no luck. T…

---

## [Mysql error handle](https://www.ruby-forum.com/t/mysql-error-handle/82077)

<div class="topic-metadata">

**Author:** [@bebitzaa](https://www.ruby-forum.com/u/bebitzaa)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 10:10am UTC](https://www.ruby-forum.com/t/mysql-error-handle/82077 "2007-01-17T10:10:43Z")

</div>

Hello, I am making an connection with mysql Mysql.real\_connect(“127.0.0.1”,“root”,"",“f\_juso”,“3306”) The problem is when the user and pass is correct it works very well but when the user and pass is wrong it display…

---

## [Where to place and initialize application params](https://www.ruby-forum.com/t/where-to-place-and-initialize-application-params/77029)

<div class="topic-metadata">

**Author:** [@caefer](https://www.ruby-forum.com/u/caefer)\
**Replies:** 4\
**Last updated:** [November 23, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/where-to-place-and-initialize-application-params/77029 "2006-11-23T16:51:37Z")

</div>

Hi folks, the first places I can think of are environment.rb and application.rb. I just wonder if these files should be used to configure the rails environment or plugins/engines. If the common way is to do it with e…

---

## [How to get only the duplicatet items from an array](https://www.ruby-forum.com/t/how-to-get-only-the-duplicatet-items-from-an-array/73883)

<div class="topic-metadata">

**Author:** [@Nico\_L](https://www.ruby-forum.com/u/Nico_L)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/how-to-get-only-the-duplicatet-items-from-an-array/73883 "2006-10-27T20:26:12Z")

</div>

hi all, is there a oneline to get only the duplicatet item from an array? i have an array like this aTemp = \[1, 1, 2, 2, 3, 4\] and i want to know, which items are duplicatet. i thought i can do it like aTemp - aTe…

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

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