# Top

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

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

---

## [Can't uninstall gems on Ubuntu](https://www.ruby-forum.com/t/cant-uninstall-gems-on-ubuntu/168945)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 6\
**Last updated:** [May 30, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/cant-uninstall-gems-on-ubuntu/168945 "2009-05-30T17:20:29Z")

</div>

Hello, I installed net-ssh gem from normal account, and got such warnings: $ gem install net-ssh WARNING: Installing to ~/.gem since /usr/lib/ruby/gems/1.8 and /usr/bin aren’t both writable. WARNING: You don’t hav…

---

## [LDAP Issues](https://www.ruby-forum.com/t/ldap-issues/135603)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 6\
**Last updated:** [April 24, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/ldap-issues/135603 "2008-04-24T18:06:17Z")

</div>

Hi All I am at wits end trying to get LDAP to work in Rails running on ubuntu (yes, I’m a noob!). I have version 0.9.7 of ruby-ldap installed. Every thing seems fine, until I test in the console: require ‘ldap’ =\> …

---

## [Searchengine gesucht](https://www.ruby-forum.com/t/searchengine-gesucht/132274)

<div class="topic-metadata">

**Author:** [@Torsten\_F](https://www.ruby-forum.com/u/Torsten_F)\
**Replies:** 6\
**Last updated:** [March 19, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/searchengine-gesucht/132274 "2008-03-19T21:37:49Z")

</div>

hallo an alle, ich bin auf der Suche nach einem Rails-Plugin, das mir folgende Möglichkeiten bietet: Suche in der Datenbank Suche im Filesystem Bildung eines Indexes aus beiden Suchläufen =\> somit Ermöglichung einer…

---

## [Instant Rails mySQL Error](https://www.ruby-forum.com/t/instant-rails-mysql-error/116509)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 6\
**Last updated:** [October 6, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/instant-rails-mysql-error/116509 "2007-10-06T12:10:02Z")

</div>

I have tried everything in my power to get this program up and running and it is not working for me. I have installed RoR on my Windows XP machine. I have Instant Rails and Ruby on Rails and I am using Instant Rails t…

---

## [Aaf index rebuild problems on windows](https://www.ruby-forum.com/t/aaf-index-rebuild-problems-on-windows/113827)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 6\
**Last updated:** [September 7, 2007, 11:15am UTC](https://www.ruby-forum.com/t/aaf-index-rebuild-problems-on-windows/113827 "2007-09-07T11:15:22Z")

</div>

hello list! i’m still having massive problems with index rebuilds. after i recently switched to the DRb mode i was hoping to get rid of the problems with locked files and such. but even with DRb and the latest stable…

---

## [Asset pre-compilation unbearably slow: Have we outgrown asset pipeline?](https://www.ruby-forum.com/t/asset-pre-compilation-unbearably-slow-have-we-outgrown-asset-pipeline/235535)

<div class="topic-metadata">

**Author:** [@alcina](https://www.ruby-forum.com/u/alcina)\
**Replies:** 3\
**Last updated:** [June 28, 2013, 7:50pm UTC](https://www.ruby-forum.com/t/asset-pre-compilation-unbearably-slow-have-we-outgrown-asset-pipeline/235535 "2013-06-28T19:50:55Z")

</div>

Our application is a very large (read: “enterprise”) Single Page Application. Even though our app is 99% client side with a Java RESTful API, we built the web application on top of rails because the Asset Pipeline see…

---

## [DNS TTLs being ignored](https://www.ruby-forum.com/t/dns-ttls-being-ignored/213278)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 8\
**Last updated:** [February 6, 2012, 4:03pm UTC](https://www.ruby-forum.com/t/dns-ttls-being-ignored/213278 "2012-02-06T16:03:41Z")

</div>

I have recently come across several related issues which I have tracked down to nginx and the way it handles DNS. I run nginx as a proxy for several back end services. It works really well, except for 1 thing. My p…

---

## [Alias for Model](https://www.ruby-forum.com/t/alias-for-model/209204)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 3\
**Last updated:** [July 8, 2011, 10:14pm UTC](https://www.ruby-forum.com/t/alias-for-model/209204 "2011-07-08T22:14:05Z")

</div>

I’m working on a Ticket model. The Ticket model needs to keep track of the following: Requestor (the one that opens the ticket) Assignee (the one that gets assigned to work on it) Solver (the one that actually solved …

---

## [Shared-0.4.2](https://www.ruby-forum.com/t/shared-0-4-2/152918)

<div class="topic-metadata">

**Author:** [@ahoward](https://www.ruby-forum.com/u/ahoward)\
**Replies:** 8\
**Last updated:** [November 10, 2008, 1:43am UTC](https://www.ruby-forum.com/t/shared-0-4-2/152918 "2008-11-10T01:43:19Z")

</div>

NAME shared.rb DESCRIPTION super simple super power sharing of instance and class level code INSTALL gem install shared URIS http://rubyforge.org/projects/codeforpeople http://codeforpeople.com/lib/ruby/ HISTORY …

---

## [Constructor in model](https://www.ruby-forum.com/t/constructor-in-model/143221)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [July 16, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/constructor-in-model/143221 "2008-07-16T17:24:53Z")

</div>

Hi all, I have an activation model that when constructed should set the key (column in the activations table) to test. class Activation \< ActiveRecord::Base belongs\_to :user def initialize this.key = “test” end e…

---

## [Closing a GdkPixbufLoader ignoring errors](https://www.ruby-forum.com/t/closing-a-gdkpixbufloader-ignoring-errors/133369)

<div class="topic-metadata">

**Author:** [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Replies:** 8\
**Last updated:** [March 31, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/closing-a-gdkpixbufloader-ignoring-errors/133369 "2008-03-31T23:24:05Z")

</div>

Quoting http://library.gnome.org/devel/gdk-pixbuf/unstable/GdkPixbufLoader.html#gdk-pixbuf-loader-close : “If you’re just cancelling a load rather than expecting it to be finished, passing NULL for error to ignore it…

---

## [Multiple form\_tag on page](https://www.ruby-forum.com/t/multiple-form-tag-on-page/126765)

<div class="topic-metadata">

**Author:** [@toshach](https://www.ruby-forum.com/u/toshach)\
**Replies:** 3\
**Last updated:** [January 22, 2008, 3:28am UTC](https://www.ruby-forum.com/t/multiple-form-tag-on-page/126765 "2008-01-22T03:28:26Z")

</div>

Hi… new to the whole Rails thing so this may sound aweful strange but I cannot find any documentation supporting or correcting what I am trying to do… I would like to have 2 separate form\_tag’s displayed on a single …

---

## [SWIG/C++ Template Expansion Info](https://www.ruby-forum.com/t/swig-c-template-expansion-info/113342)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 8\
**Last updated:** [August 30, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/swig-c-template-expansion-info/113342 "2007-08-30T22:16:44Z")

</div>

I’ve always wondered why GNU Radio didn’t use C++ templates for gr- blocks (see e.g. the ‘gengen’ subdirectory in gnuradio-core), since they generally result in much less written code. Might partly be that SWIG only …

---

## [Find\_all / find\_first deprecated : a question](https://www.ruby-forum.com/t/find-all-find-first-deprecated-a-question/66993)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 3\
**Last updated:** [August 30, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/find-all-find-first-deprecated-a-question/66993 "2006-08-30T22:08:07Z")

</div>

was reading http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails getting this rails app ready for 2.0 … anyways, here’s a small snippet that i’m wondering about: Using Deprecated Finde…

---

## [How to pass search parameters to pagination links](https://www.ruby-forum.com/t/how-to-pass-search-parameters-to-pagination-links/98183)

<div class="topic-metadata">

**Author:** [@jeet](https://www.ruby-forum.com/u/jeet)\
**Replies:** 8\
**Last updated:** [January 30, 2006, 5:23pm UTC](https://www.ruby-forum.com/t/how-to-pass-search-parameters-to-pagination-links/98183 "2006-01-30T17:23:32Z")

</div>

I have a search page with a text\_field as below \<%= text\_field ‘program’, ‘program\_name’ %\> After I perform the search in my controller I go to a search results view which shows search results and uses Rails paginatio…

---

## [How to get child elements from DOM using Watir](https://www.ruby-forum.com/t/how-to-get-child-elements-from-dom-using-watir/170529)

<div class="topic-metadata">

**Author:** [@rinkugarg](https://www.ruby-forum.com/u/rinkugarg)\
**Replies:** 0\
**Last updated:** [June 18, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/how-to-get-child-elements-from-dom-using-watir/170529 "2009-06-18T15:39:39Z")

</div>

Hi, I am new to ruby. PLease guide me how to get child elements in DOM. Regards Rinku Garg

---

## [Re: Sharing variable](https://www.ruby-forum.com/t/re-sharing-variable/242086)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 5\
**Last updated:** [May 26, 2015, 9:28am UTC](https://www.ruby-forum.com/t/re-sharing-variable/242086 "2015-05-26T09:28:17Z")

</div>

Discuss-gnuradio mailing list removed\_email\_address@domain.invalid https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

---

## [Map $uri in 1.3.0+ NOT working in 1.6.0+](https://www.ruby-forum.com/t/map-uri-in-1-3-0-not-working-in-1-6-0/232334)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [October 4, 2014, 6:21am UTC](https://www.ruby-forum.com/t/map-uri-in-1-3-0-not-working-in-1-6-0/232334 "2014-10-04T06:21:05Z")

</div>

We have the following code that worked in 1.3.16… Map VWS URI’s to HTTP ($use\_secure=0), HTTPS ($use\_secure=1) or keep same ($use\_secure=2) map $uri $use\_secure { default 0; ~^/sites/ 2; ~^/account/ 1; } And thi…

---

## [Can I export db data to fixtures?](https://www.ruby-forum.com/t/can-i-export-db-data-to-fixtures/154604)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 5\
**Last updated:** [December 3, 2008, 10:10am UTC](https://www.ruby-forum.com/t/can-i-export-db-data-to-fixtures/154604 "2008-12-03T10:10:18Z")

</div>

Hi Guys, Is there any way to export db data to fixtures files? (like the reverse of “rake db:fixtures:load”) Thanks, Arthur

---

## [Og \[patch\]: Fix pre/post parsing in create\_table\_indices and two minor changes](https://www.ruby-forum.com/t/og-patch-fix-pre-post-parsing-in-create-table-indices-and-two-minor-changes/115766)

<div class="topic-metadata">

**Author:** [@markcasio](https://www.ruby-forum.com/u/markcasio)\
**Replies:** 5\
**Last updated:** [September 28, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/og-patch-fix-pre-post-parsing-in-create-table-indices-and-two-minor-changes/115766 "2007-09-28T15:08:48Z")

</div>

Fix pre/post parsing in create\_table\_indices and two minor changes If accepted - kudos to Jonatjon for pointing out how to use ann(…) :slight\_smile: mark

---

## [Engines broken with RoR 1.1?](https://www.ruby-forum.com/t/engines-broken-with-ror-1-1/57739)

<div class="topic-metadata">

**Author:** [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Replies:** 5\
**Last updated:** [April 14, 2006, 10:31am UTC](https://www.ruby-forum.com/t/engines-broken-with-ror-1-1/57739 "2006-04-14T10:31:40Z")

</div>

Hi. I’m getting a strange error when trying to run any engines based code: /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb:21:in require\_\_': no such file to load -- rails\_version (MissingSourceFile) …

---

## [Session Sweeping](https://www.ruby-forum.com/t/session-sweeping/74864)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 5\
**Last updated:** [February 28, 2006, 9:09pm UTC](https://www.ruby-forum.com/t/session-sweeping/74864 "2006-02-28T21:09:35Z")

</div>

Hi, Anyone got some slick ideas on how to sweep an AR session store? I have a few ideas how I can do it, just want to see if there is an elegant solution that someone is already using. Bob S. http://www.railtie.ne…

---

## [Does nginx support openstack swift API?](https://www.ruby-forum.com/t/does-nginx-support-openstack-swift-api/230076)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 4\
**Last updated:** [August 12, 2014, 9:03pm UTC](https://www.ruby-forum.com/t/does-nginx-support-openstack-swift-api/230076 "2014-08-12T21:03:23Z")

</div>

Hello guys, I’m trying to find a way to use OpenStack SWIFT with nginx, the below are request steps: nginx is configured as proxy cache client send a request to nginx for url: http://domain.com/filename.txt nginx …

---

## [Confused with bcrypt and Authlogic](https://www.ruby-forum.com/t/confused-with-bcrypt-and-authlogic/195491)

<div class="topic-metadata">

**Author:** [@CVCVCV](https://www.ruby-forum.com/u/CVCVCV)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/confused-with-bcrypt-and-authlogic/195491 "2010-09-23T22:10:55Z")

</div>

I’m in the progress of migrating my website from using Authlogic to my own authentication solution for one reason or another and I’ve hit a little problem - I’ve set Authlogic to use bcrypt-ruby for passwords, and now…

---

## [Callback limitations with \`inherited\`](https://www.ruby-forum.com/t/callback-limitations-with-inherited/228939)

<div class="topic-metadata">

**Author:** [@my-ruby](https://www.ruby-forum.com/u/my-ruby)\
**Replies:** 2\
**Last updated:** [May 14, 2013, 9:04am UTC](https://www.ruby-forum.com/t/callback-limitations-with-inherited/228939 "2013-05-14T09:04:25Z")

</div>

class C def self.inherited(subclass) puts “#{self} just got subclassed by #{subclass}.” end end class D \< C end The limits of the inherited callback: Everything has its limits, including the inherited callback. W…

---

## [Php.ini & Virtual Hosts](https://www.ruby-forum.com/t/php-ini-virtual-hosts/214160)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 2\
**Last updated:** [November 23, 2011, 2:59pm UTC](https://www.ruby-forum.com/t/php-ini-virtual-hosts/214160 "2011-11-23T14:59:48Z")

</div>

Is it possible to define a php.ini file per virtual host. If so, how can it be done? Thanks. – Joshua Parker http://www.joshparker.us/

---

## [update\_Attributes stale Object error](https://www.ruby-forum.com/t/update-attributes-stale-object-error/128582)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 9, 2008, 1:14am UTC](https://www.ruby-forum.com/t/update-attributes-stale-object-error/128582 "2008-02-09T01:14:20Z")

</div>

Hi, IN one of my unit tests I get an ActiveRecord::StaleObjectError: Attempted to update a stale object object.save! in object I have apart from other stuff an after\_save method, which calls object.assosication.upd…

---

## [Cannot catch ActionController exception](https://www.ruby-forum.com/t/cannot-catch-actioncontroller-exception/73351)

<div class="topic-metadata">

**Author:** [@joman](https://www.ruby-forum.com/u/joman)\
**Replies:** 2\
**Last updated:** [October 24, 2006, 3:43am UTC](https://www.ruby-forum.com/t/cannot-catch-actioncontroller-exception/73351 "2006-10-24T03:43:48Z")

</div>

Hi, I am running ruby 1.8.2 (ruby 1.8.2 (2005-04-11) \[i386-linux\]) I cannot catch the ActionController::RedirectBackError exception. My code is: begin redirect\_to :back rescue ActionController::RedirectBa…

---

## [Integer literal in flip-flop](https://www.ruby-forum.com/t/integer-literal-in-flip-flop/264900)

<div class="topic-metadata">

**Author:** [@nurkinagi](https://www.ruby-forum.com/u/nurkinagi)\
**Replies:** 1\
**Last updated:** [July 16, 2024, 8:07pm UTC](https://www.ruby-forum.com/t/integer-literal-in-flip-flop/264900 "2024-07-16T20:07:37Z")

</div>

hi! I just wrote this short conditional statement and I got warning: integer literal in flip-flop What does this mean and how can I avoid it? x=8 if x===1..18 puts "minor" else puts "major" end

---

## [Is there a way to open a TCP Socket with a try/catch structure in case of timeouts?](https://www.ruby-forum.com/t/is-there-a-way-to-open-a-tcp-socket-with-a-try-catch-structure-in-case-of-timeouts/260474)

<div class="topic-metadata">

**Author:** [@redapplesonly](https://www.ruby-forum.com/u/redapplesonly)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 5:21am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-open-a-tcp-socket-with-a-try-catch-structure-in-case-of-timeouts/260474 "2020-11-12T05:21:19Z")

</div>

Hi everyone, I’m a programmer who is also a beginner in Ruby. I’ve inherited a Ruby program from another colleague, and I need to figure out the syntax to safely modify the original code. The original code accepts a d…

---

## [Syntax error in python file generated](https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349)

<div class="topic-metadata">

**Author:** [@tuyo408](https://www.ruby-forum.com/u/tuyo408)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 4:16pm UTC](https://www.ruby-forum.com/t/syntax-error-in-python-file-generated/255349 "2020-02-29T16:16:22Z")

</div>

Hello, I have the following error when running the basic OFDM example from GNU Radio. self.length\_tag\_key = length\_tag\_key = "packet\_len" ^ SyntaxError: invalid syntax The python file generated is executed by d…

---

## [How can I remove a OOT block from GRC?](https://www.ruby-forum.com/t/how-can-i-remove-a-oot-block-from-grc/241815)

<div class="topic-metadata">

**Author:** [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Replies:** 0\
**Last updated:** [May 4, 2015, 1:44am UTC](https://www.ruby-forum.com/t/how-can-i-remove-a-oot-block-from-grc/241815 "2015-05-04T01:44:04Z")

</div>

Hi, I have created my own OOT module with couple blocks, I have used gr\_modtool remove command to remove some unwanted blocks in my OOT module folder, after I remake and reinstall the module, i still find those block…

---

## [Nginx add trailing slash with wrong port](https://www.ruby-forum.com/t/nginx-add-trailing-slash-with-wrong-port/229974)

<div class="topic-metadata">

**Author:** [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Replies:** 3\
**Last updated:** [May 29, 2014, 1:01am UTC](https://www.ruby-forum.com/t/nginx-add-trailing-slash-with-wrong-port/229974 "2014-05-29T01:01:00Z")

</div>

nginx rewrites : http://localhost:8081/files to : http://localhost:81/files/ # wrong port ! while apache rewrites : http://localhost:8082/files to http://localhost:8082/files/ is it possible to configure …

---

## [Gzip response to AJAX requests](https://www.ruby-forum.com/t/gzip-response-to-ajax-requests/112222)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 2\
**Last updated:** [August 16, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/gzip-response-to-ajax-requests/112222 "2007-08-16T18:23:38Z")

</div>

Hi, I an application I am working on, each user has a bunch of text files that they can retrieve using a AJAX request. These files don’t change after creation, but they are served from a Rails process as they can on…

---

## [Ruby and SVG](https://www.ruby-forum.com/t/ruby-and-svg/153934)

<div class="topic-metadata">

**Author:** [@RolfK](https://www.ruby-forum.com/u/RolfK)\
**Replies:** 6\
**Last updated:** [April 11, 2011, 3:27pm UTC](https://www.ruby-forum.com/t/ruby-and-svg/153934 "2011-04-11T15:27:10Z")

</div>

Dear ALL, I’m an absolutely beginner to Ruby. But, besides the language itself (which seems quite interesting to me ) it is importnat to find out what support is available for XML and in particular for SVG. I served…

---

## [New to ruby - Need help with simple guessing program](https://www.ruby-forum.com/t/new-to-ruby-need-help-with-simple-guessing-program/194333)

<div class="topic-metadata">

**Author:** [@chichu](https://www.ruby-forum.com/u/chichu)\
**Replies:** 6\
**Last updated:** [September 7, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/new-to-ruby-need-help-with-simple-guessing-program/194333 "2010-09-07T15:19:33Z")

</div>

Ok,so as a little practice I’ve decided to come up with a Guessing Game where the user is able to guess a number, and if it the same as the randomly generated number by the computer, he gets a message that says a litt…

---

## [Rails 2.1 and mysql's mediumint](https://www.ruby-forum.com/t/rails-2-1-and-mysqls-mediumint/140311)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 6\
**Last updated:** [June 17, 2008, 9:40am UTC](https://www.ruby-forum.com/t/rails-2-1-and-mysqls-mediumint/140311 "2008-06-17T09:40:04Z")

</div>

Hi there, Browsing the activerecord-2.1.0 source code I found the following: case limit when 0..3 "smallint(#{limit})" when 4..8 "int(#{limit})" when 9..20 "bigint(#{limit})" else …

---

## [Only one "initialize" method allowed on AR objects?](https://www.ruby-forum.com/t/only-one-initialize-method-allowed-on-ar-objects/81151)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 6\
**Last updated:** [January 6, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/only-one-initialize-method-allowed-on-ar-objects/81151 "2007-01-06T19:30:21Z")

</div>

I’m having some trouble with some seemingly basic OO stuff with one of my AR::Base descendants. I ended up creating a custom initialize method that takes two parameters an integer and the standard AR attributes hash…

---

## [Adding a button to a form](https://www.ruby-forum.com/t/adding-a-button-to-a-form/69026)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 6\
**Last updated:** [September 19, 2006, 6:38pm UTC](https://www.ruby-forum.com/t/adding-a-button-to-a-form/69026 "2006-09-19T18:38:29Z")

</div>

I’ve looked at the API, and the only ‘button’ reference I found was for submit. How would I add another button to a form? I tried: button\_tag ‘Do Something’, :action =\> ‘do\_something’ But that gave me an error. Any …

---

## [Rails data modelling with has\_many through](https://www.ruby-forum.com/t/rails-data-modelling-with-has-many-through/243060)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 7\
**Last updated:** [August 20, 2015, 5:08pm UTC](https://www.ruby-forum.com/t/rails-data-modelling-with-has-many-through/243060 "2015-08-20T17:08:43Z")

</div>

I am building an expense tracker application and I am in middle of data modelling. I have a Users table. Each user will log his expenses with expense type and income with income type. So I need to know how can we set …

---

## [Garbage collector segmentation fault](https://www.ruby-forum.com/t/garbage-collector-segmentation-fault/152649)

<div class="topic-metadata">

**Author:** [@cubiq](https://www.ruby-forum.com/u/cubiq)\
**Replies:** 7\
**Last updated:** [December 22, 2008, 9:48am UTC](https://www.ruby-forum.com/t/garbage-collector-segmentation-fault/152649 "2008-12-22T09:48:46Z")

</div>

Hello list, I get this every now and then when running some ruby / c++ methods from within rails. It looks like ruby’s garbage collector once again makes bad decisions… Program received signal SIGSEGV, Segmentation f…

---

## [How can I find out unnecessary variable preparation in tests using some tools?](https://www.ruby-forum.com/t/how-can-i-find-out-unnecessary-variable-preparation-in-tests-using-some-tools/264029)

<div class="topic-metadata">

**Author:** [@guodah](https://www.ruby-forum.com/u/guodah)\
**Replies:** 1\
**Last updated:** [June 24, 2023, 6:52pm UTC](https://www.ruby-forum.com/t/how-can-i-find-out-unnecessary-variable-preparation-in-tests-using-some-tools/264029 "2023-06-24T18:52:34Z")

</div>

Suppose I have a set of tests like the following. Apparently, test1 and test2 should be separated so that the preparation of var1 or var2 will not be unnecessary in test2 or test1. Anyway I can use some static analysis t…

---

## [\[REMOTE\] Experience Ruby/Rails developer / Loco2.com](https://www.ruby-forum.com/t/remote-experience-ruby-rails-developer-loco2-com/244999)

<div class="topic-metadata">

**Author:** [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 10:59am UTC](https://www.ruby-forum.com/t/remote-experience-ruby-rails-developer-loco2-com/244999 "2017-03-02T10:59:15Z")

</div>

Hi all, I’m one of the lead developers at Loco2.com. We’re looking for a Ruby/Rails developer to join our small development team. We use: Ruby, Rails, PostgreSQL, HAML, SCSS, CoffeeScript and more. Our developers are …

---

## [Double colon in class definition?](https://www.ruby-forum.com/t/double-colon-in-class-definition/108118)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 1\
**Last updated:** [June 29, 2007, 6:26am UTC](https://www.ruby-forum.com/t/double-colon-in-class-definition/108118 "2007-06-29T06:26:28Z")

</div>

What does the double colon mean in a class definition. e.g. ActiveRecord::Base ? I couldn’t locate it in the docs. I suspect it’s akin to a category or a namespace. The only documentation on double-colon that I h…

---

## [Typo 4 - Alternate Themes Won't Load](https://www.ruby-forum.com/t/typo-4-alternate-themes-wont-load/113014)

<div class="topic-metadata">

**Author:** [@web\_stuff](https://www.ruby-forum.com/u/web_stuff)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 9:14am UTC](https://www.ruby-forum.com/t/typo-4-alternate-themes-wont-load/113014 "2007-10-05T09:14:09Z")

</div>

I am running Typo 4 and I installed two addtional themes, Hemingway and Phokus. So I have four themes, Azure (bundled with Typo install), Scribbish (bundled with Typo install), Hemingway and Phokus. If I setup to us…

---

## [Why doesn't an instance of Object get Class's new instance method?](https://www.ruby-forum.com/t/why-doesnt-an-instance-of-object-get-classs-new-instance-method/215990)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [January 21, 2012, 10:26pm UTC](https://www.ruby-forum.com/t/why-doesnt-an-instance-of-object-get-classs-new-instance-method/215990 "2012-01-21T22:26:12Z")

</div>

“Object is the root of Ruby’s class hierarchy. Its methods are available to all classes unless explicitly overridden.” Wouldn’t Class class be at the root of the class hierarchy? After all, look at this: 1.9.2p290 :0…

---

## [Rspect weird problem](https://www.ruby-forum.com/t/rspect-weird-problem/214575)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [December 6, 2011, 10:45am UTC](https://www.ruby-forum.com/t/rspect-weird-problem/214575 "2011-12-06T10:45:25Z")

</div>

Hello everyone, this is really urgent so ill be quick, here is some ruby code that i know works: require 'csv' class Motorcycle attr\_reader :name, :weight @@count = 0 def self.find (name) found = nil Ob…

---

## [How to JUST store hours and minutes in db?](https://www.ruby-forum.com/t/how-to-just-store-hours-and-minutes-in-db/124225)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [December 27, 2007, 3:11am UTC](https://www.ruby-forum.com/t/how-to-just-store-hours-and-minutes-in-db/124225 "2007-12-27T03:11:58Z")

</div>

I have a table for “restaurants” and need to store their weekly hours of operation. I am having trouble finding the best way to do this. I dont want to use a datetime field because I don’t need the date. I also want t…

---

## [In\_place\_editor with resful routes](https://www.ruby-forum.com/t/in-place-editor-with-resful-routes/83166)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 8\
**Last updated:** [March 15, 2008, 9:48am UTC](https://www.ruby-forum.com/t/in-place-editor-with-resful-routes/83166 "2008-03-15T09:48:21Z")

</div>

Im trying to implement an inline editor for table data. The problem ok is pressed and no route can be found. Im attempted to send the result to the update controller method so put tracks/3 eg named route track\_path(id…

---

## [Text area como en hotmail o gmail](https://www.ruby-forum.com/t/text-area-como-en-hotmail-o-gmail/78230)

<div class="topic-metadata">

**Author:** [@sebacipo](https://www.ruby-forum.com/u/sebacipo)\
**Replies:** 8\
**Last updated:** [December 7, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/text-area-como-en-hotmail-o-gmail/78230 "2006-12-07T20:56:46Z")

</div>

hola a todos: se me presento el caso en que debo hacer un text area tipo el q tiene hotmail para escribir los mails, con negrita, cursiva, subrayado, tamaÃ±o de letra, colores, etc. para q el usuario pueda escribir y …

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

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