# Rails

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

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

---

## [Custom pre-validation](https://www.ruby-forum.com/t/custom-pre-validation/124786)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [January 3, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/custom-pre-validation/124786 "2008-01-03T14:02:06Z")

</div>

Hi. I’m trying to do a pre-validation in a form. What I need is to do some validations, then, depending on this validation, ask a couple of questions to the user and to process the form, including the user’s answers. …

---

## [Import outlook addresses](https://www.ruby-forum.com/t/import-outlook-addresses/124877)

<div class="topic-metadata">

**Author:** [@thorsten](https://www.ruby-forum.com/u/thorsten)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/import-outlook-addresses/124877 "2008-01-03T13:38:19Z")

</div>

i try to import some address data from outlook. so far i found that it’s not possible to use the .pst file format and we have to use one of the export formats like csv or txt does anybody know about plugins or articl…

---

## [Mongrel + Rails logging problem](https://www.ruby-forum.com/t/mongrel-rails-logging-problem/123612)

<div class="topic-metadata">

**Author:** [@Alison](https://www.ruby-forum.com/u/Alison)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 11:54am UTC](https://www.ruby-forum.com/t/mongrel-rails-logging-problem/123612 "2008-01-03T11:54:04Z")

</div>

Hi, I’m currently using Mongrel 1.1.1, Rails 1.2.5, and Ruby 1.8.5 for my webapp on RHEL 5. When I had my app running on my windows machine, I could see all the SQL statements along with other information in develop…

---

## [Dynamicaly generate routes with a given subdomain?](https://www.ruby-forum.com/t/dynamicaly-generate-routes-with-a-given-subdomain/124772)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 11:13am UTC](https://www.ruby-forum.com/t/dynamicaly-generate-routes-with-a-given-subdomain/124772 "2008-01-03T11:13:36Z")

</div>

Hi, my problem seems simple but I don’t manage to find a simple solution… I would like my URLs to look like : http://city.server.com/building/building\_name example : http://paris.server.com/building/louvre My route…

---

## [Cannot associate new records](https://www.ruby-forum.com/t/cannot-associate-new-records/124869)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 11:00am UTC](https://www.ruby-forum.com/t/cannot-associate-new-records/124869 "2008-01-03T11:00:44Z")

</div>

After looking at a list of feeds, clicking on a specific feed gives an interface to assign a tag to that feed with checkboxes. So far so good, but http://localhost:3000/feeds/add\_some\_tags/1 gives: ActiveRecord::HasM…

---

## [Discussion on Frequently Asked Questions](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/124856)

<div class="topic-metadata">

**Author:** [@Mike\_Travers](https://www.ruby-forum.com/u/Mike_Travers)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 8:11am UTC](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/124856 "2008-01-03T08:11:04Z")

</div>

Emacs works great once you get the right modes installed. It’s hard to find them – Ruby mode is part of the Ruby source tree: Add specialized modes for Rails.

---

## [Date picker using Jquery](https://www.ruby-forum.com/t/date-picker-using-jquery/124640)

<div class="topic-metadata">

**Author:** [@manjularaj](https://www.ruby-forum.com/u/manjularaj)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 6:45am UTC](https://www.ruby-forum.com/t/date-picker-using-jquery/124640 "2008-01-03T06:45:23Z")

</div>

Hi, I’m using rails 2.0 and trying to implement date picker using jquery. We installed all the required gems. I’m writing the code as like below In Layout in body I’m not getting any errors but this is not wo…

---

## [Weird session behavior](https://www.ruby-forum.com/t/weird-session-behavior/124373)

<div class="topic-metadata">

**Author:** [@jgoi](https://www.ruby-forum.com/u/jgoi)\
**Replies:** 7\
**Last updated:** [January 3, 2008, 6:09am UTC](https://www.ruby-forum.com/t/weird-session-behavior/124373 "2008-01-03T06:09:32Z")

</div>

Hey guys, I’m having a hard time with some weird behavior in my application. Every time I logout a particular has\_many relationship seems broken. When I first login, my relationship user.profile.comments works as exp…

---

## [File\_column plugin](https://www.ruby-forum.com/t/file-column-plugin/124851)

<div class="topic-metadata">

**Author:** [@clouder](https://www.ruby-forum.com/u/clouder)\
**Replies:** 0\
**Last updated:** [January 3, 2008, 4:46am UTC](https://www.ruby-forum.com/t/file-column-plugin/124851 "2008-01-03T04:46:34Z")

</div>

I’m using file\_column to allow image uploads to a site. Model Version 1 class Cimage \< ActiveRecord::Base belongs\_to :car file\_column :image validates\_presence\_of :image validates\_presence\_of :text validates\_file\_…

---

## [How to determine which gems an app depends on?](https://www.ruby-forum.com/t/how-to-determine-which-gems-an-app-depends-on/124843)

<div class="topic-metadata">

**Author:** [@bbebop](https://www.ruby-forum.com/u/bbebop)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 4:33am UTC](https://www.ruby-forum.com/t/how-to-determine-which-gems-an-app-depends-on/124843 "2008-01-03T04:33:40Z")

</div>

I have an app for which script/server crashes on startup, probably because the platform doesn’t have one or more required gems installed. I’m wondering if there’s an easy way to determine which gems are required or m…

---

## [Extra quotes when substittuting for ? in find\_by\_sql](https://www.ruby-forum.com/t/extra-quotes-when-substittuting-for-in-find-by-sql/124831)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 3:29am UTC](https://www.ruby-forum.com/t/extra-quotes-when-substittuting-for-in-find-by-sql/124831 "2008-01-03T03:29:21Z")

</div>

Hi, I’m trying to select items created within a certain date range, but seem to keep getting a small syntax error - extra single quotes - whenever I try to use the built in range helper. This works fine. @temp\_top\_t…

---

## [Gem question](https://www.ruby-forum.com/t/gem-question/124848)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 3:18am UTC](https://www.ruby-forum.com/t/gem-question/124848 "2008-01-03T03:18:15Z")

</div>

I was wondering if anyone knows of a resource that lists all available gems and what they do. It would be helpful to me to have a resource I can browse for this information. Recently someone helped me by using the l…

---

## [Website Examples/Is it that easy?](https://www.ruby-forum.com/t/website-examples-is-it-that-easy/124803)

<div class="topic-metadata">

**Author:** [@rnew](https://www.ruby-forum.com/u/rnew)\
**Replies:** 6\
**Last updated:** [January 3, 2008, 2:57am UTC](https://www.ruby-forum.com/t/website-examples-is-it-that-easy/124803 "2008-01-03T02:57:12Z")

</div>

Hi Folks, Does anyone have a list of websites developed with RoR? I just read some discouraging real world news from ZMag who tried to redo their website with RoR. I think their previous site was done in PHP. See qu…

---

## [Rails for Change](https://www.ruby-forum.com/t/rails-for-change/124841)

<div class="topic-metadata">

**Author:** [@Riche](https://www.ruby-forum.com/u/Riche)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 2:25am UTC](https://www.ruby-forum.com/t/rails-for-change/124841 "2008-01-03T02:25:03Z")

</div>

Hi Folks, I started a meetup here in DC called Rails for Change. Since I an VERY new to Rails, I wanted get people together are also interested in learning Rails, learn from each other and show off individual project…

---

## [Assert\_recognizes with requirements =\> {:method =\> something}](https://www.ruby-forum.com/t/assert-recognizes-with-requirements-method-something/124837)

<div class="topic-metadata">

**Author:** [@gcnovus](https://www.ruby-forum.com/u/gcnovus)\
**Replies:** 1\
**Last updated:** [January 3, 2008, 1:21am UTC](https://www.ruby-forum.com/t/assert-recognizes-with-requirements-method-something/124837 "2008-01-03T01:21:20Z")

</div>

I’m having trouble with my routing, and was wondering if anyone else had seen something similar. I’ve got these two routes: map.login ‘/login’, :controller =\> ‘sessions’, :action =\> ‘new’, :requirements =\> { :method …

---

## [Has\_many\_and\_belongs\_to preloads all data -\> how can I do to not to do it?](https://www.ruby-forum.com/t/has-many-and-belongs-to-preloads-all-data-how-can-i-do-to-not-to-do-it/124816)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 1:14am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-preloads-all-data-how-can-i-do-to-not-to-do-it/124816 "2008-01-03T01:14:54Z")

</div>

Hello, I have two tables: class Person \< ActiveRecord::Base has\_and\_belongs\_to\_many :projects end class Project \< ActiveRecord::Base has\_and\_belongs\_to\_many :people end Then I want to get people wor…

---

## [Did DHH have a suit on?](https://www.ruby-forum.com/t/did-dhh-have-a-suit-on/124690)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 26\
**Last updated:** [January 3, 2008, 12:35am UTC](https://www.ruby-forum.com/t/did-dhh-have-a-suit-on/124690 "2008-01-03T00:35:08Z")

</div>

So I’m wondering about the origin of “ActiveRecord” and “ActionPack” and the like in Rails. I’ve always thought that perhaps DHH found himself in a suit one day (maybe he had to attend a friend’s wedding or something)…

---

## [Using DOS Command line to install scaffolding](https://www.ruby-forum.com/t/using-dos-command-line-to-install-scaffolding/124751)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 2\
**Last updated:** [January 3, 2008, 12:23am UTC](https://www.ruby-forum.com/t/using-dos-command-line-to-install-scaffolding/124751 "2008-01-03T00:23:54Z")

</div>

I am trying to install scaffolding plugin using: script/plugin install scaffolding on DOS Command line but keep getting an error:‘script’ is not recognized as an internal or external command, operable error… Can some…

---

## [Installing SQL Server Adapter as Gem for Rails 2.0](https://www.ruby-forum.com/t/installing-sql-server-adapter-as-gem-for-rails-2-0/123086)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 12:16am UTC](https://www.ruby-forum.com/t/installing-sql-server-adapter-as-gem-for-rails-2-0/123086 "2008-01-03T00:16:18Z")

</div>

Hello, I just installed the SQL Server Adapter Gem from gems.rubyonrails.org for my new Rails 2.0 project: gem install activerecord-sqlserver-adapter --source=http:// gems.rubyonrails.org When I attempt to use it, I…

---

## [Mysql gem causing migrations to fail :P](https://www.ruby-forum.com/t/mysql-gem-causing-migrations-to-fail-p/124774)

<div class="topic-metadata">

**Author:** [@Collin\_VanDyck](https://www.ruby-forum.com/u/Collin_VanDyck)\
**Replies:** 3\
**Last updated:** [January 3, 2008, 12:11am UTC](https://www.ruby-forum.com/t/mysql-gem-causing-migrations-to-fail-p/124774 "2008-01-03T00:11:34Z")

</div>

I have run into a weird problem recently after I upgraded my ruby installation from 1.8.5 to 1.8.6. Every time I run a migration on my production machine, the migration fails with a segmentation fault: $ rake db:migr…

---

## [Out of memory rendering large DB field](https://www.ruby-forum.com/t/out-of-memory-rendering-large-db-field/124835)

<div class="topic-metadata">

**Author:** [@Justin\_Wienckowski](https://www.ruby-forum.com/u/Justin_Wienckowski)\
**Replies:** 0\
**Last updated:** [January 2, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/out-of-memory-rendering-large-db-field/124835 "2008-01-02T23:56:20Z")

</div>

Hey all, I seem to recall a discussion about possible solutions to this type of problem, but I’ve be unable to locate them in the archives. One page of our rails application displays a very large DB field (of XML dat…

---

## [Using another Model](https://www.ruby-forum.com/t/using-another-model/124788)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 4\
**Last updated:** [January 2, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/using-another-model/124788 "2008-01-02T23:54:34Z")

</div>

Can I access any model from any controller or only the model corresponding to the controller? I’m aware that I can have class LibraryController \< AC:B book = Book.new end but could that be book = Book.find\_book\_b…

---

## [Proper way to submit a form via https?](https://www.ruby-forum.com/t/proper-way-to-submit-a-form-via-https/124413)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 11\
**Last updated:** [January 2, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/proper-way-to-submit-a-form-via-https/124413 "2008-01-02T23:40:31Z")

</div>

Hi, I am trying to find the ‘recommended’ way of doing this and have had little success so far. I have a login form. I want this to submit via https. What I have found I had to do was this: \<% form\_for :user, :url =\>{…

---

## [Say hello to acts\_as\_family\_tree](https://www.ruby-forum.com/t/say-hello-to-acts-as-family-tree/124675)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/say-hello-to-acts-as-family-tree/124675 "2008-01-02T23:38:09Z")

</div>

Well, I’ve done it. My first plugin and hoping to get some feedback. ActsAsFamilyTree is kind of like ActsAsTree, but it gives you the ability to have multiple parents, among other things. Please let me know what you …

---

## [Routes](https://www.ruby-forum.com/t/routes/124815)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/routes/124815 "2008-01-02T23:36:59Z")

</div>

Hello, I am new to ruby.Can someone tell me what do i need to write in the routes.rb so that i can use the following to edit a record. form\_for :organisation,:url=\>organisation\_path(@organisation),:html=\>{:method=\>‘…

---

## [Ruby-debug will not install, wants ver 12 of Microsoft compiler](https://www.ruby-forum.com/t/ruby-debug-will-not-install-wants-ver-12-of-microsoft-compiler/124725)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 2\
**Last updated:** [January 2, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/ruby-debug-will-not-install-wants-ver-12-of-microsoft-compiler/124725 "2008-01-02T23:18:15Z")

</div>

If the debugger is part of Rails now, shouldn’t I expect it to install? When I run ‘gem install ruby-debug’ it runs the Microsoft make, ‘nmake’ and it compiles C source that demands version ‘1200’ of the C compiler, …

---

## [Invalid Dates in sqlserver adapter](https://www.ruby-forum.com/t/invalid-dates-in-sqlserver-adapter/124805)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 1\
**Last updated:** [January 2, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/invalid-dates-in-sqlserver-adapter/124805 "2008-01-02T23:10:36Z")

</div>

/usr/local/lib/ruby/gems/1.8/gems/activerecord-sqlserver-adapter-1.0.0/lib/active\_record/connection\_adapters/sqlserver\_adapter.rb"

---

## [New Session?](https://www.ruby-forum.com/t/new-session/124804)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 2, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/new-session/124804 "2008-01-02T23:10:01Z")

</div>

Is there a method for determining whether or not the session is a NEW session? For example. the first request of a session I want to be able to perform an action. Subsequent requests under the same session id, I do …

---

## [Q: Slow performance on TextDrive](https://www.ruby-forum.com/t/q-slow-performance-on-textdrive/124825)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 5\
**Last updated:** [January 2, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/q-slow-performance-on-textdrive/124825 "2008-01-02T22:46:32Z")

</div>

Hi, I just set up rails app on TextDrive via lighttpd + mongrel. I followed their instruction(Joyent Ticketing System) and it runs fine. However, a simple action takes long time (about 5 seconds). It takes about sa…

---

## [Rails from the command line](https://www.ruby-forum.com/t/rails-from-the-command-line/124737)

<div class="topic-metadata">

**Author:** [@corywilkerson](https://www.ruby-forum.com/u/corywilkerson)\
**Replies:** 9\
**Last updated:** [January 2, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/rails-from-the-command-line/124737 "2008-01-02T22:36:34Z")

</div>

All, I know we have the wonderful ‘console’ with Rails - and I know we’ve irbwith Ruby; but is there some means by which I can effectively write a shell script and utilize my existing model classes within my Rails ap…

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

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