# Rails

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

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

---

## [I just want to leave](https://www.ruby-forum.com/t/i-just-want-to-leave/114135)

<div class="topic-metadata">

**Author:** [@joseph\_chapman](https://www.ruby-forum.com/u/joseph_chapman)\
**Replies:** 3\
**Last updated:** [September 9, 2007, 2:04am UTC](https://www.ruby-forum.com/t/i-just-want-to-leave/114135 "2007-09-09T02:04:13Z")

</div>

Please goddamit, let me unsubscribe, I can’t handle the magnitude of emails I’m receiving and the damn buttonss in the ‘Edit my membership’ page will not work, please sort this out for me, somebody…help. sincerely, C…

---

## [Two version of an app (for subset of users), same database](https://www.ruby-forum.com/t/two-version-of-an-app-for-subset-of-users-same-database/114169)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 0\
**Last updated:** [September 9, 2007, 1:09am UTC](https://www.ruby-forum.com/t/two-version-of-an-app-for-subset-of-users-same-database/114169 "2007-09-09T01:09:36Z")

</div>

hi! I am thinking of having two versions of the same app live. A specific set of users would be running the latest one with all the new features, while everyone else would be on a latest stable version. I was thinkin…

---

## [Cannot run command 'script/spin': premission denied](https://www.ruby-forum.com/t/cannot-run-command-script-spin-premission-denied/114073)

<div class="topic-metadata">

**Author:** [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Replies:** 8\
**Last updated:** [September 9, 2007, 12:56am UTC](https://www.ruby-forum.com/t/cannot-run-command-script-spin-premission-denied/114073 "2007-09-09T00:56:47Z")

</div>

Hi guys, I’m trying to deploy my application but when I run cap deploy:cold I get the following error: —ERROR-------------- servers: \["www.app.com"\] \[www.app.com\] executing command \*\* \[out :: www.app.com\] nohup: \*\* …

---

## [Category can't be blank](https://www.ruby-forum.com/t/category-cant-be-blank/114029)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 8\
**Last updated:** [September 8, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/category-cant-be-blank/114029 "2007-09-08T21:55:51Z")

</div>

Hi, I’m trying to create a new product and associate a category with the new product. The categories are loaded into a form select field. When I try try to create a new product, I get the error: Category can’t be bl…

---

## [Enforce mutual exclusivity](https://www.ruby-forum.com/t/enforce-mutual-exclusivity/114110)

<div class="topic-metadata">

**Author:** [@Toby\_OSRourke](https://www.ruby-forum.com/u/Toby_OSRourke)\
**Replies:** 5\
**Last updated:** [September 8, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/enforce-mutual-exclusivity/114110 "2007-09-08T20:49:45Z")

</div>

Hi, First post, please be gentle! I couldn’t find any mention of this already I’m using ActiveRecord and I want to enforce mutual exclusivity on a has\_and\_belongs\_to\_many. A concrete example: I have a User which can…

---

## [\[ANN\] New Plugin - Nofollow Links](https://www.ruby-forum.com/t/ann-new-plugin-nofollow-links/114158)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/ann-new-plugin-nofollow-links/114158 "2007-09-08T20:33:30Z")

</div>

This is a simple plugin that will add a before\_save callback to add nofollow to all links within the given fields. Example use: Install the plugin: ruby script\\plugin install http://svn.railslodge.com/svn/plugins/no…

---

## [Multibyte Character References](https://www.ruby-forum.com/t/multibyte-character-references/114119)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 4\
**Last updated:** [September 8, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/multibyte-character-references/114119 "2007-09-08T20:03:50Z")

</div>

Hi, I have a load of records in my database which were imported through processing a YAML file. These original YAML files were created from the ‘to\_yaml’ function of an array of Hash objects. The YAML file contains m…

---

## [Unknown Action doesn't raise exception?](https://www.ruby-forum.com/t/unknown-action-doesnt-raise-exception/114148)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/unknown-action-doesnt-raise-exception/114148 "2007-09-08T18:14:17Z")

</div>

As I am in development environment, I wrote in my config/environment.rb ActionController::Base.consider\_all\_requests\_local = false in my application.rb, I wrote def rescue\_action\_in\_public(exception) case exception …

---

## [Acts\_as\_ferret and views](https://www.ruby-forum.com/t/acts-as-ferret-and-views/114150)

<div class="topic-metadata">

**Author:** [@terhorst](https://www.ruby-forum.com/u/terhorst)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-views/114150 "2007-09-08T17:29:39Z")

</div>

Is there any way to use acts\_as\_ferret to search static content stored in views?

---

## [Rails VERY slow on Vista](https://www.ruby-forum.com/t/rails-very-slow-on-vista/114084)

<div class="topic-metadata">

**Author:** [@KRunch](https://www.ruby-forum.com/u/KRunch)\
**Replies:** 7\
**Last updated:** [September 8, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/rails-very-slow-on-vista/114084 "2007-09-08T17:16:45Z")

</div>

When I try to script/generate something I have to wait above 2 minutes befor I get result. Is there some way to fix this? I have Intel Core 2 Duo 6420 with 2GB RAM. On my Slackware Duron 800 MHz it takes about 45 sec… …

---

## [Category - Subcategory](https://www.ruby-forum.com/t/category-subcategory/114140)

<div class="topic-metadata">

**Author:** [@Paul\_Baylis](https://www.ruby-forum.com/u/Paul_Baylis)\
**Replies:** 2\
**Last updated:** [September 8, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/category-subcategory/114140 "2007-09-08T16:47:13Z")

</div>

Hi there, I have a Products table. Each product has a category\_id and subcategory\_id which relate to the categories and subcategories tables respectively. How do I create a view for creating new subcategories? Obvi…

---

## [Social networking](https://www.ruby-forum.com/t/social-networking/114133)

<div class="topic-metadata">

**Author:** [@Tyche](https://www.ruby-forum.com/u/Tyche)\
**Replies:** 2\
**Last updated:** [September 8, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/social-networking/114133 "2007-09-08T16:02:08Z")

</div>

Hi, I am making a dummy social networking website for my school project. Can anyone guide me on as to how to manage a social network on RoR? I want to do following things: Make public profiles Send friend request. A…

---

## [Can I add my own application environment?](https://www.ruby-forum.com/t/can-i-add-my-own-application-environment/114071)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 4\
**Last updated:** [September 8, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/can-i-add-my-own-application-environment/114071 "2007-09-08T15:19:04Z")

</div>

I’d like to set up a fourth environment for the application to run in. Something which will behave exactly as ‘production’, but will have its own database and where I can load up a special config/mymode.rb file, that …

---

## [Re: SVN and Rails problem](https://www.ruby-forum.com/t/re-svn-and-rails-problem/114143)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/re-svn-and-rails-problem/114143 "2007-09-08T14:26:56Z")

</div>

I had to setup two virtual servers on my machine. One for the App and one for the svn server and I hit them with different urls. I’m running on a windows box with only one mongrel server but this has been working fo…

---

## [Extend self Ð² Ð¼Ð¾Ð´ÑƒÐ»Ðµ](https://www.ruby-forum.com/t/extend-self-d-d-d-d-n-d-d/114138)

<div class="topic-metadata">

**Author:** [@Pavel\_Lysov](https://www.ruby-forum.com/u/Pavel_Lysov)\
**Replies:** 0\
**Last updated:** [September 8, 2007, 12:28pm UTC](https://www.ruby-forum.com/t/extend-self-d-d-d-d-n-d-d/114138 "2007-09-08T12:28:45Z")

</div>

ÐŸÑ€Ð¸Ð²ÐµÑ‚! Ð¡ÐµÐ¹Ñ‡Ð°Ñ Ð¾Ð±Ð½Ð°Ñ€ÑƒÐ¶Ð¸Ð» Ð½Ð¾Ð²ÑƒÑŽ Ð´Ð»Ñ Ð¼ÐµÐ½Ñ ÐºÐ¾Ð½ÑÑ‚Ñ€ÑƒÐºÑ†Ð¸ÑŽ Ñ extend self Ð² Ð¼Ð¾Ð´ÑƒÐ»Ðµ. (activesupport/lib/active\_support/dependencies.rb) module Dependencies extend self … en…

---

## [ActiveRecord calculations with joins on renamed foreign keys](https://www.ruby-forum.com/t/activerecord-calculations-with-joins-on-renamed-foreign-keys/114117)

<div class="topic-metadata">

**Author:** [@rbibby](https://www.ruby-forum.com/u/rbibby)\
**Replies:** 7\
**Last updated:** [September 8, 2007, 11:58am UTC](https://www.ruby-forum.com/t/activerecord-calculations-with-joins-on-renamed-foreign-keys/114117 "2007-09-08T11:58:44Z")

</div>

Hi, Could someone please explain to me how to do use the ActiveRecord helpers to do calculations with joins on renamed foreign keys? My situation: User Model: has\_many :books Book Model: belongs\_to :created\_by, …

---

## [12\_hour\_time\_select plugin help](https://www.ruby-forum.com/t/12-hour-time-select-plugin-help/111285)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 9:07am UTC](https://www.ruby-forum.com/t/12-hour-time-select-plugin-help/111285 "2007-09-08T09:07:31Z")

</div>

After creating a directory called 12\_hour\_time\_select in my plugins folder, I added this statement to my view: \<%= select\_time(Time.now, :twelve\_hour =\> true) %\> recycled the server. Now when I display the view I get …

---

## [Activerecord result set count](https://www.ruby-forum.com/t/activerecord-result-set-count/114114)

<div class="topic-metadata">

**Author:** [@chrispa](https://www.ruby-forum.com/u/chrispa)\
**Replies:** 2\
**Last updated:** [September 8, 2007, 7:10am UTC](https://www.ruby-forum.com/t/activerecord-result-set-count/114114 "2007-09-08T07:10:25Z")

</div>

Hello all, Can anyone clear this up for me?.. Example: 1 table, 1 record in table result = Stuff.find(:all) result.size =\> 1 result = Stuff.find(1) result.size NoMethodError: undefined method \`siz…

---

## [Attachment\_fu, PDF files and :db\_file storage type](https://www.ruby-forum.com/t/attachment-fu-pdf-files-and-db-file-storage-type/114078)

<div class="topic-metadata">

**Author:** [@gattox](https://www.ruby-forum.com/u/gattox)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 5:44am UTC](https://www.ruby-forum.com/t/attachment-fu-pdf-files-and-db-file-storage-type/114078 "2007-09-08T05:44:21Z")

</div>

Problem: correctly uploading PDF files, PNG, JPEG and storing in MySQL dbase; when downloading (and it seems only with PDF files) with send\_data and saving on file system, consistently only 2kbyte of data are download…

---

## [Expected ... to define ... errors after restart](https://www.ruby-forum.com/t/expected-to-define-errors-after-restart/114097)

<div class="topic-metadata">

**Author:** [@JN\_Coward](https://www.ruby-forum.com/u/JN_Coward)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 5:13am UTC](https://www.ruby-forum.com/t/expected-to-define-errors-after-restart/114097 "2007-09-08T05:13:20Z")

</div>

Hey there, I rebooted my server after a power outage and cannot get my site to work again. I am getting a lot of errors like: Expected /home/jonas/rails/td/current/config/…/app/models/post.rb to define Post and sim…

---

## [RoR apps that act as web user agents?](https://www.ruby-forum.com/t/ror-apps-that-act-as-web-user-agents/114115)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 3:16am UTC](https://www.ruby-forum.com/t/ror-apps-that-act-as-web-user-agents/114115 "2007-09-08T03:16:09Z")

</div>

I’d like to find some examples of Rails apps that act as web “user agents” (i.e., “portals” to the web at large). That is, programs that pass requests up and content back down, but also add some local intelligence, et…

---

## [Unicode and ROR](https://www.ruby-forum.com/t/unicode-and-ror/114091)

<div class="topic-metadata">

**Author:** [@stitcher](https://www.ruby-forum.com/u/stitcher)\
**Replies:** 1\
**Last updated:** [September 8, 2007, 12:25am UTC](https://www.ruby-forum.com/t/unicode-and-ror/114091 "2007-09-08T00:25:33Z")

</div>

Hi! I have created a simple translation web application, but it seems that I’m missing something. The controller part, where I set the value is giving me an exception unless I’m sending plain English characters. For…

---

## [Form\_remote\_tag :confirm tag](https://www.ruby-forum.com/t/form-remote-tag-confirm-tag/114106)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/form-remote-tag-confirm-tag/114106 "2007-09-07T23:23:51Z")

</div>

\<% form\_remote\_tag( :url =\> { :action =\> ‘add\_items’, :id =\> @vtl.id}, :html =\> {:id =\> ‘add\_items\_form’}, :confirm =\> “Are you sure stuff” ) do %\> That is the generic form\_remote\_tag that i have used so far. But, i…

---

## [Update method](https://www.ruby-forum.com/t/update-method/114103)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/update-method/114103 "2007-09-07T23:04:50Z")

</div>

I have a question on updating records. I have this User model that requires a password in order to save. In the database there is the password hash and salt so I don’t save the password. However, when I retrieve a use…

---

## [Looking for advice on table/model relationships for "adding](https://www.ruby-forum.com/t/looking-for-advice-on-table-model-relationships-for-adding/113038)

<div class="topic-metadata">

**Author:** [@Yuval](https://www.ruby-forum.com/u/Yuval)\
**Replies:** 9\
**Last updated:** [September 7, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/looking-for-advice-on-table-model-relationships-for-adding/113038 "2007-09-07T22:49:48Z")

</div>

Hi folks. I am developing a simple system where users can add other users as friends. I have everything working, but after poring over Agile Web D. With Rails, I feel like there must be a more Active Recordy way of go…

---

## [Deploying and migrations](https://www.ruby-forum.com/t/deploying-and-migrations/114100)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/deploying-and-migrations/114100 "2007-09-07T22:48:48Z")

</div>

I’ve got an app running on a remote server in production env that I’ve been deploying with capistrano. I recently added file 002 in db/ migrate. I did a cap deploy\_with\_migrations and it wiped out all of my data. I…

---

## [Run your production apps with style](https://www.ruby-forum.com/t/run-your-production-apps-with-style/114102)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/run-your-production-apps-with-style/114102 "2007-09-07T22:35:31Z")

</div>

What do cool kids everywhere have? Style. In fact, if you don’t have style, you’re probably not one of the cool kids, and you are on the outside looking in. You know you want to have style, but you’re not sure what…

---

## [Rest?](https://www.ruby-forum.com/t/rest/114047)

<div class="topic-metadata">

**Author:** [@pieterjongsma](https://www.ruby-forum.com/u/pieterjongsma)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/rest/114047 "2007-09-07T22:18:56Z")

</div>

Hi, I’m trying to get a hang of REST, but I can’t seem to figure the following out by myself. The problem is that all paths are working fine, such as event\_path, new\_event\_path etc. But update\_event\_path is not work…

---

## [Basic Authentication fails with curl using restful\_authentic](https://www.ruby-forum.com/t/basic-authentication-fails-with-curl-using-restful-authentic/114076)

<div class="topic-metadata">

**Author:** [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Replies:** 5\
**Last updated:** [September 7, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/basic-authentication-fails-with-curl-using-restful-authentic/114076 "2007-09-07T21:54:41Z")

</div>

Rails 1.2.3 Ruby 1.8.4 url 7.15.5 I have a simple app that uses the restful\_authentication plugin. Authentication works great from the browser but when I try to test things via curl I get “Couldn’t authenticate you”…

---

## [How to discover Content-Type in ApplicationController](https://www.ruby-forum.com/t/how-to-discover-content-type-in-applicationcontroller/114085)

<div class="topic-metadata">

**Author:** [@gioele](https://www.ruby-forum.com/u/gioele)\
**Replies:** 2\
**Last updated:** [September 7, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/how-to-discover-content-type-in-applicationcontroller/114085 "2007-09-07T20:57:21Z")

</div>

How can I discover the Content-Type of the document that is about to be outputted by the current request? I’m inside an after\_filter in ApplicationController. headers{} does not contain the Content-Type field when the…

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

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