# Rails

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

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

---

## [Populate data in another fields on selection](https://www.ruby-forum.com/t/populate-data-in-another-fields-on-selection/124278)

<div class="topic-metadata">

**Author:** [@koli](https://www.ruby-forum.com/u/koli)\
**Replies:** 6\
**Last updated:** [December 31, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/populate-data-in-another-fields-on-selection/124278 "2007-12-31T12:20:43Z")

</div>

Hi, I would like to know how to populate data in another text fields on selection from a drop down For Ex The form contains 4 fields out of which 3 are text fields and the 4th one is drop down list. i would like t…

---

## [Democratizando a leitura](https://www.ruby-forum.com/t/democratizando-a-leitura/124637)

<div class="topic-metadata">

**Author:** [@malvadomx](https://www.ruby-forum.com/u/malvadomx)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/democratizando-a-leitura/124637 "2007-12-31T12:13:56Z")

</div>

Democratizando a leitura Veja links para livros de R$ 5,00 a R$ 30,00 em

---

## [Wanted: user-interface for many to many/habtm join operations](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607)

<div class="topic-metadata">

**Author:** [@kaeptnhaddock](https://www.ruby-forum.com/u/kaeptnhaddock)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/wanted-user-interface-for-many-to-many-habtm-join-operations/124607 "2007-12-31T12:09:15Z")

</div>

Dear group I’m on my first RoR project, and so far things are going fine. But now I’d like to achieve a simple m2m-join, with users and groups (–\> a join table groups\_users). I’d like to achieve a view/user interface …

---

## [:dependent for not destroying](https://www.ruby-forum.com/t/dependent-for-not-destroying/124571)

<div class="topic-metadata">

**Author:** [@rpflaum](https://www.ruby-forum.com/u/rpflaum)\
**Replies:** 4\
**Last updated:** [December 31, 2007, 11:58am UTC](https://www.ruby-forum.com/t/dependent-for-not-destroying/124571 "2007-12-31T11:58:07Z")

</div>

Hi, Is there a way to use the :dependent option to set a certain attribute to null rather than destroying the records? For example, take the following models: User id, integer name, string group\_id, integer belon…

---

## [How do I list items not 'joined' to the current record?](https://www.ruby-forum.com/t/how-do-i-list-items-not-joined-to-the-current-record/74391)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 3\
**Last updated:** [December 31, 2007, 11:54am UTC](https://www.ruby-forum.com/t/how-do-i-list-items-not-joined-to-the-current-record/74391 "2007-12-31T11:54:36Z")

</div>

My HABTM joins seem to be working for the most part. Yes! Now I’m trying to create two lists on my project page of joined and unjoined contacts. To list the contacts that are joined to my project I use: \<% mycontacts …

---

## [Preventing Download of Images](https://www.ruby-forum.com/t/preventing-download-of-images/124630)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 3\
**Last updated:** [December 31, 2007, 11:34am UTC](https://www.ruby-forum.com/t/preventing-download-of-images/124630 "2007-12-31T11:34:43Z")

</div>

Is there a reliable way to prevent the browser from downloading (copyrighted) images? I’ve seen some sites that try and I was able to work around it in a minute. I’m guessing there’s an Ajax technique analogous to wr…

---

## [Is it possible to freeze rails 1.2.5 to rails 2.0.2](https://www.ruby-forum.com/t/is-it-possible-to-freeze-rails-1-2-5-to-rails-2-0-2/124634)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 10:56am UTC](https://www.ruby-forum.com/t/is-it-possible-to-freeze-rails-1-2-5-to-rails-2-0-2/124634 "2007-12-31T10:56:57Z")

</div>

is it possible to freeze rails 1.2.5 projects to rails 2.0.2 ?

---

## [Plugins/Gem Download Slow](https://www.ruby-forum.com/t/plugins-gem-download-slow/124467)

<div class="topic-metadata">

**Author:** [@bdude](https://www.ruby-forum.com/u/bdude)\
**Replies:** 6\
**Last updated:** [December 31, 2007, 9:52am UTC](https://www.ruby-forum.com/t/plugins-gem-download-slow/124467 "2007-12-31T09:52:22Z")

</div>

Hello, I’m new to Ruby on Rails and I’m trying to install some plugins/gems, but for some reason when I go to install them it takes the script a long time to start downloading, and even when it starts downloading it …

---

## [Has anybody used rails on Servage.net?](https://www.ruby-forum.com/t/has-anybody-used-rails-on-servage-net/65680)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 31, 2007, 9:49am UTC](https://www.ruby-forum.com/t/has-anybody-used-rails-on-servage-net/65680 "2007-12-31T09:49:24Z")

</div>

Is anyone running a rails application on Servage.net? They are offering what looks like a very good value high bandwidth shared hosting plan. It’s a tempting offer for a couple of PHP sites I run, but I also notice th…

---

## [All model names in a rails project?](https://www.ruby-forum.com/t/all-model-names-in-a-rails-project/124620)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 9:39am UTC](https://www.ruby-forum.com/t/all-model-names-in-a-rails-project/124620 "2007-12-31T09:39:01Z")

</div>

how to find all model names in a rails project ?

---

## [Aa::Bb::Model.new() ? urgent pls help](https://www.ruby-forum.com/t/aa-model-new-urgent-pls-help/124622)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [December 31, 2007, 9:31am UTC](https://www.ruby-forum.com/t/aa-model-new-urgent-pls-help/124622 "2007-12-31T09:31:16Z")

</div>

in rails 1.2.3 i created “ruby script/generator model aa/bb/User” “app/models.aa/bb/user.rb” were created but in controller Aa::Bb:User.new ------\>RuntimeError: ERROR C42P01 Mrelation “users” does not exist how t…

---

## [Params method - need help in understanding](https://www.ruby-forum.com/t/params-method-need-help-in-understanding/124629)

<div class="topic-metadata">

**Author:** [@vaibhavcse](https://www.ruby-forum.com/u/vaibhavcse)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 9:28am UTC](https://www.ruby-forum.com/t/params-method-need-help-in-understanding/124629 "2007-12-31T09:28:19Z")

</div>

Hi, I am pretty new to Ruby on Rails and got a little confused with the way params is used (in ActiveRecords - while writing SQL). A little overview would help. Thanks so much, –Vaibhav

---

## [Getting Rails working on as Servage account](https://www.ruby-forum.com/t/getting-rails-working-on-as-servage-account/73256)

<div class="topic-metadata">

**Author:** [@Glyn\_Jones](https://www.ruby-forum.com/u/Glyn_Jones)\
**Replies:** 2\
**Last updated:** [December 31, 2007, 8:57am UTC](https://www.ruby-forum.com/t/getting-rails-working-on-as-servage-account/73256 "2007-12-31T08:57:32Z")

</div>

Hi, I’m new to the forum, and rails. I’ve got everything setup and working fine for my rails development at work, but have no idea how to get an application to work when I upload it to a Servage account. They have upg…

---

## [Validates\_format() gets called before before\_validation()?](https://www.ruby-forum.com/t/validates-format-gets-called-before-before-validation/124615)

<div class="topic-metadata">

**Author:** [@kodama](https://www.ruby-forum.com/u/kodama)\
**Replies:** 1\
**Last updated:** [December 31, 2007, 7:01am UTC](https://www.ruby-forum.com/t/validates-format-gets-called-before-before-validation/124615 "2007-12-31T07:01:31Z")

</div>

I am pretty confused by this issue: in my model, I am using a before\_validation callback and a validates\_format\_of method call. My before\_validation method does some attribute massaging to assign nil to an attribute i…

---

## [ApplicationController Plugin](https://www.ruby-forum.com/t/applicationcontroller-plugin/124623)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 6:34am UTC](https://www.ruby-forum.com/t/applicationcontroller-plugin/124623 "2007-12-31T06:34:19Z")

</div>

I’ve created a plugin to generate error pages with a single function call. The basic idea is that in your action you could call error\_forbidden and an error page would be rendered with the HTTP status code 402. This…

---

## [Will\_paginate Plugin](https://www.ruby-forum.com/t/will-paginate-plugin/124417)

<div class="topic-metadata">

**Author:** [@geneb](https://www.ruby-forum.com/u/geneb)\
**Replies:** 5\
**Last updated:** [December 31, 2007, 5:46am UTC](https://www.ruby-forum.com/t/will-paginate-plugin/124417 "2007-12-31T05:46:20Z")

</div>

I have installed Ruby 1.8.6 with Rails 2.0.2 on Windows XP and am trying to install the will\_paginate plugin. At a command prompt I enter ruby script/plugin install svn://errtheblog.com/svn/plugins/will\_paginate The …

---

## [Doing redirect in filter class?](https://www.ruby-forum.com/t/doing-redirect-in-filter-class/124261)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 10\
**Last updated:** [December 31, 2007, 4:35am UTC](https://www.ruby-forum.com/t/doing-redirect-in-filter-class/124261 "2007-12-31T04:35:39Z")

</div>

I want to write a filter class that verify the credentials and redirect to login if necessary. However it seems like I can’t access redirect\_to method from the controller (without doing reflection, i.e.) is there exam…

---

## [Rake routes & console showing one thing, app doing another](https://www.ruby-forum.com/t/rake-routes-console-showing-one-thing-app-doing-another/124470)

<div class="topic-metadata">

**Author:** [@mikel](https://www.ruby-forum.com/u/mikel)\
**Replies:** 1\
**Last updated:** [December 31, 2007, 3:20am UTC](https://www.ruby-forum.com/t/rake-routes-console-showing-one-thing-app-doing-another/124470 "2007-12-31T03:20:17Z")

</div>

OK, I have a routing problem, that seems to be working in the console, and with rake routes but not in the app. I have people that have nested tasks, like so: routes.rb map.resources :people do |person| person.res…

---

## [Store limited list in db?](https://www.ruby-forum.com/t/store-limited-list-in-db/124613)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 1\
**Last updated:** [December 31, 2007, 2:32am UTC](https://www.ruby-forum.com/t/store-limited-list-in-db/124613 "2007-12-31T02:32:55Z")

</div>

Hello, I’m currently developing an application which contains a Movie object. I was wondering what the best way to store a limited list such as mpaa\_rating would be? The list is not likely to expand often, so i was …

---

## [Caching issue? Method not executed every time](https://www.ruby-forum.com/t/caching-issue-method-not-executed-every-time/124609)

<div class="topic-metadata">

**Author:** [@martin](https://www.ruby-forum.com/u/martin)\
**Replies:** 0\
**Last updated:** [December 31, 2007, 12:10am UTC](https://www.ruby-forum.com/t/caching-issue-method-not-executed-every-time/124609 "2007-12-31T00:10:52Z")

</div>

Hi, I´m using the Lightning-Fast Javascript Autocompletion recipe from Rails Recipes. When I add or remove users in the contact list, changes are immediately reflected in the conacts\_for\_lookup js array. Indicating …

---

## [2.0 & "Agile Web Dev..." book](https://www.ruby-forum.com/t/2-0-agile-web-dev-book/124266)

<div class="topic-metadata">

**Author:** [@dazonic](https://www.ruby-forum.com/u/dazonic)\
**Replies:** 17\
**Last updated:** [December 30, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/2-0-agile-web-dev-book/124266 "2007-12-30T23:52:10Z")

</div>

Just running through the first little project (depot) in ‘Agile Web Development with Rails’. It isn’t scaffolding like it says it should in the book. After running: rails -d mysql depot then SQLing: drop table if…

---

## [\[ANN\] ActsAsTaggableOn Released](https://www.ruby-forum.com/t/ann-actsastaggableon-released/122092)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/ann-actsastaggableon-released/122092 "2007-12-30T22:20:44Z")

</div>

ActsAsTaggableOn, or ‘acts as taggable on steroids on steroids’, is now available to the public! == Overview == This plugin is heavily based on ActsAsTaggableOnSteroids by Jonathan Viney. While basic tagging functio…

---

## [Upgrading rails](https://www.ruby-forum.com/t/upgrading-rails/122035)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 5\
**Last updated:** [December 30, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/upgrading-rails/122035 "2007-12-30T22:16:35Z")

</div>

Hi folks. I seem to be having trouble upgrading to the latest (stable) rails release. I am running on Windows XP sp2 and use Komodo. I am trying to go to rails-1.2.6 In the command line today (3DEC07), I did gem i…

---

## [How to get the labels of entries in a fixture](https://www.ruby-forum.com/t/how-to-get-the-labels-of-entries-in-a-fixture/124599)

<div class="topic-metadata">

**Author:** [@Armin\_J](https://www.ruby-forum.com/u/Armin_J)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/how-to-get-the-labels-of-entries-in-a-fixture/124599 "2007-12-30T21:51:22Z")

</div>

Hello, I use in tests fixtures, you know these wonderful YAML files for seeding the database. When you have a database table :items then there is in the corresponding YAML file items.yml before each item its label, s…

---

## [Upload resume: java web start](https://www.ruby-forum.com/t/upload-resume-java-web-start/124580)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/upload-resume-java-web-start/124580 "2007-12-30T21:23:39Z")

</div>

I must implement the upload resume. Is possible di it with rails? If no, is there anything like java web start in rails?? If no, is possible inizialite a communication between an java web start application and a serv…

---

## [EMail Notices And Restfull Design](https://www.ruby-forum.com/t/email-notices-and-restfull-design/124589)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 1\
**Last updated:** [December 30, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/email-notices-and-restfull-design/124589 "2007-12-30T20:46:09Z")

</div>

For sending out emails in Restful based apps are people still generating mailers or are their new best practices? – John K. removed\_email\_address@domain.invalid Blog: http://www.kopanas.com Conference: http://www.c…

---

## [Populating drop down](https://www.ruby-forum.com/t/populating-drop-down/124591)

<div class="topic-metadata">

**Author:** [@ochomo](https://www.ruby-forum.com/u/ochomo)\
**Replies:** 2\
**Last updated:** [December 30, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/populating-drop-down/124591 "2007-12-30T20:42:24Z")

</div>

hi all, i need help in populating a combo box with table data. any sample code out there? ochomo

---

## [Why can't active resource deserialize this xml response?](https://www.ruby-forum.com/t/why-cant-active-resource-deserialize-this-xml-response/124551)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [December 30, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/why-cant-active-resource-deserialize-this-xml-response/124551 "2007-12-30T19:59:58Z")

</div>

Can anybody explain why active resource can’t deserialize this? Active Resource class: class Pownce \< ActiveResource::Base self.site = “http://api.pownce.com/1.0” end class User \< Pownce end Command I’m using: U…

---

## [Very strange behavior of script/generate ModelName field:type](https://www.ruby-forum.com/t/very-strange-behavior-of-script-generate-modelname-field-type/124583)

<div class="topic-metadata">

**Author:** [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Replies:** 3\
**Last updated:** [December 30, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/very-strange-behavior-of-script-generate-modelname-field-type/124583 "2007-12-30T19:37:05Z")

</div>

After the typing the following in my terminal: ================================== ./script/generate model Paper user\_id:integer title:string body:text excerpt:text created\_at:datetime updated\_at:datetime the following…

---

## [Exception not caught while in view](https://www.ruby-forum.com/t/exception-not-caught-while-in-view/124587)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [December 30, 2007, 4:48pm UTC](https://www.ruby-forum.com/t/exception-not-caught-while-in-view/124587 "2007-12-30T16:48:47Z")

</div>

I’m running Rails 2.0.2. My controller is subclassed from RetainController (which is subclassed from ApplicationController). Retain Controller has: rescue\_from Retain::LogonFailed, :with =\> :logon\_failed rescue\_from …

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

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