# Rails

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

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

---

## [ORing of strings](https://www.ruby-forum.com/t/oring-of-strings/114033)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [September 7, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/oring-of-strings/114033 "2007-09-07T20:46:34Z")

</div>

Hi, I wanted to do this: get display\_name as one of those nick\_name, first and last in that order. @display\_name = @nick\_name || @first\_name || @second\_name but if nick\_name turns out be “” and not ni. so @display\_na…

---

## [Putting it in a box](https://www.ruby-forum.com/t/putting-it-in-a-box/114089)

<div class="topic-metadata">

**Author:** [@Mike\_P](https://www.ruby-forum.com/u/Mike_P)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/putting-it-in-a-box/114089 "2007-09-07T20:43:46Z")

</div>

My company has asked us to create a program that would be able to be customized then implemented many times. We have a core code base which includes the entire MVC structure. We would like to have that core separated…

---

## [Related selects w/ defaults from session](https://www.ruby-forum.com/t/related-selects-w-defaults-from-session/114095)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/related-selects-w-defaults-from-session/114095 "2007-09-07T20:25:32Z")

</div>

I have a series of 3 or 4 related select boxes (contents of 2nd dependent on selection in 1st, contents of 3rd dependent on selection in 2nd and so on). I’m implementing it using observe\_field on each select box and …

---

## [Unicode in URL param?](https://www.ruby-forum.com/t/unicode-in-url-param/113879)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/unicode-in-url-param/113879 "2007-09-07T20:24:11Z")

</div>

Can I put unicode chars in a URL param value? If so… how? Right now, in my URL params generated by Umlaut, Unicode seems to get corrupted. I have a string with unicode in it–when sent to the browser, it displays pro…

---

## [Ferret DRB, can add/modify index, but not search](https://www.ruby-forum.com/t/ferret-drb-can-add-modify-index-but-not-search/114092)

<div class="topic-metadata">

**Author:** [@brandonpt](https://www.ruby-forum.com/u/brandonpt)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/ferret-drb-can-add-modify-index-but-not-search/114092 "2007-09-07T20:07:35Z")

</div>

I’m trying to use the Ferret DRB server to avoid concurrency issues when using multiple mongrels. I can successfully add and edit data on my index via the DRB server, however, when I search the index, I get the follo…

---

## [\[ANN\] The Ruby East Conference is Now 3 Weeks Away (Reminder](https://www.ruby-forum.com/t/ann-the-ruby-east-conference-is-now-3-weeks-away-reminder/114086)

<div class="topic-metadata">

**Author:** [@Eric\_Snyder](https://www.ruby-forum.com/u/Eric_Snyder)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/ann-the-ruby-east-conference-is-now-3-weeks-away-reminder/114086 "2007-09-07T19:05:22Z")

</div>

The Ruby East conference is now just 3 weeks away! Register at Chariot Solutions is proud to be able to bring some of the top speakers in the Ruby and Rails communities to our region. Location: Penn State Great Vall…

---

## [Using foreign key in store\_dir](https://www.ruby-forum.com/t/using-foreign-key-in-store-dir/114083)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/using-foreign-key-in-store-dir/114083 "2007-09-07T18:58:21Z")

</div>

I am new to Ruby/Rails, and I’m writing an app that allows the user to upload mulitple images to attach to a user. The user data is stored in the Entity model, and the picture data (including file\_column) is stored …

---

## [Problems getting flash to display](https://www.ruby-forum.com/t/problems-getting-flash-to-display/113991)

<div class="topic-metadata">

**Author:** [@bnab](https://www.ruby-forum.com/u/bnab)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 6:55pm UTC](https://www.ruby-forum.com/t/problems-getting-flash-to-display/113991 "2007-09-07T18:55:21Z")

</div>

I have a controller that looks exactly like the code below. My problem is that I can’t get the flash\[:notice\]'s to show up on the page. Interestingly though, I when I test this controller, I have tests that make it g…

---

## [Using a named route from elsewhere in RoR](https://www.ruby-forum.com/t/using-a-named-route-from-elsewhere-in-ror/114081)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/using-a-named-route-from-elsewhere-in-ror/114081 "2007-09-07T18:22:03Z")

</div>

Hi Everybody, I’m trying to use named routes (method foo\_url where foo is the route). I’m trying to call the method from inside a Liquid tag definition, so the class is not a subclass of ActionController foo\_url gets…

---

## [Pass a ruby value to javascript in form\_remote\_tag](https://www.ruby-forum.com/t/pass-a-ruby-value-to-javascript-in-form-remote-tag/113974)

<div class="topic-metadata">

**Author:** [@deramoo](https://www.ruby-forum.com/u/deramoo)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/pass-a-ruby-value-to-javascript-in-form-remote-tag/113974 "2007-09-07T17:58:49Z")

</div>

hi, guys, I am trying to pass a ruby value to a javascript function which is called in “:complete” of a form\_remote\_tag, but everytime I submit the form, javascript can’t get the changed value. Here is how I tried. i…

---

## [Need your help with rails plugin](https://www.ruby-forum.com/t/need-your-help-with-rails-plugin/114057)

<div class="topic-metadata">

**Author:** [@Mr\_tony](https://www.ruby-forum.com/u/Mr_tony)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/need-your-help-with-rails-plugin/114057 "2007-09-07T17:57:42Z")

</div>

we are building a plugin for rails on eclipse platform so i need to ask a question about that. how to make a plug in to allow user to create a new file with whatever extension? hope you can help. thanx a lot for your …

---

## [How to pass an array through url\_for](https://www.ruby-forum.com/t/how-to-pass-an-array-through-url-for/114064)

<div class="topic-metadata">

**Author:** [@aotianlong](https://www.ruby-forum.com/u/aotianlong)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/how-to-pass-an-array-through-url-for/114064 "2007-09-07T17:45:12Z")

</div>

hi , every one. i just want to generate url from url\_for method like this: url\_for(:controller=\>“users”,:action=\>“index”,:names=\>\[“aotianlong”,“ayowaya”\]) i except it’s generate users?names\[\]=aotianlong&names\[\]=ayow…

---

## [Find from any table](https://www.ruby-forum.com/t/find-from-any-table/114068)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/find-from-any-table/114068 "2007-09-07T17:31:09Z")

</div>

hello frnds Suppose i have generated pages using scaffolding so in the list.rhtml it is creating something like \<% for abc in @abc %\> so here when i put an if condition it will search from the abc db only but if suppo…

---

## [Enable a plugin only in production](https://www.ruby-forum.com/t/enable-a-plugin-only-in-production/114063)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/enable-a-plugin-only-in-production/114063 "2007-09-07T17:21:10Z")

</div>

I’ve started using xsendfile for speeding up delivery of files that Rails needs to send. The only thing is, I can only use it in production where Apache and the appropriate module exist. What would be a good way for s…

---

## [Render :partial F5 refresh problem](https://www.ruby-forum.com/t/render-partial-f5-refresh-problem/114075)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/render-partial-f5-refresh-problem/114075 "2007-09-07T17:12:07Z")

</div>

hello, who know how to fix problem with refreshing web-page, i have a controller welcome with index.rhtml and \_page1.rhtml, \_page1.rhtml. in index.rhtm i have a div with id=‘main-context’, and i render :partial =\> ‘…

---

## [Strange problem in production](https://www.ruby-forum.com/t/strange-problem-in-production/114066)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 5\
**Last updated:** [September 7, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/strange-problem-in-production/114066 "2007-09-07T17:07:07Z")

</div>

let’s say I have some authors and update their books list (very complicated algorithm). Everything works great in development mode, however in production mode the id’s get mixed, the books get assigned to the wrong au…

---

## [Push question](https://www.ruby-forum.com/t/push-question/114054)

<div class="topic-metadata">

**Author:** [@mariko](https://www.ruby-forum.com/u/mariko)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/push-question/114054 "2007-09-07T16:50:04Z")

</div>

In my app, a Post belongs\_to a user and a User has\_many posts. Say I’d like to change the user the post belongs to. post = Post.find(1) post.user \<\< anotheruser … gives me an error, since post.user is already defined…

---

## [Looking for Rails Developers in Orange County, California](https://www.ruby-forum.com/t/looking-for-rails-developers-in-orange-county-california/114021)

<div class="topic-metadata">

**Author:** [@Eric\_Olsen](https://www.ruby-forum.com/u/Eric_Olsen)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/looking-for-rails-developers-in-orange-county-california/114021 "2007-09-07T16:25:00Z")

</div>

Are there such people? If so, let me know as I expect to be kicking off a project soon.

---

## [Rails wiki search page spammed](https://www.ruby-forum.com/t/rails-wiki-search-page-spammed/114067)

<div class="topic-metadata">

**Author:** [@Kosmas](https://www.ruby-forum.com/u/Kosmas)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/rails-wiki-search-page-spammed/114067 "2007-09-07T15:19:49Z")

</div>

Just tried to use the rails wiki search page, and it’s spammed. Tried to use the back in time or edit, and both of them return with ‘Service Temporarily Unavailable’. Could an admin be able to fix it?

---

## [Strange charset problem](https://www.ruby-forum.com/t/strange-charset-problem/114065)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/strange-charset-problem/114065 "2007-09-07T15:03:06Z")

</div>

As long as I know charset directive directs browser in which charset data must be displyed. This is my layout section which tells that my data is in windows-1250 character set. etc..... But browsers (IE, Opera or…

---

## [How to create an Admin user using migration?](https://www.ruby-forum.com/t/how-to-create-an-admin-user-using-migration/114053)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 4\
**Last updated:** [September 7, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/how-to-create-an-admin-user-using-migration/114053 "2007-09-07T14:19:53Z")

</div>

Hi, I am using act\_as\_authenticated plugin for authentication purposes. Now i need to add an user (Admin) in migration so that i can use this for authorization purposes. Issues is how will add an user , i would not k…

---

## [Problem calling super constructor](https://www.ruby-forum.com/t/problem-calling-super-constructor/114061)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/problem-calling-super-constructor/114061 "2007-09-07T13:58:20Z")

</div>

I had a lot of messy controller code that i’m in the process of tidying up (moving logic into the models for example). Now, this no longer works and i don’t understand the message “undefined method \`article=’ for #A…

---

## [No build! on association?](https://www.ruby-forum.com/t/no-build-on-association/113936)

<div class="topic-metadata">

**Author:** [@Tarsoly\_AndrSSSSs](https://www.ruby-forum.com/u/Tarsoly_AndrSSSSs)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/no-build-on-association/113936 "2007-09-07T12:59:43Z")

</div>

Hi guys, it seems like I missed some trivial stuff going on in edge rails. Can you point me in the right direction about what happened to the build! method? Simple scenario: class User \<\< AR has\_many :posts end c…

---

## [Acts\_as\_ferret MultiIndex](https://www.ruby-forum.com/t/acts-as-ferret-multiindex/113959)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-multiindex/113959 "2007-09-07T12:27:34Z")

</div>

Hello, I am working with Ferret and acts\_as\_ferret. I have 9 different models that I am using for my search capability. acts\_as\_ferret is working beautifully when I do searches on a specific model. The problems come…

---

## [Strange problem about mailer - no template found](https://www.ruby-forum.com/t/strange-problem-about-mailer-no-template-found/114055)

<div class="topic-metadata">

**Author:** [@cafebabe](https://www.ruby-forum.com/u/cafebabe)\
**Replies:** 2\
**Last updated:** [September 7, 2007, 11:59am UTC](https://www.ruby-forum.com/t/strange-problem-about-mailer-no-template-found/114055 "2007-09-07T11:59:37Z")

</div>

send mail in console, failed for the first time, but successfully sent after reloading…, following are my code snippet: class Mailer \< ActionMailer::Base def notification() … end end class Model \< ActiveRecord::Ba…

---

## [Link\_To best practices ( newbie Q)](https://www.ruby-forum.com/t/link-to-best-practices-newbie-q/114019)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 11:00am UTC](https://www.ruby-forum.com/t/link-to-best-practices-newbie-q/114019 "2007-09-07T11:00:19Z")

</div>

I’ve seen a few examples of how us the link\_to and I’ve read the API documentation. It seems that the API docs would recommend that when using this method, the best practice would be to write it as follows: \<%= link…

---

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

<div class="topic-metadata">

**Author:** [@david.harris.uk](https://www.ruby-forum.com/u/david.harris.uk)\
**Replies:** 3\
**Last updated:** [September 7, 2007, 10:52am UTC](https://www.ruby-forum.com/t/rails-depot-application/113417 "2007-09-07T10:52:18Z")

</div>

I’m doing the depot example in the Agle Web development book. I’m getting this error: "undefined method \`product’ for #BigDecimal:331ce70,‘0.21E1’,8(8) " "Extracted source (around line #9): 8: for item in @items 9:…

---

## [Uploading in file column failed](https://www.ruby-forum.com/t/uploading-in-file-column-failed/114046)

<div class="topic-metadata">

**Author:** [@jeremysdr](https://www.ruby-forum.com/u/jeremysdr)\
**Replies:** 0\
**Last updated:** [September 7, 2007, 10:40am UTC](https://www.ruby-forum.com/t/uploading-in-file-column-failed/114046 "2007-09-07T10:40:32Z")

</div>

Hi guys, I’m using file column in uploading my images in a server. I had no trouble in installation and even in implementation of it. However, I usually encounter failure in uploading a picture despite of the fact th…

---

## [Deleting HABTM tag associations](https://www.ruby-forum.com/t/deleting-habtm-tag-associations/114028)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 8\
**Last updated:** [September 7, 2007, 10:28am UTC](https://www.ruby-forum.com/t/deleting-habtm-tag-associations/114028 "2007-09-07T10:28:48Z")

</div>

If I have a simple tagging system, with three models: posts, tags, and posts\_tags; and I delete a tag, then naturally I would want to delete any associations in posts\_tags that include that tag, right? But I don’t wan…

---

## [My controller became fat trying to handle multiple models -](https://www.ruby-forum.com/t/my-controller-became-fat-trying-to-handle-multiple-models/114040)

<div class="topic-metadata">

**Author:** [@chris\_johnson](https://www.ruby-forum.com/u/chris_johnson)\
**Replies:** 1\
**Last updated:** [September 7, 2007, 10:05am UTC](https://www.ruby-forum.com/t/my-controller-became-fat-trying-to-handle-multiple-models/114040 "2007-09-07T10:05:12Z")

</div>

Hello all. I am experiencing something that has to be fairly common in the rails world, but I haven’t found a clean solution yet. I have a SignupController that handles multiple models in a single form. Those models…

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

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