# Rails

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

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

---

## [Date-conventions](https://www.ruby-forum.com/t/date-conventions/163327)

<div class="topic-metadata">

**Author:** [@sebastianj](https://www.ruby-forum.com/u/sebastianj)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/date-conventions/163327 "2009-03-19T14:02:30Z")

</div>

hey all i got a (hopefully) simple question… i want to name a datetype. now i started thinking about, if its purchased\_at or purchased\_on ? its only a date and not a datetime… ty Sebastian

---

## [Paypal and Rails](https://www.ruby-forum.com/t/paypal-and-rails/102061)

<div class="topic-metadata">

**Author:** [@mrpunkin](https://www.ruby-forum.com/u/mrpunkin)\
**Replies:** 21\
**Last updated:** [March 19, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/paypal-and-rails/102061 "2009-03-19T13:37:43Z")

</div>

Hello everyone, I am looking for a way to pass off a simple payment to paypal using our own interface. I understand that this requires making full use of Paypal’s API since we won’t be using their shopping cart or any…

---

## [How to represent join tables with Rails 2.3 nested attributes?](https://www.ruby-forum.com/t/how-to-represent-join-tables-with-rails-2-3-nested-attributes/163340)

<div class="topic-metadata">

**Author:** [@carpeliam](https://www.ruby-forum.com/u/carpeliam)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-represent-join-tables-with-rails-2-3-nested-attributes/163340 "2009-03-19T13:20:15Z")

</div>

I have a model Store with a relationship Address. Because multiple models have relationships to Address, I have a addresses\_stores join table with a corresponding StoreAddress class that contains information specific …

---

## [How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0](https://www.ruby-forum.com/t/how-to-change-paypal-url-from-sandbox-to-papal-original-url-i-am-using-paypal-lib-paypal-2-0-0/163339)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/how-to-change-paypal-url-from-sandbox-to-papal-original-url-i-am-using-paypal-lib-paypal-2-0-0/163339 "2009-03-19T13:16:08Z")

</div>

sub :How to change paypal url from sandbox to papal original url. i am using paypal lib – paypal (2.0.0) Hi all, I am test my application with local it working fine when i want to go for live. i need to change the …

---

## [Lin\_to\_remote and update a text area](https://www.ruby-forum.com/t/lin-to-remote-and-update-a-text-area/162658)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 12\
**Last updated:** [March 19, 2009, 11:48am UTC](https://www.ruby-forum.com/t/lin-to-remote-and-update-a-text-area/162658 "2009-03-19T11:48:13Z")

</div>

Hi, I have a text area with id:“text\_area” and in a link\_to\_remote tag I want to add content into the text area I tried (Syntax was correct though not the exact one as below) link\_to\_remote (update: “text\_area”, url…

---

## [Insert text into text area field with RJS](https://www.ruby-forum.com/t/insert-text-into-text-area-field-with-rjs/90072)

<div class="topic-metadata">

**Author:** [@dite](https://www.ruby-forum.com/u/dite)\
**Replies:** 5\
**Last updated:** [March 19, 2009, 11:46am UTC](https://www.ruby-forum.com/t/insert-text-into-text-area-field-with-rjs/90072 "2009-03-19T11:46:57Z")

</div>

Hi, I’d like to insert/append some default text into a text area after clicking on an image button ‘test.png’ in edit.rhtml: \<%= link\_to image\_tag(“test.png”), url =\> { :action =\> :new\_text } %\> Action: article\_body…

---

## [AR-extensions didn't speed things up -- why not?](https://www.ruby-forum.com/t/ar-extensions-didnt-speed-things-up-why-not/161389)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 7\
**Last updated:** [March 19, 2009, 11:44am UTC](https://www.ruby-forum.com/t/ar-extensions-didnt-speed-things-up-why-not/161389 "2009-03-19T11:44:57Z")

</div>

I was excited to try AR-extensions (http://www.continuousthinking.com/ tags/arext) to do a bunch of data importing that had been really slow. But then I was disappointed to see that it actually didn’t help and wondere…

---

## [Redbox implementation not showing anything](https://www.ruby-forum.com/t/redbox-implementation-not-showing-anything/163227)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 11:31am UTC](https://www.ruby-forum.com/t/redbox-implementation-not-showing-anything/163227 "2009-03-19T11:31:58Z")

</div>

Hi all, Im trying to implement redbox for submitting some small forms. Here’s the code im using. #redbox link \<%= link\_to\_remote\_redbox ‘Change Password’, :url =\> {:controller =\> :users, :action =\> :change\_password,…

---

## [Usage of methods in application.rb](https://www.ruby-forum.com/t/usage-of-methods-in-application-rb/163211)

<div class="topic-metadata">

**Author:** [@priyadharsini](https://www.ruby-forum.com/u/priyadharsini)\
**Replies:** 6\
**Last updated:** [March 19, 2009, 11:13am UTC](https://www.ruby-forum.com/t/usage-of-methods-in-application-rb/163211 "2009-03-19T11:13:37Z")

</div>

Hi all, I’m having some methods in application.rb. I have to use those methods in my model. How can i do that? Thanks in advance.

---

## [Single-table inheritance and validation problem](https://www.ruby-forum.com/t/single-table-inheritance-and-validation-problem/163330)

<div class="topic-metadata">

**Author:** [@Stefan\_Frede](https://www.ruby-forum.com/u/Stefan_Frede)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 10:38am UTC](https://www.ruby-forum.com/t/single-table-inheritance-and-validation-problem/163330 "2009-03-19T10:38:34Z")

</div>

Hi! I’ve got a subscription form in which someone can decide to give a gift to someone else. So you have to enter subscriber and recipient data in one form. For my user model I use single-table inheritance. It works …

---

## [Missing readline](https://www.ruby-forum.com/t/missing-readline/163295)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 3\
**Last updated:** [March 19, 2009, 10:26am UTC](https://www.ruby-forum.com/t/missing-readline/163295 "2009-03-19T10:26:52Z")

</div>

I have installed Rails 2.2.2 on a Debian Lenny VPS and I am getting the following error when trying to script/console. Loading development environment (Rails 2.2.2) /usr/local/lib/ruby/1.8/irb/completion.rb:10:in \`re…

---

## [Implementation checkbox array in rails--How to?](https://www.ruby-forum.com/t/implementation-checkbox-array-in-rails-how-to/163319)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 10:25am UTC](https://www.ruby-forum.com/t/implementation-checkbox-array-in-rails-how-to/163319 "2009-03-19T10:25:42Z")

</div>

Hi, I am having a nested array like AVAIL\_LISTS = \[\["Purchased User, 1\], \["Downloaded User, 2"\]\]. In the form i have to allow to check any options applicable so, in view i have: \<% for list in AVAIL\_LISTS %\> \<%= …

---

## [Multiple renderings of Partials](https://www.ruby-forum.com/t/multiple-renderings-of-partials/163331)

<div class="topic-metadata">

**Author:** [@Guha](https://www.ruby-forum.com/u/Guha)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 10:18am UTC](https://www.ruby-forum.com/t/multiple-renderings-of-partials/163331 "2009-03-19T10:18:04Z")

</div>

This is what I see in the developer log Processing ProductsController#display\_variant\_parameters (for 127.0.0.1 at 2009-03-18 17:50:25) \[POST\] Session ID: 33b195edc7a6946365ae55efe5e349dd Parameters: {"authenticity\_…

---

## [Restful\_plugin with --stateful](https://www.ruby-forum.com/t/restful-plugin-with-stateful/163326)

<div class="topic-metadata">

**Author:** [@indu](https://www.ruby-forum.com/u/indu)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 10:07am UTC](https://www.ruby-forum.com/t/restful-plugin-with-stateful/163326 "2009-03-19T10:07:25Z")

</div>

Hi everyone, I am trying to implement the restful\_authentication plug in with –include-activation and --stateful options. Installed the plug in acts\_as\_sate\_machine also. But when I am trying to save the user model I …

---

## [Action working with webrick, not with apache+fcgi](https://www.ruby-forum.com/t/action-working-with-webrick-not-with-apache-fcgi/162548)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 9:40am UTC](https://www.ruby-forum.com/t/action-working-with-webrick-not-with-apache-fcgi/162548 "2009-03-19T09:40:34Z")

</div>

Hello, I have a stange problem that I don’t know how to solve. My application is deployed and configured to use Apache and Fastcgi (I use a hosting company). It works ok except for some redirect where apparently the …

---

## [Delayed\_Job and Setting Env](https://www.ruby-forum.com/t/delayed-job-and-setting-env/163325)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 8:50am UTC](https://www.ruby-forum.com/t/delayed-job-and-setting-env/163325 "2009-03-19T08:50:49Z")

</div>

Hi, I am setting up a background task using delayed job to upload some of my documents up to scribd from my S3 bucket. The problem I encounter is that I get an error saying: Job failed with RightAws::AwsError: AWS ac…

---

## [Workling and dependent gems](https://www.ruby-forum.com/t/workling-and-dependent-gems/163313)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 8:43am UTC](https://www.ruby-forum.com/t/workling-and-dependent-gems/163313 "2009-03-19T08:43:12Z")

</div>

Hi there. I’m trying to get Workling running on my staging server, but an “undefined method \`get’” error (http://pastie.org/420580). It’s a very clean Hardy server without many gems installed, so it must be a missing…

---

## [How to send multiple values to controller using :with option of collection\_select](https://www.ruby-forum.com/t/how-to-send-multiple-values-to-controller-using-with-option-of-collection-select/163322)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 8:36am UTC](https://www.ruby-forum.com/t/how-to-send-multiple-values-to-controller-using-with-option-of-collection-select/163322 "2009-03-19T08:36:12Z")

</div>

Hi, Thank u all for replying my previous posts. I have following problem I want to send multiple selected values from collection\_select using “:with” option to a controller without submitting the form, i have follow…

---

## [Video upload](https://www.ruby-forum.com/t/video-upload/163315)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 6:51am UTC](https://www.ruby-forum.com/t/video-upload/163315 "2009-03-19T06:51:53Z")

</div>

Hello friends Can anybody let me know what is easiest way of video uploading…

---

## [Release mapademexicali.com APP (source code, db, etc)](https://www.ruby-forum.com/t/release-mapademexicali-com-app-source-code-db-etc/163312)

<div class="topic-metadata">

**Author:** [@bernardoguruc](https://www.ruby-forum.com/u/bernardoguruc)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 6:40am UTC](https://www.ruby-forum.com/t/release-mapademexicali-com-app-source-code-db-etc/163312 "2009-03-19T06:40:25Z")

</div>

Hi community, i just want to share this app. is same of www.mapademexicali.com http://www.mediafire.com/file/jygvja...2008.part1.rar http://www.mediafire.com/file/jonmt2...2008.part2.rar http://www.mediafire.com/fil…

---

## [Handling database table dependencies](https://www.ruby-forum.com/t/handling-database-table-dependencies/163220)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 6:19am UTC](https://www.ruby-forum.com/t/handling-database-table-dependencies/163220 "2009-03-19T06:19:41Z")

</div>

Hey, thanks for reading this post. How do you handle dependencies? A really simple example: I’ve got a table called “entity” and another table, let’s say, “entity\_type”. The entity types can be changed, of course, th…

---

## [Help! RubyGems is broken!](https://www.ruby-forum.com/t/help-rubygems-is-broken/163271)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 6:02am UTC](https://www.ruby-forum.com/t/help-rubygems-is-broken/163271 "2009-03-19T06:02:07Z")

</div>

I have a problem with RubyGems: ruby gt.rb ruby: no such file to load – ubygems (LoadError) Here are my compiler and gem versions: ruby --version ruby 1.8.7p5000 (2009-03-03 revision 22728) \[x86\_64-linux\] \<\> gem --…

---

## [Attachmnet\_fu can't keep original file image!](https://www.ruby-forum.com/t/attachmnet-fu-cant-keep-original-file-image/163275)

<div class="topic-metadata">

**Author:** [@demec](https://www.ruby-forum.com/u/demec)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 5:57am UTC](https://www.ruby-forum.com/t/attachmnet-fu-cant-keep-original-file-image/163275 "2009-03-19T05:57:25Z")

</div>

I am currently trying to create an application on RoR and I am using attachmne\_fu plugin in order to handle image uploads. I have also install ImageScience to create some thumbnails for the images I upload The proble…

---

## [Using mysql's 'REPLACE' command in active record](https://www.ruby-forum.com/t/using-mysqls-replace-command-in-active-record/163184)

<div class="topic-metadata">

**Author:** [@r-a-mueller](https://www.ruby-forum.com/u/r-a-mueller)\
**Replies:** 2\
**Last updated:** [March 19, 2009, 5:34am UTC](https://www.ruby-forum.com/t/using-mysqls-replace-command-in-active-record/163184 "2009-03-19T05:34:01Z")

</div>

Is this possible ?? Many thnaks Richard

---

## [Set\_table\_name woes, fragmented domain class](https://www.ruby-forum.com/t/set-table-name-woes-fragmented-domain-class/163186)

<div class="topic-metadata">

**Author:** [@Michael\_JSISJacks](https://www.ruby-forum.com/u/Michael_JSISJacks)\
**Replies:** 1\
**Last updated:** [March 19, 2009, 5:25am UTC](https://www.ruby-forum.com/t/set-table-name-woes-fragmented-domain-class/163186 "2009-03-19T05:25:49Z")

</div>

Hi all, I’m running Rails on top of a Mongrel cluster. I have several model classes that are going to have so many records it is not feasible to keep them all in the same table. So I’ve split out the records into man…

---

## [Calling ActionMailer model from script/console](https://www.ruby-forum.com/t/calling-actionmailer-model-from-script-console/163307)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 5:11am UTC](https://www.ruby-forum.com/t/calling-actionmailer-model-from-script-console/163307 "2009-03-19T05:11:31Z")

</div>

I am writing an app that receives emails and forwards them to different locations based on certain criteria. I can recieve emails, and i can send them, i’m just having a problem linking the two together. The mailer mo…

---

## [Gem list and . ~/.profile](https://www.ruby-forum.com/t/gem-list-and-profile/163283)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 14\
**Last updated:** [March 19, 2009, 4:30am UTC](https://www.ruby-forum.com/t/gem-list-and-profile/163283 "2009-03-19T04:30:17Z")

</div>

Hello, So, I have something happening that I don’t understand. I am on OS 10.5.6 and followed Dan Benjamin’s (Hivelogic) advice on how to install Ruby, MySQL… As he suggests, I added . ~/.bash\_login with the path for…

---

## [Soft Ball? Validating either-or fields](https://www.ruby-forum.com/t/soft-ball-validating-either-or-fields/163303)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 0\
**Last updated:** [March 19, 2009, 3:54am UTC](https://www.ruby-forum.com/t/soft-ball-validating-either-or-fields/163303 "2009-03-19T03:54:39Z")

</div>

I have a situation where the user will either put text into a text- area or upload a file (ala attachment\_fu). I need to check if either field has data (both is okay, too). Any suggestions? thanks in advance.

---

## [Search Results into new table](https://www.ruby-forum.com/t/search-results-into-new-table/163270)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 4\
**Last updated:** [March 19, 2009, 2:46am UTC](https://www.ruby-forum.com/t/search-results-into-new-table/163270 "2009-03-19T02:46:10Z")

</div>

I have a search form on my rails site. once the a user has entered a query it displays the results in a table with an extra field button so it can be added to there own portfolio called add to my stocks. How do i get …

---

## [Routing to different pages with Ajax login](https://www.ruby-forum.com/t/routing-to-different-pages-with-ajax-login/162941)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 7\
**Last updated:** [March 19, 2009, 2:45am UTC](https://www.ruby-forum.com/t/routing-to-different-pages-with-ajax-login/162941 "2009-03-19T02:45:35Z")

</div>

I have a situation where I need my ajaxed login popup to route to a different page than the default route. Specifically this situation is if they are trying to message a user and are not signed in, I want to show the…

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

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