# Rails

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

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

---

## [STDOUT is nil when rake task is run via cron](https://www.ruby-forum.com/t/stdout-is-nil-when-rake-task-is-run-via-cron/121859)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/stdout-is-nil-when-rake-task-is-run-via-cron/121859 "2007-12-18T20:56:02Z")

</div>

I have a simple rake script which looks like this task :test =\> :environment do response = %x{date} puts 1 puts response puts 2 end When I run this directly from the command line, I get the correct output. Howev…

---

## [Render :update and best practices](https://www.ruby-forum.com/t/render-update-and-best-practices/123087)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/render-update-and-best-practices/123087 "2007-12-18T20:29:48Z")

</div>

I’m pretty new to Rails and was wondering what the best practice is with respect to render :update. Should logic be placed in the :update blocks or should the logic be outside the blocks with separate blocks provided…

---

## [Include vs extend](https://www.ruby-forum.com/t/include-vs-extend/123496)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/include-vs-extend/123496 "2007-12-18T20:06:17Z")

</div>

Can any one give simple definition for include and extend since iam stumbled over the examples in the net

---

## [Population of drop down list contents from a prior drop down selection](https://www.ruby-forum.com/t/population-of-drop-down-list-contents-from-a-prior-drop-down-selection/123444)

<div class="topic-metadata">

