# Top

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

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

---

## [\[Ruby 1.9-Bug#4090\]\[Open\] Time::new に時差を与えたとき、正しい日付が得られない事がある](https://www.ruby-forum.com/t/ruby-1-9-bug-4090-open-time-new/199706)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 3\
**Last updated:** [November 27, 2010, 10:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-bug-4090-open-time-new/199706 "2010-11-27T10:17:52Z")

</div>

Bug #4090: Time::new に時差を与えたとき、正しい日付が得られない事がある http://redmine.ruby-lang.org/issues/show/4090 起票者: tadayoshi funaba ステータス: Open, 優先度: Normal ruby -v: ruby 1.9.3dev (2010-11-26 trunk 29941) \[i686-linux\] Time::new に時差を…

---

## [Httpauth bug or my config mistake?](https://www.ruby-forum.com/t/httpauth-bug-or-my-config-mistake/199244)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 3\
**Last updated:** [November 17, 2010, 10:51am UTC](https://www.ruby-forum.com/t/httpauth-bug-or-my-config-mistake/199244 "2010-11-17T10:51:40Z")

</div>

Hi i try set up http auth in one of my domain sub-folder but httpauth not work properly. mys conf. location /adm/ { auth\_basic Restrito; auth\_basic\_user\_file /var/www/tv/adm/.htpasswd; …

---

## [Module MyMod::MyOtherMod question](https://www.ruby-forum.com/t/module-mymod-myothermod-question/195817)

<div class="topic-metadata">

**Author:** [@mydarkpassenger](https://www.ruby-forum.com/u/mydarkpassenger)\
**Replies:** 3\
**Last updated:** [October 1, 2010, 12:27am UTC](https://www.ruby-forum.com/t/module-mymod-myothermod-question/195817 "2010-10-01T00:27:18Z")

</div>

Can someone please explain what the difference is? A assumed these were synonymous, but they are not: module A module B … end end Not equivalent to?: module A::B … end Thanks alot.

---

## [Upload file attachment with rest or xml](https://www.ruby-forum.com/t/upload-file-attachment-with-rest-or-xml/194363)

<div class="topic-metadata">

**Author:** [@rorra](https://www.ruby-forum.com/u/rorra)\
**Replies:** 3\
**Last updated:** [September 6, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/upload-file-attachment-with-rest-or-xml/194363 "2010-09-06T16:39:42Z")

</div>

I’ve a “attachment” model that has: title: string image: paperclip attribute video: paperclip attribute I want to let the users to upload an attachment by using xml or something like that, all the actions supports x…

---

## [Use of :include option in find query](https://www.ruby-forum.com/t/use-of-include-option-in-find-query/193053)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 3\
**Last updated:** [August 11, 2010, 8:04am UTC](https://www.ruby-forum.com/t/use-of-include-option-in-find-query/193053 "2010-08-11T08:04:30Z")

</div>

Hi, I have a Person model and Company model like as follows:- Person.rb class Person \<ActiveRecord::Base has\_one :company end Company.rb class Company \< ActiveRecord::Base end I have a function def person\_detai…

---

## [Undefined local variable or method \`code\_words' for main:Ob](https://www.ruby-forum.com/t/undefined-local-variable-or-method-code-words-for-main-ob/191116)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [July 6, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/undefined-local-variable-or-method-code-words-for-main-ob/191116 "2010-07-06T13:18:27Z")

</div>

I have the problem: undefined local variable or method \`code\_words’ for main:Ob I’m trying to work on an example from the Why’s poignant guide to Ruby, and don’t know why I’m getting the preceding error. I just made …

---

## [Regarding WBFM Receive in GRC](https://www.ruby-forum.com/t/regarding-wbfm-receive-in-grc/190307)

<div class="topic-metadata">

**Author:** [@lokesh\_reddy](https://www.ruby-forum.com/u/lokesh_reddy)\
**Replies:** 0\
**Last updated:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/regarding-wbfm-receive-in-grc/190307 "2010-06-17T16:22:45Z")

</div>

hi all what do you mean by Quadrature Rate and Audio Decimation in WBFM Receive block in GRC? and Channel Rate and Audio Decimation in FM Demod block? I have captured wireless microphone signals using the following f…

---

## [Ruby on Rails Associations - Practical Applications](https://www.ruby-forum.com/t/ruby-on-rails-associations-practical-applications/188327)

<div class="topic-metadata">

**Author:** [@cam](https://www.ruby-forum.com/u/cam)\
**Replies:** 3\
**Last updated:** [May 10, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-associations-practical-applications/188327 "2010-05-10T22:13:54Z")

</div>

Hey All, Forgive me for posting a question that may be very elementary. I’m building an application and am a bit stuck on how to work out the associations. It goes like this: User :has\_many vehicles User :has\_many l…

---

## [Uneditable text input field](https://www.ruby-forum.com/t/uneditable-text-input-field/187604)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 3\
**Last updated:** [April 26, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/uneditable-text-input-field/187604 "2010-04-26T22:47:46Z")

</div>

Does anyone know if it is possible to create an uneditable text input field using the form tag helpers?

---

## [Making a generic comment model](https://www.ruby-forum.com/t/making-a-generic-comment-model/184820)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [March 9, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/making-a-generic-comment-model/184820 "2010-03-09T13:50:37Z")

</div>

I have a Comment model obviously to make comments. I have also a Person and Family class and I want to make comments on bother a person and a family. How can I set this up. I want to use the same generic comments tabl…

---

## [Not sure if it's passing to the proxy properly](https://www.ruby-forum.com/t/not-sure-if-its-passing-to-the-proxy-properly/182959)

<div class="topic-metadata">

**Author:** [@James\_Matthews](https://www.ruby-forum.com/u/James_Matthews)\
**Replies:** 3\
**Last updated:** [February 5, 2010, 10:57am UTC](https://www.ruby-forum.com/t/not-sure-if-its-passing-to-the-proxy-properly/182959 "2010-02-05T10:57:08Z")

</div>

Hi, I am passing my requests like this if ( -f $request\_filename){ expires 30d; break; } proxy\_pass http://127.0.0.1:20000; However Apache is still serving everything (images included). How can I get it …

---

## [Weird POST/PUT behavior](https://www.ruby-forum.com/t/weird-post-put-behavior/181438)

<div class="topic-metadata">

**Author:** [@Curtis\_C](https://www.ruby-forum.com/u/Curtis_C)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/weird-post-put-behavior/181438 "2010-01-12T18:03:37Z")

</div>

I used the “Cleaning Up Controllers with Postback Actions” recipe from Rails Recipes. Basically you replace all the edit/new/update/create methods with one method that looks like: def edit @recipe = Recipe.find\_by\_id…

---

## [Simple Activity Stream](https://www.ruby-forum.com/t/simple-activity-stream/179543)

<div class="topic-metadata">

**Author:** [@bdmcnitt](https://www.ruby-forum.com/u/bdmcnitt)\
**Replies:** 3\
**Last updated:** [November 27, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/simple-activity-stream/179543 "2009-11-27T23:15:51Z")

</div>

Hey all, I was wondering if anyone in here has an easy way to make a simple activity stream. I understand the concepts around it, but haven’t been able to get my code right. From what I understand, all the stream is a …

---

## [Changing a script into a database migration](https://www.ruby-forum.com/t/changing-a-script-into-a-database-migration/174999)

<div class="topic-metadata">

**Author:** [@Fifigyuri](https://www.ruby-forum.com/u/Fifigyuri)\
**Replies:** 3\
**Last updated:** [September 5, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/changing-a-script-into-a-database-migration/174999 "2009-09-05T19:05:38Z")

</div>

Hi, I have a little dilemma where and how to place a script in my rails application. I work on a reimplementation and the original database structure is changed. The old data needs to be migrated into a new schema. …

---

## [Showing dot each second until the script ends](https://www.ruby-forum.com/t/showing-dot-each-second-until-the-script-ends/174136)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 3\
**Last updated:** [August 21, 2009, 9:53am UTC](https://www.ruby-forum.com/t/showing-dot-each-second-until-the-script-ends/174136 "2009-08-21T09:53:41Z")

</div>

I have a ruby script, which takes about 20 seconds to execute. I want to show a dot (.) sign each second. I think I need to use “sleep” method and a loop, but I don’t know how to add the functionality to my script. A…

---

## [Quicktime Movie from Hard Disk](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 3\
**Last updated:** [July 15, 2009, 10:01am UTC](https://www.ruby-forum.com/t/quicktime-movie-from-hard-disk/171681 "2009-07-15T10:01:02Z")

</div>

Hi there, i want to embed a Quicktime-Movie on my Page. I use the following code: Getting the file by an internet-adress erverything is fine, but it doesn’t apply by using the path from my hard-disk. Is their a sp…

---

## [DRY way of updating flash in AJAX](https://www.ruby-forum.com/t/dry-way-of-updating-flash-in-ajax/171966)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/dry-way-of-updating-flash-in-ajax/171966 "2009-07-13T22:07:53Z")

</div>

At this moment I’m implementing errors for my application. I have created a div for notices and warnings. The application only does AJAX requests, so it updates both flashes every time a request is made by the user. A…

---

## [Without the magical id column in table](https://www.ruby-forum.com/t/without-the-magical-id-column-in-table/160519)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 3\
**Last updated:** [February 19, 2009, 5:22am UTC](https://www.ruby-forum.com/t/without-the-magical-id-column-in-table/160519 "2009-02-19T05:22:47Z")

</div>

Dear all In rails, the are some magical column such as id, created\_at, updated\_at can make things easier. However, within my organization, due to whatever reason, the data type identity is not allowed to use. So, the…

---

## [Error on RoR on Linux](https://www.ruby-forum.com/t/error-on-ror-on-linux/149014)

<div class="topic-metadata">

**Author:** [@Gig](https://www.ruby-forum.com/u/Gig)\
**Replies:** 3\
**Last updated:** [September 19, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/error-on-ror-on-linux/149014 "2008-09-19T18:09:07Z")

</div>

Hi There, I have installed rails on my linux server. I want to write little apps or use stuff that is out there to improve our business flow. I have played a bit with php and can do some basic stuff on it. I bought th…

---

## [Help with this (somewhat simple) finder query](https://www.ruby-forum.com/t/help-with-this-somewhat-simple-finder-query/146072)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 3\
**Last updated:** [August 17, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/help-with-this-somewhat-simple-finder-query/146072 "2008-08-17T23:21:49Z")

</div>

I have this section in my site that I want to build, “Hot announcements” i.e. the latest 4 announcements that have lots of comments, ordered in a descending fashion. What I want to do is only get the top 4 from the da…

---

## [Sharing ruby code in view layout files](https://www.ruby-forum.com/t/sharing-ruby-code-in-view-layout-files/143281)

<div class="topic-metadata">

**Author:** [@amrita](https://www.ruby-forum.com/u/amrita)\
**Replies:** 3\
**Last updated:** [July 17, 2008, 12:25am UTC](https://www.ruby-forum.com/t/sharing-ruby-code-in-view-layout-files/143281 "2008-07-17T00:25:16Z")

</div>

Hi, I have a block of code that is used by the layout file (html.erb) of every view. What is the best way to include this piece of code in all layout files? Can I actually include a Ruby file in an html.erb file, ana…

---

## [POSTing in :admin namespace](https://www.ruby-forum.com/t/posting-in-admin-namespace/139863)

<div class="topic-metadata">

**Author:** [@goleksiak](https://www.ruby-forum.com/u/goleksiak)\
**Replies:** 3\
**Last updated:** [June 8, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/posting-in-admin-namespace/139863 "2008-06-08T19:47:50Z")

</div>

I have a RESTful :admin namespace which works fine except for UPDATE and CREATE actions for the controllers in the :admin space. I am sure it is a namespace/routing issue and have looked through a bunch of posts but c…

---

## [If Engines 1.2: Engines are dead why we still needed?](https://www.ruby-forum.com/t/if-engines-1-2-engines-are-dead-why-we-still-needed/139238)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 0\
**Last updated:** [June 2, 2008, 7:50am UTC](https://www.ruby-forum.com/t/if-engines-1-2-engines-are-dead-why-we-still-needed/139238 "2008-06-02T07:50:08Z")

</div>

Hi, From the article below “Engines 1.2: Engines are dead” http://rails-engines.org/news/2007/01/03/engines-are-dead-long-live-engines/ if engines are dead why we still need it? and how easy is it to convert current …

---

## [Method lookup from a Lambda](https://www.ruby-forum.com/t/method-lookup-from-a-lambda/136448)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [May 10, 2008, 3:05am UTC](https://www.ruby-forum.com/t/method-lookup-from-a-lambda/136448 "2008-05-10T03:05:20Z")

</div>

Hi all, I am not sure if my question is relatively obvious or instead arcane. Being new to ruby, I am trying out some of the metaprogramming features to generate sets of orthogonal methods for decoding various string …

---

## [Form POST method does not work!](https://www.ruby-forum.com/t/form-post-method-does-not-work/129003)

<div class="topic-metadata">

**Author:** [@Houman\_D](https://www.ruby-forum.com/u/Houman_D)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/form-post-method-does-not-work/129003 "2008-02-13T14:59:22Z")

</div>

Hello folks, In one of my forms, I have a wired problem, it does not post the form data to the rails from what I see in log file. It works locally but not after deployment to the server. All of other forms work but n…

---

## [RubyGems 1.0.1 in windows](https://www.ruby-forum.com/t/rubygems-1-0-1-in-windows/126265)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 19, 2008, 3:51am UTC](https://www.ruby-forum.com/t/rubygems-1-0-1-in-windows/126265 "2008-01-19T03:51:30Z")

</div>

i’m not sure where to report this. in windows XP, using the one-click installer to install either ruby 1.8.6-25 or 1.8.6-26 when you run gem update --system Time::parse doesn’t exist anymore, it works fine with rubyg…

---

## [CSRF protection](https://www.ruby-forum.com/t/csrf-protection/125938)

<div class="topic-metadata">

**Author:** [@robin](https://www.ruby-forum.com/u/robin)\
**Replies:** 3\
**Last updated:** [January 14, 2008, 10:49pm UTC](https://www.ruby-forum.com/t/csrf-protection/125938 "2008-01-14T22:49:57Z")

</div>

I am uncertain that the auth\_token provides any real protection against CSRF. At best, the auth\_token protects against a blind POST, but it does not provide security because an attack can get a valid auth\_token with a …

---

## [Cell in a laptop](https://www.ruby-forum.com/t/cell-in-a-laptop/125752)

<div class="topic-metadata">

**Author:** [@highprob](https://www.ruby-forum.com/u/highprob)\
**Replies:** 3\
**Last updated:** [January 11, 2008, 7:46pm UTC](https://www.ruby-forum.com/t/cell-in-a-laptop/125752 "2008-01-11T19:46:33Z")

</div>

Cell processor in a laptop at CES… http://crave.cnet.co.uk/video/0,139101587,49295004,00.htm Matt

---

## [Change string to date error](https://www.ruby-forum.com/t/change-string-to-date-error/124304)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 3\
**Last updated:** [December 27, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/change-string-to-date-error/124304 "2007-12-27T19:45:37Z")

</div>

i get the following error. wonder why irb(main):068:0\> @@config\[“date”\] =\> “27/12/2007” irb(main):069:0\> Time.parse(@@config\[“date”\]) ArgumentError: argument out of range from e:/ruby/lib/ruby/1.8/time.rb:184:in loc…

---

## [Datetime\_select and Active Record](https://www.ruby-forum.com/t/datetime-select-and-active-record/122932)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/datetime-select-and-active-record/122932 "2007-12-12T22:23:27Z")

</div>

If I have a form similar to the one below, and ‘start’ is a “string” field in my Database. Is there a way to take all of the date/time params and put them into ‘start’ without too much hacking? I would like this to …

---

## [Trouble overriding default accessor/mutator](https://www.ruby-forum.com/t/trouble-overriding-default-accessor-mutator/120595)

<div class="topic-metadata">

**Author:** [@mojojojo](https://www.ruby-forum.com/u/mojojojo)\
**Replies:** 0\
**Last updated:** [November 19, 2007, 12:37am UTC](https://www.ruby-forum.com/t/trouble-overriding-default-accessor-mutator/120595 "2007-11-19T00:37:40Z")

</div>

I have a database column storing a duration value as a number of seconds, but I’d like users to be able to see it and edit it as a time value. I am trying to override the default accessor/mutator for the attribute and…

---

## [Why not \[\] as ActiveRecord::Base class method?](https://www.ruby-forum.com/t/why-not-as-activerecord-base-class-method/117201)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [October 17, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/why-not-as-activerecord-base-class-method/117201 "2007-10-17T16:25:27Z")

</div>

Here’s a little method module ActiveRecord class Base def self. find(id) end end end So you can write MyModel\[12\] as an equivalent to MyModle.find(12) Just a little sugar, nothing else really. Is anyone aware…

---

## [Test not rolling back](https://www.ruby-forum.com/t/test-not-rolling-back/116627)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/test-not-rolling-back/116627 "2007-10-12T23:28:23Z")

</div>

For testing, I use: self.use\_transactional\_fixtures = true This should cause a ROLLBACK for each test case. If I run a single file, foo\_controller\_test.rb, it works as expected. I see BEGIN and ROLLBACK 8 times in t…

---

## [Ruby on Rails Tutor Needed in Los Angeles](https://www.ruby-forum.com/t/ruby-on-rails-tutor-needed-in-los-angeles/116961)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 2:07am UTC](https://www.ruby-forum.com/t/ruby-on-rails-tutor-needed-in-los-angeles/116961 "2007-10-12T02:07:51Z")

</div>

I learned tcl, html and sql to create a database-backed website (tightcircle.com, now defunct). That was fun. Now I want to learn Ruby on Rails. I wrote some decent Ruby programs in July, including one that scraped a …

---

## [\[ANN\] London Ruby User Group - 08th October, 2007](https://www.ruby-forum.com/t/ann-london-ruby-user-group-08th-october-2007/116112)

<div class="topic-metadata">

**Author:** [@Murray\_S](https://www.ruby-forum.com/u/Murray_S)\
**Replies:** 3\
**Last updated:** [October 2, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/ann-london-ruby-user-group-08th-october-2007/116112 "2007-10-02T16:12:46Z")

</div>

Hi all, The next London Ruby U. Group meeting is on this coming Monday: Date: October 10th Time: 6:30pm onwards Location: the Skills Matter offices at 1 Sekeford Street, EC1R 0BEL\[1\] Closest tube: Farringdon Agenda…

---

## [Running Ruby code from a ZIP file?](https://www.ruby-forum.com/t/running-ruby-code-from-a-zip-file/115827)

<div class="topic-metadata">

**Author:** [@rubymarc](https://www.ruby-forum.com/u/rubymarc)\
**Replies:** 3\
**Last updated:** [September 29, 2007, 3:59am UTC](https://www.ruby-forum.com/t/running-ruby-code-from-a-zip-file/115827 "2007-09-29T03:59:39Z")

</div>

I would like to run Ruby code from a ZIP file directly rather than extracting the contents of the ZIP into a folder and run from there. I am familiar with the work done by this person: Tar2RubyScript - A Tool for Dist…

---

## [DROP the :include key while generating the count query](https://www.ruby-forum.com/t/drop-the-include-key-while-generating-the-count-query/115398)

<div class="topic-metadata">

**Author:** [@SSnikhil\_gupte](https://www.ruby-forum.com/u/SSnikhil_gupte)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 9:38am UTC](https://www.ruby-forum.com/t/drop-the-include-key-while-generating-the-count-query/115398 "2007-09-25T09:38:34Z")

</div>

AFAIK, :include always results in a LEFT OUTER JOIN, which cannot impact the count and hence should be dropped from the count query since it slows down the query. For one LEFT OUTER JOINed object, on PostgreSQL 8.1, I…

---

## [\[rails\] validates\_presence\_of funzia ma senza errori](https://www.ruby-forum.com/t/rails-validates-presence-of-funzia-ma-senza-errori/112459)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/rails-validates-presence-of-funzia-ma-senza-errori/112459 "2007-09-07T15:59:16Z")

</div>

Salve! Sto costruendo la mia prima applicazione (di test) in Rails. Ho una tabella (in sqlite3) con 2 colonne: name e description. Ho un form (http://localhost:3000/formtest/admin) che richiama un’azione ‘addEntry’ (h…

---

## [Expand Active Record](https://www.ruby-forum.com/t/expand-active-record/113775)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 3\
**Last updated:** [September 5, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/expand-active-record/113775 "2007-09-05T15:49:50Z")

</div>

Silly question, how do I expand (add a function to) Active Record for all of my models?

---

## [Anonymous modules have no name to be referenced by](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/113678)

<div class="topic-metadata">

**Author:** [@Korosu\_Itai](https://www.ruby-forum.com/u/Korosu_Itai)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/anonymous-modules-have-no-name-to-be-referenced-by/113678 "2007-09-04T13:08:46Z")

</div>

Hello! This is my first time with RoR and web development :stuck\_out\_tongue: I’m trying to run the “hello world” script from the book Agile Wev Development with Rails… I’ve created my “SayController”: class SayContro…

---

## [Ruby-debug vs. breakpoint](https://www.ruby-forum.com/t/ruby-debug-vs-breakpoint/112562)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 21, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/ruby-debug-vs-breakpoint/112562 "2007-08-21T17:26:00Z")

</div>

Okay, so it looks like getting the ole “breakpoint” working isn’t going to happen. Everyone seems to just push for making the switch over to “ruby-debug”. I’ve decided to go with the flow, but have to say that I fee…

---

## [How can i get data from .txt file and .xml file?](https://www.ruby-forum.com/t/how-can-i-get-data-from-txt-file-and-xml-file/107297)

<div class="topic-metadata">

**Author:** [@coolwong](https://www.ruby-forum.com/u/coolwong)\
**Replies:** 3\
**Last updated:** [June 20, 2007, 3:42pm UTC](https://www.ruby-forum.com/t/how-can-i-get-data-from-txt-file-and-xml-file/107297 "2007-06-20T15:42:40Z")

</div>

I have .txt file that is .xml format. i using require “rexml/document” and include REXML, but i don know how to get data from the .xml file.

---

## [Change location of Ruby installation](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937)

<div class="topic-metadata">

**Author:** [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 8:39am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937 "2007-05-24T08:39:03Z")

</div>

My local ruby installation is located in /usr/local/bin/ruby and my server’s installation is located in /usr/bin/ruby. It is a pain changing the location in dispatch.fcgi, dispatch.cgi, and dispatch.rb so I figure th…

---

## [RMagick on Media Temple (gs)](https://www.ruby-forum.com/t/rmagick-on-media-temple-gs/88073)

<div class="topic-metadata">

**Author:** [@Sean\_JSRucker](https://www.ruby-forum.com/u/Sean_JSRucker)\
**Replies:** 3\
**Last updated:** [April 15, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/rmagick-on-media-temple-gs/88073 "2007-04-15T23:58:14Z")

</div>

Does anyone have any experience getting RMagick up and running on a Media Temple (gs)? I’m still not sure if I need to build GraphicsMagick myself, and if so, how because I don’t have root access???

---

## [REST and nested resources more than one level?](https://www.ruby-forum.com/t/rest-and-nested-resources-more-than-one-level/90904)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 3, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/rest-and-nested-resources-more-than-one-level/90904 "2007-04-03T20:39:54Z")

</div>

Is it possible to nest a resource more than a single level? For example something like this: map.resources :articles do |article| article.resources :comments do |comment| comment.resources :foo end end – Sterling…

---

## [Can't upload certain files with file\_column](https://www.ruby-forum.com/t/cant-upload-certain-files-with-file-column/89402)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [March 20, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/cant-upload-certain-files-with-file-column/89402 "2007-03-20T16:47:18Z")

</div>

This is in a development environment. I can upload most pics but sometimes rails just craps out with: â€ Errno::ENOENT in ImagesController#newâ€ The file size or type doesn’t seem directly linked to this error. Wh…

---

## ["acts\_as\_field" behaviour for model function](https://www.ruby-forum.com/t/acts-as-field-behaviour-for-model-function/89309)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/acts-as-field-behaviour-for-model-function/89309 "2007-03-19T13:28:58Z")

</div>

Hi I want to create a model attribute that looks exactly like a db field but is infact the result of a model function. Example I have a user with name and surname. I want to be able to do @user.fullname which will …

---

## [A place to put common partial templates and RJS files?](https://www.ruby-forum.com/t/a-place-to-put-common-partial-templates-and-rjs-files/88847)

<div class="topic-metadata">

**Author:** [@PSSS\_S](https://www.ruby-forum.com/u/PSSS_S)\
**Replies:** 3\
**Last updated:** [March 15, 2007, 12:10am UTC](https://www.ruby-forum.com/t/a-place-to-put-common-partial-templates-and-rjs-files/88847 "2007-03-15T00:10:39Z")

</div>

Greetings, I have a partial template file (acutally, it is an RJS file but the same principle is in question here) which I wish to “share” between multiple controllers. Does anyone know where in the directory tree I …

---

## [Auth\_generator domains](https://www.ruby-forum.com/t/auth-generator-domains/85306)

<div class="topic-metadata">

**Author:** [@haze](https://www.ruby-forum.com/u/haze)\
**Replies:** 3\
**Last updated:** [February 14, 2007, 11:51am UTC](https://www.ruby-forum.com/t/auth-generator-domains/85306 "2007-02-14T11:51:31Z")

</div>

Im using the auth generator gem, and it works fine except for one thing. When I user @user.reload my domains for the users are changed do something else. From “USER,1” to “—USERS: 1” for example… Someone thet knows wh…

---

## [Is there a college textbook for Ruby?](https://www.ruby-forum.com/t/is-there-a-college-textbook-for-ruby/81106)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 3\
**Last updated:** [January 4, 2007, 3:38am UTC](https://www.ruby-forum.com/t/is-there-a-college-textbook-for-ruby/81106 "2007-01-04T03:38:12Z")

</div>

The Pragmatic Programmer’s “Programming Ruby” book is great, but I’m looking for something that is split up with questions and lessons and junk like that. You know how school textbooks are: they explain something, and…

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

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