# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1586

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

---

## [Value of text\_with\_auto\_complete\_field for field observer](https://www.ruby-forum.com/t/value-of-text-with-auto-complete-field-for-field-observer/122946)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [December 13, 2007, 2:30am UTC](https://www.ruby-forum.com/t/value-of-text-with-auto-complete-field-for-field-observer/122946 "2007-12-13T02:30:13Z")

</div>

I’m trying to use the results of an auto complete form in a field observer. The problem is the value of the field is just a select item in a UL. So if I have this: \<%= text\_field\_with\_auto\_complete :school, :name %\> …

---

## [Routes and controller question](https://www.ruby-forum.com/t/routes-and-controller-question/122776)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 13\
**Last updated:** [December 13, 2007, 12:52am UTC](https://www.ruby-forum.com/t/routes-and-controller-question/122776 "2007-12-13T00:52:30Z")

</div>

Hi, I uploaded my application to the web server and every thing is working fine besides the admin area I created. The directory’s structure is that all the pages that are controlled by an admin are inside “admin” dir…

---

## [Any experience using ruby-debug in Patrick Lenz book?](https://www.ruby-forum.com/t/any-experience-using-ruby-debug-in-patrick-lenz-book/122958)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 12:39am UTC](https://www.ruby-forum.com/t/any-experience-using-ruby-debug-in-patrick-lenz-book/122958 "2007-12-13T00:39:35Z")

</div>

I am new to Ruby on Rails and am working through Patrick Lenz book on building a rails application, which is very good by the way. I have gotten through the book with little problem until I reached chapter 11 on Debu…

---

## [Has\_many :through - to self, bi-directional](https://www.ruby-forum.com/t/has-many-through-to-self-bi-directional/122337)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [December 13, 2007, 12:23am UTC](https://www.ruby-forum.com/t/has-many-through-to-self-bi-directional/122337 "2007-12-13T00:23:26Z")

</div>

Hi, I’ve got a model (Feature) that is “related” to other Features. The name of the has\_many is “relations”. There is a join table called FeatureRelation, which holds a feature\_id and a related\_feature\_id. Something …

---

## [\[ADV\] New Ruby Pragmatic Studio](https://www.ruby-forum.com/t/adv-new-ruby-pragmatic-studio/122954)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [December 13, 2007, 12:22am UTC](https://www.ruby-forum.com/t/adv-new-ruby-pragmatic-studio/122954 "2007-12-13T00:22:01Z")

</div>

Hi Folks - Just a quick reminder before the end of the year… We have a new Ruby Studio coming up on February 27-29th, taught by Dave T. and Chad F… They’ll help you get up to speed on object-oriented programming wit…

---

## [Using RJS before a form element is changed](https://www.ruby-forum.com/t/using-rjs-before-a-form-element-is-changed/122761)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/using-rjs-before-a-form-element-is-changed/122761 "2007-12-12T23:58:06Z")

</div>

As mentioned in a previous thread, I’m testing RJS templates to see if they can help me meet some requirements for a project I’m about to start. The goal is to generate forms that use AJAX to help the user understand…

---

## [Rake fails](https://www.ruby-forum.com/t/rake-fails/122736)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/rake-fails/122736 "2007-12-12T23:43:19Z")

</div>

I don’t understand why the rake fails. More precisely, the rake succeeds, but reverting to version 0 fails and I don’t see why :frowning: thufir@arrakis ~/Desktop/predator-prey $ thufir@arrakis ~/Desktop/predator-pre…

---

## [Swap problems with mongrel](https://www.ruby-forum.com/t/swap-problems-with-mongrel/122699)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/swap-problems-with-mongrel/122699 "2007-12-12T23:43:09Z")

</div>

I have a Ubuntu linux setup with 512MB of RAM. We haven’t launched our site yet, so we only have about 100 unique visitors per day. Our site is very dynamic in nature (i.e. database driven). We are running Rails be…

---

## [Form\_tag and html id](https://www.ruby-forum.com/t/form-tag-and-html-id/122896)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/form-tag-and-html-id/122896 "2007-12-12T23:26:15Z")

</div>

I’m using Rails 1.2.3 and have been wrestling with the form\_tag helper trying to get the HTML id for the form set. My form\_tag initially looked like this: \<% form\_tag :controller =\> ‘my\_controller’, :action =\> ‘my\_act…

---

## [Radio button with multiple columns](https://www.ruby-forum.com/t/radio-button-with-multiple-columns/122947)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/radio-button-with-multiple-columns/122947 "2007-12-12T23:10:59Z")

</div>

Hello, I have a normal has\_many :through setup that i need to setup with checkboxes and looking for the best approach. user has\_many :entries has\_many :contests, :through =\> :entries contest has\_many :entries ent…

---

## [Processing a CSV file to validity before putting it in the t](https://www.ruby-forum.com/t/processing-a-csv-file-to-validity-before-putting-it-in-the-t/91950)

<div class="topic-metadata">

**Author:** [@Carl\_Wright](https://www.ruby-forum.com/u/Carl_Wright)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/processing-a-csv-file-to-validity-before-putting-it-in-the-t/91950 "2007-12-12T22:57:06Z")

</div>

I’m developing a RoR application that uploads a CSV file, then validates the entries and allows the user to correct columns from the CSV file. When everything is valid, the user may post the uploaded data to the datab…

---

## [Using url\_for and expire\_page in console and runner (a howto)](https://www.ruby-forum.com/t/using-url-for-and-expire-page-in-console-and-runner-a-howto/122948)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/using-url-for-and-expire-page-in-console-and-runner-a-howto/122948 "2007-12-12T22:51:36Z")

</div>

Hi all - I recently had the need to use url\_for and expire\_page via script/runner. After some googling figured it out and thought I’d write it up so the next person doesn’t have to google quite so much. http://www.…

---

## [Passing Values Between Action Methods](https://www.ruby-forum.com/t/passing-values-between-action-methods/122910)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/passing-values-between-action-methods/122910 "2007-12-12T22:45:44Z")

</div>

I have 2 action methods, action1 and action2. action1 is always run before action2. Short of using the dreaded global variable, how can I access a value developed in action1 from action2? Thanks for any input. …

---

## [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 …

---

## [Displaying Data by Month](https://www.ruby-forum.com/t/displaying-data-by-month/122900)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/displaying-data-by-month/122900 "2007-12-12T22:17:32Z")

</div>

Does anyone know the best way to display a list of rows grouped by month in a view? An example would be: December Dec. 15, Saturday at 8:30pm: Some Field Dec. 9, Sunday at 8:30pm: Some Field Dec. 5, Wednesday at 8:…

---

## [Helpers for common Controller code](https://www.ruby-forum.com/t/helpers-for-common-controller-code/122816)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 8\
**Last updated:** [December 12, 2007, 10:14pm UTC](https://www.ruby-forum.com/t/helpers-for-common-controller-code/122816 "2007-12-12T22:14:32Z")

</div>

Another newbie question: I want to keep business logic out of my controller. For example I had a routine that did a slightly complicated computation and it didn’t seem to belong in the controller. But the calculation …

---

## [Datetime question](https://www.ruby-forum.com/t/datetime-question/121741)

<div class="topic-metadata">

**Author:** [@wsakundi](https://www.ruby-forum.com/u/wsakundi)\
**Replies:** 10\
**Last updated:** [December 12, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/datetime-question/121741 "2007-12-12T22:09:45Z")

</div>

Hi there. I’m just learning so bear with me. I have a column in my database for date\_created and it shows in the view as Wed Nov 28 18:05:00 -0600 2007. I don’t really want it to display like that so is there a way to…

---

## [Multiple Scaffold](https://www.ruby-forum.com/t/multiple-scaffold/122813)

<div class="topic-metadata">

**Author:** [@dyavorski](https://www.ruby-forum.com/u/dyavorski)\
**Replies:** 4\
**Last updated:** [December 12, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/multiple-scaffold/122813 "2007-12-12T21:52:07Z")

</div>

Hi ALL I am new to the Rails mechanism and so far what I did some tutorial apps in ROR. On of those contained a practice of the “Scaffold” utility, And used the “scaffold” to manage a table in an admin section. This …

---

## [Format time as "\_\_\_\_\_\_ ago"](https://www.ruby-forum.com/t/format-time-as-ago/122773)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 9:47pm UTC](https://www.ruby-forum.com/t/format-time-as-ago/122773 "2007-12-12T21:47:24Z")

</div>

a lot of bloggy sites display time as this post was made X hours / X days / X months ago. this is so popular I’m sure RoR has a built in lib to do it, but I can’t figure it out, searching google and the docs. there’…

---

## [Rake routes shows paths, but views can't find them](https://www.ruby-forum.com/t/rake-routes-shows-paths-but-views-cant-find-them/122934)

<div class="topic-metadata">

**Author:** [@retcheto](https://www.ruby-forum.com/u/retcheto)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/rake-routes-shows-paths-but-views-cant-find-them/122934 "2007-12-12T21:43:38Z")

</div>

I froze to Rails 2.0.1 and I’m creating a simple nested blog with map.resources :blogs do |blog| blog.resources :posts end in routes.rb If I run rake routes, it shows a route to blog\_posts blog\_posts GET /blogs/:bl…

---

## [Overriding shipped rails.mo file in gettext 1.10](https://www.ruby-forum.com/t/overriding-shipped-rails-mo-file-in-gettext-1-10/122933)

<div class="topic-metadata">

**Author:** [@spiceee](https://www.ruby-forum.com/u/spiceee)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/overriding-shipped-rails-mo-file-in-gettext-1-10/122933 "2007-12-12T21:36:22Z")

</div>

Hey, There are some annoying errors in the shipped pt\_BR rails.mo and I’m trying to write my own. Makemo writes my own rails.mo to my locale/pt\_BR dir but there’s no way it overrides the original rails.mo, not even w…

---

## [Hash as arguments of a method call](https://www.ruby-forum.com/t/hash-as-arguments-of-a-method-call/122911)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/hash-as-arguments-of-a-method-call/122911 "2007-12-12T21:27:35Z")

</div>

Hi all, I’m writing a new class, and in the initialize I have: class Statement def initialize(\*args) @args = args\[0\] @args\[:start\_at\] = 30.days.ago if @args\[:start\_at\].nil? @args\[:finish\_at\] = Date.today if @args\[:…

---

## [Problems with engine loading and routes w\\ Rails 2.0](https://www.ruby-forum.com/t/problems-with-engine-loading-and-routes-w-rails-2-0/122833)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/problems-with-engine-loading-and-routes-w-rails-2-0/122833 "2007-12-12T20:57:43Z")

</div>

I’m trying to map.from\_plugin :my\_engine in the routes.rb for my application The problem appears to be that at the time routes.rb has been processed the Engines plugin itself is loaded but my Engine has not. On line…

---

## [Rexml - please help](https://www.ruby-forum.com/t/rexml-please-help/122734)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/rexml-please-help/122734 "2007-12-12T20:32:50Z")

</div>

Hi ppl, I’m new to this forum and also to ruby. My question is I have a rails project and i want to load some data from an xml file and to write it. for that i have wrote a 1 model (Oxml) 2 controller (XmlTestContro…

---

## [Installing older rails](https://www.ruby-forum.com/t/installing-older-rails/122903)

<div class="topic-metadata">

**Author:** [@railsrock](https://www.ruby-forum.com/u/railsrock)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/installing-older-rails/122903 "2007-12-12T20:32:12Z")

</div>

I would like to install the older version of rails instead of the one released last week under windows-installer. when I typed gem install rails --remote, the newer version is installed and some of the old methods I w…

---

## [\[JOB\] Freelance rails developer wanted](https://www.ruby-forum.com/t/job-freelance-rails-developer-wanted/122901)

<div class="topic-metadata">

**Author:** [@hadley](https://www.ruby-forum.com/u/hadley)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/job-freelance-rails-developer-wanted/122901 "2007-12-12T20:22:33Z")

</div>

We’re looking for a freelance rails developer to help us out with the development of mathpeople.statbib.org, a name disambiguation and connection service for mathematics and statistics (and eventually other fields, to…

---

## [Scaffold generation](https://www.ruby-forum.com/t/scaffold-generation/122729)

<div class="topic-metadata">

**Author:** [@resident\_moron](https://www.ruby-forum.com/u/resident_moron)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/scaffold-generation/122729 "2007-12-12T20:18:36Z")

</div>

I’m trying to get a handle on rails 2.0. Once upon a time… script/generate model book edit migration t.column :title, :string t.column :description, :string rake db:migrate script/generate scaffold book th…

---

## [Space Character in Textbox](https://www.ruby-forum.com/t/space-character-in-textbox/122893)

<div class="topic-metadata">

**Author:** [@kdclark](https://www.ruby-forum.com/u/kdclark)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/space-character-in-textbox/122893 "2007-12-12T19:46:26Z")

</div>

Hello, Background: Development is done using InstantRails on a Windows Machine and MySQL Database. Production environment is a Debian server running a mongrel cluster w/ apache, connected to a MSSQL 2005 database se…

---

## [ActiveRecord::Base.connection =\> duplicate values](https://www.ruby-forum.com/t/activerecord-base-connection-duplicate-values/122887)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/activerecord-base-connection-duplicate-values/122887 "2007-12-12T19:26:34Z")

</div>

Hello, I’m trying to implement a free SQL sender, and I’m using this control: def expert\_mode\_result c = ActiveRecord::Base.connection @result = c.execute(params\[:expert\_command\]) render :partial =\> "expert\_mode\_resul…

---

## [Noob: No output when running Ruby command](https://www.ruby-forum.com/t/noob-no-output-when-running-ruby-command/122869)

<div class="topic-metadata">

**Author:** [@vin03](https://www.ruby-forum.com/u/vin03)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/noob-no-output-when-running-ruby-command/122869 "2007-12-12T19:25:00Z")

</div>

Hi, There is not output when I run the command: ruby filename.rb the system seems to accept the command but it does not produce any output (and does not produce any error message either) The contents of filename.rb …

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1585)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1587)
