# Rails

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

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

---

## [Rubyonrails.org vs rubyonrails.com](https://www.ruby-forum.com/t/rubyonrails-org-vs-rubyonrails-com/130257)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/rubyonrails-org-vs-rubyonrails-com/130257 "2008-02-26T21:05:21Z")

</div>

what is the difference between these two sites? they both recommend ver 1.8.6 when you click on the 2.0 download seems funny they put out ver 2.0 but recommend 1.8.6 ?? \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_…

---

## [CGI with rails](https://www.ruby-forum.com/t/cgi-with-rails/130255)

<div class="topic-metadata">

**Author:** [@lpdahito](https://www.ruby-forum.com/u/lpdahito)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/cgi-with-rails/130255 "2008-02-26T20:28:46Z")

</div>

Hi, I’m a newbie to rails and programming… I don’t know anything about CGI scripts… The only thing I know about CGI is that it stands for Common Gateway Interface. To be honest with you, this is as concrete as it get…

---

## [Specify HTML options on select\_year](https://www.ruby-forum.com/t/specify-html-options-on-select-year/130191)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/specify-html-options-on-select-year/130191 "2008-02-26T19:55:32Z")

</div>

Rails 1.2.3 It appears that the select\_year helper doesn’t accept HTML attributes as part of the options array. Does anyone have a way to successfully pass an :onchange attribute in to the select\_year helper? I’m go…

---

## [Still trying to coerce numbers and strings for date math](https://www.ruby-forum.com/t/still-trying-to-coerce-numbers-and-strings-for-date-math/130246)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/still-trying-to-coerce-numbers-and-strings-for-date-math/130246 "2008-02-26T19:18:01Z")

</div>

and still going crazy… I have tried everything I can think of… interval =\> 1 dinc =\> “year” interval.to\_s + “.” + dinc =\> “1.year” test = Time.now + (interval.to\_s + “.” + dinc) TypeError: no implicit co…

---

## [How to "call" controller from elsewhere in the app?](https://www.ruby-forum.com/t/how-to-call-controller-from-elsewhere-in-the-app/129929)

<div class="topic-metadata">

**Author:** [@marksbrain](https://www.ruby-forum.com/u/marksbrain)\
**Replies:** 9\
**Last updated:** [February 26, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/how-to-call-controller-from-elsewhere-in-the-app/129929 "2008-02-26T19:08:36Z")

</div>

Is there a way to “call” a controller from another part of the app? I’m breaking off some functionality (statistics reporting) from the rest of the app. Eventually, this functionality will live in a different app, but…

---

## [Anyone from San Diego](https://www.ruby-forum.com/t/anyone-from-san-diego/130248)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/anyone-from-san-diego/130248 "2008-02-26T19:00:51Z")

</div>

Hi Is there anyone from San Diego reading this? tia \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Looking for last minute shopping deals? Find them fast with Yahoo! Search. h…

---

## [Dataselect parameters and serialization](https://www.ruby-forum.com/t/dataselect-parameters-and-serialization/130244)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/dataselect-parameters-and-serialization/130244 "2008-02-26T18:45:34Z")

</div>

So I’m writing a sort of reporting form in which single attributes can be added to report on an object that has been created with another form. The data in the reports doesn’t really have have that much bearing other…

---

## [Wiki like editing](https://www.ruby-forum.com/t/wiki-like-editing/130063)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 9\
**Last updated:** [February 26, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/wiki-like-editing/130063 "2008-02-26T18:45:34Z")

</div>

Anyone know of good tutorials on how to make an editing tool. I have one now for my blog site but some of the HTML tags get stripped away when I need to re-edit. What I would like is a tool that always me to add the t…

---

## [Predefined records in migration?](https://www.ruby-forum.com/t/predefined-records-in-migration/130236)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/predefined-records-in-migration/130236 "2008-02-26T17:43:39Z")

</div>

What would be a good way to create some predefined instances in the database for a certain model? For example: categories, genres or user- roles? They are pretty fixed, although you might want to add or remove some at…

---

## [OpenX](https://www.ruby-forum.com/t/openx/130237)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/openx/130237 "2008-02-26T17:38:26Z")

</div>

Does anyone know of a good walk-through for setting up openx ads with Rails? Thanks!

---

## [Creating standalone executable rails application](https://www.ruby-forum.com/t/creating-standalone-executable-rails-application/130204)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/creating-standalone-executable-rails-application/130204 "2008-02-26T15:42:29Z")

</div>

Hi I need to create a standalone executable application.If any one knows how to do it help me…

---

## [Overwrite primary key when importing with ActiveRecord](https://www.ruby-forum.com/t/overwrite-primary-key-when-importing-with-activerecord/130220)

<div class="topic-metadata">

**Author:** [@crenner](https://www.ruby-forum.com/u/crenner)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/overwrite-primary-key-when-importing-with-activerecord/130220 "2008-02-26T15:38:19Z")

</div>

In my migrations I am importing data from a CSV file. So i first create the table : create\_table :customers do |t| … end and then import data from a CSV into it. The CSV data allready contains values for the id fi…

---

## [Non-rails application -- want to use migration for sql 2005](https://www.ruby-forum.com/t/non-rails-application-want-to-use-migration-for-sql-2005/130225)

<div class="topic-metadata">

**Author:** [@vishyanand](https://www.ruby-forum.com/u/vishyanand)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 3:34pm UTC](https://www.ruby-forum.com/t/non-rails-application-want-to-use-migration-for-sql-2005/130225 "2008-02-26T15:34:47Z")

</div>

Hi, I want to use migration feature for a non-rails application.My application uses SQL 2005.How can I do it? thanks

---

## [Access global function in Model](https://www.ruby-forum.com/t/access-global-function-in-model/130219)

<div class="topic-metadata">

**Author:** [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/access-global-function-in-model/130219 "2008-02-26T15:31:51Z")

</div>

Hi Everyone, Can anyone pls tell me how to access a Common Function in “application.rb” controller in a Model. For example, i am having a function to find the Factorial of a number. Where should i place this function…

---

## [OFF - Database store and retrieval](https://www.ruby-forum.com/t/off-database-store-and-retrieval/130221)

<div class="topic-metadata">

**Author:** [@Hugo\_Canalli](https://www.ruby-forum.com/u/Hugo_Canalli)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/off-database-store-and-retrieval/130221 "2008-02-26T14:44:58Z")

</div>

I’m doing a scientific work about the database stored of complex objects like images. Do anybody have any papers? I also need know the advantages. Thanks! – Is we on the tape!

---

## [Calculating page response time](https://www.ruby-forum.com/t/calculating-page-response-time/130213)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/calculating-page-response-time/130213 "2008-02-26T14:40:11Z")

</div>

Hi, Can you give your suggestions on how to calculate the page response time for the rails application? Thanks in advance. Karthik.

---

## [Difference btwn gem and a plugin?](https://www.ruby-forum.com/t/difference-btwn-gem-and-a-plugin/130212)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/difference-btwn-gem-and-a-plugin/130212 "2008-02-26T14:21:16Z")

</div>

Hi all, Can some one list the difference between a Gem and Plug-in? Thanks, Ratnavel

---

## [App stats](https://www.ruby-forum.com/t/app-stats/130209)

<div class="topic-metadata">

**Author:** [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/app-stats/130209 "2008-02-26T13:30:33Z")

</div>

Hi Does anyone know if theres any app unit testing stats available for any rails apps in comparison with other mvc frameworks, like django or fusebox? Thanks Eoghan

---

## [Attachment\_Fu check Filesize on Upload](https://www.ruby-forum.com/t/attachment-fu-check-filesize-on-upload/130201)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 8\
**Last updated:** [February 26, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/attachment-fu-check-filesize-on-upload/130201 "2008-02-26T12:53:55Z")

</div>

Hi, i’m using the Attachment\_Fu plugin to handle file uploading and have set the max filesize in my image model, that works fine. Problem is, I don’t want the user to find out the image they’re uplaoding is too big af…

---

## [Custom REST actions, best practices?](https://www.ruby-forum.com/t/custom-rest-actions-best-practices/129964)

<div class="topic-metadata">

**Author:** [@bryan82](https://www.ruby-forum.com/u/bryan82)\
**Replies:** 5\
**Last updated:** [February 26, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/custom-rest-actions-best-practices/129964 "2008-02-26T12:11:22Z")

</div>

Hi, I really like the benefits of using REST for my routes and controllers, but I can’t help but feel a little restricted. I’m trying to figure out the best way to match together my actions with views. For example I’…

---

## [Subdomain query](https://www.ruby-forum.com/t/subdomain-query/128688)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 12:10pm UTC](https://www.ruby-forum.com/t/subdomain-query/128688 "2008-02-26T12:10:10Z")

</div>

When working with my app with subdomain support (with plugin account\_location), I have following issue: From the main domain, user can register (with information about subdomain). After successful register, the app wi…

---

## [Allow magic code mixing for application controller](https://www.ruby-forum.com/t/allow-magic-code-mixing-for-application-controller/130035)

<div class="topic-metadata">

**Author:** [@Sven\_F](https://www.ruby-forum.com/u/Sven_F)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 11:59am UTC](https://www.ruby-forum.com/t/allow-magic-code-mixing-for-application-controller/130035 "2008-02-26T11:59:00Z")

</div>

Engines’ magic code mixing is mega-cool, but unfortunately it doesn’t apply to the application controller because of the non-standard file- naming application.rb, which misses the “\_controller” bit and doesn’t match t…

---

## [Backgroundrb workers won't die!](https://www.ruby-forum.com/t/backgroundrb-workers-wont-die/106863)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 11:49am UTC](https://www.ruby-forum.com/t/backgroundrb-workers-wont-die/106863 "2008-02-26T11:49:14Z")

</div>

Hi, I’m using backgroundrb workers to do a lot of work that is being unloaded to a different system… it works, but over a period of time with much usage the server my rails app is on gets overloaded with backgroundrb…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/225995)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [February 26, 2008, 11:45am UTC](https://www.ruby-forum.com/t/pagination/225995 "2008-02-26T11:45:11Z")

</div>

Hi IN MY CONTROLLER def search\_sd\_ticket @search\_sd\_ui\_hash=params\[:sd\_ticket\] puts @search\_sd\_ui\_hash @sd\_ticket\_number=@search\_sd\_ui\_hash\[:number\] puts @search\_sd\_ui\_hash\[:number\] @sd\_ticket\_status\_id=@search\_s…

---

## [Backgroundrb auto-start](https://www.ruby-forum.com/t/backgroundrb-auto-start/88716)

<div class="topic-metadata">

**Author:** [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 11:44am UTC](https://www.ruby-forum.com/t/backgroundrb-auto-start/88716 "2008-02-26T11:44:39Z")

</div>

How I can make my rails application auto-start it’s corresponding backgroundrb process? Is it as simple as finding a way to execute the unix shell command from rails? Right now I need to manually run “rake background…

---

## [How to show the image from the database](https://www.ruby-forum.com/t/how-to-show-the-image-from-the-database/130202)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 1\
**Last updated:** [February 26, 2008, 11:13am UTC](https://www.ruby-forum.com/t/how-to-show-the-image-from-the-database/130202 "2008-02-26T11:13:15Z")

</div>

how to show the image from the database

---

## [Agile web developement - Depot App first application](https://www.ruby-forum.com/t/agile-web-developement-depot-app-first-application/186750)

<div class="topic-metadata">

**Author:** [@Jens\_MoewesSGerma](https://www.ruby-forum.com/u/Jens_MoewesSGerma)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 10:58am UTC](https://www.ruby-forum.com/t/agile-web-developement-depot-app-first-application/186750 "2008-02-26T10:58:12Z")

</div>

hi there, just wondering - i´m building my first app as described in “agile web development” chapter 6 (depot) and followed the instructions to the letter - i saw that the database my set up creates by default is not …

---

## [ActiveResource, how to add a param to every request?](https://www.ruby-forum.com/t/activeresource-how-to-add-a-param-to-every-request/186742)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 3\
**Last updated:** [February 26, 2008, 10:48am UTC](https://www.ruby-forum.com/t/activeresource-how-to-add-a-param-to-every-request/186742 "2008-02-26T10:48:29Z")

</div>

Hi, I have just created a couple of ActiveResource classes that are being used to communicate with a rest api. In every request I am having to place an api key as an additional param e.g. @book = Book.find(params\[:i…

---

## [Global Variables for a Search Toggle?](https://www.ruby-forum.com/t/global-variables-for-a-search-toggle/130168)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [February 26, 2008, 10:27am UTC](https://www.ruby-forum.com/t/global-variables-for-a-search-toggle/130168 "2008-02-26T10:27:04Z")

</div>

Hi, i’m adding a searching part to my app and need to give the user an easy way to toggle between searching by Registered / Activity Basically there will be a line of text at the top saying ‘Searching by : Registered’…

---

## [Using onSubmit tag in form\_tag?](https://www.ruby-forum.com/t/using-onsubmit-tag-in-form-tag/55443)

<div class="topic-metadata">

**Author:** [@generik](https://www.ruby-forum.com/u/generik)\
**Replies:** 4\
**Last updated:** [February 26, 2008, 10:18am UTC](https://www.ruby-forum.com/t/using-onsubmit-tag-in-form-tag/55443 "2008-02-26T10:18:13Z")

</div>

Hi guys, I have been working on a form that would use javascript to validate the data before submitting it, and from my view.rhtml I have a statement like this: However such a statement generates a HTML tag that look…

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

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