# Rails

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

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

---

## [Problem with CRUD](https://www.ruby-forum.com/t/problem-with-crud/104738)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 5\
**Last updated:** [May 23, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/problem-with-crud/104738 "2007-05-23T20:39:57Z")

</div>

What do I do wrong? map.resources :books def BooksController def create # Code end def index # Code end Other code end If I make a POST to books\_url it calls index. What’s wrong? Regards I’ve probably left m…

---

## [ImageScience, Mini-Magick and RMagick](https://www.ruby-forum.com/t/imagescience-mini-magick-and-rmagick/104898)

<div class="topic-metadata">

**Author:** [@miles](https://www.ruby-forum.com/u/miles)\
**Replies:** 6\
**Last updated:** [May 23, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/imagescience-mini-magick-and-rmagick/104898 "2007-05-23T20:21:52Z")

</div>

I’m going to be generating thumbnails from user uploaded images. I’m looking around at the libraries available to do this sort of thing and there are three that look promising. ImageScience – http://seattlerb.rubyforg…

---

## [Original\_filename - where documented?](https://www.ruby-forum.com/t/original-filename-where-documented/104909)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/original-filename-where-documented/104909 "2007-05-23T20:04:51Z")

</div>

This one is probably obvious to everyone but me. In a file upload, I know of the “original\_filename” method. I’m also assuming there are other similar methods related to the uploaded file. Where in heaven’s name are t…

---

## [Caching and mongrel](https://www.ruby-forum.com/t/caching-and-mongrel/104791)

<div class="topic-metadata">

**Author:** [@mrnice](https://www.ruby-forum.com/u/mrnice)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/caching-and-mongrel/104791 "2007-05-23T19:51:49Z")

</div>

Hi, I have turned on caching and am using the action controller directive caches\_page for an action that returns an image file (used in the HTML img src attribute). The first time I visit the page which contains tho…

---

## [Because I have east error?](https://www.ruby-forum.com/t/because-i-have-east-error/129605)

<div class="topic-metadata">

**Author:** [@javier\_barcena](https://www.ruby-forum.com/u/javier_barcena)\
**Replies:** 5\
**Last updated:** [May 23, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/because-i-have-east-error/129605 "2007-05-23T19:38:48Z")

</div>

Hello James. a question. because I have east error. stick the code therefore you help me. thanks. dummies javier@dummies:~/rails\_app/martina$ script/generate plugin\_migration create db/migrate create db/migrate/001…

---

## [Engine/memory](https://www.ruby-forum.com/t/engine-memory/104905)

<div class="topic-metadata">

**Author:** [@Marcello\_P](https://www.ruby-forum.com/u/Marcello_P)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/engine-memory/104905 "2007-05-23T18:57:43Z")

</div>

Hello, I have one large project developed with Rails. It is used by some clients. But one of my clients want some sort of customization. As is is based in the main project, I’m using Engines to make this client’s ch…

---

## [Royal install screwup help](https://www.ruby-forum.com/t/royal-install-screwup-help/104904)

<div class="topic-metadata">

**Author:** [@ZuG](https://www.ruby-forum.com/u/ZuG)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/royal-install-screwup-help/104904 "2007-05-23T18:46:42Z")

</div>

Hello, I am attempting to get redmine (http://www.redmine.org/) working. I installed ruby from source and rails according to the directions at Ruby on Rails — A web-app framework that includes everything needed to cre…

---

## [Connect to Sybase using SSL](https://www.ruby-forum.com/t/connect-to-sybase-using-ssl/104902)

<div class="topic-metadata">

**Author:** [@fredknowles](https://www.ruby-forum.com/u/fredknowles)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/connect-to-sybase-using-ssl/104902 "2007-05-23T18:33:36Z")

</div>

Is it possible to connect to a Sybase DB using SSL? The ctlib library doesn’t seem to support it.

---

## [Can't get link\_to to work](https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/cant-get-link-to-to-work/104897 "2007-05-23T17:35:13Z")

</div>

Ok, I have the following in a view: link\_to(‘Change’, :controller =\> ‘sales\_order’, :action =\> ‘assign\_difficulty’, :id =\> @sales\_order.id) I have this in my sales\_order\_controller: def assign\_difficulty # some cod…

---

## [Apache + mongrel + rails/w capistrano + awstats...how?](https://www.ruby-forum.com/t/apache-mongrel-rails-w-capistrano-awstats-how/92363)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/apache-mongrel-rails-w-capistrano-awstats-how/92363 "2007-05-23T17:28:33Z")

</div>

hi, i’ve installed awstats and it works very well…until i start the mongrel cluster. when mongrel is running rails works perfectly, but i can’t access anymore to the awstats page now i’ve rails under /home/app/produc…

---

## [Multiple foreign keys to the same type of table](https://www.ruby-forum.com/t/multiple-foreign-keys-to-the-same-type-of-table/104886)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/multiple-foreign-keys-to-the-same-type-of-table/104886 "2007-05-23T17:27:33Z")

</div>

I’m not sure how to have two foreign keys of the same type. e.g. class CreateFriends \< ActiveRecord::Migration def self.up create\_table :friends do |t| t.column :user\_id, :integer t.column :user\_id, :integer t.col…

---

## [Error serving generated xml - Windows - Apache - Mongrel](https://www.ruby-forum.com/t/error-serving-generated-xml-windows-apache-mongrel/92382)

<div class="topic-metadata">

**Author:** [@b0rdslide](https://www.ruby-forum.com/u/b0rdslide)\
**Replies:** 6\
**Last updated:** [May 23, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/error-serving-generated-xml-windows-apache-mongrel/92382 "2007-05-23T17:10:37Z")

</div>

I am attempting to follow the document created by Brain Hogan on “Serving Multiple Rails Applications on Windows with Apache and Mongrel” and all seems well except for one issue. One of my actions generates an xml doc…

---

## [Is it mandatory to create that auxiliary table for HABTM?](https://www.ruby-forum.com/t/is-it-mandatory-to-create-that-auxiliary-table-for-habtm/104888)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 5:08pm UTC](https://www.ruby-forum.com/t/is-it-mandatory-to-create-that-auxiliary-table-for-habtm/104888 "2007-05-23T17:08:29Z")

</div>

Hello, Is there a way to create those has\_and\_belongs\_to\_many without the need of an auxiliary table ? coelho

---

## [Testing for multipart form uploads](https://www.ruby-forum.com/t/testing-for-multipart-form-uploads/92869)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/testing-for-multipart-form-uploads/92869 "2007-05-23T16:25:20Z")

</div>

Hi, I’m trying to do integration tests that require uploading files via multipart posts. Have seen a very similar discussion, but cannot get it to work. Maybe, it’s out of date now with Rails 1.2.3: http://groups.go…

---

## [The cookbook - category delete?](https://www.ruby-forum.com/t/the-cookbook-category-delete/104876)

<div class="topic-metadata">

**Author:** [@marko](https://www.ruby-forum.com/u/marko)\
**Replies:** 5\
**Last updated:** [May 23, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/the-cookbook-category-delete/104876 "2007-05-23T16:13:18Z")

</div>

How can I delete category and set all recipes linked to that category to “no category”? The tutorial at O’Reilly says nothing about that…

---

## [Mongrel failing to start on bootup as PID files still exist](https://www.ruby-forum.com/t/mongrel-failing-to-start-on-bootup-as-pid-files-still-exist/104669)

<div class="topic-metadata">

**Author:** [@Niall\_M](https://www.ruby-forum.com/u/Niall_M)\
**Replies:** 9\
**Last updated:** [May 23, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/mongrel-failing-to-start-on-bootup-as-pid-files-still-exist/104669 "2007-05-23T15:41:13Z")

</div>

Hi, One of my site’s servers had a problem yesterday and the host restarted it. During boot up Mongrel failed to start as the PID files still existed in /log I didn’t find out about this reboot until several hours l…

---

## [Trouble with Ruby GetText and frozen Rails?](https://www.ruby-forum.com/t/trouble-with-ruby-gettext-and-frozen-rails/104882)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/trouble-with-ruby-gettext-and-frozen-rails/104882 "2007-05-23T15:38:11Z")

</div>

I’m having trouble getting GetText to work on my Rails project. My setup: Ruby 1.8.5 (as it is used by my host) gettext 1.9.0 (win32 gem) Rails 1.2.2 (frozen through svn:externals on /vendor) As long as I have Rails…

---

## [Read database.yml from a migration](https://www.ruby-forum.com/t/read-database-yml-from-a-migration/104832)

<div class="topic-metadata">

**Author:** [@desertpenguin](https://www.ruby-forum.com/u/desertpenguin)\
**Replies:** 4\
**Last updated:** [May 23, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/read-database-yml-from-a-migration/104832 "2007-05-23T14:22:55Z")

</div>

I need to know which environment and database my migration is running for. I can read RAILS\_ENV How do I lookup my environment in database.yml? Thanks for any help

---

## [Making calls to PC like Skype and yahoo chat,](https://www.ruby-forum.com/t/making-calls-to-pc-like-skype-and-yahoo-chat/104867)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 1:42pm UTC](https://www.ruby-forum.com/t/making-calls-to-pc-like-skype-and-yahoo-chat/104867 "2007-05-23T13:42:27Z")

</div>

HI every body, I want to create a rails application in that I want to include voice chat between users( phone call PC to PC) like skype and yahoo chat. Is there any standard library or plugin in ruby for the VOIP. Pls…

---

## [Exception aggregator / classifier](https://www.ruby-forum.com/t/exception-aggregator-classifier/104874)

<div class="topic-metadata">

**Author:** [@jacob\_a](https://www.ruby-forum.com/u/jacob_a)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/exception-aggregator-classifier/104874 "2007-05-23T13:41:51Z")

</div>

Hi list, I’m looking for a way to get a better resolution to unhandled exceptions. As of now I’m using the exception notifer plugin. It is nice to get an email when an exception occurs, but I would like to also have …

---

## [Creating Calander Events](https://www.ruby-forum.com/t/creating-calander-events/104872)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/creating-calander-events/104872 "2007-05-23T12:58:00Z")

</div>

Hello I want to create an calander event that can make the registration of events on hourly basis, daily, and can be monthly, and I want is it possiible to make calander events if so plz write the mthod or link to ge…

---

## [Code Protection](https://www.ruby-forum.com/t/code-protection/104775)

<div class="topic-metadata">

**Author:** [@monica](https://www.ruby-forum.com/u/monica)\
**Replies:** 7\
**Last updated:** [May 23, 2007, 11:02am UTC](https://www.ruby-forum.com/t/code-protection/104775 "2007-05-23T11:02:29Z")

</div>

Hi everyone! The project which I’m working on is going to be installed in several clients side. Do you know if it exists any way of protecting our code? Thanks a lot in advance! Monica

---

## [RESTful RESOURCE PARTIAL UPDATE](https://www.ruby-forum.com/t/restful-resource-partial-update/104862)

<div class="topic-metadata">

**Author:** [@lambo4jos](https://www.ruby-forum.com/u/lambo4jos)\
**Replies:** 4\
**Last updated:** [May 23, 2007, 11:02am UTC](https://www.ruby-forum.com/t/restful-resource-partial-update/104862 "2007-05-23T11:02:28Z")

</div>

I have modified scaffolding code slightly to get three edit actions and three update actions. The requirement: to allow users to edit attributes for the same model from seperate forms instead of one form, while using …

---

## [Ordering rows by a number of referencing records](https://www.ruby-forum.com/t/ordering-rows-by-a-number-of-referencing-records/104863)

<div class="topic-metadata">

**Author:** [@yuleven](https://www.ruby-forum.com/u/yuleven)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 10:53am UTC](https://www.ruby-forum.com/t/ordering-rows-by-a-number-of-referencing-records/104863 "2007-05-23T10:53:27Z")

</div>

Hello all, There are 2 tables in a one-to-many relation. I want to order rows in the parent table according to the number of rows in the child table referencing the parent table. In SQL I would do it the following w…

---

## [Apache Load Balancer Manager query](https://www.ruby-forum.com/t/apache-load-balancer-manager-query/104860)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 10:05am UTC](https://www.ruby-forum.com/t/apache-load-balancer-manager-query/104860 "2007-05-23T10:05:23Z")

</div>

Hi, I have managed to get Apache working with two mongrel instances using proxy\_balancer … at least I think I have. When I look at the Load Balancer Manager page it just says: \<\<\<\<\<\<\<\<\<\<\<\<\<\<\< Load Balancer Manager f…

---

## [Using data from a query fired in rails](https://www.ruby-forum.com/t/using-data-from-a-query-fired-in-rails/104856)

<div class="topic-metadata">

**Author:** [@athind](https://www.ruby-forum.com/u/athind)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 9:55am UTC](https://www.ruby-forum.com/t/using-data-from-a-query-fired-in-rails/104856 "2007-05-23T09:55:04Z")

</div>

Hello, I have a query that returns a single number that I want to use further in my program. Could you please let me know how I could access the data inside the object returned by the query. I invoke it as: numscen…

---

## [Getting parameter](https://www.ruby-forum.com/t/getting-parameter/104859)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 9:52am UTC](https://www.ruby-forum.com/t/getting-parameter/104859 "2007-05-23T09:52:06Z")

</div>

Hi all, I put a variable in my url (www.domain.com/language/controller/ action). The ‘language’ is always in the url and should be read out with every new call. Do I need to read it out at the ApplicationController? …

---

## [Edit form updating with text](https://www.ruby-forum.com/t/edit-form-updating-with-text/104551)

<div class="topic-metadata">

**Author:** [@NickT](https://www.ruby-forum.com/u/NickT)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 9:30am UTC](https://www.ruby-forum.com/t/edit-form-updating-with-text/104551 "2007-05-23T09:30:20Z")

</div>

So I think I’m making this a lot harder than it really is. I am still learning the ins and out of Rails so and I think I’m just missing something easy. I am trying to create an edit form that allows a user to select a…

---

## [Paginating collection](https://www.ruby-forum.com/t/paginating-collection/104858)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 9:00am UTC](https://www.ruby-forum.com/t/paginating-collection/104858 "2007-05-23T09:00:32Z")

</div>

might be basic question but need help def list search\_alpha = params\[:starts\_with\]+’%’ @posts = Post.find( :all, :conditions =\> \[ “title LIKE ?”, search\_alpha \] ) #@post\_pages, @posts = paginate :posts, :per\_page =\>…

---

## [Solution: Getting will\_paginate and acts\_as\_taggable to play](https://www.ruby-forum.com/t/solution-getting-will-paginate-and-acts-as-taggable-to-play/104855)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 8:25am UTC](https://www.ruby-forum.com/t/solution-getting-will-paginate-and-acts-as-taggable-to-play/104855 "2007-05-23T08:25:13Z")

</div>

I’m using both will\_paginate http://errtheblog.com/post/4791 and acts\_as\_taggable plugins on the app http://www.themotherhood.net/ I’m working on. The tagged results need to be paged just like other lists. Here’s my h…

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

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