# Rails

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

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

---

## [Data-only migrations when User model does not store plain text passwords](https://www.ruby-forum.com/t/data-only-migrations-when-user-model-does-not-store-plain-text-passwords/172006)

<div class="topic-metadata">

**Author:** [@steven\_noble](https://www.ruby-forum.com/u/steven_noble)\
**Replies:** 2\
**Last updated:** [July 13, 2009, 1:15pm UTC](https://www.ruby-forum.com/t/data-only-migrations-when-user-model-does-not-store-plain-text-passwords/172006 "2009-07-13T13:15:58Z")

</div>

Hi all, How do you create a data-only migration for my User model that adds a password salt and encrypted password to the Users table? Also, my model validates the equivalence of :password and :password\_confirmation,…

---

## [What is dispatch.rb?](https://www.ruby-forum.com/t/what-is-dispatch-rb/172015)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/what-is-dispatch-rb/172015 "2009-07-13T13:13:01Z")

</div>

What is the file dispatch.rb for? I also have dispatch.cgi and dispatch.fcgi. Running on LiteSpeed Web Server

---

## [Disable session cookie during a request](https://www.ruby-forum.com/t/disable-session-cookie-during-a-request/172012)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/disable-session-cookie-during-a-request/172012 "2009-07-13T12:27:27Z")

</div>

My code makes extensive use of sessions for things like the logged in user. I have added a stateless API that authenticates on each request, but it uses underlying code that sets session data. In the stateless case,…

---

## [Rails Beacon](https://www.ruby-forum.com/t/rails-beacon/172008)

<div class="topic-metadata">

**Author:** [@sreenath](https://www.ruby-forum.com/u/sreenath)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 11:27am UTC](https://www.ruby-forum.com/t/rails-beacon/172008 "2009-07-13T11:27:41Z")

</div>

Hi All, Hope am having a new idea for discussion. We can call it ‘Rails Beacon’. Rails provide immortal sessions, they don’t expire unless we handle it manually. Some sites handle this by closing the session after a …

---

## [Mailbox model](https://www.ruby-forum.com/t/mailbox-model/172007)

<div class="topic-metadata">

**Author:** [@Xiahong\_G](https://www.ruby-forum.com/u/Xiahong_G)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 11:12am UTC](https://www.ruby-forum.com/t/mailbox-model/172007 "2009-07-13T11:12:03Z")

</div>

Hi everyone, I ran into some problems when modeling mailbox and mails. My code was like: create\_table :mailbox do |t| t.integer :user\_id # the owner of this mailbox end create\_table :mails do |t| t.integer :sender…

---

## [Custom error pages](https://www.ruby-forum.com/t/custom-error-pages/171999)

<div class="topic-metadata">

**Author:** [@rabikhadka](https://www.ruby-forum.com/u/rabikhadka)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 9:22am UTC](https://www.ruby-forum.com/t/custom-error-pages/171999 "2009-07-13T09:22:11Z")

</div>

I need to add custom error pages in my site. But i noticed that i need rescue.rb file in lib/action\_controller folder. Can somebody help me how to get that file and how to implement custom error pages please

---

## [New gem: renshi - a templating language](https://www.ruby-forum.com/t/new-gem-renshi-a-templating-language/171995)

<div class="topic-metadata">

**Author:** [@Nicholas\_Faiz](https://www.ruby-forum.com/u/Nicholas_Faiz)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 8:37am UTC](https://www.ruby-forum.com/t/new-gem-renshi-a-templating-language/171995 "2009-07-13T08:37:15Z")

</div>

Hello, Just letting people know about a project of mine - a new templating language; Renshi. See http://github.com/biv/renshi/tree/master . It’s also available via gem installation through rubyforge. It was originall…

---

## [RESTful Authentication Plugin Not Found](https://www.ruby-forum.com/t/restful-authentication-plugin-not-found/171972)

<div class="topic-metadata">

**Author:** [@Kevin\_Meyer](https://www.ruby-forum.com/u/Kevin_Meyer)\
**Replies:** 3\
**Last updated:** [July 13, 2009, 7:09am UTC](https://www.ruby-forum.com/t/restful-authentication-plugin-not-found/171972 "2009-07-13T07:09:42Z")

</div>

I am new to Rails, but when I try to install the REST Authentication it always says plugin not found. I’ve followed the instructions on GIT and I also followed along on the NETTUTS explanation. I copy and past what is…

---

## [Observe\_field on text\_field](https://www.ruby-forum.com/t/observe-field-on-text-field/171969)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 10\
**Last updated:** [July 13, 2009, 6:38am UTC](https://www.ruby-forum.com/t/observe-field-on-text-field/171969 "2009-07-13T06:38:05Z")

</div>

I’ve implemented observe\_field succesfully on other controls, but never on a text field. For whatever reason, the following partial never executes the action specified in the url of my observe\_field below. Does anyon…

---

## [Expire action in different subdomain](https://www.ruby-forum.com/t/expire-action-in-different-subdomain/171989)

<div class="topic-metadata">

**Author:** [@linojon](https://www.ruby-forum.com/u/linojon)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 4:37am UTC](https://www.ruby-forum.com/t/expire-action-in-different-subdomain/171989 "2009-07-13T04:37:45Z")

</div>

hi, is there a way to specify a subdomain in expires\_action? i have admin.foo.com to edit pages, which are cached in www.foo.com My update action tries to expire the cache but it seems to look for a cache in tmp/view…

---

## [Ideas why this rake task isn't saving one of my models?](https://www.ruby-forum.com/t/ideas-why-this-rake-task-isnt-saving-one-of-my-models/171988)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 4\
**Last updated:** [July 13, 2009, 4:17am UTC](https://www.ruby-forum.com/t/ideas-why-this-rake-task-isnt-saving-one-of-my-models/171988 "2009-07-13T04:17:54Z")

</div>

Newbie here working on an application that has a “Match” model and each Match can have some “Playergame” models. The rails apps is actually working, but I needed to now import some initial data from a csv file, so I b…

---

## [Can ActiveResource use ActiveRecord::Dirty?](https://www.ruby-forum.com/t/can-activeresource-use-activerecord-dirty/171990)

<div class="topic-metadata">

**Author:** [@JangoSteve](https://www.ruby-forum.com/u/JangoSteve)\
**Replies:** 0\
**Last updated:** [July 13, 2009, 3:39am UTC](https://www.ruby-forum.com/t/can-activeresource-use-activerecord-dirty/171990 "2009-07-13T03:39:54Z")

</div>

So, I’ve been working with Rails for quite a while, but pretty new to actually digging in and patching/plugging the actual source methods of Rails modules. I’m trying to use ActiveRecord to create some Ruby wrappers f…

---

## [Get DB data to rhtml file](https://www.ruby-forum.com/t/get-db-data-to-rhtml-file/171983)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 11\
**Last updated:** [July 13, 2009, 1:46am UTC](https://www.ruby-forum.com/t/get-db-data-to-rhtml-file/171983 "2009-07-13T01:46:40Z")

</div>

I am trying to get data out of a database to my rhtml file. The files look like this: Model mystuff.rb class Mystuff \< ActiveRecord::Base set\_table\_name “mytable” set\_primary\_key “id” end Controllers mystuff\_contr…

---

## [Search in database](https://www.ruby-forum.com/t/search-in-database/171979)

<div class="topic-metadata">

**Author:** [@christian](https://www.ruby-forum.com/u/christian)\
**Replies:** 1\
**Last updated:** [July 13, 2009, 12:04am UTC](https://www.ruby-forum.com/t/search-in-database/171979 "2009-07-13T00:04:20Z")

</div>

Hi, Im am really new to RoR and web and I need some basic help: I would like to have a text\_field and a button in a view, from where I can type in a string, passing that string to the server side that iterates throug…

---

## [SVN checkout](https://www.ruby-forum.com/t/svn-checkout/171982)

<div class="topic-metadata">

**Author:** [@Who90210](https://www.ruby-forum.com/u/Who90210)\
**Replies:** 1\
**Last updated:** [July 12, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/svn-checkout/171982 "2009-07-12T23:56:09Z")

</div>

Hello Experts, I’m using Svn checkout tortoise, and would like to ask for your expert advice what to do if I have following error Error: Can’t check path Error: ‘C:\\Bleach\\myforum\\naturecam\\bgSubCode2\\build\\bgSubCod…

---

## [How to check if a table is empty?](https://www.ruby-forum.com/t/how-to-check-if-a-table-is-empty/171881)

<div class="topic-metadata">

**Author:** [@melomane](https://www.ruby-forum.com/u/melomane)\
**Replies:** 12\
**Last updated:** [July 12, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/how-to-check-if-a-table-is-empty/171881 "2009-07-12T20:29:22Z")

</div>

Hi In my web application, a table must have only one record. So when there is no record, user can add a new row to the table, (a add link is shown) and when a record is already available, user can’t add a new one, h…

---

## [Models as "views" on another model](https://www.ruby-forum.com/t/models-as-views-on-another-model/171944)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [July 12, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/models-as-views-on-another-model/171944 "2009-07-12T20:06:34Z")

</div>

I would like to selectively reuse some data. I have two groups of people who want very similar information about subject experts - but they want slightly different fields and/or want to see the other group’s informati…

---

## [Need some help with a model query](https://www.ruby-forum.com/t/need-some-help-with-a-model-query/171926)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 21\
**Last updated:** [July 12, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/need-some-help-with-a-model-query/171926 "2009-07-12T19:49:06Z")

</div>

My setup: class Team has\_many :schedules end class Schedule belongs\_to :team end Teams Controller: @team = Team.find(params\[:id\]) @team\_id = params\[:id\] @schedule = Schedule.list(@team\_id) Schedule Model: def…

---

## [Migration in Multiple Database](https://www.ruby-forum.com/t/migration-in-multiple-database/171933)

<div class="topic-metadata">

**Author:** [@virendra](https://www.ruby-forum.com/u/virendra)\
**Replies:** 3\
**Last updated:** [July 12, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/migration-in-multiple-database/171933 "2009-07-12T18:37:38Z")

</div>

hello to all I been working on this from past few days. .I am talking about separate migration for each one of the multiple database that a single rails application has connection with.I know that rails can work with…

---

## [How to use Find with conditions?](https://www.ruby-forum.com/t/how-to-use-find-with-conditions/171964)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 4\
**Last updated:** [July 12, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/how-to-use-find-with-conditions/171964 "2009-07-12T17:53:21Z")

</div>

Recently I read that the following find Type 1 Post.find(:first, :conditions =\> \[‘status = ? and active = ?’, 1, 1\]) can be written as Type 2 Post.find(:first, :conditions =\> { :status =\> 1, :active =\> 1 }) But how d…

---

## [Unicode question - will it work?](https://www.ruby-forum.com/t/unicode-question-will-it-work/171932)

<div class="topic-metadata">

**Author:** [@Bjoern](https://www.ruby-forum.com/u/Bjoern)\
**Replies:** 1\
**Last updated:** [July 12, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/unicode-question-will-it-work/171932 "2009-07-12T17:20:07Z")

</div>

Hi, my apologies for that very basic question. I have heard from many people that unicode worked well for them, but I have been unable to find any definite information on how it works (with Rails). I gather that as l…

---

## [\`require\_frameworks': no such file to load -- openssl](https://www.ruby-forum.com/t/require-frameworks-no-such-file-to-load-openssl/171954)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 1\
**Last updated:** [July 12, 2009, 12:12pm UTC](https://www.ruby-forum.com/t/require-frameworks-no-such-file-to-load-openssl/171954 "2009-07-12T12:12:45Z")

</div>

I’m getting this error on Ubuntu 9.04 when trying to run this simple Rails application. How to solve this error? \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2…

---

## [URL structure ( example.com/~user/file )](https://www.ruby-forum.com/t/url-structure-example-com-user-file/171965)

<div class="topic-metadata">

**Author:** [@Vadim\_Dashkevich](https://www.ruby-forum.com/u/Vadim_Dashkevich)\
**Replies:** 0\
**Last updated:** [July 12, 2009, 12:10pm UTC](https://www.ruby-forum.com/t/url-structure-example-com-user-file/171965 "2009-07-12T12:10:24Z")

</div>

Hi I am new to Rails and have question. Maybe someone could help me with this I want to do something like this: example.com/~user/file where user is registered username, and then goes filename owned by this user. S…

---

## [Odd problem with templates](https://www.ruby-forum.com/t/odd-problem-with-templates/171953)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [July 12, 2009, 11:48am UTC](https://www.ruby-forum.com/t/odd-problem-with-templates/171953 "2009-07-12T11:48:13Z")

</div>

I’m having a strange problem with templates and I’d like to know if anyone else is having the same experience. The classic plugin which is used as an example for plugin installation and generator running is restful-au…

---

## [Localized templates in rails 2.1](https://www.ruby-forum.com/t/localized-templates-in-rails-2-1/171957)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [July 12, 2009, 11:09am UTC](https://www.ruby-forum.com/t/localized-templates-in-rails-2-1/171957 "2009-07-12T11:09:13Z")

</div>

I’m trying to implement localized templates in rails 2.1. The background is I have a large codebase which among other things uses engines plugin, making it a mess to upgrade to rails 2.3 which includes this. Therefore …

---

## [Text\_field\_with\_auto\_complete with regular expression](https://www.ruby-forum.com/t/text-field-with-auto-complete-with-regular-expression/171955)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 0\
**Last updated:** [July 12, 2009, 9:59am UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-with-regular-expression/171955 "2009-07-12T09:59:00Z")

</div>

I’m using text\_field\_with\_auto\_complete to index the keywords of something.I created a ‘resource’ model,and it has a ‘keywords’ column. in the resource controller: auto\_complete\_for :resource,:keywords and in the vie…

---

## [Nested forms](https://www.ruby-forum.com/t/nested-forms/171946)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 4\
**Last updated:** [July 12, 2009, 7:56am UTC](https://www.ruby-forum.com/t/nested-forms/171946 "2009-07-12T07:56:56Z")

</div>

Can someone please point me in the right direction on what to do here, in terms of basic architecture. I;ve seen this type of interface before. Let’s say I have something that is “sold” and I have a form for the sold…

---

## [Rendering from a filter class](https://www.ruby-forum.com/t/rendering-from-a-filter-class/171898)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 1\
**Last updated:** [July 12, 2009, 12:50am UTC](https://www.ruby-forum.com/t/rendering-from-a-filter-class/171898 "2009-07-12T00:50:31Z")

</div>

I’m defining an around filter as its own class. The documentation on ActionController::Filters::ClassMethods includes this example: class Authorizer # This will run before the action. Redirecting aborts the action. d…

---

## [Benifits of ror over other technologies](https://www.ruby-forum.com/t/benifits-of-ror-over-other-technologies/171939)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 1\
**Last updated:** [July 11, 2009, 10:29pm UTC](https://www.ruby-forum.com/t/benifits-of-ror-over-other-technologies/171939 "2009-07-11T22:29:09Z")

</div>

hi,what are the benifits i got from ror when compared with other technologies in market?? can anyone tell me, because i am in confusion choosing ror. pls tell me about the benifits i got from the ror…

---

## [Devekop cms](https://www.ruby-forum.com/t/devekop-cms/171937)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 1\
**Last updated:** [July 11, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/devekop-cms/171937 "2009-07-11T22:28:34Z")

</div>

hi, i want to develop an content management system using ror. what are the benifits i got using ror for this?? and can u just tell me, what are the fecilities we have to create access controls in ror?? how can it hel…

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

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