# Rails

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

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

---

## [Controller url\_for modifies request object?](https://www.ruby-forum.com/t/controller-url-for-modifies-request-object/89343)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 2\
**Last updated:** [March 20, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/controller-url-for-modifies-request-object/89343 "2007-03-20T13:04:51Z")

</div>

Hi, In my controller, I do something like this: MyMailer.deliver\_signup\_notification(url\_for(:subdomain =\> account.subdomain, :controller =\> ‘hello’)) And a few lines later: redirect\_to :action =\> ‘index’ Much to m…

---

## [A tiny RMagick extension for image metadata](https://www.ruby-forum.com/t/a-tiny-rmagick-extension-for-image-metadata/67331)

<div class="topic-metadata">

**Author:** [@wgamin](https://www.ruby-forum.com/u/wgamin)\
**Replies:** 1\
**Last updated:** [March 20, 2007, 11:54am UTC](https://www.ruby-forum.com/t/a-tiny-rmagick-extension-for-image-metadata/67331 "2007-03-20T11:54:22Z")

</div>

Looking for easier access to image metadata? EXIF and IPTC? So was I, but I couldn’t find one I really liked. So I wrote my own. Features: returns EXIF and IPTC data as a hash. tries to type cast the data correctl…

---

## [Writing the user\_id of user when creating an item](https://www.ruby-forum.com/t/writing-the-user-id-of-user-when-creating-an-item/89259)

<div class="topic-metadata">

**Author:** [@pleigh](https://www.ruby-forum.com/u/pleigh)\
**Replies:** 3\
**Last updated:** [March 20, 2007, 10:43am UTC](https://www.ruby-forum.com/t/writing-the-user-id-of-user-when-creating-an-item/89259 "2007-03-20T10:43:30Z")

</div>

hi there, i have this problem, i am a newb in ror and don’t know how to do this. i have a user\_id column in a database table named items, i also use the login generator, i can signup, login, and logout, no problem wit…

---

## [Globalize and Pluralization Rules](https://www.ruby-forum.com/t/globalize-and-pluralization-rules/66357)

<div class="topic-metadata">

**Author:** [@Ondrej\_Jaura](https://www.ruby-forum.com/u/Ondrej_Jaura)\
**Replies:** 2\
**Last updated:** [March 20, 2007, 10:34am UTC](https://www.ruby-forum.com/t/globalize-and-pluralization-rules/66357 "2007-03-20T10:34:23Z")

</div>

Hello, Please, where to find some examples how to use pluralization rules in Globalize? I would like to see how to use it also for languages such as Slovak or Polish, where the rules are slightly more complicated. e…

---

## [Ferret - Segmentation fault](https://www.ruby-forum.com/t/ferret-segmentation-fault/89414)

<div class="topic-metadata">

**Author:** [@stemey](https://www.ruby-forum.com/u/stemey)\
**Replies:** 1\
**Last updated:** [March 20, 2007, 10:21am UTC](https://www.ruby-forum.com/t/ferret-segmentation-fault/89414 "2007-03-20T10:21:19Z")

</div>

Hi, I tried to use the stem\_filter and consistently get segmentation faults when creating the index. I use ferret 0.11.3. Is there any cure? Thanks, Stefan

---

## [Obtaining table information from "belongs\_to"? (reflection?)](https://www.ruby-forum.com/t/obtaining-table-information-from-belongs-to-reflection/89320)

<div class="topic-metadata">

**Author:** [@Vic](https://www.ruby-forum.com/u/Vic)\
**Replies:** 1\
**Last updated:** [March 20, 2007, 10:06am UTC](https://www.ruby-forum.com/t/obtaining-table-information-from-belongs-to-reflection/89320 "2007-03-20T10:06:10Z")

</div>

Hi all, How would one obtain the database table name if given a column name? Does ActiveRecord know how to do that? For example if there is a model that “belongs\_to :myobject\_id”, is there a way to get the table name…

---

## [Passing url withe period escape char](https://www.ruby-forum.com/t/passing-url-withe-period-escape-char/89394)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 4\
**Last updated:** [March 20, 2007, 7:10am UTC](https://www.ruby-forum.com/t/passing-url-withe-period-escape-char/89394 "2007-03-20T07:10:11Z")

</div>

In my app I’m trying to use url’s like /foo/23/bar Everything works, except if there’s a decimal. That is, I get a routing error if that 23 is a 23.5 or a 23.0. I saw a bug posted on escape chars and it looks like i…

---

## [How to render a helper method?](https://www.ruby-forum.com/t/how-to-render-a-helper-method/89404)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 0\
**Last updated:** [March 20, 2007, 7:07am UTC](https://www.ruby-forum.com/t/how-to-render-a-helper-method/89404 "2007-03-20T07:07:54Z")

</div>

… can i render helper method in a controller? like: render :helper =\> text\_field(‘foo’,‘bar’) #won’t work besides put the method inside a partial.

---

## [Reg: regular expression](https://www.ruby-forum.com/t/reg-regular-expression/89401)

<div class="topic-metadata">

**Author:** [@shiva\_98](https://www.ruby-forum.com/u/shiva_98)\
**Replies:** 2\
**Last updated:** [March 20, 2007, 6:37am UTC](https://www.ruby-forum.com/t/reg-regular-expression/89401 "2007-03-20T06:37:40Z")

</div>

how to validate using regular expression using 1.name should be alpha numeric 2.min 5 characters and max 15 3.“two alphabets followed by a number” format not allowed in the beginning .if any one have solution.pls sen…

---

## [In-place editing with validation](https://www.ruby-forum.com/t/in-place-editing-with-validation/52322)

<div class="topic-metadata">

**Author:** [@GeekEntrepreneu](https://www.ruby-forum.com/u/GeekEntrepreneu)\
**Replies:** 2\
**Last updated:** [March 20, 2007, 6:07am UTC](https://www.ruby-forum.com/t/in-place-editing-with-validation/52322 "2007-03-20T06:07:07Z")

</div>

is there a good in-place editing solution with rails that does validation too ?

---

## [Creating A Ruby On Rails Site Mirror](https://www.ruby-forum.com/t/creating-a-ruby-on-rails-site-mirror/89386)

<div class="topic-metadata">

**Author:** [@gulo](https://www.ruby-forum.com/u/gulo)\
**Replies:** 1\
**Last updated:** [March 20, 2007, 2:02am UTC](https://www.ruby-forum.com/t/creating-a-ruby-on-rails-site-mirror/89386 "2007-03-20T02:02:33Z")

</div>

We are setting up our a site mirror for our RubyOnRails application and I was wondering if there are any RoR applications or modules that would automate such a task. Thanks.

---

## [Multiple selection in select box in Rhtml](https://www.ruby-forum.com/t/multiple-selection-in-select-box-in-rhtml/89093)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 4\
**Last updated:** [March 20, 2007, 12:03am UTC](https://www.ruby-forum.com/t/multiple-selection-in-select-box-in-rhtml/89093 "2007-03-20T00:03:16Z")

</div>

How to select multiple entries in a select box in rhtml ? In html , it can be done by setting ‘multiple=true’. But in rhtml ‘select-tag’, how to do this ? Pls suggest me !

---

## [How to render language dependent .rhtml templates?](https://www.ruby-forum.com/t/how-to-render-language-dependent-rhtml-templates/89337)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/how-to-render-language-dependent-rhtml-templates/89337 "2007-03-19T22:34:29Z")

</div>

I want to localize my website, and do so with minimal server load increase. Most of the texts comes from .rhtml templates, so I figure, if the application rendered .rhtml pages per language, it would be more efficient…

---

## [\[ANN\] match your music taste with upcoming concerts -- highn](https://www.ruby-forum.com/t/ann-match-your-music-taste-with-upcoming-concerts-highn/89361)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 19, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/ann-match-your-music-taste-with-upcoming-concerts-highn/89361 "2007-03-19T21:56:21Z")

</div>

Hi Everyone, Just a friendly announcement for yet-another Rails project gone live, highnote. The concept is simple - you upload your iTunes XML Library and highnote will automatically keep an eye on upcoming concerts…

---

## [How to override default DB settings...Connect to remote DB](https://www.ruby-forum.com/t/how-to-override-default-db-settings-connect-to-remote-db/89357)

<div class="topic-metadata">

**Author:** [@premann](https://www.ruby-forum.com/u/premann)\
**Replies:** 1\
**Last updated:** [March 19, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/how-to-override-default-db-settings-connect-to-remote-db/89357 "2007-03-19T21:50:26Z")

</div>

Hi everyone, i am pretty much a beginner to Ruby on rails,and i wanted to develop a complete monitoring system for a grid application using ruby on rails.But i wanted to override the default settings of the DB connec…

---

## [Serialize limitations?](https://www.ruby-forum.com/t/serialize-limitations/89355)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/serialize-limitations/89355 "2007-03-19T21:49:19Z")

</div>

Banging my head about this one today and I can’t find any information on this in the API… I have two models… User and PersonRecord. PersonRecord is a model that is shared among several applications and hooked into a…

---

## [Gem remote fetch error](https://www.ruby-forum.com/t/gem-remote-fetch-error/89359)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 0\
**Last updated:** [March 19, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/gem-remote-fetch-error/89359 "2007-03-19T21:26:39Z")

</div>

I keep getting this error while trying to run gem update: ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) getaddrinfo: No address associated with nodename(SocketError) I’m on: gem --version is 0.9.2 A…

---

## [Passing a model as a parameter](https://www.ruby-forum.com/t/passing-a-model-as-a-parameter/89354)

<div class="topic-metadata">

**Author:** [@chris\_young](https://www.ruby-forum.com/u/chris_young)\
**Replies:** 4\
**Last updated:** [March 19, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/passing-a-model-as-a-parameter/89354 "2007-03-19T21:06:13Z")

</div>

Here’s the situation: I need to do a redirect from a controller and I want to pass an object to the redirect but I can’t figure out how to pass it without it being turned into an unreadable string. I’m doing this: r…

---

## [Table relations from forms](https://www.ruby-forum.com/t/table-relations-from-forms/88846)

<div class="topic-metadata">

**Author:** [@bart](https://www.ruby-forum.com/u/bart)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/table-relations-from-forms/88846 "2007-03-19T20:12:31Z")

</div>

Hi, I started with Ruby on Rails a few weeks ago and am looking for a ‘best practice’ to handle the creation of objects that relate to eachother. I will illustrate it with an example: My model consists of 2 classes t…

---

## [Joins in Rails](https://www.ruby-forum.com/t/joins-in-rails/89325)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/joins-in-rails/89325 "2007-03-19T19:48:29Z")

</div>

Hi guys, I have a find statement written like so in my event model: @events = find(:all, :conditions =\> \["((? BETWEEN start\_on AND end\_on) OR (? BETWEEN start\_on AND end\_on)) AND id != ?", start\_time,end\_time,event\_id…

---

## [Assert\_select](https://www.ruby-forum.com/t/assert-select/89348)

<div class="topic-metadata">

**Author:** [@Chris\_Ovenden](https://www.ruby-forum.com/u/Chris_Ovenden)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/assert-select/89348 "2007-03-19T19:45:28Z")

</div>

Hi all This is my first post here. I ave been using Rails for a couple of months, and am starting to put together a test suite. But I’m having a problem with assert\_select in my functional tests. According to the doc…

---

## [Polymorphic, many-to-many, self-referential data model](https://www.ruby-forum.com/t/polymorphic-many-to-many-self-referential-data-model/61118)

<div class="topic-metadata">

**Author:** [@jkadarusman](https://www.ruby-forum.com/u/jkadarusman)\
**Replies:** 7\
**Last updated:** [March 19, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/polymorphic-many-to-many-self-referential-data-model/61118 "2007-03-19T19:40:38Z")

</div>

No matter what I try I’ve been unable to work how to get this to work with the cool ActiveRecord helpers. I’m not sure if it’s possible, Josh Susser’s blog suggests it is, but damned if I can work it out… I have: C…

---

## [Flash based image cropping for ruby on rails](https://www.ruby-forum.com/t/flash-based-image-cropping-for-ruby-on-rails/88749)

<div class="topic-metadata">

**Author:** [@dan\_kuwachi](https://www.ruby-forum.com/u/dan_kuwachi)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/flash-based-image-cropping-for-ruby-on-rails/88749 "2007-03-19T19:32:19Z")

</div>

hey guys, I was wondering if there were any flash based image cropping tools that can integrate with ruby on rails. thx, -dan

---

## [How is this done with REST (blinksale account)?](https://www.ruby-forum.com/t/how-is-this-done-with-rest-blinksale-account/89112)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 3\
**Last updated:** [March 19, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/how-is-this-done-with-rest-blinksale-account/89112 "2007-03-19T19:22:19Z")

</div>

In Blinksale, the settings link in the top right takes you to the / account url. From there, the side nav takes you to /account;templates / account;reminders , etc. From what I’ve read, ;templates and ;reminders are …

---

## [How to integrate a PHP app with RoR app?](https://www.ruby-forum.com/t/how-to-integrate-a-php-app-with-ror-app/89326)

<div class="topic-metadata">

**Author:** [@wynners33](https://www.ruby-forum.com/u/wynners33)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/how-to-integrate-a-php-app-with-ror-app/89326 "2007-03-19T18:39:36Z")

</div>

I have developed a RoR application and would like add on a feature. Found a opensource solution (although developed in PHP). I wonder how I can integrate - they can share the same DB (MySQL) but how about session vari…

---

## [Best practice for loading aws s3 library on startup](https://www.ruby-forum.com/t/best-practice-for-loading-aws-s3-library-on-startup/89345)

<div class="topic-metadata">

**Author:** [@dan\_kuwachi](https://www.ruby-forum.com/u/dan_kuwachi)\
**Replies:** 0\
**Last updated:** [March 19, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/best-practice-for-loading-aws-s3-library-on-startup/89345 "2007-03-19T18:36:36Z")

</div>

Currently I have followed these instructions to get aws s3 working in my rails app http://developer.amazonwebservices.com/connect/entry.jspa?entryID=608 But its a little messy as a lot of the file uploading is actuall…

---

## [ActiveRecords - two fks](https://www.ruby-forum.com/t/activerecords-two-fks/89300)

<div class="topic-metadata">

**Author:** [@Zirael](https://www.ruby-forum.com/u/Zirael)\
**Replies:** 1\
**Last updated:** [March 19, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/activerecords-two-fks/89300 "2007-03-19T18:34:29Z")

</div>

Hi, I have two database tables Briefly: Projects -type -designer\_id -check\_designer\_id - ... Designers -name -... I want to create two foreign keys in Projects table and bot…

---

## [Password in development environnement](https://www.ruby-forum.com/t/password-in-development-environnement/89342)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/password-in-development-environnement/89342 "2007-03-19T18:18:33Z")

</div>

Hi Everyone, I noticed a strange behavior from Rails, When there’s password in the development environnement Rails give me this error \<\<Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM com…

---

## [List Menu](https://www.ruby-forum.com/t/list-menu/89278)

<div class="topic-metadata">

**Author:** [@hasana](https://www.ruby-forum.com/u/hasana)\
**Replies:** 2\
**Last updated:** [March 19, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/list-menu/89278 "2007-03-19T16:47:27Z")

</div>

In ruby, can i change the “text\_field” to “list menu”? For example like below… \*Gender : \<%= text\_field 'registration', 'gender' %\>

---

## [Problem with Yaml](https://www.ruby-forum.com/t/problem-with-yaml/89303)

<div class="topic-metadata">

**Author:** [@Bolo](https://www.ruby-forum.com/u/Bolo)\
**Replies:** 1\
**Last updated:** [March 19, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/problem-with-yaml/89303 "2007-03-19T16:32:24Z")

</div>

Hello I try to read yaml file. my model class Enseignant \< ActiveRecord::Base file\_column :photo, :magick =\> {:geometry =\> “250x250\>”}, :root\_path =\> File.join(RAILS\_ROOT, “public/”, “upload”), :web\_root =\> “upload…

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

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