# Rails

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

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

---

## [For - next loop](https://www.ruby-forum.com/t/for-next-loop/172866)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 12\
**Last updated:** [July 29, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/for-next-loop/172866 "2009-07-29T19:39:42Z")

</div>

Even my pickaxe book suggests this should work but it doesn’t… for tax in @taxes next if ! (tax.taxauthid === \[ 24, 25, 26, 27, 36, 37, 38, 39\]) print tax.taxamount + " - " + tax.taxauthid + “\\n” end and my thinking…

---

## [Table does not exist](https://www.ruby-forum.com/t/table-does-not-exist/172895)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/table-does-not-exist/172895 "2009-07-29T19:27:58Z")

</div>

I am creating a db in rake, and I have it all set up in migrations. I notice that the schema.rb contains the code for creation of a parituclar table. However, when I rake it, I get “blah blah table does not exist.” W…

---

## [Flash stopped working](https://www.ruby-forum.com/t/flash-stopped-working/172868)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [July 29, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/flash-stopped-working/172868 "2009-07-29T19:08:06Z")

</div>

I had a working 1.2 app now being updated to 2.3. I’m using a flash message which has worked fine. After the update to 2.3, the message no longer displays when it should. In application\_controller.rb, I do a simple co…

---

## [Can I specify the rake version?](https://www.ruby-forum.com/t/can-i-specify-the-rake-version/172847)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/can-i-specify-the-rake-version/172847 "2009-07-29T18:29:37Z")

</div>

Hi, Is there a clean way to ensure that a particular rails project uses a particular version of rake? I had a problem when a gem (calendar\_date\_select) upgraded my rake gem. The newer version (0.8.4) wasn’t backward …

---

## [Parse form value in querystring/url](https://www.ruby-forum.com/t/parse-form-value-in-querystring-url/172899)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 5:38pm UTC](https://www.ruby-forum.com/t/parse-form-value-in-querystring-url/172899 "2009-07-29T17:38:06Z")

</div>

Hi, I want to parse the value of form in a query string/url. Somone ideas? remco

---

## [Empty result set after migration](https://www.ruby-forum.com/t/empty-result-set-after-migration/172896)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 5:07pm UTC](https://www.ruby-forum.com/t/empty-result-set-after-migration/172896 "2009-07-29T17:07:29Z")

</div>

Someone sent me an app with migrations. I am using sqlite for my db in test. I succesfully run rake db:migrate RAILS\_ENV=test And when I go to run this app, get “empty result set.” Is tehre something I am missing her…

---

## [Rails date conversion](https://www.ruby-forum.com/t/rails-date-conversion/172835)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/rails-date-conversion/172835 "2009-07-29T16:43:27Z")

</div>

The environment.rb file in a Rails 2.3.2 app says: Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. Auto-convert to this zone… when? Also, what are the differences betwee…

---

## [Use of Ruby Gem and Plugin](https://www.ruby-forum.com/t/use-of-ruby-gem-and-plugin/172871)

<div class="topic-metadata">

