# Rails

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

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

---

## [Soap4r Mysql::Error: MySQL server has gone away:](https://www.ruby-forum.com/t/soap4r-mysql-mysql-server-has-gone-away/142201)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/soap4r-mysql-mysql-server-has-gone-away/142201 "2008-07-04T14:52:08Z")

</div>

hi all i m using soap4r concept for my application. and also different database for client application. in client application it works fine in the beginning but after when i keep my application idle, it throws error…

---

## [Halp! howto config env.rb to look for rmagick gem?](https://www.ruby-forum.com/t/halp-howto-config-env-rb-to-look-for-rmagick-gem/142099)

<div class="topic-metadata">

**Author:** [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/halp-howto-config-env-rb-to-look-for-rmagick-gem/142099 "2008-07-04T14:23:29Z")

</div>

hi, my rails application is having trouble locating rmagick to use with acts as attachment. my host put the gem in /home/myaccount/ruby/gems/gems/rmagick. how do i tell my rails app rmagick is located there? i tried …

---

## [Autotest really slow to detect updates when sharing codebase with VM](https://www.ruby-forum.com/t/autotest-really-slow-to-detect-updates-when-sharing-codebase-with-vm/142111)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/autotest-really-slow-to-detect-updates-when-sharing-codebase-with-vm/142111 "2008-07-04T13:31:33Z")

</div>

Ok I have my dev environment setup like so: Local machine (OS X) has the codebase and shares via NFS. VM (Ubuntu) runs the app, has everything setup and mounts the codebase from the NFS share on the Mac. I use SSH to…

---

## [No index.html file in /public?](https://www.ruby-forum.com/t/no-index-html-file-in-public/142171)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 11\
**Last updated:** [July 4, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/no-index-html-file-in-public/142171 "2008-07-04T13:21:36Z")

</div>

My apologies if this is a terrbily newbie question but there is no index.html in my /public. Here is a list of what’s in the directory: 404.html 500.html dispatch.cgi.example dispatch.fcgi.example dispatch.rb.exam…

---

## [Search From Database](https://www.ruby-forum.com/t/search-from-database/142197)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/search-from-database/142197 "2008-07-04T12:54:16Z")

</div>

Hi, I have one array for example \[1,2,3,4\] and I want to check the array mathches in database for example if this array mathches exactly \[1,2,3,4\] == \[1,2,3,4\] then storing it in one varibale then find the array m…

---

## [Soap4r](https://www.ruby-forum.com/t/soap4r/142195)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/soap4r/142195 "2008-07-04T12:47:01Z")

</div>

can anyone give me a simple code how to use soap4r with a mongrel server. a client and server code. I wanna use this concept in my application. this is new to me… i have used this with webrick and its working fine. i…

---

## [Auto Suggest/Complete](https://www.ruby-forum.com/t/auto-suggest-complete/142100)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/auto-suggest-complete/142100 "2008-07-04T12:15:58Z")

</div>

Hello everyone, Has anyone come up with a decent autocomplete function? And by this I mean a funtcion that allows the user to search a list alphabetically, as with Google suggest, as oppsed to simply using wildcards …

---

## [Web service suggestions?](https://www.ruby-forum.com/t/web-service-suggestions/142192)

<div class="topic-metadata">

