# Rails

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

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

---

## [Session expire](https://www.ruby-forum.com/t/session-expire/104673)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/session-expire/104673 "2007-05-21T13:28:28Z")

</div>

Hello I want the code to expire the session when i close the browser. is it possible to call an action from a controller from java script? If not then wat code can be written to expire session when the user closes th…

---

## [How do I stop a column being updated by model.save?](https://www.ruby-forum.com/t/how-do-i-stop-a-column-being-updated-by-model-save/104656)

<div class="topic-metadata">

**Author:** [@davidf](https://www.ruby-forum.com/u/davidf)\
**Replies:** 8\
**Last updated:** [May 21, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/how-do-i-stop-a-column-being-updated-by-model-save/104656 "2007-05-21T12:59:16Z")

</div>

One of my models has a column that is updated very frequently from a separate process, so it is important that when a record is saved in rails, this column should be left alone. In the update method of the controller …

---

## [Sysloglogger with multiple logs](https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662)

<div class="topic-metadata">

**Author:** [@ndorphine](https://www.ruby-forum.com/u/ndorphine)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662 "2007-05-21T12:25:14Z")

</div>

Hi all, I’ve been using SyslogLogger to do standard application logging and it works great. I want to do my custom application logging to a seperate log but I’m having problems. I create the default application logger …

---

## [Introduction to CRM](https://www.ruby-forum.com/t/introduction-to-crm/104664)

<div class="topic-metadata">

**Author:** [@ankur](https://www.ruby-forum.com/u/ankur)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/introduction-to-crm/104664 "2007-05-21T12:16:12Z")

</div>

Hi All, I just found a link which seems to be quite informative about CRM. Just try the link below to have a look at it. This contains the basics of CRM. I really loved this article. Thanks, Ankur

---

## [Best way to generate a text or csv file for user to download](https://www.ruby-forum.com/t/best-way-to-generate-a-text-or-csv-file-for-user-to-download/104645)

<div class="topic-metadata">

**Author:** [@nephish](https://www.ruby-forum.com/u/nephish)\
**Replies:** 3\
**Last updated:** [May 21, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/best-way-to-generate-a-text-or-csv-file-for-user-to-download/104645 "2007-05-21T12:13:12Z")

</div>

lo there all, i need to be able to generate a link to a dynamically created text or csv file when a user hits a link or button ( don’t know yet ). But since the file is going to be generated on the fly, i need an acti…

---

## [Rails is trying to parse PHP files](https://www.ruby-forum.com/t/rails-is-trying-to-parse-php-files/104663)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/rails-is-trying-to-parse-php-files/104663 "2007-05-21T12:07:33Z")

</div>

Hello, I’m having a PHP script in public/phpfiles. If I open this script, rails tries to parse it. How can I tell rails to exclude this directory? I guess this is quiet simple but I couldn’t find a solution.

---

## [How to use Route class in migrations](https://www.ruby-forum.com/t/how-to-use-route-class-in-migrations/104661)

<div class="topic-metadata">

**Author:** [@viciu](https://www.ruby-forum.com/u/viciu)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 11:40am UTC](https://www.ruby-forum.com/t/how-to-use-route-class-in-migrations/104661 "2007-05-21T11:40:05Z")

</div>

Hi! In my application I have Route model. In migration I have to make some operations on all routes, however simple Route.find(:all).each does not work: rake aborted! undefined method \`find’ for #ActiveRecord::Conn…

---

## [Migrations : change schema\_info table name?](https://www.ruby-forum.com/t/migrations-change-schema-info-table-name/104659)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 11:39am UTC](https://www.ruby-forum.com/t/migrations-change-schema-info-table-name/104659 "2007-05-21T11:39:24Z")

</div>

Hi, my company uses only 1 database for all the developments, so it is a big problem for using migrations in Rails because of the schema\_info table. How can I solve this problem? Is there a way to change the schema\_in…

---

## [Previous page form values](https://www.ruby-forum.com/t/previous-page-form-values/104655)

<div class="topic-metadata">

**Author:** [@cnicolaou](https://www.ruby-forum.com/u/cnicolaou)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 10:15am UTC](https://www.ruby-forum.com/t/previous-page-form-values/104655 "2007-05-21T10:15:34Z")

</div>

Hello, I am testing multipages forms (data entry/review/submit), in order to allow a user to go back to the data entry page and edit his entries, i included the simple javascript history.back(). On firefox it works g…

---

## [Comparing 2 variable](https://www.ruby-forum.com/t/comparing-2-variable/104555)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 7:27am UTC](https://www.ruby-forum.com/t/comparing-2-variable/104555 "2007-05-21T07:27:21Z")

</div>

hello I want to compare 2 variables the variables gets the data from the database \<% for subnew in @subnews %\> \<% if( @news\_id == subnew\[“news\_id”\]) %\> . . . . . action . . . . end the news\_id is getting …

---

## [Few questions about assert\_select\_rjs](https://www.ruby-forum.com/t/few-questions-about-assert-select-rjs/104472)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 6:40am UTC](https://www.ruby-forum.com/t/few-questions-about-assert-select-rjs/104472 "2007-05-21T06:40:38Z")

</div>

Hello, I’m trying to learn how to test RJS calls and when running functional tests I get two problems : Why does @response.body contain “\\r\\n\<html xmlns="http://www.w3.org/1999/xhtml\\” lang="en" xml:lang="en"\>\\r\\n\\…

---

## [Wiki sample application](https://www.ruby-forum.com/t/wiki-sample-application/104644)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 6:33am UTC](https://www.ruby-forum.com/t/wiki-sample-application/104644 "2007-05-21T06:33:06Z")

</div>

Hi, I am looking for wiki sample applications. Can you all recommend me several that you think they are the best? Thanks chamnap

---

## [Model.find(:all, :include =\> :children, :order =\> "COUNT(chi](https://www.ruby-forum.com/t/model-find-all-include-children-order-count-chi/104636)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 12\
**Last updated:** [May 21, 2007, 5:37am UTC](https://www.ruby-forum.com/t/model-find-all-include-children-order-count-chi/104636 "2007-05-21T05:37:01Z")

</div>

Hey all, Let’s say I have 2 models: model Venue has many Fans model Fans has many Venues In my app, Fans can bookmark their favorite Venues. Le’s say I want to list the venues, sorted by the number of Fans that has…

---

## [Anyone know how to use "identicons" with Ruby on Rails?](https://www.ruby-forum.com/t/anyone-know-how-to-use-identicons-with-ruby-on-rails/104643)

<div class="topic-metadata">

**Author:** [@jawgaping](https://www.ruby-forum.com/u/jawgaping)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 4:04am UTC](https://www.ruby-forum.com/t/anyone-know-how-to-use-identicons-with-ruby-on-rails/104643 "2007-05-21T04:04:56Z")

</div>

An “identicon” is a small 9-block image generated using hashed data, like that of an IP address to visually identify users quickly while still preserving user privacy. http://www.docuverse.com/blog/donpark/2007/01/18/…

---

## [Res: \[Rails\] Re: Link in mails](https://www.ruby-forum.com/t/res-rails-re-link-in-mails/104639)

<div class="topic-metadata">

**Author:** [@acras](https://www.ruby-forum.com/u/acras)\
**Replies:** 1\
**Last updated:** [May 21, 2007, 3:43am UTC](https://www.ruby-forum.com/t/res-rails-re-link-in-mails/104639 "2007-05-21T03:43:54Z")

</div>

Hi Valehru, Didn’t work, got the following error undefined method \`url\_for’ for #Notifier:0x44b11cc Thanks Ricardo On 5/17/07, Valehru removed\_email\_address@domain.invalid wrote: I am using the activeMailer. Wich…

---

## [Setting a default option for a select list of a new object](https://www.ruby-forum.com/t/setting-a-default-option-for-a-select-list-of-a-new-object/104600)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 3:15am UTC](https://www.ruby-forum.com/t/setting-a-default-option-for-a-select-list-of-a-new-object/104600 "2007-05-21T03:15:52Z")

</div>

Yet another Rails newby getting his feet wet… I have a lookup table for states in a database that I use to create a select list for objects with addresses. When creating a new object (a business, in this case), I want…

---

## [Different views for different sites from same codebase?](https://www.ruby-forum.com/t/different-views-for-different-sites-from-same-codebase/104637)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 2:37am UTC](https://www.ruby-forum.com/t/different-views-for-different-sites-from-same-codebase/104637 "2007-05-21T02:37:50Z")

</div>

I need to develop an application which will have one codebase but different sites will be accessing the same codebase. Now the problem is that how can render different look and feel for the same view based on the site…

---

## [Can be usefull](https://www.ruby-forum.com/t/can-be-usefull/104638)

<div class="topic-metadata">

**Author:** [@ujikol](https://www.ruby-forum.com/u/ujikol)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 2:36am UTC](https://www.ruby-forum.com/t/can-be-usefull/104638 "2007-05-21T02:36:50Z")

</div>

see on this page http://wittylink.com/977321

---

## [Creating a simple drop-down list](https://www.ruby-forum.com/t/creating-a-simple-drop-down-list/127490)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 5\
**Last updated:** [May 21, 2007, 1:23am UTC](https://www.ruby-forum.com/t/creating-a-simple-drop-down-list/127490 "2007-05-21T01:23:35Z")

</div>

Hey folks, I’m having major issues trying to complete a simple task. Goal: Create a drop-down list and populate it with states. When the user fills out the form and saves, the state selected should be saved with th…

---

## [Urgent :: File Object problem](https://www.ruby-forum.com/t/urgent-file-object-problem/104635)

<div class="topic-metadata">

**Author:** [@comtux](https://www.ruby-forum.com/u/comtux)\
**Replies:** 0\
**Last updated:** [May 21, 2007, 12:53am UTC](https://www.ruby-forum.com/t/urgent-file-object-problem/104635 "2007-05-21T00:53:19Z")

</div>

disclaimer: Im not a developer, in fact I know very little of Ruby. I had this script made for me by Endax, LLC. I have run into problems with the script and they are unable/unwilling to help resolve the issue. The sc…

---

## [Disabling textfields while submitting ajax call](https://www.ruby-forum.com/t/disabling-textfields-while-submitting-ajax-call/104615)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 21, 2007, 12:21am UTC](https://www.ruby-forum.com/t/disabling-textfields-while-submitting-ajax-call/104615 "2007-05-21T00:21:30Z")

</div>

Hi I have a form\_remote\_tag-form that submits the contents of a text- field to the server. I have added javascript calls that show a spinner and hide the submit button while the server is processing the request, and …

---

## [Ok, whose got RoR installed on a nokia n800?](https://www.ruby-forum.com/t/ok-whose-got-ror-installed-on-a-nokia-n800/103699)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 7\
**Last updated:** [May 21, 2007, 12:16am UTC](https://www.ruby-forum.com/t/ok-whose-got-ror-installed-on-a-nokia-n800/103699 "2007-05-21T00:16:29Z")

</div>

browsing through flickr for nokia n800(internet tablet pda device) photos, i came across one using RoR! seems pretty cool and would like to do the same. i guess the person is using sqlite and nginx.

---

## [Don't know how to build task 'db:migrate:engines'](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbengines/104593)

<div class="topic-metadata">

**Author:** [@javier\_barcena](https://www.ruby-forum.com/u/javier_barcena)\
**Replies:** 4\
**Last updated:** [May 21, 2007, 12:00am UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-dbengines/104593 "2007-05-21T00:00:28Z")

</div>

hello, that instruction is used now to use rake db: migrate engine? Thanks,

---

## [First time deployment](https://www.ruby-forum.com/t/first-time-deployment/104622)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/first-time-deployment/104622 "2007-05-20T23:57:28Z")

</div>

What’s the easiest way to deploy, sence it’s my first time, and don’t know anything about it, I would like to start the simpliest way, if it can be done only with mongrel.

---

## [ENUM database data-type in Rails?](https://www.ruby-forum.com/t/enum-database-data-type-in-rails/104630)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 1\
**Last updated:** [May 20, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/enum-database-data-type-in-rails/104630 "2007-05-20T23:27:24Z")

</div>

Hi, I’ve been looing for ENUM\[1\] support in Rails. All I’ve found is the “Enumerated Column” plugin. Does anyone have any experience with that plugin, or any other method of implementing ENUMs in Rails? Thanks, M. –…

---

## [Creating a simple drop-down list](https://www.ruby-forum.com/t/creating-a-simple-drop-down-list/104625)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/creating-a-simple-drop-down-list/104625 "2007-05-20T22:29:19Z")

</div>

Hey folks, I’m having major issues trying to complete a simple task. Goal: Create a drop-down list and populate it with states. When the user fills out the form and saves, the state selected should be saved with th…

---

## [Removing the fieldwitherrors div using RJS](https://www.ruby-forum.com/t/removing-the-fieldwitherrors-div-using-rjs/104623)

<div class="topic-metadata">

**Author:** [@Radu\_S](https://www.ruby-forum.com/u/Radu_S)\
**Replies:** 0\
**Last updated:** [May 20, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/removing-the-fieldwitherrors-div-using-rjs/104623 "2007-05-20T21:46:17Z")

</div>

I have a form in which one field can be validated using RJS. If the user hits ‘submit’(which is via POST) and that field is invalid it will return something like : Using AJAX the entered data could at one point beco…

---

## [Newbie question - self.var OR @var in ActiveRecord](https://www.ruby-forum.com/t/newbie-question-self-var-or-var-in-activerecord/104617)

<div class="topic-metadata">

**Author:** [@itsnotvalid](https://www.ruby-forum.com/u/itsnotvalid)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/newbie-question-self-var-or-var-in-activerecord/104617 "2007-05-20T21:22:12Z")

</div>

I started learning rails by following the agile way. It comes to the point where it puzzles me. class Puzzle \< ActiveRecord::Base virtual var, not existing in the database def var @var end def var=(foo) @var= foo …

---

## [Fresh project with edge rails - can't find active\_resource](https://www.ruby-forum.com/t/fresh-project-with-edge-rails-cant-find-active-resource/104601)

<div class="topic-metadata">

**Author:** [@quik77](https://www.ruby-forum.com/u/quik77)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/fresh-project-with-edge-rails-cant-find-active-resource/104601 "2007-05-20T21:21:02Z")

</div>

Heads-MacBookPro-2:~/Documents/Projects/my\_project roberthead$ ruby ./script/about /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_require': no such file to load -- active\_resource (Mis…

---

## [Cannot make relationship work](https://www.ruby-forum.com/t/cannot-make-relationship-work/104592)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 2\
**Last updated:** [May 20, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/cannot-make-relationship-work/104592 "2007-05-20T21:09:36Z")

</div>

Hello, I am having problem learning how to define relationships. Here is what I have so far class Editora \< ActiveRecord::Base has\_many :livros end class Livro \< ActiveRecord::Base belongs\_to :editora end So I wa…

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

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