# Top

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

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

---

## [Anybody know a prototype helper that creates a popup window?](https://www.ruby-forum.com/t/anybody-know-a-prototype-helper-that-creates-a-popup-window/140548)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 5\
**Last updated:** [June 19, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/anybody-know-a-prototype-helper-that-creates-a-popup-window/140548 "2008-06-19T19:14:28Z")

</div>

Hi, I’m trying to get a form to open up in a new window. I know how to toggle divs but haven’t been able to find anything on how to get another window to open…any ideas? Ron

---

## [IronRuby r109 is out](https://www.ruby-forum.com/t/ironruby-r109-is-out/137719)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 5\
**Last updated:** [May 16, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/ironruby-r109-is-out/137719 "2008-05-16T13:16:54Z")

</div>

This one should unblock almost all major known bugs. Next steps are to start looking at running some simple Rails unit tests to see what missing APIs fall out of that investigation. Thanks, -John

---

## [Problema salvataggio relazioni 1 a 1](https://www.ruby-forum.com/t/problema-salvataggio-relazioni-1-a-1/127163)

<div class="topic-metadata">

**Author:** [@pacionno](https://www.ruby-forum.com/u/pacionno)\
**Replies:** 5\
**Last updated:** [January 27, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/problema-salvataggio-relazioni-1-a-1/127163 "2008-01-27T16:45:58Z")

</div>

Salve a tt, Ã¨ da un po che sto sviluppando un questionario on-line in rails ora, il mio problema Ã¨ che non riesco a far salvare i dati all’interno del database. Premettendo che sto utilizzando la versione 1.2.5 di R…

---

## [Does mock\_model's :null\_object option work?](https://www.ruby-forum.com/t/does-mock-models-null-object-option-work/122207)

<div class="topic-metadata">

**Author:** [@Al\_Chou](https://www.ruby-forum.com/u/Al_Chou)\
**Replies:** 5\
**Last updated:** [December 5, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/does-mock-models-null-object-option-work/122207 "2007-12-05T16:24:48Z")

</div>

Please understand in the following that I am making relatively minor changes to legacy (non-TDD/BDD) code in Substruct and don’t have the time to refactor nicely right now. I’m just trying to get past the untested/u…

---

## [State of IronRuby 10/5/07](https://www.ruby-forum.com/t/state-of-ironruby-10-5-07/116489)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 5\
**Last updated:** [October 19, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/state-of-ironruby-10-5-07/116489 "2007-10-19T18:54:53Z")

</div>

These are the IronRuby related check-ins that have happened the week of 10/5/07. Note that most of the work done this week is in DLR, since the team is heavily engaged in a refactoring pass across that codebase. 28335…

---

## [Riflessioni inutili sul numero giusto di spazi](https://www.ruby-forum.com/t/riflessioni-inutili-sul-numero-giusto-di-spazi/81274)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/riflessioni-inutili-sul-numero-giusto-di-spazi/81274 "2007-09-25T22:50:14Z")

</div>

4 spazi sono giusti ! Detto questo, anche io mi adeguo allo standard di Ruby, ma non mi convince. LOL. Ma i 4 sono forse anche lo standard in C, quindi la “vecchia guardia” sente i 4 come giusti? Mamma mia quanti …

---

## [Is this dry? (models & migrations)](https://www.ruby-forum.com/t/is-this-dry-models-migrations/113486)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 5\
**Last updated:** [September 1, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/is-this-dry-models-migrations/113486 "2007-09-01T17:39:24Z")

</div>

I’m creating a tool for a preexisting distributed SQL database. One of the things I’m doing is taking an SQL dump of the schema and transforming it into models. It strikes me that there appears to be a lot of duplic…

---

## [Form input limit reached?](https://www.ruby-forum.com/t/form-input-limit-reached/106441)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 5\
**Last updated:** [June 12, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/form-input-limit-reached/106441 "2007-06-12T16:02:03Z")

</div>

I have a form that uploads 2 files via 2 file fields (I’m not actually uploading anything, but this problem occurs specifically when the form enctype is multipart). If I remove the multipart designation from the form…

---

## [Dynamically iterate around a table's columns (using content\_](https://www.ruby-forum.com/t/dynamically-iterate-around-a-tables-columns-using-content/103065)

<div class="topic-metadata">

**Author:** [@demisone](https://www.ruby-forum.com/u/demisone)\
**Replies:** 5\
**Last updated:** [May 2, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/dynamically-iterate-around-a-tables-columns-using-content/103065 "2007-05-02T15:14:17Z")

</div>

Hi there, I was trying to make some DRY code in the ‘edit’ controller so it will check for every single column and if it is empty, to write something like ‘\[Undefined\]’ in it’s place. The thing is didn’t want to make …

---

## [Passing in lng and lat via URL, integers work but not floats](https://www.ruby-forum.com/t/passing-in-lng-and-lat-via-url-integers-work-but-not-floats/91609)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 5\
**Last updated:** [April 13, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/passing-in-lng-and-lat-via-url-integers-work-but-not-floats/91609 "2007-04-13T22:28:20Z")

</div>

Using the following gode I am able to get an response when the lng and lat are integers, but not when they are floats. http://localhost:3000/section/query/43,-90 # works! http://localhost:3000/section/query/43.005,-9…

---

## [File.yaml?(fname)](https://www.ruby-forum.com/t/file-yaml-fname/78873)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 5\
**Last updated:** [December 9, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/file-yaml-fname/78873 "2006-12-09T21:08:01Z")

</div>

what’s the best way to determine if a file is yaml? thanks, t.

---

## [Radrails and RSpec](https://www.ruby-forum.com/t/radrails-and-rspec/73366)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 5\
**Last updated:** [October 26, 2006, 4:02pm UTC](https://www.ruby-forum.com/t/radrails-and-rspec/73366 "2006-10-26T16:02:05Z")

</div>

Hi all, Does anyone know how to get radrails to use RSpec specs instead of tests? Cheers

---

## [Another sessions' persistence problem](https://www.ruby-forum.com/t/another-sessions-persistence-problem/72175)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 5\
**Last updated:** [October 16, 2006, 4:32am UTC](https://www.ruby-forum.com/t/another-sessions-persistence-problem/72175 "2006-10-16T04:32:03Z")

</div>

Hi All, I started out hashes intended to be populated with status info, e.g. sort\_order, for several of my tables. I started ApplicationController with: session = {} tables = \[:customers, :invoices, :payments\] table…

---

## [Afficher un tableau d'images](https://www.ruby-forum.com/t/afficher-un-tableau-dimages/100829)

<div class="topic-metadata">

**Author:** [@Zambra](https://www.ruby-forum.com/u/Zambra)\
**Replies:** 5\
**Last updated:** [August 1, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/afficher-un-tableau-dimages/100829 "2006-08-01T18:16:02Z")

</div>

bonjour, Je bloque sur un problème tout simple à priori, afficher des images dans un tableau. Je récupère la liste d’images dans mon controleur, j’utilise un helper pour déterminer le nombre de lignes à afficher en f…

---

## [Limiting how long a method is permiited to run](https://www.ruby-forum.com/t/limiting-how-long-a-method-is-permiited-to-run/49522)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 5\
**Last updated:** [December 5, 2005, 7:24pm UTC](https://www.ruby-forum.com/t/limiting-how-long-a-method-is-permiited-to-run/49522 "2005-12-05T19:24:19Z")

</div>

Hello all, Is there a means of limiting how long a method is permiited to run? I want to be able to mark a method with a number and have the method throw, say, a TooMuchTimeException if the running time exceeds this …

---

## [Match an ARray Element by if](https://www.ruby-forum.com/t/match-an-array-element-by-if/222753)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 7\
**Last updated:** [September 9, 2012, 6:47pm UTC](https://www.ruby-forum.com/t/match-an-array-element-by-if/222753 "2012-09-09T18:47:40Z")

</div>

Hi bellow example : a =Array.new a = \[‘Cat’,‘Dog’\] if a.include? ‘Dog1’ puts “yes” else puts “no” end its works perfectly But when i am trying to this sssh = Net::SSH.start(@hostname2, @username, :password =\> @…

---

## [Host -\> jail -\> host - BAD GATEWAY](https://www.ruby-forum.com/t/host-jail-host-bad-gateway/198708)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 7\
**Last updated:** [November 5, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/host-jail-host-bad-gateway/198708 "2010-11-05T22:41:04Z")

</div>

Im using FreeBSD and jails. I have my postfix on host, and main http server in jail. When I set in jail (192.168.1.2): server { \<------\>listen 80; \<------\>server\_name www.poczta.a.org poczta.a.org; \<------\>access\_l…

---

## [Flaw in permalinking system](https://www.ruby-forum.com/t/flaw-in-permalinking-system/194814)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 7\
**Last updated:** [September 12, 2010, 11:41am UTC](https://www.ruby-forum.com/t/flaw-in-permalinking-system/194814 "2010-09-12T11:41:08Z")

</div>

Hi Basically I have a permalink system setup using the to\_param method in the model file. Since I have a system in which categories has\_many tutorials, my URLs look a bit like this: site.com/CatID-Category-Perma/TutI…

---

## [Nokogiri 1.4.1 Released](https://www.ruby-forum.com/t/nokogiri-1-4-1-released/180088)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 7\
**Last updated:** [December 14, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/nokogiri-1-4-1-released/180088 "2009-12-14T23:37:41Z")

</div>

Hey everyone! Have you finished your holiday shopping yet? I know I haven’t. Fortunately for you guys, Mike and I like programming a lot more than shopping. I mean, don’t get me wrong. I love shopping for myself, …

---

## [Creating an array of hash values on update method](https://www.ruby-forum.com/t/creating-an-array-of-hash-values-on-update-method/179716)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 7\
**Last updated:** [December 3, 2009, 7:16am UTC](https://www.ruby-forum.com/t/creating-an-array-of-hash-values-on-update-method/179716 "2009-12-03T07:16:10Z")

</div>

Hi all, I’m trying to do a small shopping cart and I’ve come across a problem I believe some of you may consider simple. I’m basically using two models to do the shopping cart: Orders and Order\_Items A shopping cart…

---

## [Need Help with another Simple Program](https://www.ruby-forum.com/t/need-help-with-another-simple-program/172269)

<div class="topic-metadata">

**Author:** [@maxnorman](https://www.ruby-forum.com/u/maxnorman)\
**Replies:** 7\
**Last updated:** [July 18, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/need-help-with-another-simple-program/172269 "2009-07-18T17:42:41Z")

</div>

As an exercise out of Chris P.'s ‘Learning to Program,’ I’ve attempted to build a program that calculates the number of leap years between two given years. Here is my code: puts ‘Use this calculator to determine the n…

---

## [Upgrading on Unix](https://www.ruby-forum.com/t/upgrading-on-unix/196980)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 7\
**Last updated:** [July 8, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/upgrading-on-unix/196980 "2009-07-08T16:23:25Z")

</div>

Do I need to re-install gems after upgrading from Ruby 1.8.6 to 1.8.7 on Unix?

---

## [Set\_size doesn't work inside initialize block](https://www.ruby-forum.com/t/set-size-doesnt-work-inside-initialize-block/161726)

<div class="topic-metadata">

**Author:** [@David\_Peoples](https://www.ruby-forum.com/u/David_Peoples)\
**Replies:** 1\
**Last updated:** [March 1, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/set-size-doesnt-work-inside-initialize-block/161726 "2009-03-01T20:27:37Z")

</div>

I’m putting a ListCtrl in a Frame, creating the ListCtrl during Frame.initialize(). I want to adjust the ListCtrl’s height to fit the number of rows the control contains, not just hardcode the height (presuming the co…

---

## [GNU Radio beginner](https://www.ruby-forum.com/t/gnu-radio-beginner/149302)

<div class="topic-metadata">

**Author:** [@mohdshoaib](https://www.ruby-forum.com/u/mohdshoaib)\
**Replies:** 7\
**Last updated:** [September 23, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/gnu-radio-beginner/149302 "2008-09-23T19:29:19Z")

</div>

hi, i am very new with GNU Radio. now i am in process of installing the GNU Radio but unfotunetly i still fail to install… i had try for 3 days. i follow the GNU Radio installation Note by Naveen Manicka.i had finis…

---

## [Validates\_presence\_of , unless](https://www.ruby-forum.com/t/validates-presence-of-unless/136191)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 1\
**Last updated:** [April 29, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/validates-presence-of-unless/136191 "2008-04-29T18:38:39Z")

</div>

I’ve got a case for my model where the name field is required, ONLY if the comment field has been filled out. I thought I could do this like this: validates\_presence\_of :name, :unless=\>@comment.nil? but I can’t seem…

---

## [Benchmarking, performance tweaks](https://www.ruby-forum.com/t/benchmarking-performance-tweaks/135190)

<div class="topic-metadata">

**Author:** [@jasongarber](https://www.ruby-forum.com/u/jasongarber)\
**Replies:** 1\
**Last updated:** [April 18, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/benchmarking-performance-tweaks/135190 "2008-04-18T23:55:34Z")

</div>

Hey, I did some benchmarking of RedCloth and changed the Ragel code generation style to one that will use 14.6 MB of memory when you compile rather than the 391MB it was using before. It compiles faster and the compi…

---

## [Amsterdam.rb](https://www.ruby-forum.com/t/amsterdam-rb/126795)

<div class="topic-metadata">

**Author:** [@remvee](https://www.ruby-forum.com/u/remvee)\
**Replies:** 7\
**Last updated:** [January 29, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/amsterdam-rb/126795 "2008-01-29T12:58:05Z")

</div>

Hi all, On the 28th of January the first amsterdam.rb meeting will be celebrated with beers. Come to Nieuwmarkt square\[1\] to join us for beers at “De Bekeerde Suster”\[2\]. There’s no website yet, no plans on what or…

---

## [How to create vertical and horizontal menus with RoR](https://www.ruby-forum.com/t/how-to-create-vertical-and-horizontal-menus-with-ror/113591)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [September 3, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/how-to-create-vertical-and-horizontal-menus-with-ror/113591 "2007-09-03T15:25:33Z")

</div>

Hi all I am designing an applicaiton that needs horizontal and vertical menus, and I would like to know how to create them with RoR I am looking for something similar to the left vertical menu from Amazon (http://ama…

---

## [Rails + Gettext problem](https://www.ruby-forum.com/t/rails-gettext-problem/108488)

<div class="topic-metadata">

**Author:** [@guilherme](https://www.ruby-forum.com/u/guilherme)\
**Replies:** 7\
**Last updated:** [July 4, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/rails-gettext-problem/108488 "2007-07-04T17:14:24Z")

</div>

Hello, I had to format my pc, and now i can´t get Rails + Gettext to work… Any ideas? Tnx for the help, Guilherme NameError uninitialized constant System RAILS\_ROOT: ./script/…/config/… Application Trace | Framew…

---

## [Nested Dynamic Routes](https://www.ruby-forum.com/t/nested-dynamic-routes/107489)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 7\
**Last updated:** [June 23, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/nested-dynamic-routes/107489 "2007-06-23T16:28:06Z")

</div>

Hi, I have a url scheme where I would like to include a public and private interface, and I have a nested resource for it. The two schemes are /my/books/pages /:username/books/pages I would like to sperate the book…

---

## [Net::HTTPResponse.body\_permitted?() Issue](https://www.ruby-forum.com/t/net-httpresponse-body-permitted-issue/88391)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/net-httpresponse-body-permitted-issue/88391 "2007-03-10T16:13:00Z")

</div>

Hi, I am playing arround with Net::HTTP and have this little script to grap a websites HTML: require “net/http” page = “http://www.google.co.uk” response = Net::HTTP.get\_response(URI.parse(page)) puts response.body…

---

## [Using Proc and yield](https://www.ruby-forum.com/t/using-proc-and-yield/79480)

<div class="topic-metadata">

**Author:** [@alberthier](https://www.ruby-forum.com/u/alberthier)\
**Replies:** 7\
**Last updated:** [December 16, 2006, 4:31am UTC](https://www.ruby-forum.com/t/using-proc-and-yield/79480 "2006-12-16T04:31:10Z")

</div>

hi ! I’m new to ruby and I’m currently testing the language. So I know I can write this: def hello() yield “hello world” end hello { |i| puts i } This prints “hello world” on the console, cool. Now I wonder if th…

---

## ["more than enough rope"](https://www.ruby-forum.com/t/more-than-enough-rope/78460)

<div class="topic-metadata">

**Author:** [@Giles\_B](https://www.ruby-forum.com/u/Giles_B)\
**Replies:** 7\
**Last updated:** [December 6, 2006, 3:41am UTC](https://www.ruby-forum.com/t/more-than-enough-rope/78460 "2006-12-06T03:41:38Z")

</div>

I just found out that Josh S.'s cancelled presentation at RubyConf was going to be called “More than enough rope to hang yourself,” and was going to be about how to avoid misusing Ruby’s power. I’ve definitely written…

---

## [I'm a process-spawning idiot](https://www.ruby-forum.com/t/im-a-process-spawning-idiot/77625)

<div class="topic-metadata">

**Author:** [@twifkak](https://www.ruby-forum.com/u/twifkak)\
**Replies:** 7\
**Last updated:** [November 30, 2006, 2:50am UTC](https://www.ruby-forum.com/t/im-a-process-spawning-idiot/77625 "2006-11-30T02:50:12Z")

</div>

I’m looking for a method that, like Kernel#and IO::popen, allows me to call out to the system and grab its stdout. However, I'd like it to accept multiple args (like Kernel#system), so I don't have to worry about filenam…

---

## [Newbie: how to script windows commands with ruby?](https://www.ruby-forum.com/t/newbie-how-to-script-windows-commands-with-ruby/76427)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 7\
**Last updated:** [November 19, 2006, 1:07am UTC](https://www.ruby-forum.com/t/newbie-how-to-script-windows-commands-with-ruby/76427 "2006-11-19T01:07:44Z")

</div>

Hi! I’ve been learning ruby for a little while, but I’m having trouble figuring out how to do this (and I must be using the wrong keywords in my google search). I do tech support, and I’m looking to automate some ba…

---

## [How to make this secure?](https://www.ruby-forum.com/t/how-to-make-this-secure/73908)

<div class="topic-metadata">

**Author:** [@yeah](https://www.ruby-forum.com/u/yeah)\
**Replies:** 7\
**Last updated:** [November 7, 2006, 11:07am UTC](https://www.ruby-forum.com/t/how-to-make-this-secure/73908 "2006-11-07T11:07:32Z")

</div>

Hi everyone, I’m writing a piece of software where I receive the name of an active record class from the outside (in the request\_uri) and want to make a lookup on whether this active record class exists. Then, I need …

---

## [Wiki on Rails](https://www.ruby-forum.com/t/wiki-on-rails/70621)

<div class="topic-metadata">

**Author:** [@baalbek](https://www.ruby-forum.com/u/baalbek)\
**Replies:** 7\
**Last updated:** [October 1, 2006, 2:02pm UTC](https://www.ruby-forum.com/t/wiki-on-rails/70621 "2006-10-01T14:02:39Z")

</div>

Hi, just recently installed RoR, and would like to create a Wiki running on my Rails installation. Are there any ready-to-go Wikis (ala PhP) for RoR? Baalbek

---

## [Double\_metaphone.rb](https://www.ruby-forum.com/t/double-metaphone-rb/65340)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 7\
**Last updated:** [August 18, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/double-metaphone-rb/65340 "2006-08-18T15:26:28Z")

</div>

http://tfletcher.com/lib/double\_metaphone.rb Adapted from the PHP version. There’s at least one person looking for it: http://groups.google.com/group/comp.lang.ruby/search?group=comp.lang.ruby&q=double+metaphone Bug …

---

## [Active Record Basics - Making it commentable](https://www.ruby-forum.com/t/active-record-basics-making-it-commentable/62167)

<div class="topic-metadata">

**Author:** [@jtei](https://www.ruby-forum.com/u/jtei)\
**Replies:** 7\
**Last updated:** [June 1, 2006, 6:12pm UTC](https://www.ruby-forum.com/t/active-record-basics-making-it-commentable/62167 "2006-06-01T18:12:50Z")

</div>

hi everyone, I hope someone can help me out with some active record basics? I’ve been banging my head for the past 4 hours and I can’t seem to get it to work. I am trying to add comments to a caption (just like how o…

---

## [LoginEngine problems](https://www.ruby-forum.com/t/loginengine-problems/73505)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 7\
**Last updated:** [March 2, 2006, 1:04am UTC](https://www.ruby-forum.com/t/loginengine-problems/73505 "2006-03-02T01:04:26Z")

</div>

I’m trying to get a simple authentication system going for a small rails app. After much research, it looks like LoginEngine should do exactly what I want. Now, the documentation is somewhat confusing to me when look…

---

## [How to set a relationship with a value from a selection list](https://www.ruby-forum.com/t/how-to-set-a-relationship-with-a-value-from-a-selection-list/72311)

<div class="topic-metadata">

**Author:** [@m3oliver](https://www.ruby-forum.com/u/m3oliver)\
**Replies:** 7\
**Last updated:** [February 23, 2006, 5:20pm UTC](https://www.ruby-forum.com/t/how-to-set-a-relationship-with-a-value-from-a-selection-list/72311 "2006-02-23T17:20:41Z")

</div>

I realize this is probably a very basic problem but I’m developing my first rails app and running into this problem. I’m trying to write a photoblog application. I have a photo table and an album table. Photo has a to…

---

## [How to pull out specific part of a variable and set to another variable?](https://www.ruby-forum.com/t/how-to-pull-out-specific-part-of-a-variable-and-set-to-another-variable/218707)

<div class="topic-metadata">

**Author:** [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Replies:** 8\
**Last updated:** [April 9, 2012, 9:31pm UTC](https://www.ruby-forum.com/t/how-to-pull-out-specific-part-of-a-variable-and-set-to-another-variable/218707 "2012-04-09T21:31:24Z")

</div>

I have a variable that is a long string. The variable looks like this: “this sentence is my variable and the important information is {inside these brackets}” The information I need is the information inside the brac…

---

## [Problem with using validation methods](https://www.ruby-forum.com/t/problem-with-using-validation-methods/179129)

<div class="topic-metadata">

**Author:** [@nitin\_k\_m](https://www.ruby-forum.com/u/nitin_k_m)\
**Replies:** 8\
**Last updated:** [November 20, 2009, 2:27pm UTC](https://www.ruby-forum.com/t/problem-with-using-validation-methods/179129 "2009-11-20T14:27:56Z")

</div>

Hi I am making an application using ruby on rails. For user sign up I have given following validation rules class User \< ActiveRecord::Base validates\_presence\_of :first\_name, :on =\> :create, :message =\> “First Name …

---

## [CMS on Rails 2 and easy to integrate with?](https://www.ruby-forum.com/t/cms-on-rails-2-and-easy-to-integrate-with/148036)

<div class="topic-metadata">

**Author:** [@apm](https://www.ruby-forum.com/u/apm)\
**Replies:** 8\
**Last updated:** [September 9, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/cms-on-rails-2-and-easy-to-integrate-with/148036 "2008-09-09T21:51:38Z")

</div>

Hi, im looking for a CMS in Rails and all posts of that kind that i have seen seem outdated… For an application i need to have app-specific parts + content management. I thought of integrating with an existing CMS pr…

---

## [Noob Questions](https://www.ruby-forum.com/t/noob-questions/134925)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 8\
**Last updated:** [April 17, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/noob-questions/134925 "2008-04-17T17:03:53Z")

</div>

Be warned - I’m new to Ruby and programming in general, so I’m sure this will be a trivial question for most of you. I’m currently working through the exercises in the book Learn to Program by Chris P… At the end of e…

---

## [Ruby tools to develop compilers](https://www.ruby-forum.com/t/ruby-tools-to-develop-compilers/130724)

<div class="topic-metadata">

**Author:** [@Le\_Lann\_Jean-Christ](https://www.ruby-forum.com/u/Le_Lann_Jean-Christ)\
**Replies:** 8\
**Last updated:** [March 9, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/ruby-tools-to-develop-compilers/130724 "2008-03-09T13:33:34Z")

</div>

Hi, For some days now, I have been trying to find the best Ruby tools to develop compilers : lexer, parser and possibly more (ast, visitor). There seems to be plenty of small tools, but it is difficult to know whethe…

---

## [Case sensitive url and link\_to... help](https://www.ruby-forum.com/t/case-sensitive-url-and-link-to-help/118471)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 8\
**Last updated:** [October 28, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/case-sensitive-url-and-link-to-help/118471 "2007-10-28T17:41:49Z")

</div>

Hi, after saying this you will hate me, but i’ve changed an url which takes not the id but the nick. Something like /users/mix/comments everything works fine, just for a “little” problem, when i create the link with l…

---

## [Validates\_uniqueness\_of](https://www.ruby-forum.com/t/validates-uniqueness-of/112147)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 8\
**Last updated:** [August 18, 2007, 11:20pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of/112147 "2007-08-18T23:20:08Z")

</div>

Hi, In my user model I validates\_uniqueness\_of :login. In my app, users can edit their information. If the user change the name but not the login, the record gets rejected. Of course the login is already used, but b…

---

## [Inserimento record nel database via form](https://www.ruby-forum.com/t/inserimento-record-nel-database-via-form/91251)

<div class="topic-metadata">

**Author:** [@robyonrails](https://www.ruby-forum.com/u/robyonrails)\
**Replies:** 8\
**Last updated:** [April 7, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/inserimento-record-nel-database-via-form/91251 "2007-04-07T14:40:36Z")

</div>

Database: mysql. Tabella: learned\_things. Modello: LearnedThing. Qui la form nella vista: \<%= form\_tag :action=\>“add”, :method=\>“post” %\> \<%= hidden\_field “learnedthing”, “learned\_on”, :value=\>Date.new.strftime(“YmdH…

---

## [Find conditions question](https://www.ruby-forum.com/t/find-conditions-question/69430)

<div class="topic-metadata">

**Author:** [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Replies:** 8\
**Last updated:** [September 21, 2006, 2:54am UTC](https://www.ruby-forum.com/t/find-conditions-question/69430 "2006-09-21T02:54:21Z")

</div>

Quick question , in a find statement, particularly the :conditions part. if you see something like conditions =\> \[“user = ?”, user\]) what would you be drawing the first “user” from and the second ? I’m taking this fr…

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

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