**Author:** [@phantom](https://www.ruby-forum.com/u/phantom)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 11:50am UTC](https://www.ruby-forum.com/t/web-service-suggestions/142192 "2008-07-04T11:50:45Z")

</div>

hi there, i need to implement web services in my rails 2.0.2 app that external (non-rails) apps will consume. whilst i’d prefer to do things the REST-full way, i’m struggling to work out what i need to supply (a la …

---

## [Migrating with loosing data](https://www.ruby-forum.com/t/migrating-with-loosing-data/142187)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 11:29am UTC](https://www.ruby-forum.com/t/migrating-with-loosing-data/142187 "2008-07-04T11:29:02Z")

</div>

I have already created a migration. It adds 5 columns. Now I edit migration file and enter 2 more column. How can I remigrate so that 2 new columns would be added without loosing data with db:migrate:reset?

---

## [Rails / Ruby documentation](https://www.ruby-forum.com/t/rails-ruby-documentation/142190)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 11:03am UTC](https://www.ruby-forum.com/t/rails-ruby-documentation/142190 "2008-07-04T11:03:18Z")

</div>

Hi all ! As I’m new to Ruby and Rails, I often take a look at the Rails/Ruby API. I don’t work with “plain” Ruby code and so I can’t distinguish between methods provided by Ruby and those provided by Rails. I use two…

---

## [Install Haml in vendor/gems under Windows](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140)

<div class="topic-metadata">

**Author:** [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Replies:** 4\
**Last updated:** [July 4, 2008, 10:51am UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140 "2008-07-04T10:51:00Z")

</div>

Following this blog entry → I am trying to install Haml in vendor/gems on a Windows environment. What I did was my\_project\\vendor\\gems\\gem fetch haml Downloaded haml-2.0.1 my\_project\\vendor\\gems\\gem unpack haml-2.…

---

## [Association Help](https://www.ruby-forum.com/t/association-help/142163)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 3\
**Last updated:** [July 4, 2008, 10:43am UTC](https://www.ruby-forum.com/t/association-help/142163 "2008-07-04T10:43:24Z")

</div>

Hello, Let me setup the scenario class User \< ActiveRecord::Base belongs\_to :house end class House \< ActiveRecord::Base has\_many :users end My question is, how can i implement the roomates association from the u…

---

## [Effect of mongrel\_rails cluster::restart](https://www.ruby-forum.com/t/effect-of-mongrel-rails-cluster-restart/141968)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 10:32am UTC](https://www.ruby-forum.com/t/effect-of-mongrel-rails-cluster-restart/141968 "2008-07-04T10:32:20Z")

</div>

Hi, I am using a mongrel cluster of 3 mongrels behind an nginx server for deployment. I am using god to watch the mongrels using mongrel\_rails cluster::restart. The question I have is when mongrel\_rails cluster::res…

---

## [Successfully using BackgroundRB in a production environment...?](https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [July 4, 2008, 10:30am UTC](https://www.ruby-forum.com/t/successfully-using-backgroundrb-in-a-production-environment/142155 "2008-07-04T10:30:15Z")

</div>

Hi All, I’m having some severe trouble getting BackgroundRB to run against production. I can configure it to run against development all day long, but the second I disable all the development items and move to produ…

---

## [Commercial Rails CMS](https://www.ruby-forum.com/t/commercial-rails-cms/141661)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 3\
**Last updated:** [July 4, 2008, 10:26am UTC](https://www.ruby-forum.com/t/commercial-rails-cms/141661 "2008-07-04T10:26:16Z")

</div>

Hi: Are there any commercial Rails based CMS? I searched but I have not found any. Any pointer? Cheers Rob

---

## [Function calling in RoR](https://www.ruby-forum.com/t/function-calling-in-ror/142184)

<div class="topic-metadata">

**Author:** [@jokrish](https://www.ruby-forum.com/u/jokrish)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 10:23am UTC](https://www.ruby-forum.com/t/function-calling-in-ror/142184 "2008-07-04T10:23:28Z")

</div>

i m new in RoR…I have created a function in my controller def create\_by … end .how can i call this one by using a link …ie from my view this function should be called when clicking on some field like name… so in my…

---

## [How do change catalog before catalog is delted?](https://www.ruby-forum.com/t/how-do-change-catalog-before-catalog-is-delted/142185)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 10:19am UTC](https://www.ruby-forum.com/t/how-do-change-catalog-before-catalog-is-delted/142185 "2008-07-04T10:19:21Z")

</div>

In my rails application,there are two models:post and catalog. One post has a catalog,and one catalog has many posts. When I delete a catalog,the posts belongs to the catalog will not be shown normal,for it’s catalog …

---

## [Migrating without loosing data](https://www.ruby-forum.com/t/migrating-without-loosing-data/196735)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 10:15am UTC](https://www.ruby-forum.com/t/migrating-without-loosing-data/196735 "2008-07-04T10:15:15Z")

</div>

I have already created a migration. It adds 5 columns. Now I edit migration file and enter 2 more column. How can I remigrate so that 2 new columns would be added without loosing data with db:migrate:reset?

---

## [Need help with sessions](https://www.ruby-forum.com/t/need-help-with-sessions/142186)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 9:38am UTC](https://www.ruby-forum.com/t/need-help-with-sessions/142186 "2008-07-04T09:38:20Z")

</div>

Hi I have to store id information from items table and send it to the notes edit. So I have link \<%= link\_to “note”, :controller =\> “notes” , :action =\> “new”, :id =\>@item %\> this should send only id from item tabl…

---

## [Need default value for my input element when there is no desired param](https://www.ruby-forum.com/t/need-default-value-for-my-input-element-when-there-is-no-desired-param/142178)

<div class="topic-metadata">

**Author:** [@sadeesh\_kumar](https://www.ruby-forum.com/u/sadeesh_kumar)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 9:37am UTC](https://www.ruby-forum.com/t/need-default-value-for-my-input-element-when-there-is-no-desired-param/142178 "2008-07-04T09:37:44Z")

</div>

Hi, In my form I set a default value as “enter text” for my text box. In case of validation failure i am rendering the form, where i loss the user entered text (instead the default value is appearing in the text box)…

---

## [Migrating plugins from svn to git](https://www.ruby-forum.com/t/migrating-plugins-from-svn-to-git/139000)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 8:45am UTC](https://www.ruby-forum.com/t/migrating-plugins-from-svn-to-git/139000 "2008-07-04T08:45:40Z")

</div>

Until recently, I was a using svn and piston to manage my dozens of plugins over a few projects. Now, I’m on the git train (literally, since I switched to have access to my repository on the train). Unfortunately, wh…

---

## [Incoming Email Processing](https://www.ruby-forum.com/t/incoming-email-processing/142172)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 0\
**Last updated:** [July 4, 2008, 3:48am UTC](https://www.ruby-forum.com/t/incoming-email-processing/142172 "2008-07-04T03:48:16Z")

</div>

This is not exactly rails specific but within my rails application I am using ActionMailer and “receive” to process incoming emails with a cron script every 20 minutes. These emails are incoming and will be used to up…

---

## [File upload failed if png file less than 1kb](https://www.ruby-forum.com/t/file-upload-failed-if-png-file-less-than-1kb/142070)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 4\
**Last updated:** [July 4, 2008, 3:43am UTC](https://www.ruby-forum.com/t/file-upload-failed-if-png-file-less-than-1kb/142070 "2008-07-04T03:43:45Z")

</div>

Hi, Has anyone experience file uploading in failed if file size less than 1kb for image. In this case png. I did try larger png and it was successful. It failed at the time copy the file from the uploaded directory p…

---

## [Multiple calls to map.resources not working](https://www.ruby-forum.com/t/multiple-calls-to-map-resources-not-working/142147)

<div class="topic-metadata">

**Author:** [@Abel](https://www.ruby-forum.com/u/Abel)\
**Replies:** 3\
**Last updated:** [July 4, 2008, 3:40am UTC](https://www.ruby-forum.com/t/multiple-calls-to-map-resources-not-working/142147 "2008-07-04T03:40:48Z")

</div>

I need to extend a RESTful controller (ads) with two aditional actions (search and coincidences), so I include the following code in my routes.rb file: map.resources :ads, :collection =\> {:coincidences =\> :get} map.r…

---

## [Apache HOW-TO?](https://www.ruby-forum.com/t/apache-how-to/196734)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 6\
**Last updated:** [July 4, 2008, 3:01am UTC](https://www.ruby-forum.com/t/apache-how-to/196734 "2008-07-04T03:01:28Z")

</div>

Can anyone please recommend a good tutorial on how to deploy a rails app on apache? My system info is: linux (non-debian) ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-linux\] gem -v 1.2.0 rails -v Rails 2.0.2 apachec…

---

## [Disable Logging Locally Within Rails Rake Task](https://www.ruby-forum.com/t/disable-logging-locally-within-rails-rake-task/142139)

<div class="topic-metadata">

**Author:** [@jobu](https://www.ruby-forum.com/u/jobu)\
**Replies:** 2\
**Last updated:** [July 4, 2008, 1:01am UTC](https://www.ruby-forum.com/t/disable-logging-locally-within-rails-rake-task/142139 "2008-07-04T01:01:30Z")

</div>

I run rails 2.1 and I have a rails task that imports a lot of data and it’s bloating my development log. I’d like to disable (or reduce) logging during this particular task, but not globally. I’ve read that there is…

---

## [Trouble with email attachments](https://www.ruby-forum.com/t/trouble-with-email-attachments/140810)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 2\
**Last updated:** [July 3, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/trouble-with-email-attachments/140810 "2008-07-03T23:58:54Z")

</div>

I’m running rails 2.0.2. I am trying to send an email using the ActionMailer. The email is delivered when sending with or without an attachment. My problem is that when I send an attachment, the body of the email i…

---

## [Text\_field\_with\_auto\_complete only for the beginning of a string?](https://www.ruby-forum.com/t/text-field-with-auto-complete-only-for-the-beginning-of-a-string/142161)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 1\
**Last updated:** [July 3, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-only-for-the-beginning-of-a-string/142161 "2008-07-03T23:15:34Z")

</div>

Hi, how do I achieve with text\_field\_with\_auto\_complete that writing ‘ipsum’ in the textbox suggest also ‘lorem ipsum’? so far it works for me only whent I know the first letters and type them in. like ‘lo’ suggests …

---

## [Mod\_Rails Released - Post your Thoughts](https://www.ruby-forum.com/t/mod-rails-released-post-your-thoughts/134547)

<div class="topic-metadata">

**Author:** [@ChessMess](https://www.ruby-forum.com/u/ChessMess)\
**Replies:** 46\
**Last updated:** [July 3, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/mod-rails-released-post-your-thoughts/134547 "2008-07-03T22:12:45Z")

</div>

Mod\_Rails is out, so what do you think?

---

## [Problem with Rails on Leopard](https://www.ruby-forum.com/t/problem-with-rails-on-leopard/141744)

<div class="topic-metadata">

**Author:** [@Abdulrhman](https://www.ruby-forum.com/u/Abdulrhman)\
**Replies:** 12\
**Last updated:** [July 3, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/problem-with-rails-on-leopard/141744 "2008-07-03T22:01:06Z")

</div>

hi, i have problem with Rails when i written this command: $ sudo gem install rails i see this error message: ERROR: Error installing rails: invalid gem format for /Library/Ruby/Gems/1.8/cache/ activesupport-2.1…

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

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