# Rails

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

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

---

## [I need something better than split](https://www.ruby-forum.com/t/i-need-something-better-than-split/139162)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [May 31, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/i-need-something-better-than-split/139162 "2008-05-31T21:14:49Z")

</div>

With params\[:action\] = “edit\_facilities”, this works… params\[:action\].split(’\_’)\[1\] but not with params\[:action\] = “edit\_board\_volunteer” because it splits at each underscore How can I get everything after the first …

---

## [How do you figure out that a Parent model is trying to destroy it's children?](https://www.ruby-forum.com/t/how-do-you-figure-out-that-a-parent-model-is-trying-to-destroy-its-children/139157)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/how-do-you-figure-out-that-a-parent-model-is-trying-to-destroy-its-children/139157 "2008-05-31T20:42:30Z")

</div>

I have a simple acts\_as\_list model structure where the Language holds a lot of Wikis. I want to validate inside Wikis so as to not destroy the last Wiki in a Language. However, when the Language is destroyed, I want…

---

## [Problems with render :update in controller on winXP](https://www.ruby-forum.com/t/problems-with-render-update-in-controller-on-winxp/139098)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/problems-with-render-update-in-controller-on-winxp/139098 "2008-05-31T19:54:54Z")

</div>

1.8.6, Rails 2.0.2 on winxp. using webrick. When I attempt to render RJS inline in the controller using render :update, it fails horribly. none of the prototype helpers work; each spits out the generated javascr…

---

## [Fixed Data Sets](https://www.ruby-forum.com/t/fixed-data-sets/139136)

<div class="topic-metadata">

