# Rails

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

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

---

## [Date Validation for date\_select](https://www.ruby-forum.com/t/date-validation-for-date-select/162814)

<div class="topic-metadata">

**Author:** [@siddharth](https://www.ruby-forum.com/u/siddharth)\
**Replies:** 1\
**Last updated:** [March 14, 2009, 2:13am UTC](https://www.ruby-forum.com/t/date-validation-for-date-select/162814 "2009-03-14T02:13:54Z")

</div>

I am new to Rails and I am building this website based on the tutorials from a book called Railspace. My problem is I have a form page which accepts the date for a birthdate field \<div class="form\_row"\> \<label …

---

## [How to disable REST in Rails Applications](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 1:47am UTC](https://www.ruby-forum.com/t/how-to-disable-rest-in-rails-applications/162813 "2009-03-14T01:47:56Z")

</div>

Yes, I know that REST is the new way to program in Rails, but I really likes the old-fashion way, How can I disable REST so I can expose very easily methods in my controller? Thank you.

---

## [Is Mongrel dead?](https://www.ruby-forum.com/t/is-mongrel-dead/162679)

<div class="topic-metadata">

**Author:** [@tpm](https://www.ruby-forum.com/u/tpm)\
**Replies:** 7\
**Last updated:** [March 14, 2009, 1:29am UTC](https://www.ruby-forum.com/t/is-mongrel-dead/162679 "2009-03-14T01:29:49Z")

</div>

Is Mongrel dead? When I look at http://mongrel.rubyforge.org/wiki/News the latest news was from close to a year ago, when last version of Mongrel was released. A look at the tickets shows a rather sad picture with onl…

---

## [Using LIKE](https://www.ruby-forum.com/t/using-like/162785)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 6\
**Last updated:** [March 14, 2009, 12:13am UTC](https://www.ruby-forum.com/t/using-like/162785 "2009-03-14T00:13:10Z")

</div>

I’ve heard that using LIKE is very slow, but I see it being used a lot in examples, blogs etc. Is it really that bad? Since Rails doesn’t directly support Fulltext search, this is the easiest way to get searching done…

---

## [Interesting arrangement](https://www.ruby-forum.com/t/interesting-arrangement/162804)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 2\
**Last updated:** [March 14, 2009, 12:05am UTC](https://www.ruby-forum.com/t/interesting-arrangement/162804 "2009-03-14T00:05:34Z")

</div>

Hi all, I have been asked to develop an app which basically displays 100 images on a homepage arranged in a 10 x 10 grid. I have been using attachment\_fu to upload images although I hear great things about paperclip.…

---

## [Non-ActiveRecord observers](https://www.ruby-forum.com/t/non-activerecord-observers/162807)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/non-activerecord-observers/162807 "2009-03-13T23:06:37Z")

</div>

Hi, I’m integrating DataMapper in a Rails project, and I’m stumbling on some problems, which I knew would happen. One of them is that Rails just loads ActiveRecord’s observers, and that, of course, doesn’t work with …

---

## [Proble wuth form](https://www.ruby-forum.com/t/proble-wuth-form/162753)

<div class="topic-metadata">

**Author:** [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Replies:** 5\
**Last updated:** [March 13, 2009, 10:03pm UTC](https://www.ruby-forum.com/t/proble-wuth-form/162753 "2009-03-13T22:03:30Z")

</div>

Hi, forst at all sorry if my english is not the best. I have a problem with a form. I use REST routes, encuestas has\_many preguntas and preguntas belongs\_to encuesta and has\_many votados. I want to show in a form all …

---

## [Ruby capitalizing singular version of route](https://www.ruby-forum.com/t/ruby-capitalizing-singular-version-of-route/162781)

<div class="topic-metadata">

**Author:** [@blewis](https://www.ruby-forum.com/u/blewis)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-capitalizing-singular-version-of-route/162781 "2009-03-13T21:16:53Z")

</div>

Hi All, I’ve searched on this topic and can’t seem to find anyone results saying others have had the same problem, so hope someone here can help. if in routes, I map addresses: map.resources :addresses If get the fo…

---

## [Unit test model validations](https://www.ruby-forum.com/t/unit-test-model-validations/162524)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 8\
**Last updated:** [March 13, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/unit-test-model-validations/162524 "2009-03-13T20:24:58Z")

</div>

Hi, since I want to improve my Rails skills, I decided to start using the Rails testing framework. But I find it a bit hard to start testing model validations. Some of my tests don’t pass, but I know they must, since …

---

## [Tables and Join](https://www.ruby-forum.com/t/tables-and-join/162780)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/tables-and-join/162780 "2009-03-13T20:05:16Z")

</div>

I have two tables - Account and Enpseudo. My accounts table has an enpseudo\_id. I am trying to do an inner join on Enpseudo and keep getting this error: Association named ‘account’ was not found; perhaps you misspelle…

---

## [Which is the best way to do this? (about save time data)](https://www.ruby-forum.com/t/which-is-the-best-way-to-do-this-about-save-time-data/162691)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 5\
**Last updated:** [March 13, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/which-is-the-best-way-to-do-this-about-save-time-data/162691 "2009-03-13T18:53:07Z")

</div>

I want to save the time that is needed to complete a task I would like to save hours and minutes, after filling a form. So I need a select tag, but I am not able to use select\_time the way way I want. By default, it g…

---

## [Making the 'Back' link look the same as form.submit "Save"](https://www.ruby-forum.com/t/making-the-back-link-look-the-same-as-form-submit-save/162523)

<div class="topic-metadata">

**Author:** [@InventoryTrackers](https://www.ruby-forum.com/u/InventoryTrackers)\
**Replies:** 9\
**Last updated:** [March 13, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/making-the-back-link-look-the-same-as-form-submit-save/162523 "2009-03-13T18:14:47Z")

</div>

Does anybody know how Rails paints that cool blue box around the \<%= form.submit “Save” %\> In most of my forms I’ve got a “Back” link ( ex: \<%= link\_to ‘Back’, return\_path %\>. I’d like this link to share the same ‘lo…

---

## [Model belongs\_to](https://www.ruby-forum.com/t/model-belongs-to/162778)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/model-belongs-to/162778 "2009-03-13T17:58:19Z")

</div>

If I have in Order -model row: belongs\_to :customer it joins two tables and show customers information. But if I don’t need user informatioan, can I temporarily disable it and speed up “select”?

---

## [Rails Genarator Destroy](https://www.ruby-forum.com/t/rails-genarator-destroy/162775)

<div class="topic-metadata">

**Author:** [@kivanio](https://www.ruby-forum.com/u/kivanio)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/rails-genarator-destroy/162775 "2009-03-13T17:07:07Z")

</div>

Hi, I created a custom generator, but i won’t some files deleted when i call “script/destroy”. So, i’m trying undesrtand how don’t delete a specific file generated. When i call “script/destroy” It’s destroying everyt…

---

## [Pb rails require 'htmldoc'](https://www.ruby-forum.com/t/pb-rails-require-htmldoc/162773)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/pb-rails-require-htmldoc/162773 "2009-03-13T16:46:45Z")

</div>

Salut, J’ai un petit problÃ¨me (encore!!! Et oui…) cette fois-ci avec htmldoc. J’essaye de gÃ©nÃ©rer un fichier pdf avec rails (dans Netbeans 6.5) et j’obtiens toujours le message d’erreur suivant “no such file to lo…

---

## [Updating git-installed plugin](https://www.ruby-forum.com/t/updating-git-installed-plugin/162590)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/updating-git-installed-plugin/162590 "2009-03-13T16:37:29Z")

</div>

Hi guys, I have installed a git-hosted plugin with script/plugin. This plugin’s repository has been updated, and I want my local version to have these updates. ‘script/plugin update plugin\_name’ did not fetch any upd…

---

## [How to intregrate authorised.net with rails application](https://www.ruby-forum.com/t/how-to-intregrate-authorised-net-with-rails-application/162761)

<div class="topic-metadata">

**Author:** [@anshali](https://www.ruby-forum.com/u/anshali)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-intregrate-authorised-net-with-rails-application/162761 "2009-03-13T15:09:51Z")

</div>

Hi All, Please help me out for this issue Issue is:" how to integrate authorised.net with rails application: thanks

---

## [Helpers in Models](https://www.ruby-forum.com/t/helpers-in-models/162764)

<div class="topic-metadata">

**Author:** [@whitespace](https://www.ruby-forum.com/u/whitespace)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/helpers-in-models/162764 "2009-03-13T14:56:41Z")

</div>

I have an app that relies on a series of helpers to generate language specific text strings for all output. In one of my models I have to save one of these language specific strings to the table. Therefore I’ve start…

---

## [Suggest a hosting](https://www.ruby-forum.com/t/suggest-a-hosting/161077)

<div class="topic-metadata">

**Author:** [@larios](https://www.ruby-forum.com/u/larios)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/suggest-a-hosting/161077 "2009-03-13T14:34:25Z")

</div>

I am a novice to Rails production. Yet i had used http://eapps.com for hosting my first site which included 2 online quiz games. I bought their standard plan(160mb memory,2000mb disk space) which is the lowest in thei…

---

## [Select forms](https://www.ruby-forum.com/t/select-forms/162762)

<div class="topic-metadata">

**Author:** [@johnsonmlw](https://www.ruby-forum.com/u/johnsonmlw)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/select-forms/162762 "2009-03-13T14:30:32Z")

</div>

Perhaps I’m thinking a bit ‘php’ about this. What I’m trying to do doesn’t seem to be very ‘rails’ so I could use some guidance. I’d like to provide filters on data before rendering a table, and I’m thinking that sele…

---

## [Something crazy with rake test](https://www.ruby-forum.com/t/something-crazy-with-rake-test/162749)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/something-crazy-with-rake-test/162749 "2009-03-13T14:16:31Z")

</div>

Rake plugin tests are not run anymore (rake 0.8.4 or 0.8.3) ! rails foo cd foo script/generate plugin bar cd vendor/plugins/bar rake test No test is run, no output of the usual number of assertions, number of test…

---

## [Playing videos](https://www.ruby-forum.com/t/playing-videos/162741)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/playing-videos/162741 "2009-03-13T14:07:06Z")

</div>

My app needs to play videos. They are stored in a huge library and are all about 2mb in size. They are avi files. The user enters criteria which selects the appropriate videos and I need to offer a playlist. Playing …

---

## [How to store contents of table in Hash?](https://www.ruby-forum.com/t/how-to-store-contents-of-table-in-hash/162542)

<div class="topic-metadata">

**Author:** [@VrishaliSS](https://www.ruby-forum.com/u/VrishaliSS)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 1:49pm UTC](https://www.ruby-forum.com/t/how-to-store-contents-of-table-in-hash/162542 "2009-03-13T13:49:27Z")

</div>

Hi evrybody… I was storing the values in hash using… places = \[ {:address=\>‘555 Irving, San Francisco, CA’,:description=\>‘Irving’,:image=\>’/images/1.jpg’}, {:address=\>‘1401 Valencia St, San Francisco, CA’,:descript…

---

## [Storing and retrieving arrays in mysql using rails](https://www.ruby-forum.com/t/storing-and-retrieving-arrays-in-mysql-using-rails/162758)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/storing-and-retrieving-arrays-in-mysql-using-rails/162758 "2009-03-13T13:44:46Z")

</div>

Hi, I have a multiple checkbox of values 1 to 7 for selecting weekdays. What is the possibility of storing the selected weekdays array in mysql and what type of field should i create in the table for storing the arr…

---

## [Install rubygems](https://www.ruby-forum.com/t/install-rubygems/162550)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 12:56pm UTC](https://www.ruby-forum.com/t/install-rubygems/162550 "2009-03-13T12:56:40Z")

</div>

i install ruby 1.8.8 on ubuntu and when i install rubygem by code are: wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz tar xzvf rubygems-1.3.1.tgz cd rubygems-1.3.1 but i used this command is \> …

---

## [Routing and AJAX problem](https://www.ruby-forum.com/t/routing-and-ajax-problem/162471)

<div class="topic-metadata">

**Author:** [@Prateek](https://www.ruby-forum.com/u/Prateek)\
**Replies:** 3\
**Last updated:** [March 13, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/routing-and-ajax-problem/162471 "2009-03-13T12:50:48Z")

</div>

Hello, I am having a problem in using AJAX in Rails(I am trying for the first time), and I am pretty sure it is because of routing. This is my code http://pastie.org/412541 As far I knew the URL’s were supposed to be…

---

## [File\_tag and full file path](https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746)

<div class="topic-metadata">

**Author:** [@BoBKilla](https://www.ruby-forum.com/u/BoBKilla)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 11:39am UTC](https://www.ruby-forum.com/t/file-tag-and-full-file-path/162746 "2009-03-13T11:39:45Z")

</div>

I am using a file\_field\_tag and when I am getting the value on the controller, it only gives me the file name and not the file path. I really need the full file path, how can i do it ? I’ll give you a part of my code. …

---

## [Assert\_template :partial don't work](https://www.ruby-forum.com/t/assert-template-partial-dont-work/162739)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 1\
**Last updated:** [March 13, 2009, 11:09am UTC](https://www.ruby-forum.com/t/assert-template-partial-dont-work/162739 "2009-03-13T11:09:50Z")

</div>

Hi, following the documentation at http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html#M000543 assert\_template should accept :partial options eg. assert\_templace :partial =\> ‘\_foo’ B…

---

## [Error while installation of rails](https://www.ruby-forum.com/t/error-while-installation-of-rails/162744)

<div class="topic-metadata">

**Author:** [@sharon](https://www.ruby-forum.com/u/sharon)\
**Replies:** 2\
**Last updated:** [March 13, 2009, 11:03am UTC](https://www.ruby-forum.com/t/error-while-installation-of-rails/162744 "2009-03-13T11:03:22Z")

</div>

Hi, I get the below error while trying to install rails. Could you please help me out. I have installed the Ruby(v 1.8.6) and the setup gems(v 1.3.1) also. C:\\Ruby\>gem install rails ERROR: http://gems.rubyforge.or…

---

## [How to format the session debug information?](https://www.ruby-forum.com/t/how-to-format-the-session-debug-information/162742)

<div class="topic-metadata">

**Author:** [@leon](https://www.ruby-forum.com/u/leon)\
**Replies:** 0\
**Last updated:** [March 13, 2009, 10:41am UTC](https://www.ruby-forum.com/t/how-to-format-the-session-debug-information/162742 "2009-03-13T10:41:40Z")

</div>

Hi there, I want to get Rails dumps of the session on my pages by \<%= debug (session) %\> with Rails 2.2.2. But it returns a lot of information on my pages. It is un-readable. Can I format or filter the session debug …

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

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