**Author:** [@milindkanchan](https://www.ruby-forum.com/u/milindkanchan)\
**Replies:** 3\
**Last updated:** [July 29, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/use-of-ruby-gem-and-plugin/172871 "2009-07-29T16:36:21Z")

</div>

Hi, I need to know what should we use in ROR application gems or plugins. Which is the best for any ROR application? Can anyone brief me about this. Thanks

---

## [Shoud be easy - using hash key as a variable](https://www.ruby-forum.com/t/shoud-be-easy-using-hash-key-as-a-variable/172888)

<div class="topic-metadata">

**Author:** [@convan23](https://www.ruby-forum.com/u/convan23)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/shoud-be-easy-using-hash-key-as-a-variable/172888 "2009-07-29T16:31:26Z")

</div>

So I’ve taken a break from programming for a couple years and trying to get back into it, feeling quite like trying to ride a bike through the mud. What I’m trying to do is use a variable as a hash key, like so: def …

---

## [How to update rails Variable in Javascript](https://www.ruby-forum.com/t/how-to-update-rails-variable-in-javascript/172885)

<div class="topic-metadata">

**Author:** [@sts](https://www.ruby-forum.com/u/sts)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/how-to-update-rails-variable-in-javascript/172885 "2009-07-29T15:48:32Z")

</div>

Hi, am having the code like this \<%=radio\_button(:nominees, count, :onclick =\> ‘CheckedValues();’)%\> \<%= response.nomination %\> where CheckedValues() is a javascript function if the radio button is selected, then i …

---

## [Help](https://www.ruby-forum.com/t/help/172886)

<div class="topic-metadata">

**Author:** [@Poornima\_dhanasekar](https://www.ruby-forum.com/u/Poornima_dhanasekar)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/help/172886 "2009-07-29T15:24:18Z")

</div>

All, Can anyone tell how to increase the productivity using rails application?. \* Regards, Poornima D.\*

---

## [Remember ids in forms (with association)](https://www.ruby-forum.com/t/remember-ids-in-forms-with-association/172893)

<div class="topic-metadata">

**Author:** [@plplpl](https://www.ruby-forum.com/u/plplpl)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/remember-ids-in-forms-with-association/172893 "2009-07-29T15:02:11Z")

</div>

Hi there, I’m building something and I think I’m not going the Rails way with something. I have two models: ‘seasons’ and ‘episodes’. Season model: has\_many :episodes, :dependent =\> :destroy Episode model: belongs\_to…

---

## [Auto\_complete div remains hidden](https://www.ruby-forum.com/t/auto-complete-div-remains-hidden/172880)

<div class="topic-metadata">

**Author:** [@albertosesena](https://www.ruby-forum.com/u/albertosesena)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/auto-complete-div-remains-hidden/172880 "2009-07-29T14:45:36Z")

</div>

Hi! I’m using Pat Shaughnessy’s auto\_complete fork, working with nested forms. It’s working very well, producing the right auto complete query and filling up the auto-complete div (as I can see from firebug). Just, th…

---

## [Javascript in a partial](https://www.ruby-forum.com/t/javascript-in-a-partial/172882)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/javascript-in-a-partial/172882 "2009-07-29T13:45:29Z")

</div>

If I have js in a partial, and my controller calls render :partial =\> ‘…’ will that js then be executed?

---

## [Plugin install not installing git plugins](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757)

<div class="topic-metadata">

**Author:** [@Beta\_Z](https://www.ruby-forum.com/u/Beta_Z)\
**Replies:** 4\
**Last updated:** [July 29, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/plugin-install-not-installing-git-plugins/172757 "2009-07-29T13:44:18Z")

</div>

Hi everybody: I’m working in an upgraded app (from version 1.x of Rails to 2.3.2), and I can’t install any plugin from the git repositories. For instance, if I run ruby script/plugin install git://github.com/dchelims…

---

## [WindyCityRails - Early Registration Until Aug 1, 2009](https://www.ruby-forum.com/t/windycityrails-early-registration-until-aug-1-2009/172887)

<div class="topic-metadata">

**Author:** [@Raymond\_TSHightowe](https://www.ruby-forum.com/u/Raymond_TSHightowe)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 1:43pm UTC](https://www.ruby-forum.com/t/windycityrails-early-registration-until-aug-1-2009/172887 "2009-07-29T13:43:43Z")

</div>

WindyCityRails is a one-day conference packed with an abundance of Rails knowledge . Sharpen your technical skills, network with other professionals, and meet some of the top minds in the Ruby on Rails community. Dev…

---

## [Errorr in sessions/new.html.erb](https://www.ruby-forum.com/t/errorr-in-sessions-new-html-erb/172876)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 4\
**Last updated:** [July 29, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/errorr-in-sessions-new-html-erb/172876 "2009-07-29T12:53:58Z")

</div>

hi i write the follwing code in sessions/new.html.erb file, when i go to run the application it gives the error Log In \<% form\_tag session\_path do -%\> \<%= label\_tag 'login' %\> \<%= text\_field\_tag 'login', @login %\> \<%…

---

## [GPS Tracking](https://www.ruby-forum.com/t/gps-tracking/172883)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/gps-tracking/172883 "2009-07-29T12:47:36Z")

</div>

Hi Is there any equivalent application in Rails like this http://track.opengts.org/track/Track?page=login This is in Java Thanks in advance Sijo

---

## [Problem in using sorthelper2](https://www.ruby-forum.com/t/problem-in-using-sorthelper2/172869)

<div class="topic-metadata">

**Author:** [@mushi](https://www.ruby-forum.com/u/mushi)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 12:29pm UTC](https://www.ruby-forum.com/t/problem-in-using-sorthelper2/172869 "2009-07-29T12:29:56Z")

</div>

Hi i am using SortHelper2 in my columns and want someone help to solve my problem. i have the following url on my site and i want to append sort\_key=id&sort\_order=desc at the end of my params hash, so the end resu…

---

## [Rake Test / PostgreSQL database ownership](https://www.ruby-forum.com/t/rake-test-postgresql-database-ownership/172852)

<div class="topic-metadata">

**Author:** [@rilindo\_foster](https://www.ruby-forum.com/u/rilindo_foster)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 11:56am UTC](https://www.ruby-forum.com/t/rake-test-postgresql-database-ownership/172852 "2009-07-29T11:56:01Z")

</div>

Hi Guys, Is it normal for Rails to create and delete the test database during rake tests? It seems to be case when I started to run it. Is there a way for the Rails not to create and delete databases during testing? …

---

## [Paperclip image styles getting cropped](https://www.ruby-forum.com/t/paperclip-image-styles-getting-cropped/172823)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 7\
**Last updated:** [July 29, 2009, 11:55am UTC](https://www.ruby-forum.com/t/paperclip-image-styles-getting-cropped/172823 "2009-07-29T11:55:26Z")

</div>

Hello All, I am using rails paperclip plugin for image upload. my image has different styles and the original image gets cropped while processing styled image. I dont want image to be cropped. Is there any way ??? …

---

## [New project](https://www.ruby-forum.com/t/new-project/172862)

<div class="topic-metadata">

**Author:** [@joseph](https://www.ruby-forum.com/u/joseph)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 11:40am UTC](https://www.ruby-forum.com/t/new-project/172862 "2009-07-29T11:40:47Z")

</div>

we are a publicly traded company that is looking for the next newest, greatest, best thing that is web-based. i know, everybody is looking for this. but we are in a unique position financially to do something about it…

---

## [Doubt in nil object with ajax](https://www.ruby-forum.com/t/doubt-in-nil-object-with-ajax/172874)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 6\
**Last updated:** [July 29, 2009, 11:13am UTC](https://www.ruby-forum.com/t/doubt-in-nil-object-with-ajax/172874 "2009-07-29T11:13:51Z")

</div>

hi this is my htnl \<%= javascript\_include\_tag :defaults %\> \<%= form\_tag nil, { :id =\> 'search\_form' } %\> \<%= text\_field 'recipe', 'name' %\> \<%= end\_form\_tag %\> \<%= observe\_form :search\_form, :frequency =\> 0.5, …

---

## [Background process with ruby on rails](https://www.ruby-forum.com/t/background-process-with-ruby-on-rails/154880)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 11:08am UTC](https://www.ruby-forum.com/t/background-process-with-ruby-on-rails/154880 "2009-07-29T11:08:10Z")

</div>

Here is what I’m trying to do. (not sure how to do steps 2 and 3) User uploads a file to server ( i know how to do this ) once uploaded a background process needs to be run on the file (could take a minute of 2 to com…

---

## [Has anyone used file\_column to store the upload file in DB?](https://www.ruby-forum.com/t/has-anyone-used-file-column-to-store-the-upload-file-in-db/172832)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 1\
**Last updated:** [July 29, 2009, 6:29am UTC](https://www.ruby-forum.com/t/has-anyone-used-file-column-to-store-the-upload-file-in-db/172832 "2009-07-29T06:29:05Z")

</div>

Has anyone used file\_column to store the upload file in DB? I have a requirement to upload files and store in the database instead of the file system. The upload file can be any type, images or documents, .doc, .xls, …

---

## [Time\_select in am/pm format](https://www.ruby-forum.com/t/time-select-in-am-pm-format/172777)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 3\
**Last updated:** [July 29, 2009, 4:10am UTC](https://www.ruby-forum.com/t/time-select-in-am-pm-format/172777 "2009-07-29T04:10:08Z")

</div>

Is there an easy solution out there that can display it in the am/pm format and not the 24 hours format. i have searched the web and this group and found not much except the following: http://brunomiranda.com/past/200…

---

## [Mapping parameter in a RESTful route](https://www.ruby-forum.com/t/mapping-parameter-in-a-restful-route/172667)

<div class="topic-metadata">

**Author:** [@Florent\_F.rent](https://www.ruby-forum.com/u/Florent_F.rent)\
**Replies:** 2\
**Last updated:** [July 29, 2009, 4:05am UTC](https://www.ruby-forum.com/t/mapping-parameter-in-a-restful-route/172667 "2009-07-29T04:05:27Z")

</div>

Hello, Is it possible to define a RESTful route like “map.resources :projects” having the id parameter mapped to params\[:project\_id\] instead of params\[:id\]? I searched in http://api.rubyonrails.org/classes/ActionCon…

---

## [(off-topic) The recession and you: has the economy changed your IT spending?](https://www.ruby-forum.com/t/off-topic-the-recession-and-you-has-the-economy-changed-your-it-spending/172859)

<div class="topic-metadata">

**Author:** [@Mikhail](https://www.ruby-forum.com/u/Mikhail)\
**Replies:** 0\
**Last updated:** [July 29, 2009, 3:32am UTC](https://www.ruby-forum.com/t/off-topic-the-recession-and-you-has-the-economy-changed-your-it-spending/172859 "2009-07-29T03:32:42Z")

</div>

If you can spare about 10 minutes to take a survey I would love to hear about how the global recession is (or is not) changing your personal or organizational IT plans. http://www.surveymonkey.com/s.aspx?sm=Co3CDMHC47…

---

## [How to set smpt server for our rails applicaion](https://www.ruby-forum.com/t/how-to-set-smpt-server-for-our-rails-applicaion/172801)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 6\
**Last updated:** [July 29, 2009, 1:52am UTC](https://www.ruby-forum.com/t/how-to-set-smpt-server-for-our-rails-applicaion/172801 "2009-07-29T01:52:04Z")

</div>

hi i am using technoweenie-restful-authentication plug-in for authentication in my application. i want to send a activation link to the user’s mail-id. for that i need to set the smpt server for our rails application,…

---

## [Varchar size for a blog post](https://www.ruby-forum.com/t/varchar-size-for-a-blog-post/172767)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 9\
**Last updated:** [July 29, 2009, 1:45am UTC](https://www.ruby-forum.com/t/varchar-size-for-a-blog-post/172767 "2009-07-29T01:45:03Z")

</div>

Hi, I know this ones a dumb question. I wanna create a blog and store the article in DB. it can be HUGE text. Can someone please mention the data type in rails and its equivalent in my sql is generally used?

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

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