**Author:** [@mjgp2](https://www.ruby-forum.com/u/mjgp2)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/fixed-data-sets/139136 "2008-05-31T15:58:49Z")

</div>

Hello, I apologize in advance if this has been brought up previously, I can’t seem to find anything on it. I was wondering whether I should be using migrations or something else for a fixed set of data that would be …

---

## [Attachment\_fu uploaded file with Action mailer](https://www.ruby-forum.com/t/attachment-fu-uploaded-file-with-action-mailer/139143)

<div class="topic-metadata">

**Author:** [@andrewdon](https://www.ruby-forum.com/u/andrewdon)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/attachment-fu-uploaded-file-with-action-mailer/139143 "2008-05-31T15:55:18Z")

</div>

Hello, I have setup ActionMailer to send mail with attachments, but when I try to send an email with an attachment that attachment\_fu has uploaded ActionMailer can’t find the files, it seems to be looking in the wrong …

---

## [RoR 2.1.0 RC install on windows](https://www.ruby-forum.com/t/ror-2-1-0-rc-install-on-windows/139135)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 3\
**Last updated:** [May 31, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/ror-2-1-0-rc-install-on-windows/139135 "2008-05-31T15:12:25Z")

</div>

I want to update my rails from 2.0.2 to 2.1.0RC. I know the 2.1.0RC is now on github.orb. So how do I install this on windows ? My current directory structure for rails 2.0.2 looks like this E:\\ruby\\lib\\ruby\\gems\\1.8…

---

## [Return float when dividing two integers?](https://www.ruby-forum.com/t/return-float-when-dividing-two-integers/139150)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/return-float-when-dividing-two-integers/139150 "2008-05-31T14:40:23Z")

</div>

Hi, sorry for stupid newbie question, but can’t google it out: i’d like ‘integer1 / integer2’ to return float instead of integer, i.e. in case integer1=5 and integer2=2 the result is 2.5 not 2. the only way i found s…

---

## [Check\_box\_tag nightmare](https://www.ruby-forum.com/t/check-box-tag-nightmare/139149)

<div class="topic-metadata">

**Author:** [@biqut2](https://www.ruby-forum.com/u/biqut2)\
**Replies:** 3\
**Last updated:** [May 31, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/check-box-tag-nightmare/139149 "2008-05-31T14:34:27Z")

</div>

I have been struggling to get some check boxes working but have had absolutely no luck. Can someone tell me what I am doing wrong. Any help would be greatly appreciated. Here is the code in my view: \<% for size in @s…

---

## [Is there a RESTful way to bulk create?](https://www.ruby-forum.com/t/is-there-a-restful-way-to-bulk-create/139145)

<div class="topic-metadata">

**Author:** [@brian\_mulloy](https://www.ruby-forum.com/u/brian_mulloy)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/is-there-a-restful-way-to-bulk-create/139145 "2008-05-31T12:49:36Z")

</div>

i’m working with a has\_many :through association. a person has many people through connections. connection is the join model. the first step for the UI was to only allow the creation of one connection at a time. I w…

---

## [Linux editor ? aka textmate on linux](https://www.ruby-forum.com/t/linux-editor-aka-textmate-on-linux/139134)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/linux-editor-aka-textmate-on-linux/139134 "2008-05-31T12:05:33Z")

</div>

Ready various posts about speed of linux .vs windows. I cannot afford a mac so a fast pc with Ubuntu might be possible. What do you use for RoR editor ? Aptana ?? aka RadRails ( eclipse ). What is textmate look alik…

---

## [Rails 2.0.2 mongrel\_rails start Vs ruby script/server fragment\_cache\_store](https://www.ruby-forum.com/t/rails-2-0-2-mongrel-rails-start-vs-ruby-script-server-fragment-cache-store/139142)

<div class="topic-metadata">

**Author:** [@aditya](https://www.ruby-forum.com/u/aditya)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 11:41am UTC](https://www.ruby-forum.com/t/rails-2-0-2-mongrel-rails-start-vs-ruby-script-server-fragment-cache-store/139142 "2008-05-31T11:41:30Z")

</div>

Hi Guys, We found that when we use ruby script/server start, the fragment\_cache\_store always seems to default to :file\_store. (because tmp/cache dir gets created automatically lib/commands/server.rb) If however we us…

---

## [How to create tab-delimited text files](https://www.ruby-forum.com/t/how-to-create-tab-delimited-text-files/138597)

<div class="topic-metadata">

**Author:** [@djdon11](https://www.ruby-forum.com/u/djdon11)\
**Replies:** 2\
**Last updated:** [May 31, 2008, 9:54am UTC](https://www.ruby-forum.com/t/how-to-create-tab-delimited-text-files/138597 "2008-05-31T09:54:44Z")

</div>

Hello Friends I want to generate tab-delimited text file of my every users information in once. i have a button called EXPORT on my page when i clicked on this button than i want to generate tab-delimited text file …

---

## [How to use RMovie](https://www.ruby-forum.com/t/how-to-use-rmovie/139091)

<div class="topic-metadata">

**Author:** [@abhishekchess1](https://www.ruby-forum.com/u/abhishekchess1)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 5:44am UTC](https://www.ruby-forum.com/t/how-to-use-rmovie/139091 "2008-05-31T05:44:33Z")

</div>

hello i’m new to rails, actually working in Flex 3 i want to ask that how actually works RMovie to convert into flv on rails which r i uploaded from flex. Video r uploaded successfully , but how to convert it and hap…

---

## [Route #resource + member vs #connect](https://www.ruby-forum.com/t/route-resource-member-vs-connect/139061)

<div class="topic-metadata">

**Author:** [@overclokkato](https://www.ruby-forum.com/u/overclokkato)\
**Replies:** 3\
**Last updated:** [May 31, 2008, 1:18am UTC](https://www.ruby-forum.com/t/route-resource-member-vs-connect/139061 "2008-05-31T01:18:11Z")

</div>

Hello, I have a Hotel model and I mapped all routes for this class via map.resources. map.resources :hotels, :collection =\> { :search =\> :get, :cheapest =\> :get } I also mapped some additional actions including a se…

---

## [Multiple views for the same action?](https://www.ruby-forum.com/t/multiple-views-for-the-same-action/139121)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 1:02am UTC](https://www.ruby-forum.com/t/multiple-views-for-the-same-action/139121 "2008-05-31T01:02:56Z")

</div>

So I’m looking for best practices, advice, feedback, etc. on this. How do you handle multiple views for the same action? How do you decide when one way is better than another? If I have a view for an end-user and the …

---

## [Parameters for FormOptionsHelper select vs. FormTagHelper select\_tag](https://www.ruby-forum.com/t/parameters-for-formoptionshelper-select-vs-formtaghelper-select-tag/139120)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 1\
**Last updated:** [May 31, 2008, 12:19am UTC](https://www.ruby-forum.com/t/parameters-for-formoptionshelper-select-vs-formtaghelper-select-tag/139120 "2008-05-31T00:19:35Z")

</div>

I must be missing something when it comes to the parameter differences between form FormOptionsHelper select and FormTagHelper select\_tag. Code that follows, works perfectly - \<%= f.select :unit, units\_to\_select(@prod…

---

## [About map.inflected\_resource](https://www.ruby-forum.com/t/about-map-inflected-resource/139119)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 0\
**Last updated:** [May 31, 2008, 12:15am UTC](https://www.ruby-forum.com/t/about-map-inflected-resource/139119 "2008-05-31T00:15:31Z")

</div>

Hi, In the routes.rb Typo file (readable at: http://svn.typosphere.org/typo/branches/rails2/config/routes.rb) we can see those line: map.inflected\_resource(:authors, :path\_prefix =\> ‘/articles’) map.inflected\_resour…

---

## [Fragment caching keeping stale product prices](https://www.ruby-forum.com/t/fragment-caching-keeping-stale-product-prices/139041)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/fragment-caching-keeping-stale-product-prices/139041 "2008-05-30T23:35:33Z")

</div>

I’ve got a list of products in my system and a master list of products available from my distributor. Every night I import a new distributor product file and update the prices for my list of products if any of them …

---

## [Silent rake test failure--doesn't happen on manual test run](https://www.ruby-forum.com/t/silent-rake-test-failure-doesnt-happen-on-manual-test-run/139117)

<div class="topic-metadata">

**Author:** [@ISESSmith-Heister](https://www.ruby-forum.com/u/ISESSmith-Heister)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/silent-rake-test-failure-doesnt-happen-on-manual-test-run/139117 "2008-05-30T23:34:57Z")

</div>

Hi all, This is kinda weird. I’m working on a plugin. On the same computer (eg. same gems, ruby, etc.), installed into different apps, it fails silently in one, but works in the other. The code is identical, since it…

---

## [Production install (RoR + Oracle + IIS)](https://www.ruby-forum.com/t/production-install-ror-oracle-iis/139010)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 6\
**Last updated:** [May 30, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/production-install-ror-oracle-iis/139010 "2008-05-30T23:16:41Z")

</div>

Hi. Although an expert developer for IBM systems (iSeries) I am VERY new to RoR and somehow to the PC development world as well and not familiar AT ALL with PC configurations, etc. (in my regular job good ol’ IBM tak…

---

## [Class\_eval better than reopening classes?](https://www.ruby-forum.com/t/class-eval-better-than-reopening-classes/139112)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/class-eval-better-than-reopening-classes/139112 "2008-05-30T23:15:31Z")

</div>

I came accross this snippet from the docrails project “When monkey-patching existing classes it’s often better to use class\_eval instead of opening the class directly.” From this commit: http://github.com/lifo/docrai…

---

## [Using MySQL](https://www.ruby-forum.com/t/using-mysql/139109)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/using-mysql/139109 "2008-05-30T22:56:12Z")

</div>

How do I configure RoR on my iMac (10.5.3) to use mySQL? TIA, David

---

## [ActionMailer Reply-To Header](https://www.ruby-forum.com/t/actionmailer-reply-to-header/134210)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 30, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/actionmailer-reply-to-header/134210 "2008-05-30T22:43:14Z")

</div>

I am trying to include the persons name as well as email in the reply- to field of the email header. In the process, I’m seeing some weird behavior: You can set the from address: @from = "Persons Name " But if you…

---

## [UJS for rails plugin Installation problems](https://www.ruby-forum.com/t/ujs-for-rails-plugin-installation-problems/139106)

<div class="topic-metadata">

**Author:** [@Applejus](https://www.ruby-forum.com/u/Applejus)\
**Replies:** 0\
**Last updated:** [May 30, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/ujs-for-rails-plugin-installation-problems/139106 "2008-05-30T21:37:57Z")

</div>

Hello, I downloaded and installed the latest UJS plugin. I first got the error “uninitialized constant UJS” and this error wouldn’t go away no matter where I place the “UJS::routes” line in the routes.rb file. The …

---

## [Open\_id\_authentication and remember\_me](https://www.ruby-forum.com/t/open-id-authentication-and-remember-me/138981)

<div class="topic-metadata">

**Author:** [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/open-id-authentication-and-remember-me/138981 "2008-05-30T20:51:29Z")

</div>

Hi, I’ve got a user login system working by combining the restful\_authentication with open\_id\_authentication plugins. But there’s a little problem, and that is that any additional parameters from the login form (suc…

---

## [Session problem](https://www.ruby-forum.com/t/session-problem/139056)

<div class="topic-metadata">

**Author:** [@Blaede](https://www.ruby-forum.com/u/Blaede)\
**Replies:** 6\
**Last updated:** [May 30, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/session-problem/139056 "2008-05-30T20:36:10Z")

</div>

Hello everyone, I am just starting a project for school in RoR and I am a complete n00b ^^ Here’s my problem : I need to get the user’s login stored in the session but for some reason I cannot. Here’s my login meth…

---

## [New to RoR - installing my first app?](https://www.ruby-forum.com/t/new-to-ror-installing-my-first-app/139094)

<div class="topic-metadata">

**Author:** [@Hinch](https://www.ruby-forum.com/u/Hinch)\
**Replies:** 1\
**Last updated:** [May 30, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/new-to-ror-installing-my-first-app/139094 "2008-05-30T20:25:36Z")

</div>

I have rails configured on my LAMP web host using Cpanel 11. To get into it I wish to install a simple app, I would like to try out Colorplan (http://github.com/caffo/colorplan) but the read me just flies over my head…

---

## [Defaulting datetime in migrations](https://www.ruby-forum.com/t/defaulting-datetime-in-migrations/139068)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [May 30, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/defaulting-datetime-in-migrations/139068 "2008-05-30T20:25:00Z")

</div>

I have the following in a migration: create\_table :orders do |t| t.references :cart t.references :user t.float :item\_total, :default =\> 0.0, :null =\> false t.float :discount, :default =\> 0.0, :null =\> false t.float…

---

## [Session expiration](https://www.ruby-forum.com/t/session-expiration/139099)

<div class="topic-metadata">

**Author:** [@anka](https://www.ruby-forum.com/u/anka)\
**Replies:** 2\
**Last updated:** [May 30, 2008, 8:05pm UTC](https://www.ruby-forum.com/t/session-expiration/139099 "2008-05-30T20:05:32Z")

</div>

Which plugin should I use to manage the session expiration? Which is the best and newest?

---

## [WEBrick Logging](https://www.ruby-forum.com/t/webrick-logging/139080)

<div class="topic-metadata">

**Author:** [@Scott\_Gose](https://www.ruby-forum.com/u/Scott_Gose)\
**Replies:** 4\
**Last updated:** [May 30, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/webrick-logging/139080 "2008-05-30T19:50:55Z")

</div>

Is there a way to get what’s in the development.log to output to WEBrick’s console? When I’m developing a Rails app, I start the WEBrick server in one terminal: $ ./script/server Then I tail -f the development.log i…

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

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