# Rails

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

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

---

## [Pre-existing PHP, Apache web server, and mySQL setup](https://www.ruby-forum.com/t/pre-existing-php-apache-web-server-and-mysql-setup/113786)

<div class="topic-metadata">

**Author:** [@rh001](https://www.ruby-forum.com/u/rh001)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 12:49am UTC](https://www.ruby-forum.com/t/pre-existing-php-apache-web-server-and-mysql-setup/113786 "2007-09-05T00:49:48Z")

</div>

Hello All, I currently have a PHP setup for testing scripts and PHP code on my main machine: PHP Apache web server mySQL Can I download the Ruby on Rails package that includes the above mentioned and just install …

---

## [Does collection\_select work in list.rhtml?](https://www.ruby-forum.com/t/does-collection-select-work-in-list-rhtml/111212)

<div class="topic-metadata">

**Author:** [@arif](https://www.ruby-forum.com/u/arif)\
**Replies:** 2\
**Last updated:** [September 5, 2007, 12:17am UTC](https://www.ruby-forum.com/t/does-collection-select-work-in-list-rhtml/111212 "2007-09-05T00:17:45Z")

</div>

Hi, I have 2 models: Model 1: er, Columns: \<er\_id, er\_name\> Model 2: er\_process, Columns: \<er\_id, er\_process\_name\> er\_id is a foreign key for Model 2. When I am creating a new er\_process or editing an existing one, …

---

## [Read each email for $10....real money](https://www.ruby-forum.com/t/read-each-email-for-10-real-money/113790)

<div class="topic-metadata">

**Author:** [@Sudip](https://www.ruby-forum.com/u/Sudip)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/read-each-email-for-10-real-money/113790 "2007-09-04T23:49:41Z")

</div>

Hello, I hate to send this mail to you, as I think you might not like this. But I just want to tell you about great site I found. They pay me to read e-mail, visit web sites and much more. It’s free to join and easy …

---

## [Nested Controllers - Development vs. Production mode](https://www.ruby-forum.com/t/nested-controllers-development-vs-production-mode/113410)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 5\
**Last updated:** [September 4, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/nested-controllers-development-vs-production-mode/113410 "2007-09-04T23:28:38Z")

</div>

Hello, I’m still relatively new to Ruby/Rails and am in the middle of my first deployment to production. I’ve encountered an odd difference between development and production mode, and I’m not sure what the cause is. …

---

## [Mongrel server issue](https://www.ruby-forum.com/t/mongrel-server-issue/113766)

<div class="topic-metadata">

**Author:** [@Ajit](https://www.ruby-forum.com/u/Ajit)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/mongrel-server-issue/113766 "2007-09-04T23:04:37Z")

</div>

Hi My web app goes down very frequently. I am using Mongrel web server. So once my app is down, i just restart my mongrel and it works fine again. I dont know why mongrel needs to be restarted so oftenly? Please adv…

---

## [Restful\_Authentication and DB Sessions](https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/restful-authentication-and-db-sessions/113779 "2007-09-04T22:58:36Z")

</div>

We’re using the Restful Authentication plugin (http://agilewebdevelopment.com/plugins/restful\_authentication). So far it works fine but then I noticed that sessions are not being stored to the db. When I looked at th…

---

## [Before\_Save Filters Acting Goofy in Unit Test](https://www.ruby-forum.com/t/before-save-filters-acting-goofy-in-unit-test/113784)

<div class="topic-metadata">

**Author:** [@rubyrubyruby\_onrail](https://www.ruby-forum.com/u/rubyrubyruby_onrail)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/before-save-filters-acting-goofy-in-unit-test/113784 "2007-09-04T22:54:35Z")

</div>

I have a fixture-less unit test that is not acting as expected. My user model has 4 before\_save filters to create some associations, to deal with the format of the data that comes in. In my test I am creating 5 users …

---

## [Purge temp files automatically?](https://www.ruby-forum.com/t/purge-temp-files-automatically/113783)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/purge-temp-files-automatically/113783 "2007-09-04T22:41:47Z")

</div>

Im doing some photo manipulation with mini-magick. Sometimes, in one action, it will work on 15+ photos and create like 40+ temp files. It seems that the temp files will get deleted while the action is happening. Thi…

---

## [What does this code do?](https://www.ruby-forum.com/t/what-does-this-code-do/113777)

<div class="topic-metadata">

**Author:** [@sydneyos](https://www.ruby-forum.com/u/sydneyos)\
**Replies:** 4\
**Last updated:** [September 4, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/what-does-this-code-do/113777 "2007-09-04T22:37:31Z")

</div>

Here’s a newbie question. Am looking at the do\_forgot\_password test method in SaltedHashLoginGenerator and it is failing in the final assert listed here. What I don’t understand at all are the lines. Actually, I als…

---

## [Trouble Sending E-mails](https://www.ruby-forum.com/t/trouble-sending-e-mails/113210)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/trouble-sending-e-mails/113210 "2007-09-04T21:39:00Z")

</div>

Hello, One of my scripts that used to send e-mails on success has stopped sending e-mails. Using ruby-debug, I found that it is indeed reaching those lines of code but no e-mail ever gets sent. I can send e-mails usi…

---

## [\[ANN\] Boxcar now available!](https://www.ruby-forum.com/t/ann-boxcar-now-available/113770)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/ann-boxcar-now-available/113770 "2007-09-04T20:18:39Z")

</div>

Hey all! I’ll keep this short as I know that you’re all probably just as busy as we’ve all been. We (PLANET ARGON) are excited to announce that Boxcar, our new hosting solution for Ruby on Rails, is now open to the p…

---

## [Good Supportive Hosting Solutions?](https://www.ruby-forum.com/t/good-supportive-hosting-solutions/113578)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 11\
**Last updated:** [September 4, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/good-supportive-hosting-solutions/113578 "2007-09-04T19:06:29Z")

</div>

I’m looking for a hosting solution to deploy some demo applications as well as a beta version of our new product. I’m currently using Textdrive Accelerator and it’s really slowing us down (first, our developers aren’t…

---

## [ActionMailer with non-constant template](https://www.ruby-forum.com/t/actionmailer-with-non-constant-template/113476)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/actionmailer-with-non-constant-template/113476 "2007-09-04T18:24:29Z")

</div>

Hello, The situation is that opposed to the classic setting (i.e. having an .rhtml file as the email template) the e-mail template I am using to send e-mail should be editable - i.e. there is a first version of the t…

---

## [RSA, public and private keys](https://www.ruby-forum.com/t/rsa-public-and-private-keys/113741)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/rsa-public-and-private-keys/113741 "2007-09-04T18:15:27Z")

</div>

I am trying to make it so that on my project a user who enters a credit card number will have that information encrypted. I am not, however, very familiar with data encryption and public and private keys, so I am not …

---

## [Test does not save to the test database](https://www.ruby-forum.com/t/test-does-not-save-to-the-test-database/113216)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 4\
**Last updated:** [September 4, 2007, 5:56pm UTC](https://www.ruby-forum.com/t/test-does-not-save-to-the-test-database/113216 "2007-09-04T17:56:00Z")

</div>

even though i change the RAIL\_ENV…to test and do both a rake test:functionals and run an individual ruby test\\functional\\user\_controller\_test.rb test and run script/console that confirms ‘Loading test environment’…al…

---

## [Issue with variables in a partial view](https://www.ruby-forum.com/t/issue-with-variables-in-a-partial-view/113719)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [September 4, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/issue-with-variables-in-a-partial-view/113719 "2007-09-04T17:46:47Z")

</div>

I had a partial to display a list of ‘stories’, done in the traditional rails-tutorial kind of way - eg, an ‘article’ has a list of ‘stories’, so i have a partial called ‘story\_list’ that has this: for story in @artic…

---

## [Reg :regular expression](https://www.ruby-forum.com/t/reg-regular-expression/113654)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 8\
**Last updated:** [September 4, 2007, 5:44pm UTC](https://www.ruby-forum.com/t/reg-regular-expression/113654 "2007-09-04T17:44:12Z")

</div>

Hi, Iam facing problem in excluding new line in reular expression…(/n) eg: shiva.grp\\nhi da so it should exclude \\n .if any one knows help me

---

## [Different REST routes to index w parameter](https://www.ruby-forum.com/t/different-rest-routes-to-index-w-parameter/113749)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/different-rest-routes-to-index-w-parameter/113749 "2007-09-04T17:43:30Z")

</div>

right now I am using the following routes to 3 actions : index (get all messages) , received (get all received messages) and sent (get all sent message… map.resource :user do |user| user.resources :messages, :colle…

---

## [Multiple languages](https://www.ruby-forum.com/t/multiple-languages/113714)

<div class="topic-metadata">

**Author:** [@bebitzaa](https://www.ruby-forum.com/u/bebitzaa)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/multiple-languages/113714 "2007-09-04T17:31:51Z")

</div>

How can i make an application with 2 laguages without making a copy of the app. Only to define a database of languages and use them. Thanks

---

## [How do you total up the number of Posts per Month?](https://www.ruby-forum.com/t/how-do-you-total-up-the-number-of-posts-per-month/113716)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/how-do-you-total-up-the-number-of-posts-per-month/113716 "2007-09-04T17:31:05Z")

</div>

Let’s say I want to count the total number of posts per month using the created\_at column. For instance, I want to display a list-like format like so: August (20 posts) July (12 posts) June (16 posts) \[In my contro…

---

## [Backgroundrb install issue](https://www.ruby-forum.com/t/backgroundrb-install-issue/113745)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/backgroundrb-install-issue/113745 "2007-09-04T16:37:45Z")

</div>

I installed backgroundrb v0.2.1 via svn external per the README. But when I go to start 'er up I get: $ ./script/backgroundrb start /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in gem\_original\_require': …

---

## [Pie chart eith Gruff](https://www.ruby-forum.com/t/pie-chart-eith-gruff/113717)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 4:35pm UTC](https://www.ruby-forum.com/t/pie-chart-eith-gruff/113717 "2007-09-04T16:35:43Z")

</div>

Does anybody know how to create a pie chart in Gruff without percentage but actual numbers?

---

## [Adding this sed command to the deploy script](https://www.ruby-forum.com/t/adding-this-sed-command-to-the-deploy-script/113743)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/adding-this-sed-command-to-the-deploy-script/113743 "2007-09-04T16:25:20Z")

</div>

Hello, I have a small section of sed code I would like to add to the deploy.rb script. The code changes the image paths of our stylesheets for file in \*; do sed -e ‘s//images/http://cache.reverbnation.com/images/g’ …

---

## [Capistrano issues](https://www.ruby-forum.com/t/capistrano-issues/113695)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 1\
**Last updated:** [September 4, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/capistrano-issues/113695 "2007-09-04T16:23:37Z")

</div>

I was following the directions here (http://capify.org/getting-started/ rails) and I am getting the error below. trunk 558 $ capify . \[add\] writing ./Capfile' \[skip\] ./config/deploy.rb’ already exists \[done\] capified…

---

## [Apache Virtual Hosts](https://www.ruby-forum.com/t/apache-virtual-hosts/113728)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/apache-virtual-hosts/113728 "2007-09-04T15:53:26Z")

</div>

I can get Apache to forward requests on the ip address of my computer to a rails app on mongrel using: \<VirtualHost \*:80\> ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000 ie. http://nnn.nn…

---

## [Rails console doesn't run scripts, why?](https://www.ruby-forum.com/t/rails-console-doesnt-run-scripts-why/113730)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 3\
**Last updated:** [September 4, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/rails-console-doesnt-run-scripts-why/113730 "2007-09-04T15:17:15Z")

</div>

I’m trying to generate a controller (but I have this problem with every script): Loading development environment. ./script/generate controller Ciao SyntaxError: compile error (irb):1: syntax error, unexpected ‘.’ …

---

## [Problem IN PDF generation](https://www.ruby-forum.com/t/problem-in-pdf-generation/113740)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/problem-in-pdf-generation/113740 "2007-09-04T15:06:58Z")

</div>

Hi, I am trying to explore the pdf generation using PDF:Writer. Is There any way to give the font style only for table text??.We can give text style for whole pdf document text but i want only inside table text?? Is…

---

## [Habtm - controlling with checkboxes UI](https://www.ruby-forum.com/t/habtm-controlling-with-checkboxes-ui/113660)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 2\
**Last updated:** [September 4, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/habtm-controlling-with-checkboxes-ui/113660 "2007-09-04T14:58:10Z")

</div>

I need to put an array of checkboxes on a user profile editing form to allow users to self-select which neighborhoods they are interested in from the available neighborhoods. But I can’t figure out the syntax to put i…

---

## [Some way to sort and paginate mails read from a POP3 mail se](https://www.ruby-forum.com/t/some-way-to-sort-and-paginate-mails-read-from-a-pop3-mail-se/113735)

<div class="topic-metadata">

**Author:** [@Ramya\_Addanki](https://www.ruby-forum.com/u/Ramya_Addanki)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/some-way-to-sort-and-paginate-mails-read-from-a-pop3-mail-se/113735 "2007-09-04T14:15:58Z")

</div>

Problem: I have written a program to fetch mails from a POP3 mail server. I do not parse all the mails at once, but i process a predefined number based on page\_size ( i could not find a simpler way of pagination), as …

---

## [RoR on windows with MS SQL Server DBI:ADO driver Memory Leak](https://www.ruby-forum.com/t/ror-on-windows-with-ms-sql-server-dbi-ado-driver-memory-leak/113734)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 0\
**Last updated:** [September 4, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/ror-on-windows-with-ms-sql-server-dbi-ado-driver-memory-leak/113734 "2007-09-04T13:58:00Z")

</div>

i’m running ruby 1.8.5 and rails 1.2.3 on windows with a bunch of mongrels that are proxybalanced via apache 2.2.4 the db adapter i’m using is the sqlserver one in ADO mode. so it’s using win32ole. when a mongrel ser…

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

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