# Rails

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

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

---

## [Gem update issues](https://www.ruby-forum.com/t/gem-update-issues/159667)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/gem-update-issues/159667 "2009-02-06T20:49:59Z")

</div>

Why does gem update install Rails 2.3.0 when it’s not been released yet? Why does gem update install Rails (2.3.0) on one of my servers but sticks with 2.2.2 on another server? Same Linux distro, same ruby versi…

---

## [Ruby on rails Developer required for my London Agency](https://www.ruby-forum.com/t/ruby-on-rails-developer-required-for-my-london-agency/159655)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-required-for-my-london-agency/159655 "2009-02-06T18:53:07Z")

</div>

Please call me on 02085452110 or drop me your CV to removed\_email\_address@domain.invalid Must be a client facing RoR dev with a couple of years experience. Many thanks http://www.linkedin.com/in/jamescblayamrphp

---

## [How does something like ...sort\_by(&:f) actually manage to function?](https://www.ruby-forum.com/t/how-does-something-like-sort-by-f-actually-manage-to-function/159584)

<div class="topic-metadata">

**Author:** [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Replies:** 6\
**Last updated:** [February 6, 2009, 6:39pm UTC](https://www.ruby-forum.com/t/how-does-something-like-sort-by-f-actually-manage-to-function/159584 "2009-02-06T18:39:37Z")

</div>

I’ve seen a claim on the web that &:f is just Ruby shorthand for &proc { |i| i.f }, but I’ve certainly never been able to get this &:f notation to work in standard ruby. Thanks, Ken

---

## [Attachment fu plugin image upload](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 5\
**Last updated:** [February 6, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/attachment-fu-plugin-image-upload/159605 "2009-02-06T17:28:31Z")

</div>

Hello Everyone, Anybody know how to upload multiple images using attachment fu plugin thanks in advance

---

## [Updating with Paperclip](https://www.ruby-forum.com/t/updating-with-paperclip/159602)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 4:33pm UTC](https://www.ruby-forum.com/t/updating-with-paperclip/159602 "2009-02-06T16:33:22Z")

</div>

I cannot seem to get paperclip working for my file uploads after switching from attachment\_fu. I have the correct fields migrated into the database, have included has\_attached\_file :photo, :styles =\> { :thumb =\> “1…

---

## [IP Address](https://www.ruby-forum.com/t/ip-address/159599)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/ip-address/159599 "2009-02-06T16:20:25Z")

</div>

Hi… I want to check for correct ip address while i submit the form. When i used below regular expression.it accepts 0.0.0.0 as ip address value. REGEXP\_HOST\_ADDRESS =/\\A(?:25\[0-5\]|(?:2\[0-4\]|1\\d|\[1-9\])?\\d)(?:.(?:25\[0…

---

## [Prawn: text at horizontal middle of the page](https://www.ruby-forum.com/t/prawn-text-at-horizontal-middle-of-the-page/157025)

<div class="topic-metadata">

**Author:** [@tlianza](https://www.ruby-forum.com/u/tlianza)\
**Replies:** 3\
**Last updated:** [February 6, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/prawn-text-at-horizontal-middle-of-the-page/157025 "2009-02-06T15:58:38Z")

</div>

How to achieve this, like a horiz. align to center? I\`m trying Prawn to generate PDFs, but having a problem to place a short text (3 words) at the horiz. middle of the page. This code places the text 2 or 3 centimeter…

---

## [Update\_attributes not working on production environment](https://www.ruby-forum.com/t/update-attributes-not-working-on-production-environment/159413)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 7\
**Last updated:** [February 6, 2009, 3:57pm UTC](https://www.ruby-forum.com/t/update-attributes-not-working-on-production-environment/159413 "2009-02-06T15:57:28Z")

</div>

Hi, Here is my Sample Code... I am calling the genericCURDoperation action through the view and sending the xml containing the record to be inserted/updated along with its key value(the primary key field and it’s …

---

## [How to create date obj?](https://www.ruby-forum.com/t/how-to-create-date-obj/159607)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/how-to-create-date-obj/159607 "2009-02-06T15:51:00Z")

</div>

Hi, In one of my application i have to create a date obj like 2009-02-05 23:26:35 but for this i have following input which is integer. form\_day = 05, from\_month = 02 from\_year= 2009 and from\_time=12:00:00 Please s…

---

## [What is the url for my public folder](https://www.ruby-forum.com/t/what-is-the-url-for-my-public-folder/159564)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [February 6, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/what-is-the-url-for-my-public-folder/159564 "2009-02-06T15:02:02Z")

</div>

I can’t seem to find what I’m looking for but I was wondering if I have a site: www.mysite.com, what is the url for the public folder?

---

## [500/Timeout when trying to send an email with my app?](https://www.ruby-forum.com/t/500-timeout-when-trying-to-send-an-email-with-my-app/159612)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [February 6, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/500-timeout-when-trying-to-send-an-email-with-my-app/159612 "2009-02-06T14:36:42Z")

</div>

Hello - I’m kind of new to this whole web development thing - I have a VPS and I’ve installed ubuntu 8.04 and postfix on it, and now I’m deploying simple rails apps to get the hang of the whole process. So I put toge…

---

## [I18n and css](https://www.ruby-forum.com/t/i18n-and-css/159625)

<div class="topic-metadata">

**Author:** [@BelSSSSn](https://www.ruby-forum.com/u/BelSSSSn)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/i18n-and-css/159625 "2009-02-06T14:00:16Z")

</div>

Is there any way to add some class of the css stylesheet to the text that you want to translate?? Exemple: what: txt: " Exemple" Thanks in advance Belen

---

## [Complex forms + DHH's auto\_complete plugin = works!](https://www.ruby-forum.com/t/complex-forms-dhhs-auto-complete-plugin-works/157371)

<div class="topic-metadata">

**Author:** [@alyoshka](https://www.ruby-forum.com/u/alyoshka)\
**Replies:** 3\
**Last updated:** [February 6, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/complex-forms-dhhs-auto-complete-plugin-works/157371 "2009-02-06T13:57:55Z")

</div>

I’ve been searching for a way to get DHH’s auto\_complete plugin to work with Ryan B.’ complex forms. All I could find was people asking the same question, but no solutions so I decided to try it myself. I don’t know i…

---

## [Online dictionary](https://www.ruby-forum.com/t/online-dictionary/159626)

<div class="topic-metadata">

**Author:** [@sugad\_d](https://www.ruby-forum.com/u/sugad_d)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:57pm UTC](https://www.ruby-forum.com/t/online-dictionary/159626 "2009-02-06T13:57:55Z")

</div>

Can someone point me in the right direction. Is it possible to use ROR for an online dictionary similar to dictionary. com? If so, what is required to do this? Can it manage xml data and generate virtual pages to impr…

---

## [Namespaced resource generation with resource\_controller](https://www.ruby-forum.com/t/namespaced-resource-generation-with-resource-controller/159623)

<div class="topic-metadata">

**Author:** [@mathieu\_r](https://www.ruby-forum.com/u/mathieu_r)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/namespaced-resource-generation-with-resource-controller/159623 "2009-02-06T13:26:08Z")

</div>

Hello, I’ve tried to generate a resource using a pre-defined namespace (admin), but it seems i could not make it work out of the box. I’ve managed to do it with pretty few hacking step and made a post out of my expe…

---

## [Small doubt HELP me](https://www.ruby-forum.com/t/small-doubt-help-me/159415)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 14\
**Last updated:** [February 6, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/small-doubt-help-me/159415 "2009-02-06T12:59:40Z")

</div>

Hi , I have table like this --------------------------------------------------------------- |id | what | when | color | to | description | ------------------------------------------------------------…

---

## [Rails not installed on CentOS 5.2](https://www.ruby-forum.com/t/rails-not-installed-on-centos-5-2/159540)

<div class="topic-metadata">

**Author:** [@Paryank](https://www.ruby-forum.com/u/Paryank)\
**Replies:** 2\
**Last updated:** [February 6, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/rails-not-installed-on-centos-5-2/159540 "2009-02-06T12:59:05Z")

</div>

Hi I have installed CentOS 5.2 on my PC. I have build in Ruby 1.8.5 and Ruby-devel. I have downloaded rubygems-1.3.1.tgz package and installed it. Now I am trying to install Rails by following command: gem install ra…

---

## [File opening and ajaxing](https://www.ruby-forum.com/t/file-opening-and-ajaxing/159613)

<div class="topic-metadata">

**Author:** [@sarika](https://www.ruby-forum.com/u/sarika)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:29am UTC](https://www.ruby-forum.com/t/file-opening-and-ajaxing/159613 "2009-02-06T11:29:42Z")

</div>

Hi, I m having a problem with refreshing the page once my data is sent using send\_file. how to achive it plz help Thanks in advance

---

## [How to check AR connection is established?](https://www.ruby-forum.com/t/how-to-check-ar-connection-is-established/159610)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-check-ar-connection-is-established/159610 "2009-02-06T11:07:08Z")

</div>

I use the following method to remove the AR connection. MyClass.remove\_connection However, I use connected? to check, it return true… MyClass.connected? =\> true Am I used the wrong method? Please advise Thank you. …

---

## [Weird mime type set by render\_to\_string (Rails 2.2 / 2.3)](https://www.ruby-forum.com/t/weird-mime-type-set-by-render-to-string-rails-2-2-2-3/159608)

<div class="topic-metadata">

**Author:** [@joost](https://www.ruby-forum.com/u/joost)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 10:58am UTC](https://www.ruby-forum.com/t/weird-mime-type-set-by-render-to-string-rails-2-2-2-3/159608 "2009-02-06T10:58:07Z")

</div>

When using ‘render\_to\_string’ in your views (for some special reason :slight\_smile: ) the response.content\_type is set to the wrong value I think. I have a: respond\_to do |format| format.js {} end which in the vie…

---

## [Acts\_as\_authentificated signup problem don't understand logs](https://www.ruby-forum.com/t/acts-as-authentificated-signup-problem-dont-understand-logs/159530)

<div class="topic-metadata">

**Author:** [@chil](https://www.ruby-forum.com/u/chil)\
**Replies:** 5\
**Last updated:** [February 6, 2009, 10:40am UTC](https://www.ruby-forum.com/t/acts-as-authentificated-signup-problem-dont-understand-logs/159530 "2009-02-06T10:40:30Z")

</div>

Hi! I just put in production my application and i have to deal with a problem which didn’t exist before and I can’t find the cause in the logs. I’m using rails 1.2.3 (the application was started with this version) a…

---

## [Using Soap4R and ActionMailer in one script](https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 8:45am UTC](https://www.ruby-forum.com/t/using-soap4r-and-actionmailer-in-one-script/84851 "2009-02-06T08:45:39Z")

</div>

Hi Has anyone managed to get these two to work together in one script? I get script/runner -e staging ‘load “lib/check\_balance.rb”’ LoadError /usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27: NoMet…

---

## [Errno::EIO - Input/output error](https://www.ruby-forum.com/t/errno-eio-input-output-error/141864)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 5\
**Last updated:** [February 6, 2009, 8:28am UTC](https://www.ruby-forum.com/t/errno-eio-input-output-error/141864 "2009-02-06T08:28:05Z")

</div>

hi all, my appl works well but i get the following error suddenly for few pages. to resolve this, i had to restart the server everytime. then it works fine for some time, but after some time it appears again. this is …

---

## [Need help with sql condition/join](https://www.ruby-forum.com/t/need-help-with-sql-condition-join/159597)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 7:37am UTC](https://www.ruby-forum.com/t/need-help-with-sql-condition-join/159597 "2009-02-06T07:37:04Z")

</div>

Hi, I’m doing a search, where I have contacts, and also groups for those contacts. The association is like this: contacts: has\_many :groupers, :dependent =\> :destroy has\_many :groups, :through =\> :groupers groups: …

---

## [Undefined method \`strip' for #\<ActionController::UploadedStr](https://www.ruby-forum.com/t/undefined-method-strip-for-actioncontroller-uploadedstr/159600)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 7:33am UTC](https://www.ruby-forum.com/t/undefined-method-strip-for-actioncontroller-uploadedstr/159600 "2009-02-06T07:33:22Z")

</div>

i am getting array of uploaded images when i am trying to dump in database i am getting error NoMethodError (undefined method strip' for #\<ActionController::UploadedStringIO:0x458afe4\>): /vendor/plugins/attachment\_fu/l…

---

## [Get # of errors in error\_messages\_for](https://www.ruby-forum.com/t/get-of-errors-in-error-messages-for/159507)

<div class="topic-metadata">

**Author:** [@johnroyworld](https://www.ruby-forum.com/u/johnroyworld)\
**Replies:** 6\
**Last updated:** [February 6, 2009, 6:46am UTC](https://www.ruby-forum.com/t/get-of-errors-in-error-messages-for/159507 "2009-02-06T06:46:01Z")

</div>

hi everyone here i go again, i have problem we error message validation here is the sample of my code: error\_messages\_for :user, :header\_message =\> ‘X errors, please find red mark’, :message =\> ‘Following errors were …

---

## [How to deploy multiple apps on one Mac OSX development machine](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482)

<div class="topic-metadata">

**Author:** [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Replies:** 7\
**Last updated:** [February 6, 2009, 5:31am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482 "2009-02-06T05:31:14Z")

</div>

I have split off the User Authentication of our main application into it’s own application. I would like have this called from the main application. How can I have multiple instances of “script/server” running when th…

---

## [Back button works even after logout - How to prevent?](https://www.ruby-forum.com/t/back-button-works-even-after-logout-how-to-prevent/158900)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 4\
**Last updated:** [February 6, 2009, 5:09am UTC](https://www.ruby-forum.com/t/back-button-works-even-after-logout-how-to-prevent/158900 "2009-02-06T05:09:05Z")

</div>

Hi all, In my web application, after logging out, if Back button of the browser is clicked, it takes to the previous logged in pages and allows all operations without logging in. The layout, however, doesn’t change, b…

---

## [Gettext .po msgid\_plural failed](https://www.ruby-forum.com/t/gettext-po-msgid-plural-failed/159598)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [February 6, 2009, 4:54am UTC](https://www.ruby-forum.com/t/gettext-po-msgid-plural-failed/159598 "2009-02-06T04:54:23Z")

</div>

Hi All, I am using gettext and .po files for my translation, however, I found it very difficult to apply plural form translation, is there anything goes wrong? in controller: \<%=h \_(“You received %{no\_friend} friend…

---

## [Ruby on Rails developer needed for a Temp to Hire Opportunity in Orange County, Ca](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-for-a-temp-to-hire-opportunity-in-orange-county-ca/159576)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 6, 2009, 4:19am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-for-a-temp-to-hire-opportunity-in-orange-county-ca/159576 "2009-02-06T04:19:52Z")

</div>

Hello all, I wanted to take a second to reach out to you, as we have a client in need of a Strong Ruby on Rails Developer, and this appears to be the place to be to find an all star… I understand that you may be curr…

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

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