# Rails

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

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

---

## [Ajax on failure message](https://www.ruby-forum.com/t/ajax-on-failure-message/153324)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/ajax-on-failure-message/153324 "2008-11-14T21:34:16Z")

</div>

How do i change the ajax failure message \<% remote\_form\_for(:comment, :url =\> grocery\_comments\_path(params \[:id\]), :html =\> { :id =\> ‘new\_comment\_form’ }, :method =\> :post, :update =\> { :failure =\> “error” }) do |for…

---

## [Access to documents in shared folder](https://www.ruby-forum.com/t/access-to-documents-in-shared-folder/153322)

<div class="topic-metadata">

**Author:** [@fearx](https://www.ruby-forum.com/u/fearx)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/access-to-documents-in-shared-folder/153322 "2008-11-14T20:34:37Z")

</div>

Is it possible Rails, access files outside of the folder itself from the application? By example, I want to show from my rails application a pdf document, located in \\server\_name\\shared\_folder\\document1.pdf I show th…

---

## [Paperclip not working on update action (rails 2.1)](https://www.ruby-forum.com/t/paperclip-not-working-on-update-action-rails-2-1/147935)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 4\
**Last updated:** [November 14, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/paperclip-not-working-on-update-action-rails-2-1/147935 "2008-11-14T17:37:16Z")

</div>

Paperclip is nice but its not working on the update action. Well, to be exact, I can attach new picture records via a scaffolded controller and edit them, but the edit controller loses them when the record is updated? …

---

## [Argument error: Unknown key(s): count\_includes](https://www.ruby-forum.com/t/argument-error-unknown-key-s-count-includes/153259)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/argument-error-unknown-key-s-count-includes/153259 "2008-11-14T16:44:21Z")

</div>

Hi, I upgraded to rails 2.1. This in turn broke my active\_scaffolds plugin however, the AS team had a newer version that could handle 2.1 So I install that, and now I find a new error which seems unrelated to the AS …

---

## [Cannot rake my gems](https://www.ruby-forum.com/t/cannot-rake-my-gems/153257)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/cannot-rake-my-gems/153257 "2008-11-14T16:42:35Z")

</div>

Hi, So in a recently previous post I explained I am having an issue that I believe is due to the application being upgraded to 2.1 from 2.0.1 To minimize headaches I thought freezing gems would be a grandios idea… h…

---

## [Gems](https://www.ruby-forum.com/t/gems/153293)

<div class="topic-metadata">

**Author:** [@kode.poit](https://www.ruby-forum.com/u/kode.poit)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/gems/153293 "2008-11-14T15:25:46Z")

</div>

After updating to rubygems 1.3 I started getting these warnings when running “rake gems:update” : WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren’t both writable. WARNING: You don’t hav…

---

## [Validating email](https://www.ruby-forum.com/t/validating-email/152773)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 9\
**Last updated:** [November 14, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/validating-email/152773 "2008-11-14T15:22:14Z")

</div>

Hi I have a mailid like removed\_email\_address@domain.invalid@ As part of email validation I have to check it removed\_email\_address@domain.invalid So I did “removed\_email\_address@domain.invalid@@”.split(‘@’) So I ge…

---

## [Difference between Collection, method and action](https://www.ruby-forum.com/t/difference-between-collection-method-and-action/153273)

<div class="topic-metadata">

**Author:** [@pain](https://www.ruby-forum.com/u/pain)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/difference-between-collection-method-and-action/153273 "2008-11-14T15:20:13Z")

</div>

Hi, what are the differences between Collection, Method and Action? How to call each?

---

## [Rails Application](https://www.ruby-forum.com/t/rails-application/153276)

<div class="topic-metadata">

**Author:** [@mohan-ror](https://www.ruby-forum.com/u/mohan-ror)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/rails-application/153276 "2008-11-14T15:14:35Z")

</div>

I wanted to take this opportunity to share with you some exciting news! I developed my personal website in Ruby on Rails. URL: http://www.mohanonline.info Enjoy browsing my website and let me know your feedback in co…

---

## [No layout in xmlHttpRequest in Rails2.2](https://www.ruby-forum.com/t/no-layout-in-xmlhttprequest-in-rails2-2/153294)

<div class="topic-metadata">

**Author:** [@Reeze](https://www.ruby-forum.com/u/Reeze)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/no-layout-in-xmlhttprequest-in-rails2-2/153294 "2008-11-14T14:36:22Z")

</div>

hi, Doest rails2.2 removed support for none layout render in xmlrequest? regards

---

## [Ruby and MySQL backup](https://www.ruby-forum.com/t/ruby-and-mysql-backup/150898)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 4\
**Last updated:** [November 14, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/ruby-and-mysql-backup/150898 "2008-11-14T13:53:33Z")

</div>

I suspect this is not exactly a Ruby/Rails topic but I also suspect that lots of people here have already solved this issue. We have a simple app running on a SliceHost slice and we’d like to backup the database both …

---

## [Server settings for BackgrounDRB?](https://www.ruby-forum.com/t/server-settings-for-backgroundrb/150879)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/server-settings-for-backgroundrb/150879 "2008-11-14T13:09:09Z")

</div>

I have backgroundrb working locally and everything’s fine. However, i can’t get it running on our server. I read a blog post by David Burger about backgroundrb (David Burger's Courtesy Flush: backgroundrb Rails Notes)…

---

## [BackgrounDRb causing freeze and Mongrel timeout](https://www.ruby-forum.com/t/backgroundrb-causing-freeze-and-mongrel-timeout/139860)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 6\
**Last updated:** [November 14, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/backgroundrb-causing-freeze-and-mongrel-timeout/139860 "2008-11-14T13:01:11Z")

</div>

I just installed BackgrounDRb to take care of sending emails to a list of users and when I try to call the worker, it causes the request to “freeze” until Mongrel times out. This is the line that it fails on: MiddleM…

---

## [Invoking methods](https://www.ruby-forum.com/t/invoking-methods/153289)

<div class="topic-metadata">

**Author:** [@mad](https://www.ruby-forum.com/u/mad)\
**Replies:** 5\
**Last updated:** [November 14, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/invoking-methods/153289 "2008-11-14T12:44:55Z")

</div>

hi everyone, i got a simple question that’s bothering me all day: is it possible to find out which method and controller did the original call? to make this a little clearer, I want to do the following: (let’s say t…

---

## [Please help forms](https://www.ruby-forum.com/t/please-help-forms/153281)

<div class="topic-metadata">

**Author:** [@smartee](https://www.ruby-forum.com/u/smartee)\
**Replies:** 4\
**Last updated:** [November 14, 2008, 11:53am UTC](https://www.ruby-forum.com/t/please-help-forms/153281 "2008-11-14T11:53:50Z")

</div>

Hi friends, please help me… my template is: view.rhtml My controller is… def create @firstname=params\[:empfirstname\] @lastname=params\[:emplastname\] @contacts = Contactbook.get :firstname =\> @firstname, …

---

## [Installing RubyMine on Ubuntu 8.10](https://www.ruby-forum.com/t/installing-rubymine-on-ubuntu-8-10/153247)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 11:33am UTC](https://www.ruby-forum.com/t/installing-rubymine-on-ubuntu-8-10/153247 "2008-11-14T11:33:48Z")

</div>

I’m having trouble installing RubyMine on my Ubuntu 8.10 desktop I unpacked the file: jason@jason-ubuntu-vm:~/Desktop$ sudo tar -xzvf rubymine435.tar.gz change to the new directory, then to the bin directory start th…

---

## [Toggle the caption of a link](https://www.ruby-forum.com/t/toggle-the-caption-of-a-link/153229)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 9:45am UTC](https://www.ruby-forum.com/t/toggle-the-caption-of-a-link/153229 "2008-11-14T09:45:51Z")

</div>

hi all, I’m trying to toggle the caption of a link between show archive and hide archive? Everytime a user clicks the link the caption should change. I tried but this simply doesn’t work. Someone can help me out? T…

---

## [Automatically fill the page cache](https://www.ruby-forum.com/t/automatically-fill-the-page-cache/153254)

<div class="topic-metadata">

**Author:** [@nicksnels](https://www.ruby-forum.com/u/nicksnels)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 9:36am UTC](https://www.ruby-forum.com/t/automatically-fill-the-page-cache/153254 "2008-11-14T09:36:53Z")

</div>

Hi, I have my whole site cached with page cache, because each page needs some time to render. What I would like to do is to delete all files in the cache (I have no problem with that). But after I have deleted everyt…

---

## [Creating a file and saving in public directory](https://www.ruby-forum.com/t/creating-a-file-and-saving-in-public-directory/153248)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 9:30am UTC](https://www.ruby-forum.com/t/creating-a-file-and-saving-in-public-directory/153248 "2008-11-14T09:30:35Z")

</div>

Hello, I’m fairly new to Ruby on Rails. I have a model called Report and I’m trying to create a text file that is saved in a /public/report directory. I’ve had a look at the ruby api but I can’t seem to get this work…

---

## [How to start rails without database?](https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 8:20am UTC](https://www.ruby-forum.com/t/how-to-start-rails-without-database/153271 "2008-11-14T08:20:42Z")

</div>

I am new to ruby & rails and I followed a tutorial to create a simple rails project. but I got this error: This error occurred while loading the following files: sqlite3 I searched that rails require sqlite3 database…

---

## [Using Active Resource in ROR Application](https://www.ruby-forum.com/t/using-active-resource-in-ror-application/153114)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 7:22am UTC](https://www.ruby-forum.com/t/using-active-resource-in-ror-application/153114 "2008-11-14T07:22:20Z")

</div>

Hi all, I want to use Active Resource to communicate with other application. How can i use Active Resource in my ROR application. anyone knows please help me out. Thanks and regards, Shripad

---

## [Assert2 0.3.2 and ActiveSupport 2.1.2](https://www.ruby-forum.com/t/assert2-0-3-2-and-activesupport-2-1-2/153269)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 0\
**Last updated:** [November 14, 2008, 6:43am UTC](https://www.ruby-forum.com/t/assert2-0-3-2-and-activesupport-2-1-2/153269 "2008-11-14T06:43:07Z")

</div>

I’ve found a conflict between assert2 and ActiveSupport. Both define the method in\_groups\_of() with different signatures and semantics. It shows up in Ultrasphinx when I run my tests. I’ve reproduced it in the con…

---

## [Upgraded to Rails 2.2.0 -- bringing up Mongrel now fails](https://www.ruby-forum.com/t/upgraded-to-rails-2-2-0-bringing-up-mongrel-now-fails/153237)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 6:31am UTC](https://www.ruby-forum.com/t/upgraded-to-rails-2-2-0-bringing-up-mongrel-now-fails/153237 "2008-11-14T06:31:24Z")

</div>

Installing Rails 2.2 I was running • Rails 2 (ver. 2.0.2, I think) • Gem (ver. 1.0.1) I upgraded to 2.2 with the following commands: gem update –system cd’d to the ruby-container directory gem install rails rai…

---

## [Add prefix to all urls?](https://www.ruby-forum.com/t/add-prefix-to-all-urls/153225)

<div class="topic-metadata">

**Author:** [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Replies:** 4\
**Last updated:** [November 14, 2008, 5:58am UTC](https://www.ruby-forum.com/t/add-prefix-to-all-urls/153225 "2008-11-14T05:58:44Z")

</div>

hi i want to add a prefix to all urls in my project for example ,now i have like this “http://localhost:3000/posts” but i want like this “http://localhost:3000/my\_blog/posts” “http://localhost:3000/my\_blog/posts/n…

---

## [Rmagick nor installin in ubuntu](https://www.ruby-forum.com/t/rmagick-nor-installin-in-ubuntu/153216)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 3\
**Last updated:** [November 14, 2008, 5:57am UTC](https://www.ruby-forum.com/t/rmagick-nor-installin-in-ubuntu/153216 "2008-11-14T05:57:00Z")

</div>

irb(main):003:0\> require ‘Rmagick’ LoadError: no such file to load – Rmagick from (irb):3:in \`require’ from (irb):3 from :0 Its throwing the error

---

## [Disabling XML character escaping for to\_xml](https://www.ruby-forum.com/t/disabling-xml-character-escaping-for-to-xml/150922)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 7\
**Last updated:** [November 14, 2008, 5:17am UTC](https://www.ruby-forum.com/t/disabling-xml-character-escaping-for-to-xml/150922 "2008-11-14T05:17:45Z")

</div>

Currently, it appears to\_xml will automatically escape any entities into their corresponding &XXX representation. There’s a piece in the documentation that says “If $KCODE is set to u and encoding set to UTF8, then e…

---

## [Installed Ruby on Rails (and Aptana RadRails), checked application environment, and got a big error](https://www.ruby-forum.com/t/installed-ruby-on-rails-and-aptana-radrails-checked-application-environment-and-got-a-big-error/153263)

<div class="topic-metadata">

**Author:** [@glassangel](https://www.ruby-forum.com/u/glassangel)\
**Replies:** 1\
**Last updated:** [November 14, 2008, 2:46am UTC](https://www.ruby-forum.com/t/installed-ruby-on-rails-and-aptana-radrails-checked-application-environment-and-got-a-big-error/153263 "2008-11-14T02:46:54Z")

</div>

I’m working out of the book RailSpace, and when I installed it, it installed Mongrel, but apparently not SQLLite, and I recieved this error message: no such file to load – sqlite3

---

## [Distributing Plugins](https://www.ruby-forum.com/t/distributing-plugins/152707)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 5\
**Last updated:** [November 14, 2008, 2:36am UTC](https://www.ruby-forum.com/t/distributing-plugins/152707 "2008-11-14T02:36:22Z")

</div>

Hi all, I’ve written a couple of rails plugins and want to be able to use Rails’ script/plugin script to add and remove them from my projects. I’ve put them in a svn repository, yet the plugin script doesn’t seem to …

---

## [Access an Objects attribute as a string with HABTM](https://www.ruby-forum.com/t/access-an-objects-attribute-as-a-string-with-habtm/153262)

<div class="topic-metadata">

**Author:** [@Mernagh](https://www.ruby-forum.com/u/Mernagh)\
**Replies:** 2\
**Last updated:** [November 14, 2008, 2:31am UTC](https://www.ruby-forum.com/t/access-an-objects-attribute-as-a-string-with-habtm/153262 "2008-11-14T02:31:07Z")

</div>

I have searched many sites for the solution. And maybe there is none or more likely it is so easy no one mentions it. The problem is this. I have an class called Event which has a HABTM relationship with Note. I can …

---

## [Touch an ActiveRecord - timestamps](https://www.ruby-forum.com/t/touch-an-activerecord-timestamps/153220)

<div class="topic-metadata">

**Author:** [@dawillis](https://www.ruby-forum.com/u/dawillis)\
**Replies:** 5\
**Last updated:** [November 14, 2008, 2:12am UTC](https://www.ruby-forum.com/t/touch-an-activerecord-timestamps/153220 "2008-11-14T02:12:59Z")

</div>

When I update an ActiveRecord, i would like to “touch” one of the related objects, that the updated record belongs\_to, in order to update the timestamps on the parent record, although i don’t want to change any of the…

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

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