# Top

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

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

---

## [Racc error recovery](https://www.ruby-forum.com/t/racc-error-recovery/118232)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 4\
**Last updated:** [October 29, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/racc-error-recovery/118232 "2007-10-29T17:42:06Z")

</div>

Hi everyone, I’m writing a racc parser, and I need to recover from parse errors. Basically I’m writing a CSS parser, and I need to handle poorly formatted CSS. Unfortunately I can’t seem to find any good documentatio…

---

## [Passing args from within method\_missing](https://www.ruby-forum.com/t/passing-args-from-within-method-missing/106716)

<div class="topic-metadata">

**Author:** [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Replies:** 4\
**Last updated:** [June 13, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/passing-args-from-within-method-missing/106716 "2007-06-13T19:07:52Z")

</div>

Hi, I have an hash of code blocks(procs?), @styles, and am trying to call these using method missing. Problem is, some take one argument, and others take two, and I can’t seem to pass args to them without if being pa…

---

## [Simple SQL query from a legacy db](https://www.ruby-forum.com/t/simple-sql-query-from-a-legacy-db/92493)

<div class="topic-metadata">

**Author:** [@gabez](https://www.ruby-forum.com/u/gabez)\
**Replies:** 4\
**Last updated:** [June 11, 2007, 5:04am UTC](https://www.ruby-forum.com/t/simple-sql-query-from-a-legacy-db/92493 "2007-06-11T05:04:44Z")

</div>

Hi, Im pretty new to Ruby as I’ve been programming for it for less than a month. I’m a php programmer that switched :slight\_smile: Anyways, I’m having an issue. I have my full site built in php and I’m using a legacy…

---

## [How Should I Fix a NoMethodError?](https://www.ruby-forum.com/t/how-should-i-fix-a-nomethoderror/91829)

<div class="topic-metadata">

**Author:** [@Zkidd](https://www.ruby-forum.com/u/Zkidd)\
**Replies:** 4\
**Last updated:** [April 12, 2007, 6:41pm UTC](https://www.ruby-forum.com/t/how-should-i-fix-a-nomethoderror/91829 "2007-04-12T18:41:42Z")

</div>

I am getting a NoMethodError in the show.rhtml file around an @story.user.login variable. But I checked the controller and the rhtml file and it looks like things are ok. This is the error message: NoMethodError in S…

---

## [Tk Menubutton and OptionMenubutton](https://www.ruby-forum.com/t/tk-menubutton-and-optionmenubutton/88948)

<div class="topic-metadata">

**Author:** [@alexd](https://www.ruby-forum.com/u/alexd)\
**Replies:** 4\
**Last updated:** [March 16, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/tk-menubutton-and-optionmenubutton/88948 "2007-03-16T13:26:24Z")

</div>

Can someone please show me some working, sample code for creating Tk Menubuttons and OptionMenubuttons? I’ve tried translating from the Perl/Tk documentation, and also trial and error, with no luck. Thanks, -Alex

---

## [=?iso-8859-1?q?Caract=E8res\_accentu=E9s?=](https://www.ruby-forum.com/t/iso-8859-1-q-caract-e8res-accentu-e9s/73755)

<div class="topic-metadata">

**Author:** [@pierreva](https://www.ruby-forum.com/u/pierreva)\
**Replies:** 4\
**Last updated:** [October 27, 2006, 8:30pm UTC](https://www.ruby-forum.com/t/iso-8859-1-q-caract-e8res-accentu-e9s/73755 "2006-10-27T20:30:13Z")

</div>

Je débute une application qui utilise une base de données de généalogie. Dans mon template d’affichage de résultats d’une recherche de nom, j’ai la ligne suivante : \<%= mariage.nom %\> \<%= mariage.pre %\> \<%= mariage.ag…

---

## [FileUtils.cp](https://www.ruby-forum.com/t/fileutils-cp/69752)

<div class="topic-metadata">

**Author:** [@Michael\_PSSoulier](https://www.ruby-forum.com/u/Michael_PSSoulier)\
**Replies:** 4\
**Last updated:** [October 18, 2006, 10:43am UTC](https://www.ruby-forum.com/t/fileutils-cp/69752 "2006-10-18T10:43:32Z")

</div>

Hey, It’s great to see that FileUtils has Unix friendly methods, so it feels like working in the shell. However, I’d prefer to just type cp and not FileUtils.cp. Is there a way to import those methods into Kernel so …

---

## [No matches](https://www.ruby-forum.com/t/no-matches/67550)

<div class="topic-metadata">

**Author:** [@mkhumri](https://www.ruby-forum.com/u/mkhumri)\
**Replies:** 4\
**Last updated:** [September 5, 2006, 7:47am UTC](https://www.ruby-forum.com/t/no-matches/67550 "2006-09-05T07:47:15Z")

</div>

The following script creates a search index and then searches it. I get no results? Where am I going wrong? Thanks. -----------BEGIN SCRIPT---------------- require ‘rubygems’ require ‘ferret’ include Ferret path =…

---

## [Email errors](https://www.ruby-forum.com/t/email-errors/66123)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 4\
**Last updated:** [August 23, 2006, 4:51pm UTC](https://www.ruby-forum.com/t/email-errors/66123 "2006-08-23T16:51:45Z")

</div>

I’m working on this recipie from the Ruby Cookbook, but receiving errors. Not sure if this is code related or system related. I’m attempting to send mail via my ISP’s smtp server. To protect the innocent I took out t…

---

## [Upload File](https://www.ruby-forum.com/t/upload-file/99925)

<div class="topic-metadata">

**Author:** [@fird](https://www.ruby-forum.com/u/fird)\
**Replies:** 4\
**Last updated:** [July 26, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/upload-file/99925 "2006-07-26T23:57:54Z")

</div>

I got this error: NoMethodError in PictureController#new You have a nil object when you didn’t expect it! The error occured while evaluating nil.uploaded\_file= and the line code is here: @picture.uploaded\_file = @pa…

---

## [Filter help](https://www.ruby-forum.com/t/filter-help/98303)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 4\
**Last updated:** [July 14, 2006, 4:25am UTC](https://www.ruby-forum.com/t/filter-help/98303 "2006-07-14T04:25:25Z")

</div>

For my own Radiant installation I’ve extended all filters to include a “help” method that returns a piece of text which gets inserted into the relevant views to form a set of help links for filter types. They get list…

---

## [\[ANN\] ROaR: A Ruby on Rails Podcast](https://www.ruby-forum.com/t/ann-roar-a-ruby-on-rails-podcast/97041)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 4\
**Last updated:** [July 4, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/ann-roar-a-ruby-on-rails-podcast/97041 "2006-07-04T18:34:51Z")

</div>

I’m starting a new podcast to cover some of the hot topics going on in Rails. Half news, half interactive, all community. As always, the first episode kinda sucks but I’m looking forward to feedback from all of you …

---

## [eRuby & Rails: Not Compatible](https://www.ruby-forum.com/t/eruby-rails-not-compatible/62453)

<div class="topic-metadata">

**Author:** [@Day\_Davis\_Waterbury](https://www.ruby-forum.com/u/Day_Davis_Waterbury)\
**Replies:** 4\
**Last updated:** [June 8, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/eruby-rails-not-compatible/62453 "2006-06-08T16:09:07Z")

</div>

I’m new to Ruby, Rails, and this list. I’ve tried searching for an answer but it all seems to be over my head. I have all the books but again they seem to leave me on my own to figure out the stuff that really matters…

---

## [Win32ole in compiled ruby](https://www.ruby-forum.com/t/win32ole-in-compiled-ruby/93335)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [March 31, 2006, 9:47am UTC](https://www.ruby-forum.com/t/win32ole-in-compiled-ruby/93335 "2006-03-31T09:47:00Z")

</div>

I am having a problem with getting the win32ole extension to work for my ruby-1.8.4, which I compiled from source. After I had compiled it I found out you need to comment out the ext from ext/Setup. I did that and r…

---

## [Trouble Using AR Object based on a Piggyback Query?](https://www.ruby-forum.com/t/trouble-using-ar-object-based-on-a-piggyback-query/54721)

<div class="topic-metadata">

**Author:** [@jdw](https://www.ruby-forum.com/u/jdw)\
**Replies:** 4\
**Last updated:** [March 13, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/trouble-using-ar-object-based-on-a-piggyback-query/54721 "2006-03-13T20:41:48Z")

</div>

Hi, I'm new to Rails and Ruby and can't access methods/columns from an ActiveRecord object that is a “piggy-back” row as described by David here: http://www.loudthinking.com/arc/000235.html Via Console I can create …

---

## [Init Script Installer](https://www.ruby-forum.com/t/init-script-installer/54687)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 4\
**Last updated:** [March 13, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/init-script-installer/54687 "2006-03-13T19:17:29Z")

</div>

I’ve got a few scripts which need to run as system daemons. For a while it worked to just manually start them, but it soon became annoying, so I wrote a little script to create and install the init scripts for me. Her…

---

## [Fxtable and SEL\_REPLACED?](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078)

<div class="topic-metadata">

**Author:** [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Replies:** 4\
**Last updated:** [January 12, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078 "2006-01-12T22:43:24Z")

</div>

Hi there i’ve been using fxruby 1.4 and it’s very good. one wrinkle though is i’m trying to get an event back from a table after i’ve entered data into a cell and don’t find any events that do the job by perusing the …

---

## [ClassMethods: Module creation hook / Capitalized method](https://www.ruby-forum.com/t/classmethods-module-creation-hook-capitalized-method/49131)

<div class="topic-metadata">

**Author:** [@transfire](https://www.ruby-forum.com/u/transfire)\
**Replies:** 4\
**Last updated:** [November 30, 2005, 7:12pm UTC](https://www.ruby-forum.com/t/classmethods-module-creation-hook-capitalized-method/49131 "2005-11-30T19:12:28Z")

</div>

I’m sure everyone knows about the ClassMethods technique for getting a module’s class/module methods to be inherited. I have come up with an improvement on this, but rather than define a ClassMehthods module manually …

---

## [Foreign keys in Ruby on Rails](https://www.ruby-forum.com/t/foreign-keys-in-ruby-on-rails/81316)

<div class="topic-metadata">

**Author:** [@lieven\_dekeyzer](https://www.ruby-forum.com/u/lieven_dekeyzer)\
**Replies:** 4\
**Last updated:** [November 18, 2005, 10:48pm UTC](https://www.ruby-forum.com/t/foreign-keys-in-ruby-on-rails/81316 "2005-11-18T22:48:40Z")

</div>

Should the foreign key constraints only be declared in the Model code of the application, or in both the code and the database? Thanks for any hints, Lieven

---

## [Difference between \<%= and \<%"](https://www.ruby-forum.com/t/difference-between-and/210850)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 7\
**Last updated:** [August 23, 2011, 5:48pm UTC](https://www.ruby-forum.com/t/difference-between-and/210850 "2011-08-23T17:48:36Z")

</div>

Hi all what is the difference between \<%= and \<% in a view file? thanks

---

## [Trip down memory lane](https://www.ruby-forum.com/t/trip-down-memory-lane/178634)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 7\
**Last updated:** [November 10, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/trip-down-memory-lane/178634 "2009-11-10T15:34:05Z")

</div>

Hi – I’ve been hunting through old RCRs, and came across my favorite rejected one: http://oldrcrs.rubypal.com/rejected.html#rcr120 :slight\_smile: Still trying to find that map(:sym) one… David – The Ruby …

---

## [Simple If](https://www.ruby-forum.com/t/simple-if/173681)

<div class="topic-metadata">

**Author:** [@pmckinstry](https://www.ruby-forum.com/u/pmckinstry)\
**Replies:** 7\
**Last updated:** [August 14, 2009, 10:05am UTC](https://www.ruby-forum.com/t/simple-if/173681 "2009-08-14T10:05:08Z")

</div>

Sorry for total newbie question here - in a method a particular id could be passed as a variable or as part of the has - how what would be the equivalent in ruby of the following Perl ? my $id = (exists $hash-\>{id}) ?…

---

## [Find syntax problem noob problem](https://www.ruby-forum.com/t/find-syntax-problem-noob-problem/147290)

<div class="topic-metadata">

**Author:** [@tyliong](https://www.ruby-forum.com/u/tyliong)\
**Replies:** 7\
**Last updated:** [August 31, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/find-syntax-problem-noob-problem/147290 "2008-08-31T19:31:38Z")

</div>

Hi, I need to know why \<%= SglineItem.find(1).sguser\_id %\> works but \<%= SglineItem.find(:all, :conditions =\> “sguser\_id = #{params\[:id\]}”).sguser\_id %\> does not. the second gives sguser\_id is not valid.

---

## [Pypes](https://www.ruby-forum.com/t/pypes/133102)

<div class="topic-metadata">

**Author:** [@Martin\_DeMello](https://www.ruby-forum.com/u/Martin_DeMello)\
**Replies:** 7\
**Last updated:** [March 27, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/pypes/133102 "2008-03-27T21:44:58Z")

</div>

http://www.voidspace.org.uk/python/weblog/arch\_d7\_2008\_03\_22.shtml#e954 Nice example of what you can do with generators. Is this sort of thing doable efficiently in 1.9? martin

---

## [Indenting strings - elegant alternatives?](https://www.ruby-forum.com/t/indenting-strings-elegant-alternatives/114979)

<div class="topic-metadata">

**Author:** [@ronaldfischer](https://www.ruby-forum.com/u/ronaldfischer)\
**Replies:** 7\
**Last updated:** [September 19, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/indenting-strings-elegant-alternatives/114979 "2007-09-19T15:29:13Z")

</div>

Just in case someone would like to contribute ideas of elegant code: PROBLEM: Given a string of lines (for example, “abc\\nde\\nfgh\\n”) and a number n, produce a string of the same lines, but each line indented by n spa…

---

## [Calendar events](https://www.ruby-forum.com/t/calendar-events/113572)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 7\
**Last updated:** [September 3, 2007, 3:44am UTC](https://www.ruby-forum.com/t/calendar-events/113572 "2007-09-03T03:44:18Z")

</div>

i want a simply get the amount of days inbetween a range of dates. IE: 1/25 - 2/3 is 8 days difference. My initial approach the the problem was to create a huge variable setup: jan = 31 #31 = days in january feb = 2…

---

## [Substituting Variables](https://www.ruby-forum.com/t/substituting-variables/105515)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 7\
**Last updated:** [May 30, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/substituting-variables/105515 "2007-05-30T17:41:49Z")

</div>

Hello, I am running into difficulties trying to use a variable in a substitution. Here’s an example: var = ‘October’ ‘30 May 2007’.sub( /(\\d+)\\s(\\w+)\\s(\\d+)/, ‘\\1 #{var} \\3’ ) Here I would like to get ‘30 October 2…

---

## [Mailer Setup Problems](https://www.ruby-forum.com/t/mailer-setup-problems/105194)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 7\
**Last updated:** [May 27, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/mailer-setup-problems/105194 "2007-05-27T19:22:38Z")

</div>

I’m having trouble configuring a mailer. Prudence would dictate that I should upload at least portions of the relevant files, etc. If it comes to that, I’ll certainly do it. However, before I go that route I would re…

---

## [Re: Los Angeles area users group?](https://www.ruby-forum.com/t/re-los-angeles-area-users-group/85122)

<div class="topic-metadata">

**Author:** [@Frank\_Davis](https://www.ruby-forum.com/u/Frank_Davis)\
**Replies:** 7\
**Last updated:** [February 13, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/re-los-angeles-area-users-group/85122 "2007-02-13T23:28:06Z")

</div>

I’m in LA also; there’s a very active Perl user’s group, but no Ruby group. I’d love to see a Ruby group get started. Maybe enough locals here will chime in with a “me too” on this list, and we can get build some mome…

---

## [Firebrigade\_api 1.0.0 Released](https://www.ruby-forum.com/t/firebrigade-api-1-0-0-released/83995)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 7\
**Last updated:** [February 1, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/firebrigade-api-1-0-0-released/83995 "2007-02-01T20:00:51Z")

</div>

firebrigade\_api version 1.0.0 has been released! http://seattlerb.rubyforge.org/firebrigade\_api == DESCRIPTION An API wrapper for http://firebrigade.seattlerb.org == FEATURES/PROBLEMS Changes: == 1.0.0 / 2007-01-30 …

---

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

<div class="topic-metadata">

**Author:** [@gijs](https://www.ruby-forum.com/u/gijs)\
**Replies:** 7\
**Last updated:** [October 20, 2006, 8:40pm UTC](https://www.ruby-forum.com/t/array-trouble/72878 "2006-10-20T20:40:18Z")

</div>

Hi I want to add a value to an arrays’ values like this: ret = “” “abcd”.to\_a.each do |w| ret += " " end this gives =\> “abcd” in IRB but I expected it to give "a b c d " why doesnt this work as such? thanks gij…

---

## [Why?](https://www.ruby-forum.com/t/why/65620)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 7\
**Last updated:** [August 21, 2006, 11:29pm UTC](https://www.ruby-forum.com/t/why/65620 "2006-08-21T23:29:39Z")

</div>

I have some incredibly important and urgent questions related to Ruby and Rails: Who is this enigmatic why the lucky stiff? (His last name is apparently Malsky, according to Wikipedia.) How did he get that nickname? …

---

## [Rake aborted! You have a nil object when you didn't expect i](https://www.ruby-forum.com/t/rake-aborted-you-have-a-nil-object-when-you-didnt-expect-i/195395)

<div class="topic-metadata">

**Author:** [@muxstudycentre1](https://www.ruby-forum.com/u/muxstudycentre1)\
**Replies:** 1\
**Last updated:** [October 12, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/rake-aborted-you-have-a-nil-object-when-you-didnt-expect-i/195395 "2010-10-12T15:08:59Z")

</div>

i created one model called team so a migration is created and i edited the migration like this class CreateTeams \< ActiveRecord::Migration def self.up create\_table :teams do |t| t.string :country t.string :grou…

---

## [Add wiki link to sequel backend gem](https://www.ruby-forum.com/t/add-wiki-link-to-sequel-backend-gem/195396)

<div class="topic-metadata">

**Author:** [@corin](https://www.ruby-forum.com/u/corin)\
**Replies:** 1\
**Last updated:** [October 2, 2010, 12:48pm UTC](https://www.ruby-forum.com/t/add-wiki-link-to-sequel-backend-gem/195396 "2010-10-02T12:48:29Z")

</div>

Hi! Could you please add a link to http://ruby-i18n.org/wiki for “I18n backend which allows to store/get the translations from a database using sequel.” Thanks, Corin

---

## [UpdateUIEvent.set\_mode doesn't work](https://www.ruby-forum.com/t/updateuievent-set-mode-doesnt-work/184266)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 12:15am UTC](https://www.ruby-forum.com/t/updateuievent-set-mode-doesnt-work/184266 "2010-03-02T00:15:02Z")

</div>

irb(main):001:0\> require ‘wx’ =\> true irb(main):002:0\> include Wx =\> Object irb(main):003:0\> UpdateUIEvent.set\_mode 1 TypeError: Expected argument 0 of type wxUpdateUIMode, but got Fixnum 1 in SWIG method ‘wxUpdate…

---

## [Form\_tag issue](https://www.ruby-forum.com/t/form-tag-issue/179146)

<div class="topic-metadata">

**Author:** [@Rajeswar\_reddy\_G](https://www.ruby-forum.com/u/Rajeswar_reddy_G)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/form-tag-issue/179146 "2009-11-18T13:44:56Z")

</div>

Hi, I below coded saved in new.rhtml(C:\\RubyForRails\\railsapps\\phonebook\\app\\views\\phonenumber) file and executed . But while accessing getting below issue. Add new phonenumber \<% form\_tag '/create' do %\> PersonNa…

---

## [Xfree or ruby\_xfree](https://www.ruby-forum.com/t/xfree-or-ruby-xfree/154181)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 1\
**Last updated:** [November 26, 2008, 9:44am UTC](https://www.ruby-forum.com/t/xfree-or-ruby-xfree/154181 "2008-11-26T09:44:32Z")

</div>

e$B@\>;3OB9-$G$9!#e(B trunke$B$He(Bruby\_1\_8e$B$Ne(Bext/gdbm/gdbm.ce$B$Ne(Bdiffe$B$r$\_$?$H$-$Ke(Bfreee$B$He(Bxfreee$B$Ne(B e$B0c$$$,5$$K$J$C$?$N$G!"e(B http://redmine.ruby-lang.org/repositories/diff/ruby-19?rev=17017 e…

---

## [NoMethodError (undefined method \`model' for ContactControlle](https://www.ruby-forum.com/t/nomethoderror-undefined-method-model-for-contactcontrolle/145475)

<div class="topic-metadata">

**Author:** [@keithtom](https://www.ruby-forum.com/u/keithtom)\
**Replies:** 1\
**Last updated:** [August 10, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-model-for-contactcontrolle/145475 "2008-08-10T15:43:58Z")

</div>

First rails application! I can not figure out all the details of how the method ‘model’ is defined ! The error occurs when processing the statement: model :contact in the file app/controllers/contact\_controller.rb f…

---

## [Re: libgstreamer, slackware =\> libgconf.......?](https://www.ruby-forum.com/t/re-libgstreamer-slackware-libgconf/127569)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 8:21am UTC](https://www.ruby-forum.com/t/re-libgstreamer-slackware-libgconf/127569 "2008-01-31T08:21:11Z")

</div>

Hoi, Mario and Alex, Thanks for your ideas and I’ll be able to get ahead with them. I dunno whether I am the only sole on linux planet wihout gconf or libgstreamer… but I used the gem system of installing wxruby, whic…

---

## [Generate scaffold on multiple tables](https://www.ruby-forum.com/t/generate-scaffold-on-multiple-tables/119839)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 1\
**Last updated:** [November 11, 2007, 7:44am UTC](https://www.ruby-forum.com/t/generate-scaffold-on-multiple-tables/119839 "2007-11-11T07:44:40Z")

</div>

Hey all, newbie question, quick one. I know you can do “generate scaffold modelname modelcontroller” How can I genereate a scaffold for multiple models with 1 controller? e.g. I have 3 tables and want to admin them al…

---

## [GNU Radio Mac OSX Install Problem - Please help](https://www.ruby-forum.com/t/gnu-radio-mac-osx-install-problem-please-help/111033)

<div class="topic-metadata">

**Author:** [@Jeffrey\_U](https://www.ruby-forum.com/u/Jeffrey_U)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 2:23am UTC](https://www.ruby-forum.com/t/gnu-radio-mac-osx-install-problem-please-help/111033 "2007-08-02T02:23:41Z")

</div>

Hi all, I checked out the latest GNU Radio on the SVN, which I know is development. I’m currently trying to install it, but I’m having some problems. I’m following the installation guide found at: http://www.nd.edu/…

---

## [Migrations-looping through add\_column lines](https://www.ruby-forum.com/t/migrations-looping-through-add-column-lines/109271)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 1\
**Last updated:** [July 12, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/migrations-looping-through-add-column-lines/109271 "2007-07-12T23:50:27Z")

</div>

Hi All, Hoping this is an easy question… Can I loop through add\_columns? I’ve got a bunch of columns that I need to add to a table… I don’t really want to type “add\_column” 30 times… and then “remove\_column” another …

---

## [Migrations with corresponding fixtures?](https://www.ruby-forum.com/t/migrations-with-corresponding-fixtures/90559)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [March 30, 2007, 7:52am UTC](https://www.ruby-forum.com/t/migrations-with-corresponding-fixtures/90559 "2007-03-30T07:52:57Z")

</div>

Hi all In my migrations I often like to create some basic model data that will be needed in the application (e.g. a list of common countries). Till now I hard-coded them directly into the migration scripts: Country.c…

---

## [Encrypted By Ezcrypto but cannot decrypt with PHP mcrypt](https://www.ruby-forum.com/t/encrypted-by-ezcrypto-but-cannot-decrypt-with-php-mcrypt/88094)

<div class="topic-metadata">

**Author:** [@kwon37xi](https://www.ruby-forum.com/u/kwon37xi)\
**Replies:** 1\
**Last updated:** [March 8, 2007, 9:24am UTC](https://www.ruby-forum.com/t/encrypted-by-ezcrypto-but-cannot-decrypt-with-php-mcrypt/88094 "2007-03-08T09:24:52Z")

</div>

Hello, I’m a Ruby newbie. Our site is developed with Ruby On Rails mainly, but some parts use PHP 5. So, in Ruby, it encrypt username with EzCrypto aes-128-cbc with a key and save it to browser cookie. But cannot de…

---

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

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 5\
**Last updated:** [July 4, 2013, 5:06pm UTC](https://www.ruby-forum.com/t/split-string/235630 "2013-07-04T17:06:23Z")

</div>

hey Guys i need to split this query to string array how contains three strings : query = “Get /index.html HTTP/1.0\\r\\n\\r\\n” query += “Host: www.example.com\\r\\n” query += “Connection: Close\\r\\n\\r\\n” i want to get res…

---

## [URI regex help](https://www.ruby-forum.com/t/uri-regex-help/226454)

<div class="topic-metadata">

**Author:** [@pierreandre\_m](https://www.ruby-forum.com/u/pierreandre_m)\
**Replies:** 5\
**Last updated:** [December 2, 2012, 10:38pm UTC](https://www.ruby-forum.com/t/uri-regex-help/226454 "2012-12-02T22:38:32Z")

</div>

I am trying to extract the fields of a URL path. Every URL extract example I have found online (or have tried to compose personally) has been wrong. here is a sample url https://api.github.com/repos/orgName/final I w…

---

## [I have no idea how to write clear, confident front-end code for my rails app](https://www.ruby-forum.com/t/i-have-no-idea-how-to-write-clear-confident-front-end-code-for-my-rails-app/221467)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 5\
**Last updated:** [July 18, 2012, 1:14pm UTC](https://www.ruby-forum.com/t/i-have-no-idea-how-to-write-clear-confident-front-end-code-for-my-rails-app/221467 "2012-07-18T13:14:32Z")

</div>

First and foremost: I am not a very experienced web-developer or developer for that matter. I’ve only spent about a year with Rails, however there is something I have noticed about my projects and would like to get o…

---

## [Has\_many through question](https://www.ruby-forum.com/t/has-many-through-question/207073)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 5\
**Last updated:** [May 18, 2011, 12:56am UTC](https://www.ruby-forum.com/t/has-many-through-question/207073 "2011-05-18T00:56:24Z")

</div>

hi there, i thing i just have a logical problem. i have following models. class Area \< ActiveRecord::Base belongs\_to :taskschedule belongs\_to :service end class Service \< ActiveRecord::Base has\_many :taskschedule…

---

## [Accessing programs through the terminal with ruby](https://www.ruby-forum.com/t/accessing-programs-through-the-terminal-with-ruby/193004)

<div class="topic-metadata">

**Author:** [@kaspir](https://www.ruby-forum.com/u/kaspir)\
**Replies:** 5\
**Last updated:** [August 9, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/accessing-programs-through-the-terminal-with-ruby/193004 "2010-08-09T23:05:12Z")

</div>

Specifically browsers. I’m trying to get a bunch of different browsers (FF, Opera, Safari, IE, Chrome, and Fock) to all open the same url/file location either 1) Simultaneously or 2) One after the other. Meaning one b…

---

## [How can I call String#replace (rb\_str\_replace()) in C API?](https://www.ruby-forum.com/t/how-can-i-call-string-replace-rb-str-replace-in-c-api/188113)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 5\
**Last updated:** [May 6, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/how-can-i-call-string-replace-rb-str-replace-in-c-api/188113 "2010-05-06T14:37:49Z")

</div>

Hi all, I am wrapping a C++ API using SWIG for Ruby and in some cases strings need to be allocated and passed to the wrapped function where the value of the string itself will need to be modified within the C/C++ cod…

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

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