# Rails

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

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

---

## [Nginx now in EPEL](https://www.ruby-forum.com/t/nginx-now-in-epel/113053)

<div class="topic-metadata">

**Author:** [@jeremy\_hinegardner](https://www.ruby-forum.com/u/jeremy_hinegardner)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/nginx-now-in-epel/113053 "2007-08-28T21:25:15Z")

</div>

Hi all, For those of you who use nginx in rails deployment with RHEL(4 or 5) based distributions you’ll be happy to know that nginx is now officially in EPEL (Extra Packages for Enterprise Linux). What this means is …

---

## [Can any one know that, how to do LDAP in ruby?](https://www.ruby-forum.com/t/can-any-one-know-that-how-to-do-ldap-in-ruby/113157)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/can-any-one-know-that-how-to-do-ldap-in-ruby/113157 "2007-08-28T21:17:34Z")

</div>

Can any one know that, how to do LDAP in ruby? please help me

---

## [Activerecord: detect if an association attribute has changed](https://www.ruby-forum.com/t/activerecord-detect-if-an-association-attribute-has-changed/112908)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/activerecord-detect-if-an-association-attribute-has-changed/112908 "2007-08-28T21:12:48Z")

</div>

Hi, just a quick question, cause so far I was nt able to find a nice and clean solution. Let s assume an apple belongs\_to a tree. Now I would like to be able to detect in the apple model that the tree has changed. …

---

## [RESTful Linking in to\_xml()](https://www.ruby-forum.com/t/restful-linking-in-to-xml/113201)

<div class="topic-metadata">

**Author:** [@Geoffrey\_W](https://www.ruby-forum.com/u/Geoffrey_W)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/restful-linking-in-to-xml/113201 "2007-08-28T21:09:46Z")

</div>

If I have a resource list, I’d ideally like that resource list to link to the resources. So, for example, if I have a list of Customers that can be retrieved via GET /customers.xml, I’d like it to come out something …

---

## [Foreign Keys and Testing](https://www.ruby-forum.com/t/foreign-keys-and-testing/113203)

<div class="topic-metadata">

**Author:** [@Alex\_Kroman](https://www.ruby-forum.com/u/Alex_Kroman)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/foreign-keys-and-testing/113203 "2007-08-28T20:57:59Z")

</div>

I recently started an application that is using foreign key constraints in the database. How do I get these constraints to be placed in the test database to ensure that my tests are running on the same schema that my…

---

## [Adding the / to the end of all urls](https://www.ruby-forum.com/t/adding-the-to-the-end-of-all-urls/113209)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/adding-the-to-the-end-of-all-urls/113209 "2007-08-28T20:40:06Z")

</div>

How would I make it so every page has the ending backslash in it? so something like http://localhost:3000/controller/action/

---

## [Kicking off external processes](https://www.ruby-forum.com/t/kicking-off-external-processes/113192)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/kicking-off-external-processes/113192 "2007-08-28T20:32:28Z")

</div>

I need to be able to kick off a (relatively) long running process that runs outside of the normal RoR queue. BackgrounDrb is out of the question pretty much because shared hosts are fond of killing it. I don’t neces…

---

## [Validates Uniqueness unless blank?](https://www.ruby-forum.com/t/validates-uniqueness-unless-blank/113200)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-unless-blank/113200 "2007-08-28T20:08:20Z")

</div>

Hopefully this is an easy question… I want to validate the uniqueness of a field, unless that field is blank… ie they didn’t put anything in for it… Any ideas? Thanks guys.

---

## [Reading kanji from email fixture](https://www.ruby-forum.com/t/reading-kanji-from-email-fixture/113204)

<div class="topic-metadata">

**Author:** [@robinr](https://www.ruby-forum.com/u/robinr)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/reading-kanji-from-email-fixture/113204 "2007-08-28T19:21:35Z")

</div>

Hi, I have to support kanji emails and my test rig uses def read\_fixture(action) IO.readlines("#{FIXTURES\_PATH}/mail\_forwarder/#{action}") end which bombs when I throw a raw kanji email at it, i get this: test/unit…

---

## [Related select form plugin problem](https://www.ruby-forum.com/t/related-select-form-plugin-problem/113207)

<div class="topic-metadata">

**Author:** [@P.F.Pluto](https://www.ruby-forum.com/u/P.F.Pluto)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/related-select-form-plugin-problem/113207 "2007-08-28T18:57:57Z")

</div>

I’m trying to use the dvisionfactory related select form plugin to display categories with dependent subcategories in select boxes in a form. I think I’m very close, but I can’t quite get it to work. This is my view: …

---

## [Link\_to problem with wrong quotation mark](https://www.ruby-forum.com/t/link-to-problem-with-wrong-quotation-mark/113199)

<div class="topic-metadata">

**Author:** [@AmundS](https://www.ruby-forum.com/u/AmundS)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/link-to-problem-with-wrong-quotation-mark/113199 "2007-08-28T18:16:47Z")

</div>

Hi, There is a problem with my link\_to and I can’t figure out what is wrong. I have this in my view.rhtml file: … \<% @games.each do |g| %\> \<%= link\_to g.name, {:action =\> 'show', :id =\> g.id } -%\> \<% end %\> ...…

---

## [Is STI the right way here?](https://www.ruby-forum.com/t/is-sti-the-right-way-here/113188)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/is-sti-the-right-way-here/113188 "2007-08-28T18:12:47Z")

</div>

I want to store information about links, podcasts, blogs, wikis … Each item will have a link, user\_id, created\_at, headline, description… additional a podcast item will have fields like filetype\_id, duration, mb…, blo…

---

## [Enormous LOG files](https://www.ruby-forum.com/t/enormous-log-files/113195)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/enormous-log-files/113195 "2007-08-28T17:57:07Z")

</div>

Hi! I just saw that my development.log file was 450 MB! Anything to do about this ? Is there a way to turn on rotating-logs? Thank you! david

---

## [Default values for table](https://www.ruby-forum.com/t/default-values-for-table/113186)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/default-values-for-table/113186 "2007-08-28T17:34:35Z")

</div>

I have a table called subscriptions with it’s respective model Subscription. Anytime I create a new entry for this table I would like to have a few default values set automatically for the columns: timestamp\_start and …

---

## ["getaddrinfo: Name or service not known" error. MySQL drive](https://www.ruby-forum.com/t/getaddrinfo-name-or-service-not-known-error-mysql-drive/75978)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/getaddrinfo-name-or-service-not-known-error-mysql-drive/75978 "2007-08-28T17:18:38Z")

</div>

Dear list: I have one app running merrily on a Linux box. I can run “rake migrate” on it with no trouble, start it, stop it, and restart it. I created a second app and uploaded it to the same box. Aside from the da…

---

## [Empty file\_column](https://www.ruby-forum.com/t/empty-file-column/113084)

<div class="topic-metadata">

**Author:** [@coolbox](https://www.ruby-forum.com/u/coolbox)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/empty-file-column/113084 "2007-08-28T16:53:33Z")

</div>

Hey guys, I am trying to create a helper to distinguish wether a field that employs the use of file\_colum is empty or not for the purpose of a users personal image. The reason that i am doing this is because when dis…

---

## [Strange behaviour in plain text email](https://www.ruby-forum.com/t/strange-behaviour-in-plain-text-email/113191)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/strange-behaviour-in-plain-text-email/113191 "2007-08-28T16:02:24Z")

</div>

Hi. I have a link to register with a token in a plain text email file. The link looks like this http://someurl/register?token=123456789 However, the link in the email looks like this http://someurl/register?token=3D…

---

## [Default value for date\_select?](https://www.ruby-forum.com/t/default-value-for-date-select/113189)

<div class="topic-metadata">

**Author:** [@Vaqas](https://www.ruby-forum.com/u/Vaqas)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/default-value-for-date-select/113189 "2007-08-28T16:00:24Z")

</div>

:start\_year =\> 1990 :end\_year =\> 2007 And I want to set 2000 as default year selected in drop down list…how can I do that?

---

## [Language code in the URL](https://www.ruby-forum.com/t/language-code-in-the-url/113185)

<div class="topic-metadata">

**Author:** [@steerio](https://www.ruby-forum.com/u/steerio)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/language-code-in-the-url/113185 "2007-08-28T15:51:23Z")

</div>

Cheers fellow developers, in our application we would like to include a language code in the URL’s of at least some resources, mainly for SEO reasons (Google should index several language versions of the same page so …

---

## [RESTful Application Design Question](https://www.ruby-forum.com/t/restful-application-design-question/113142)

<div class="topic-metadata">

**Author:** [@mledford](https://www.ruby-forum.com/u/mledford)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/restful-application-design-question/113142 "2007-08-28T15:08:17Z")

</div>

Hello all, I’m fairly new to Rails and decided I wanted to give it a go for a fairly simple internal application that I want to refine and use it as the building blocks for possible future applications. The applicati…

---

## [Getting all CHildren Acs\_as\_tree](https://www.ruby-forum.com/t/getting-all-children-acs-as-tree/113159)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 5\
**Last updated:** [August 28, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/getting-all-children-acs-as-tree/113159 "2007-08-28T14:59:08Z")

</div>

Hello, i want t know where can i foundd how to get all the childs from a user id, including all, recursivily. Regards,

---

## [Trouble starting Mongrel under user:group mongrel:mongrel](https://www.ruby-forum.com/t/trouble-starting-mongrel-under-user-group-mongrel-mongrel/113124)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/trouble-starting-mongrel-under-user-group-mongrel-mongrel/113124 "2007-08-28T14:19:34Z")

</div>

Hi! I’m trying to start mongrel, but this time as user mongrel: mongrel\_rails start --user mongrel --group mongrel Result is: \*\* Ruby version is not up-to-date; loading cgi\_multipart\_eof\_fix \*\* Starting Mongrel list…

---

## [Calendardateselect plugin](https://www.ruby-forum.com/t/calendardateselect-plugin/113184)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/calendardateselect-plugin/113184 "2007-08-28T14:19:28Z")

</div>

Hello all, i wanna use “calendardateselect” plugin in my code, I’m already installed it and add it to my page and it appears and everything is okay. but i need to use it in my form which save in database directly so …

---

## [Ajax question...need some help](https://www.ruby-forum.com/t/ajax-question-need-some-help/112361)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 2:13pm UTC](https://www.ruby-forum.com/t/ajax-question-need-some-help/112361 "2007-08-28T14:13:54Z")

</div>

hi everybody, how can i do something like this? i have a select with something to choose, when you choose one of them the select must be reload with new records, until the records are finished (2 or 3 levels)…i think …

---

## [Reconstructing model objects from XML](https://www.ruby-forum.com/t/reconstructing-model-objects-from-xml/113171)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 11:19am UTC](https://www.ruby-forum.com/t/reconstructing-model-objects-from-xml/113171 "2007-08-28T11:19:40Z")

</div>

Hi I’m using to\_xml to provide XML export of model objects. I’m looking for a simple solution to implement the reverse, so that I can reconstruct the model objects from just the XML. Using Hash.from\_xml I can parse …

---

## [Reconstructing model objects from XML](https://www.ruby-forum.com/t/reconstructing-model-objects-from-xml/113170)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 11:17am UTC](https://www.ruby-forum.com/t/reconstructing-model-objects-from-xml/113170 "2007-08-28T11:17:40Z")

</div>

Hi I’m using to\_xml to provide XML export model objects. I’m looking for a simple solution to implement the reverse, so that I can reconstruct the model objects from the XML. Using Hash.from\_xml I can parse the XML …

---

## [Index word and pdf documents for full-text search](https://www.ruby-forum.com/t/index-word-and-pdf-documents-for-full-text-search/113131)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 11:14am UTC](https://www.ruby-forum.com/t/index-word-and-pdf-documents-for-full-text-search/113131 "2007-08-28T11:14:40Z")

</div>

Hello list, I’m about to start building a document catalog in Rails, and it is basically a catalog for .doc and .pdf documents. First, I would like to know if there is anything like lucene for Rails (or Ruby) - mayb…

---

## [Simple non-streaming download with different filename](https://www.ruby-forum.com/t/simple-non-streaming-download-with-different-filename/113163)

<div class="topic-metadata">

**Author:** [@phoenixy](https://www.ruby-forum.com/u/phoenixy)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 9:50am UTC](https://www.ruby-forum.com/t/simple-non-streaming-download-with-different-filename/113163 "2007-08-28T09:50:24Z")

</div>

Hi, I’m trying to make download available through Rails. I know there’s send\_data / send\_file method in rails, but they’re streaming download so that the process serving file is kept alive. Web hosting services usual…

---

## [Html escape with hash options](https://www.ruby-forum.com/t/html-escape-with-hash-options/113161)

<div class="topic-metadata">

**Author:** [@vishvanathan](https://www.ruby-forum.com/u/vishvanathan)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 9:24am UTC](https://www.ruby-forum.com/t/html-escape-with-hash-options/113161 "2007-08-28T09:24:21Z")

</div>

Hi, I have some problem in html\_escape function with hash option parameters. I hope that below syntax shows that hash options. In view.rhtml file. html\_escape(“Hello”,{:one = \> “true”, :two =\> “false” }) In applica…

---

## [Error in boot.rb after manual install](https://www.ruby-forum.com/t/error-in-boot-rb-after-manual-install/113155)

<div class="topic-metadata">

**Author:** [@swanand](https://www.ruby-forum.com/u/swanand)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 7:57am UTC](https://www.ruby-forum.com/t/error-in-boot-rb-after-manual-install/113155 "2007-08-28T07:57:11Z")

</div>

Hi! I installed Rails manually. Now it creates the app nicely but when i give any script/generate command, it halts with following error on command prompt ./script/…/config/boot.rb:29: undefined method gem' for mai…

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

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