# Rails

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

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

---

## [Problem with ActiveRecord v2 outside of rails](https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 9:02am UTC](https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728 "2007-12-20T09:02:11Z")

</div>

Hi, I have a few scripts that use activerecord to access database. Some of the scripts also use acts\_as\_tree. While inside a Rails project i can install it with script/plugin, I can’t get my scripts to work. What can…

---

## [Map.resources and link confusion](https://www.ruby-forum.com/t/map-resources-and-link-confusion/123713)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 8:31am UTC](https://www.ruby-forum.com/t/map-resources-and-link-confusion/123713 "2007-12-20T08:31:24Z")

</div>

I have: class Booking \< ActiveRecord::Base belongs\_to :guest end class Guest \< ActiveRecord::Base has\_many :bookings end map.resources :guests, :has\_many =\> \[:bookings\] bookings\_comtroller: before\_filter :load\_u…

---

## [Mailing encrypted password to user](https://www.ruby-forum.com/t/mailing-encrypted-password-to-user/123641)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 8\
**Last updated:** [December 20, 2007, 8:09am UTC](https://www.ruby-forum.com/t/mailing-encrypted-password-to-user/123641 "2007-12-20T08:09:10Z")

</div>

How can I email password to user that is stored in SHA1 encrypted format? Thanks

---

## [Polymorphic has\_many :through Vs Inheritance](https://www.ruby-forum.com/t/polymorphic-has-many-through-vs-inheritance/123737)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 7:36am UTC](https://www.ruby-forum.com/t/polymorphic-has-many-through-vs-inheritance/123737 "2007-12-20T07:36:38Z")

</div>

Hi everyone. Ive part of a project that I need to refactor, and im having some difficultly deciding which path to take. Perhaps someone can help, I think its primarily a design question. A Spec consists of many Nests…

---

## [Preview Message Before Saving?](https://www.ruby-forum.com/t/preview-message-before-saving/123154)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [December 20, 2007, 6:31am UTC](https://www.ruby-forum.com/t/preview-message-before-saving/123154 "2007-12-20T06:31:43Z")

</div>

Hi all, I’m sure this is really simple, but I can’t seem to figure it out. I want to let users preview their messages before submitting. Something in the form of: def new @post = Post.new end def preview #preview …

---

## [Dynamic menu calling basic ajax area](https://www.ruby-forum.com/t/dynamic-menu-calling-basic-ajax-area/123732)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 7\
**Last updated:** [December 20, 2007, 5:57am UTC](https://www.ruby-forum.com/t/dynamic-menu-calling-basic-ajax-area/123732 "2007-12-20T05:57:44Z")

</div>

i was thinking, that for alot of my application, when i have a record, i want a menu with all the related ajax calls linked to a that record. there might me a gem to do this, or an easier way, but this is what i did. …

---

## [Newbie: setting up restful\_authentication](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 3\
**Last updated:** [December 20, 2007, 2:50am UTC](https://www.ruby-forum.com/t/newbie-setting-up-restful-authentication/123716 "2007-12-20T02:50:39Z")

</div>

I installed the plug-in for restful\_authentication and ran the migration. The table exists, but when I try creating an account using: http://localhost:3000/users/new no record gets inserted into the users table. I c…

---

## [Why I can't get test log now?](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 2:11am UTC](https://www.ruby-forum.com/t/why-i-cant-get-test-log-now/123724 "2007-12-20T02:11:57Z")

</div>

I don’t know why I can’t get test log now… a few days ago, It’s OK, but now, I can’t get test log when I run rake test… why? who can help me? Thank you!!

---

## [\[ANN\] Rails 2.0.2: Some new defaults and a few fixes](https://www.ruby-forum.com/t/ann-rails-2-0-2-some-new-defaults-and-a-few-fixes/123424)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 9\
**Last updated:** [December 20, 2007, 1:11am UTC](https://www.ruby-forum.com/t/ann-rails-2-0-2-some-new-defaults-and-a-few-fixes/123424 "2007-12-20T01:11:10Z")

</div>

Now that we have the big Rails 2.0 release out the door, it’s a lot easier to push out smaller updates more frequently. So that’s what we’re going to do. Rails 2.0.2 contains a bunch of smaller fixes to various bugs, …

---

## [Integrating YUI & Ruby on Rails](https://www.ruby-forum.com/t/integrating-yui-ruby-on-rails/123722)

<div class="topic-metadata">

**Author:** [@stubbsuk](https://www.ruby-forum.com/u/stubbsuk)\
**Replies:** 0\
**Last updated:** [December 20, 2007, 1:02am UTC](https://www.ruby-forum.com/t/integrating-yui-ruby-on-rails/123722 "2007-12-20T01:02:24Z")

</div>

One of the problems I’ve always had using YUI with Rails is that I could never find a way of including the YUI components that I was comfortable with, but using the YUILoader, I can do just that … -S

---

## [Camelize database calls](https://www.ruby-forum.com/t/camelize-database-calls/123629)

<div class="topic-metadata">

**Author:** [@ianic](https://www.ruby-forum.com/u/ianic)\
**Replies:** 6\
**Last updated:** [December 20, 2007, 12:51am UTC](https://www.ruby-forum.com/t/camelize-database-calls/123629 "2007-12-20T00:51:18Z")

</div>

I have legacy Sql Server database and Rails applications. Column names in database are all in PascalCase (FirstName, CustomerId…). I’m searching for an easy way to use underscore\_casing in Ruby and PascalCasing in dat…

---

## [Link\_to in a menu](https://www.ruby-forum.com/t/link-to-in-a-menu/123680)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 1\
**Last updated:** [December 20, 2007, 12:49am UTC](https://www.ruby-forum.com/t/link-to-in-a-menu/123680 "2007-12-20T00:49:32Z")

</div>

I can make menu’s using css and html. This works great: \<$ loop n times \> \<%= menuhash\[:name\]%\> \<$ end loop \> Then I decided to try a link\_to, and eventually do some link\_to\_remote calls. I tried this: \<%…

---

## [Extract Class and Rails model objects](https://www.ruby-forum.com/t/extract-class-and-rails-model-objects/123677)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 12:33am UTC](https://www.ruby-forum.com/t/extract-class-and-rails-model-objects/123677 "2007-12-20T00:33:06Z")

</div>

Do you ever break up a large rails model class into smaller classes for the sake of just having smaller classes? I have a user model class that is growing in number of attributes quite quickly. A part of me thinks I…

---

## [Routing error](https://www.ruby-forum.com/t/routing-error/123491)

<div class="topic-metadata">

**Author:** [@isea](https://www.ruby-forum.com/u/isea)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 12:20am UTC](https://www.ruby-forum.com/t/routing-error/123491 "2007-12-20T00:20:49Z")

</div>

Hello All, I am getting a routing error for every new project I start. I have searched tons for this issue but have come up with nothing that will remedy my problem. I am using RubyStack on a vista machine. Below in m…

---

## [Capistrano and ferret](https://www.ruby-forum.com/t/capistrano-and-ferret/122465)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 3\
**Last updated:** [December 20, 2007, 12:16am UTC](https://www.ruby-forum.com/t/capistrano-and-ferret/122465 "2007-12-20T00:16:44Z")

</div>

Problem: In my project, the /index directory, used by ferret, is not in the svn repository, for obvious reasons. Every time I deploy, /index is gone, and the first user to run a search on the new deployment has a ver…

---

## [How to paginate an model array object](https://www.ruby-forum.com/t/how-to-paginate-an-model-array-object/123616)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 4\
**Last updated:** [December 20, 2007, 12:09am UTC](https://www.ruby-forum.com/t/how-to-paginate-an-model-array-object/123616 "2007-12-20T00:09:42Z")

</div>

@models=Model.find\_all @model\_pages,@models=paginate @models,:per\_page=\>10 ofcourse above is wrong is there any way to do like that in rails ? actually i have created my own Class method in Model.rb . From that i ca…

---

## [Javascript files loaded twice](https://www.ruby-forum.com/t/javascript-files-loaded-twice/123714)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/javascript-files-loaded-twice/123714 "2007-12-19T23:53:51Z")

</div>

I am testing my app w Rails 2.0.2, and the loading log shows that the prototype .js files loaded twice http://0.0.0.0:3000/ … images files loaded http://0.0.0.0:3000/javascripts/application.js?1197932385 http://0.0…

---

## [Reading back space as null string from db](https://www.ruby-forum.com/t/reading-back-space-as-null-string-from-db/123712)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 11:08pm UTC](https://www.ruby-forum.com/t/reading-back-space-as-null-string-from-db/123712 "2007-12-19T23:08:39Z")

</div>

Has anyone had the problem of reading back a space character, " ", when the value in the database is NULL? The column type is varchar(255) and I’m using SQL Server 2005 in production. I don’t have this problem in a …

---

## [No action responded to record](https://www.ruby-forum.com/t/no-action-responded-to-record/123504)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 5\
**Last updated:** [December 19, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/no-action-responded-to-record/123504 "2007-12-19T22:26:52Z")

</div>

When I click on “record” I get: Unknown action No action responded to record http://localhost:3000/feeds/record I’m going by the tutorial at \<http://developer.apple.com/tools/ rubyonrails.html\> and am adapting it to…

---

## [LGBT Partner/Ruby Web Developer at TopOutColleges.com](https://www.ruby-forum.com/t/lgbt-partner-ruby-web-developer-at-topoutcolleges-com/123710)

<div class="topic-metadata">

**Author:** [@TopOutColleges](https://www.ruby-forum.com/u/TopOutColleges)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/lgbt-partner-ruby-web-developer-at-topoutcolleges-com/123710 "2007-12-19T22:25:41Z")

</div>

TopOutColleges.com is the first and only website where students voice their own opinions and rate their colleges on LGBT-friendliness. The site is a major resource for LGBT campus organizations that want to improve up…

---

## [CookieSession Encryption](https://www.ruby-forum.com/t/cookiesession-encryption/123607)

<div class="topic-metadata">

**Author:** [@tekwiz](https://www.ruby-forum.com/u/tekwiz)\
**Replies:** 4\
**Last updated:** [December 19, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/cookiesession-encryption/123607 "2007-12-19T21:39:53Z")

</div>

I understand that the new CookieSessions use encryption to secure the data inside the cookie. The +secret+ that is default defined in config.action\_controller.session in the environment.rb appears to be a hexidemical…

---

## [Join table should be "baz" or "foos\_bars"?](https://www.ruby-forum.com/t/join-table-should-be-baz-or-foos-bars/123194)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 11\
**Last updated:** [December 19, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/join-table-should-be-baz-or-foos-bars/123194 "2007-12-19T21:18:05Z")

</div>

http://wiki.rubyonrails.org/rails/pages/ThroughAssociations suggests, essentially, using “baz” while I believe that I’ve seen sources suggesting “foos\_bars” and, I believe, “foo\_bars”. In particular, on this list, jo…

---

## [Rails and ajax](https://www.ruby-forum.com/t/rails-and-ajax/123703)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 9:16pm UTC](https://www.ruby-forum.com/t/rails-and-ajax/123703 "2007-12-19T21:16:54Z")

</div>

Hello All i have an autocomplete text box in my app. its working fine in FF… but in IE suggestions are kind of merged with other form elements… i mean when i start typing a new div opens… it is suppose to cover form …

---

## [Simple has\_many :through question](https://www.ruby-forum.com/t/simple-has-many-through-question/123689)

<div class="topic-metadata">

**Author:** [@JonathanB](https://www.ruby-forum.com/u/JonathanB)\
**Replies:** 3\
**Last updated:** [December 19, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/simple-has-many-through-question/123689 "2007-12-19T21:05:45Z")

</div>

Ok, I have 2 very simple has\_many :through associations I need to create and, despite bashing my brain and my computer against this problem repeatedly for 2 days, I cannot figure out what I am doing wrong as I cannot …

---

## [Handling "puts" stmts. from external libraries w/Apache+FCGI](https://www.ruby-forum.com/t/handling-puts-stmts-from-external-libraries-w-apache-fcgi/123701)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/handling-puts-stmts-from-external-libraries-w-apache-fcgi/123701 "2007-12-19T20:58:02Z")

</div>

All, Rails 1.1.6 Apache 2 FCGI I recently ran into an issue where an external library generated a “puts” statement which caused the connection to one of my FCGI processes to break because Apache flipped out about t…

---

## [File\_column and ftp uploaded files](https://www.ruby-forum.com/t/file-column-and-ftp-uploaded-files/123696)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/file-column-and-ftp-uploaded-files/123696 "2007-12-19T20:23:10Z")

</div>

hi all! i have a web application where the user can upload his files through FTP. It’done and it’s ok. Now i want to let the user to select some ftp uploaded files and make them object in my application (they are ima…

---

## [Advanced problem after deployment. help please](https://www.ruby-forum.com/t/advanced-problem-after-deployment-help-please/123588)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 9\
**Last updated:** [December 19, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/advanced-problem-after-deployment-help-please/123588 "2007-12-19T19:43:23Z")

</div>

i have deployed my app with capistrano and everything works fine … apart from that my application does not load my classes somehow. i am trying to figure out the problem for couple of days now but i have no clou … on …

---

## [Rails and SQL Server 2005, NULL String Settings](https://www.ruby-forum.com/t/rails-and-sql-server-2005-null-string-settings/123687)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/rails-and-sql-server-2005-null-string-settings/123687 "2007-12-19T19:25:24Z")

</div>

Has anyone had problems with SQL Server 2005 inserting a " " character into html text fields bound to null strings? What ANSI NULL/Padding settings are people using with rails and SQL Server? Thank You, Kevin

---

## [Ruby and COM](https://www.ruby-forum.com/t/ruby-and-com/123686)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 19, 2007, 7:12pm UTC](https://www.ruby-forum.com/t/ruby-and-com/123686 "2007-12-19T19:12:52Z")

</div>

Does anyone know if it is possible to call a COM executable on a windows machine from ruby on a \*nix machine?

---

## [Map.resource :has\_many :through :has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/map-resource-has-many-through-has-and-belongs-to-many/123645)

<div class="topic-metadata">

**Author:** [@ewan](https://www.ruby-forum.com/u/ewan)\
**Replies:** 2\
**Last updated:** [December 19, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/map-resource-has-many-through-has-and-belongs-to-many/123645 "2007-12-19T19:10:56Z")

</div>

Hello, I’ve got the following model objectA 1 \<------\> 0…\* objectB 0…\* \<-------\> 1 objectC I’d like the url GET /objectA/1/objectC to show all objectC associated with objectA through objectB In routes.rb map.resou…

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

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