# Rails

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

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

---

## [How to generate an application/excel type download?](https://www.ruby-forum.com/t/how-to-generate-an-application-excel-type-download/190645)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 12\
**Last updated:** [June 24, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/how-to-generate-an-application-excel-type-download/190645 "2010-06-24T22:07:45Z")

</div>

For my data aquisition application, I want to implement a download function, that generates a file in excel 2003 (xml) - Format. Is it possible to add a new format the show function to produce such a file and send it …

---

## [Q: Rails 3 Multiselect input param](https://www.ruby-forum.com/t/q-rails-3-multiselect-input-param/190666)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/q-rails-3-multiselect-input-param/190666 "2010-06-24T20:55:48Z")

</div>

In Rails 3, I have a multi-select form control (fig. 1). When I select more than 1 value, Firefox sends both values (fig. 2). But only the last value gets sent as a input value to my controller (fig. 3). How do I get …

---

## [Nested Model Forms](https://www.ruby-forum.com/t/nested-model-forms/190663)

<div class="topic-metadata">

**Author:** [@Ants\_P](https://www.ruby-forum.com/u/Ants_P)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 8:09pm UTC](https://www.ruby-forum.com/t/nested-model-forms/190663 "2010-06-24T20:09:32Z")

</div>

I’m trying to get a multi level nested form model working but have hit a problem. In one of my models, I have a habtm association and it’s throwing an error on a nested form and these are check boxes with a method of …

---

## [Parent model running validations on all existing children](https://www.ruby-forum.com/t/parent-model-running-validations-on-all-existing-children/190658)

<div class="topic-metadata">

**Author:** [@rubenrails](https://www.ruby-forum.com/u/rubenrails)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 7:10pm UTC](https://www.ruby-forum.com/t/parent-model-running-validations-on-all-existing-children/190658 "2010-06-24T19:10:56Z")

</div>

In my application, a Language has many Phrases. Here is my code: #language model has\_many :phrases accepts\_nested\_attributes\_for :phrases #phrase model validates\_presence\_of :value belongs\_to :language #languages …

---

## [Show crypted password?](https://www.ruby-forum.com/t/show-crypted-password/190660)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 6\
**Last updated:** [June 24, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/show-crypted-password/190660 "2010-06-24T18:38:47Z")

</div>

In authlogic, I set the password field to “crypted password” Is there a way to display a password, even if its “crypted”? What if the user forgets the password and needs to recover it? How can I recover a crypted pass…

---

## [Controller and Scaffold Controller generator - plural vs. singular](https://www.ruby-forum.com/t/controller-and-scaffold-controller-generator-plural-vs-singular/190609)

<div class="topic-metadata">

**Author:** [@ferblape](https://www.ruby-forum.com/u/ferblape)\
**Replies:** 2\
**Last updated:** [June 24, 2010, 6:35pm UTC](https://www.ruby-forum.com/t/controller-and-scaffold-controller-generator-plural-vs-singular/190609 "2010-06-24T18:35:51Z")

</div>

Hello, Why does: $ rails g controller project Generates app/controllers/project\_controller.rb and $ rails g scaffold\_controller project Generates app/controllers/projects\_controller.rb and app/views/projects/ ? W…

---

## [Installation: How to install phpMyAdmin on Ubuntu](https://www.ruby-forum.com/t/installation-how-to-install-phpmyadmin-on-ubuntu/190652)

<div class="topic-metadata">

**Author:** [@aliibrahim](https://www.ruby-forum.com/u/aliibrahim)\
**Replies:** 3\
**Last updated:** [June 24, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/installation-how-to-install-phpmyadmin-on-ubuntu/190652 "2010-06-24T17:05:39Z")

</div>

I am working on a virtual machine with Ubuntu. Please if someone know how to install it over here

---

## [Use third party library](https://www.ruby-forum.com/t/use-third-party-library/190649)

<div class="topic-metadata">

**Author:** [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Replies:** 2\
**Last updated:** [June 24, 2010, 4:55pm UTC](https://www.ruby-forum.com/t/use-third-party-library/190649 "2010-06-24T16:55:06Z")

</div>

What steps to I have to take to use something like Mif in my app? http://mifjs.net Where do I have to put the source files?

---

## [PHP to RoR: What is equal of insert in RoR](https://www.ruby-forum.com/t/php-to-ror-what-is-equal-of-insert-in-ror/190608)

<div class="topic-metadata">

**Author:** [@aliibrahim](https://www.ruby-forum.com/u/aliibrahim)\
**Replies:** 10\
**Last updated:** [June 24, 2010, 4:45pm UTC](https://www.ruby-forum.com/t/php-to-ror-what-is-equal-of-insert-in-ror/190608 "2010-06-24T16:45:09Z")

</div>

In PHP from form we get values in POST OR GET than I use mysql\_query(insert\_value) what is its equal in ROR

---

## [User Management in Ruby on rails](https://www.ruby-forum.com/t/user-management-in-ruby-on-rails/190646)

<div class="topic-metadata">

**Author:** [@musammil](https://www.ruby-forum.com/u/musammil)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/user-management-in-ruby-on-rails/190646 "2010-06-24T15:35:27Z")

</div>

Hello G.s, I am a PHP developer. newbie to ROR. I want to learn Ruby on rails. and my client need a user management application with the following features Login Managements User permission ( certain user can add/up…

---

## [Calculate the number of months difference between two dates](https://www.ruby-forum.com/t/calculate-the-number-of-months-difference-between-two-dates/190647)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/calculate-the-number-of-months-difference-between-two-dates/190647 "2010-06-24T15:19:03Z")

</div>

Please share if there any such easy methods in rails. I have dates like date1 = Date.today date2 = Date.today - 3.months (Example can be anything) Now how to get month difference as 3 (date1 - date2) Thanks fo…

---

## [Users form](https://www.ruby-forum.com/t/users-form/190648)

<div class="topic-metadata">

**Author:** [@Sergey\_M](https://www.ruby-forum.com/u/Sergey_M)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/users-form/190648 "2010-06-24T15:19:03Z")

</div>

you can go to http://phpforms.net/tutorial/html-basics/php-forms.html, as I know they offer such services

---

## [Failing Routes in deployment](https://www.ruby-forum.com/t/failing-routes-in-deployment/190500)

<div class="topic-metadata">

**Author:** [@niczm25](https://www.ruby-forum.com/u/niczm25)\
**Replies:** 4\
**Last updated:** [June 24, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/failing-routes-in-deployment/190500 "2010-06-24T15:16:42Z")

</div>

I have an app that has the following in the routes file: namespace “admin” do # ADMINISTRATIVE ROUTES ONLY root :to =\> ‘home#index’ resources :comments do member do get :approve get :reject end end resources :u…

---

## [Why wouldn't the server run?](https://www.ruby-forum.com/t/why-wouldnt-the-server-run/190642)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [June 24, 2010, 2:23pm UTC](https://www.ruby-forum.com/t/why-wouldnt-the-server-run/190642 "2010-06-24T14:23:58Z")

</div>

I’m trying to run the server locally using the following command: $ ruby script/serve And, this is the trace of what I get: http://pastie.org/1017034 Where is the problem here? Thanks.

---

## [Translation of the rails](https://www.ruby-forum.com/t/translation-of-the-rails/190472)

<div class="topic-metadata">

**Author:** [@Adriano\_Dias\_da\_Sil](https://www.ruby-forum.com/u/Adriano_Dias_da_Sil)\
**Replies:** 9\
**Last updated:** [June 24, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/translation-of-the-rails/190472 "2010-06-24T12:39:46Z")

</div>

Good night. I wonder if there is any translation of the rails to the Portuguese? Thank you.

---

## [Handle multiple requests at one time](https://www.ruby-forum.com/t/handle-multiple-requests-at-one-time/190640)

<div class="topic-metadata">

**Author:** [@wsdickerson](https://www.ruby-forum.com/u/wsdickerson)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 12:39pm UTC](https://www.ruby-forum.com/t/handle-multiple-requests-at-one-time/190640 "2010-06-24T12:39:46Z")

</div>

Hi, I have the following problem: My application contains a mechanism to administrate some external services via a SOAP-API. If a user submit a SOAP-Request, he is waiting for the SOAP-Response (it’s necessary to sho…

---

## [Named scope and has\_many](https://www.ruby-forum.com/t/named-scope-and-has-many/190641)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/named-scope-and-has-many/190641 "2010-06-24T12:25:54Z")

</div>

Hi I have the models User and Payment. The relation between them user has\_many payments payment belongs\_to user payments table has a field paid\_date. Now for finding out the last paid\_date for a particular user I d…

---

## [Brazilian Rails](https://www.ruby-forum.com/t/brazilian-rails/190638)

<div class="topic-metadata">

**Author:** [@Adriano\_Dias\_da\_Sil](https://www.ruby-forum.com/u/Adriano_Dias_da_Sil)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 11:44am UTC](https://www.ruby-forum.com/t/brazilian-rails/190638 "2010-06-24T11:44:09Z")

</div>

Good night. I’m trying to use the rails plugin brazilian but I can not. I wonder if someone already used and how used. I installed the Brazilian rails with the command: gem install brazilian-rails Soon after I added…

---

## [Problem with passenger deployment](https://www.ruby-forum.com/t/problem-with-passenger-deployment/190637)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 10:58am UTC](https://www.ruby-forum.com/t/problem-with-passenger-deployment/190637 "2010-06-24T10:58:33Z")

</div>

Hi, I am trying to deploy my rails application using passenger. I am following instructions of this URL By using those instruction it is showing me the default index.html page from publc directory but whenever I am …

---

## [Custom default form builder in Rails 3](https://www.ruby-forum.com/t/custom-default-form-builder-in-rails-3/190590)

<div class="topic-metadata">

**Author:** [@regnever](https://www.ruby-forum.com/u/regnever)\
**Replies:** 3\
**Last updated:** [June 24, 2010, 10:28am UTC](https://www.ruby-forum.com/t/custom-default-form-builder-in-rails-3/190590 "2010-06-24T10:28:37Z")

</div>

Hello everyone, I am trying to set a default custom form builder. I have defined my form builder class in “lib/mymodule/mybuilder.rb” as: module Mymodule class Mybuilder \< ActionView::Helpers::FormBuilder … end e…

---

## [CSV Upload Issue](https://www.ruby-forum.com/t/csv-upload-issue/190591)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 2\
**Last updated:** [June 24, 2010, 10:13am UTC](https://www.ruby-forum.com/t/csv-upload-issue/190591 "2010-06-24T10:13:45Z")

</div>

CSV: http://pastie.org/1015772 Controller: http://pastie.org/1015773 Why is it that it’s only saving the record for “EFG5”? I’m obviously missing something.

---

## [Prototype and Position of the Popups!](https://www.ruby-forum.com/t/prototype-and-position-of-the-popups/190631)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 9:54am UTC](https://www.ruby-forum.com/t/prototype-and-position-of-the-popups/190631 "2010-06-24T09:54:43Z")

</div>

Greetings I have a major problem with my popups. I am using the prototype library and almost all my popups are opened ALWAYS at the top and the middle of the screen of every page. The problem is that I have some page…

---

## [Using searchlogic with acts\_as\_taggable\_on](https://www.ruby-forum.com/t/using-searchlogic-with-acts-as-taggable-on/190629)

<div class="topic-metadata">

**Author:** [@cpx](https://www.ruby-forum.com/u/cpx)\
**Replies:** 0\
**Last updated:** [June 24, 2010, 8:57am UTC](https://www.ruby-forum.com/t/using-searchlogic-with-acts-as-taggable-on/190629 "2010-06-24T08:57:17Z")

</div>

Hi, i have 2 model, Merchant and Items and using acts\_as\_taggable\_on Merchant has\_many Items, and i try to find Merchant with search logic including the tags class Merchant \< ActiveRecord::Base acts\_as\_taggable has…

---

## [Rails 2.3.2 upgrade to 2.3.8 problem](https://www.ruby-forum.com/t/rails-2-3-2-upgrade-to-2-3-8-problem/190624)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 5:14am UTC](https://www.ruby-forum.com/t/rails-2-3-2-upgrade-to-2-3-8-problem/190624 "2010-06-24T05:14:18Z")

</div>

Upgrading to Rails 2.3.8 from 2.3.2 has broken views in my application. Specifically the field labels are all displaying after the label text and therefore the alignment is all messed up. Instead of nicely aligning…

---

## [ActionMailer + GMail STMP: How to set FROM header?](https://www.ruby-forum.com/t/actionmailer-gmail-stmp-how-to-set-from-header/190622)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 1\
**Last updated:** [June 24, 2010, 1:23am UTC](https://www.ruby-forum.com/t/actionmailer-gmail-stmp-how-to-set-from-header/190622 "2010-06-24T01:23:08Z")

</div>

I am using Ruby 1.8.7 with Rails 2.3.8 and the GMail SMTP configuration. However all mail being sent by my application has its ‘from’ field as the gmail address that logs in, instead of what I supply in the from funct…

---

## [Negation for searches](https://www.ruby-forum.com/t/negation-for-searches/190620)

<div class="topic-metadata">

**Author:** [@thitsa](https://www.ruby-forum.com/u/thitsa)\
**Replies:** 1\
**Last updated:** [June 23, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/negation-for-searches/190620 "2010-06-23T23:43:02Z")

</div>

What is an efficient way to search for records that does not contain a specific keyword. e.g. Find people where the state is not “MA” and first name contains “John”. This should find: John D. in NY Johnston Ried in…

---

## [I need to do some code that should be in a controller inside a render partial. How?](https://www.ruby-forum.com/t/i-need-to-do-some-code-that-should-be-in-a-controller-inside-a-render-partial-how/190540)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [June 23, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/i-need-to-do-some-code-that-should-be-in-a-controller-inside-a-render-partial-how/190540 "2010-06-23T23:37:45Z")

</div>

I have an app that will be making a customer list to go in a pdf. The pdf part wasn’t bad using wicked\_pdf. The problem is keeping the controller code where it belongs. The app has a print method in the controller. It…

---

## [Release of th new 1.1 version of VirtualRails](https://www.ruby-forum.com/t/release-of-th-new-1-1-version-of-virtualrails/190621)

<div class="topic-metadata">

**Author:** [@jayishappy](https://www.ruby-forum.com/u/jayishappy)\
**Replies:** 0\
**Last updated:** [June 23, 2010, 11:28pm UTC](https://www.ruby-forum.com/t/release-of-th-new-1-1-version-of-virtualrails/190621 "2010-06-23T23:28:38Z")

</div>

the new virtualrails 1.1 now includes : git mongodb capistrano ack vim improved US keyboard support Please check it at http://www.virtualrails.org

---

## [How to see the feed of your items](https://www.ruby-forum.com/t/how-to-see-the-feed-of-your-items/190617)

<div class="topic-metadata">

**Author:** [@rodrigo3n](https://www.ruby-forum.com/u/rodrigo3n)\
**Replies:** 2\
**Last updated:** [June 23, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/how-to-see-the-feed-of-your-items/190617 "2010-06-23T23:02:38Z")

</div>

Hello everyone, I am a bit confused with the XML markup the controller generates in an rails scaffold, because I can’t see it. For example, I create a post scaffold then I go to http://localhost:3000/posts but I can’t…

---

## [Attribute name selected in form](https://www.ruby-forum.com/t/attribute-name-selected-in-form/190566)

<div class="topic-metadata">

**Author:** [@Mlle](https://www.ruby-forum.com/u/Mlle)\
**Replies:** 2\
**Last updated:** [June 23, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/attribute-name-selected-in-form/190566 "2010-06-23T19:27:45Z")

</div>

Hello, I have a form to add terms to a thesaurus table. I have a drop-down list for the user to select the language (fr, en, es,), and then a text box to write a term with a code. I want to set the @thesaurus\[whiche…

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

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