**Author:** [@crispy](https://www.ruby-forum.com/u/crispy)\
**Replies:** 4\
**Last updated:** [December 18, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/population-of-drop-down-list-contents-from-a-prior-drop-down-selection/123444 "2007-12-18T20:04:31Z")

</div>

Suppose you have two drop down selects that are related. The contents of both come from a database.You want the contents of the second one to be dependent on the selection made in the first one, but don’t want the us…

---

## [File\_column in production mode](https://www.ruby-forum.com/t/file-column-in-production-mode/123494)

<div class="topic-metadata">

**Author:** [@koli](https://www.ruby-forum.com/u/koli)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/file-column-in-production-mode/123494 "2007-12-18T20:02:42Z")

</div>

hi, I have this problem wherein i’m not able to display the images in production mode after the upload using file\_column.it does upload the file but not able to display the images.it does not throw any error also in…

---

## [What's the difference between rfacebook and Facebooker?](https://www.ruby-forum.com/t/whats-the-difference-between-rfacebook-and-facebooker/123556)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/whats-the-difference-between-rfacebook-and-facebooker/123556 "2007-12-18T19:05:46Z")

</div>

Hello, I published a first draft on “What’s the difference between rfacebook and Facebooker?” on the rfacebook questions & answers site @ If you have any comments, corrections or additions about rfacebook vs Faceboo…

---

## [Testing with code injection](https://www.ruby-forum.com/t/testing-with-code-injection/123519)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/testing-with-code-injection/123519 "2007-12-18T19:04:01Z")

</div>

Most of my unit tests are too long and repetative, so I’m trying to refactor them with some code injection. What I want to do is something like in category\_test: def setup @valid\_values = {:name =\> \[“frank”, “bob, “v…

---

## [How to use update\_page to dynamically add form elements?](https://www.ruby-forum.com/t/how-to-use-update-page-to-dynamically-add-form-elements/123522)

<div class="topic-metadata">

**Author:** [@carpeliam](https://www.ruby-forum.com/u/carpeliam)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/how-to-use-update-page-to-dynamically-add-form-elements/123522 "2007-12-18T18:57:35Z")

</div>

I’ve got a form with some upload boxes, and I’d really like to add more boxes when the user clicks on a link, a la Gmail attachments. I was thinking I could just use any javascript for this, it’s not hard, but I had t…

---

## [Google Gears with RoR](https://www.ruby-forum.com/t/google-gears-with-ror/123553)

<div class="topic-metadata">

**Author:** [@ponnada](https://www.ruby-forum.com/u/ponnada)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/google-gears-with-ror/123553 "2007-12-18T18:45:52Z")

</div>

Has any one successfully used Google Gears with RoR to enable ‘offline’ mode for their web application? Please share your thoughts/ experiences with using Google Gears or Dojo offline with RoR to move your application…

---

## [What is Rails Engine?](https://www.ruby-forum.com/t/what-is-rails-engine/123483)

<div class="topic-metadata">

**Author:** [@mohan-ror](https://www.ruby-forum.com/u/mohan-ror)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/what-is-rails-engine/123483 "2007-12-18T18:40:02Z")

</div>

What is Rails Engine? what is the advantage of using engine in our application? What is the difference between plugin Vs engines?

---

## [Added columns do not show up in new action](https://www.ruby-forum.com/t/added-columns-do-not-show-up-in-new-action/123548)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/added-columns-do-not-show-up-in-new-action/123548 "2007-12-18T18:17:51Z")

</div>

I’m trying to write my first app in rails (no better way to learn than to do). I did my first migration to create the initial table, which worked fine. I generated the scaffold and added one new line item (a workout) …

---

## [? Conditional validation skipping?](https://www.ruby-forum.com/t/conditional-validation-skipping/123536)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 5\
**Last updated:** [December 18, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/conditional-validation-skipping/123536 "2007-12-18T17:33:48Z")

</div>

Hey, I have validation that I need to be able to bypass depending on a cookie that the user might have. My problem is for most users, they have to have a .edu or .com email address. So I wrote that into the validati…

---

## [REST and custom routes](https://www.ruby-forum.com/t/rest-and-custom-routes/123546)

<div class="topic-metadata">

**Author:** [@jcontonio](https://www.ruby-forum.com/u/jcontonio)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 4:46pm UTC](https://www.ruby-forum.com/t/rest-and-custom-routes/123546 "2007-12-18T16:46:15Z")

</div>

So here’s what I do and lets see if someone can solve the problems rails test cd test script/generate scaffold Task body:string completed:boolean rake db:create rake db:migrate #routes.rb map.resources :tasks, :me…

---

## [Setting rails version](https://www.ruby-forum.com/t/setting-rails-version/123402)

<div class="topic-metadata">

**Author:** [@dzonekl](https://www.ruby-forum.com/u/dzonekl)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/setting-rails-version/123402 "2007-12-18T16:32:44Z")

</div>

Hello, How do I tell rails to use a specified version when creating the application directory structure? I have multiple versions of rails installed through gem, but I can’t find how to choose? Any ideas? thanks! …

---

## [Nested Resource with two different parent controllers](https://www.ruby-forum.com/t/nested-resource-with-two-different-parent-controllers/123204)

<div class="topic-metadata">

**Author:** [@Kenny\_C](https://www.ruby-forum.com/u/Kenny_C)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/nested-resource-with-two-different-parent-controllers/123204 "2007-12-18T16:24:31Z")

</div>

I’m trying to figure out how to created nested resources for a controller that can have two different “parent” controllers. For example: Take the following models: Business Event Comment (business\_id, event\_id, etc… …

---

## [Rails recipes lightning fast local autocompletion \> @headers issue?](https://www.ruby-forum.com/t/rails-recipes-lightning-fast-local-autocompletion-headers-issue/123539)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/rails-recipes-lightning-fast-local-autocompletion-headers-issue/123539 "2007-12-18T15:51:35Z")

</div>

To all: hi, i tried to adapt the lightning fast autocompletion eg shown in rails recipes. which was pretty cool to use. I used in rails 1.2.3 but now i cannot use in rails 1.2.6 i suspect may have something to do wi…

---

## [Search form: POST vs GET](https://www.ruby-forum.com/t/search-form-post-vs-get/123222)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/search-form-post-vs-get/123222 "2007-12-18T15:47:26Z")

</div>

I have a page where members are searched for and added to the group specified by the url http://localhost:3000/groups/1/add\_members \<%- form\_tag :controller =\> :groups, :action =\> :add\_members do -%\> Find Member by …

---

## [Many domain - one rails application](https://www.ruby-forum.com/t/many-domain-one-rails-application/123458)

<div class="topic-metadata">

**Author:** [@kilo](https://www.ruby-forum.com/u/kilo)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/many-domain-one-rails-application/123458 "2007-12-18T15:45:06Z")

</div>

If I have many domains and one rails application, how can I redirect to conrollers by domain? Ex. “domain.com” go to controller “/com”, “domain.net” go to controller “/net” and “other.org” go to “/other”

---

## [Globalize and acts\_as\_versioned](https://www.ruby-forum.com/t/globalize-and-acts-as-versioned/120229)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/globalize-and-acts-as-versioned/120229 "2007-12-18T15:30:45Z")

</div>

The subject says it all: Has anyone had any experience with using globalize and acts\_as\_versioned (or equivalent) together. That is, I would like the version control to take the locales into account, the en-US transla…

---

## [Realise a web service with ruby on rails](https://www.ruby-forum.com/t/realise-a-web-service-with-ruby-on-rails/123038)

<div class="topic-metadata">

**Author:** [@fafarun](https://www.ruby-forum.com/u/fafarun)\
**Replies:** 3\
**Last updated:** [December 18, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/realise-a-web-service-with-ruby-on-rails/123038 "2007-12-18T15:11:35Z")

</div>

Hi , I want realize a web service with rails, but it’s the response it’s very slow. I want only saw all element present in my base. I did a base Customers (with element like id, name, phone,…). I added two elements. …

---

## [Tool for tsting routes](https://www.ruby-forum.com/t/tool-for-tsting-routes/123199)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 1\
**Last updated:** [December 18, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/tool-for-tsting-routes/123199 "2007-12-18T14:36:59Z")

</div>

Is there a tool or code fragment tat can be used with irb via scripts/console to test toutes/ Sort of Prompt for input responds with the route Thanks – “Hello, my name is Inigo Montoya, you killed my father, prepa…

---

## [What is coming in Instant Rails 2.0](https://www.ruby-forum.com/t/what-is-coming-in-instant-rails-2-0/123464)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 8\
**Last updated:** [December 18, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/what-is-coming-in-instant-rails-2-0/123464 "2007-12-18T14:15:14Z")

</div>

I just wanted to give a quick update about what is coming in the next version of Instant Rails version 2.0. Please take a look at a post I just did and please comment. Since Rails 2.0.2 now has a default database s…

---

## [Online Fm Radio, MP3 Songs, Tamil Movie Reviews](https://www.ruby-forum.com/t/online-fm-radio-mp3-songs-tamil-movie-reviews/123531)

<div class="topic-metadata">

**Author:** [@desiga](https://www.ruby-forum.com/u/desiga)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 1:43pm UTC](https://www.ruby-forum.com/t/online-fm-radio-mp3-songs-tamil-movie-reviews/123531 "2007-12-18T13:43:31Z")

</div>

Online Fm Radio, MP3 Songs, Tamil Movie Reviews : www.damdhoom.com

---

## [Regarding error id and error message](https://www.ruby-forum.com/t/regarding-error-id-and-error-message/123526)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/regarding-error-id-and-error-message/123526 "2007-12-18T13:33:00Z")

</div>

Hi, in my code i’ve declared errorid ( i had given some integer like 608) and a message assoicated with it. and again i had given errorid as 600 with the same message. when i was testing functionally i expected 608…

---

## [Custom pagination](https://www.ruby-forum.com/t/custom-pagination/123507)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/custom-pagination/123507 "2007-12-18T12:08:41Z")

</div>

In ci\_controller i wrote def search\_ci page = (params\[:page\] ||= 1).to\_i software\_cis\_per\_page = 3 offset = (page - 1) \* software\_cis\_per\_page @software\_cis = SoftwareCi.find\_by\_sql(\[“select \* from software\_cis whe…

---

## [Libraries for common business logic - best practice?](https://www.ruby-forum.com/t/libraries-for-common-business-logic-best-practice/123516)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 11:30am UTC](https://www.ruby-forum.com/t/libraries-for-common-business-logic-best-practice/123516 "2007-12-18T11:30:33Z")

</div>

Hi, I am working on my first large rails app and had a quick question of best practice. It is essentially an ERP type application, tracking customer accounts, orders, and product inventory. I am finding I am learnin…

---

## [Wirtin root path using file column](https://www.ruby-forum.com/t/wirtin-root-path-using-file-column/123511)

<div class="topic-metadata">

**Author:** [@koli](https://www.ruby-forum.com/u/koli)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 11:00am UTC](https://www.ruby-forum.com/t/wirtin-root-path-using-file-column/123511 "2007-12-18T11:00:14Z")

</div>

hi, i want the imagesto be written to directory outside the rails app using the file\_column. MY RAILS\_APP PATH:/var/www/domain.in/rails\_app i want the images to be uploaded to a directory to /var/www/domain.in/ th…

---

## [PTC 0.01 / 0.2 $ global-click.info](https://www.ruby-forum.com/t/ptc-0-01-0-2-global-click-info/123510)

<div class="topic-metadata">

**Author:** [@eddyzs](https://www.ruby-forum.com/u/eddyzs)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 10:48am UTC](https://www.ruby-forum.com/t/ptc-0-01-0-2-global-click-info/123510 "2007-12-18T10:48:42Z")

</div>

New PTC site, pays 0.01 $ for your and referal ad view!! Upgraded members get 0.2$ for ad view! Min payout 10$!! register now! http://global-click.info/?r=eddys

---

## [Upload in Rails](https://www.ruby-forum.com/t/upload-in-rails/123508)

<div class="topic-metadata">

**Author:** [@bardachrails](https://www.ruby-forum.com/u/bardachrails)\
**Replies:** 0\
**Last updated:** [December 18, 2007, 10:20am UTC](https://www.ruby-forum.com/t/upload-in-rails/123508 "2007-12-18T10:20:36Z")

</div>

Hello everybody, I develope my own application with RoR. I use the code after to upload the files to a directory in the public folder of my app, and store the URI of the file in the database as a string,. But, in my…

---

## [Javascript calendar for rails 2.x](https://www.ruby-forum.com/t/javascript-calendar-for-rails-2-x/123503)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 2\
**Last updated:** [December 18, 2007, 10:19am UTC](https://www.ruby-forum.com/t/javascript-calendar-for-rails-2-x/123503 "2007-12-18T10:19:00Z")

</div>

can somebody recommend a js based calendar-select-date-and-time application. i just need it in a form where the visitor can select several dates. i should work with the shipped prototype libs with rails 2.0.2. Thanx …

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

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