# Rails

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

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

---

## [Capistrano error](https://www.ruby-forum.com/t/capistrano-error/164586)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/capistrano-error/164586 "2009-05-14T21:54:58Z")

</div>

Hi guys, I got a problem with capistrano configuration. Here comes my deploy.rb file: set :application, “CondoWeb” set :repository, “svn+ssh://removed\_email\_address@domain.invalid/home/condow09/svn/ CondoWeb” If y…

---

## [Method location](https://www.ruby-forum.com/t/method-location/167996)

<div class="topic-metadata">

**Author:** [@p\_W](https://www.ruby-forum.com/u/p_W)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 9:40pm UTC](https://www.ruby-forum.com/t/method-location/167996 "2009-05-14T21:40:49Z")

</div>

I am a novice writing a simple address book app. It is just using the simple CRUD operations, but I would like to write a function for the index view that divides the records up by the first letter of the last name s…

---

## [Decimal or float](https://www.ruby-forum.com/t/decimal-or-float/167980)

<div class="topic-metadata">

**Author:** [@Vipin](https://www.ruby-forum.com/u/Vipin)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/decimal-or-float/167980 "2009-05-14T21:38:28Z")

</div>

which data type should i use for storing the decimal numbers. Query 1, which is causing the confusion Agile Web 3rd edition , page 80 tip says, we should use decimals as they are scaled to integer in rails as well as …

---

## [Diff between ( rake db:migrate VERSION0 ) and (rake db:rollback)](https://www.ruby-forum.com/t/diff-between-rake-db-migrate-version0-and-rake-db-rollback/167997)

<div class="topic-metadata">

**Author:** [@Vipin](https://www.ruby-forum.com/u/Vipin)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/diff-between-rake-db-migrate-version0-and-rake-db-rollback/167997 "2009-05-14T21:06:14Z")

</div>

what is the difference between rake db:migrate VERSION=0 and rake db:rollback the only one i have seen is first one always works and second one gives error sometimes. …but i guess both try to do the same thing. ?? …

---

## [Ruby script outside of rails app](https://www.ruby-forum.com/t/ruby-script-outside-of-rails-app/167853)

<div class="topic-metadata">

**Author:** [@phillee](https://www.ruby-forum.com/u/phillee)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/ruby-script-outside-of-rails-app/167853 "2009-05-14T20:28:40Z")

</div>

Hello: I would like to write a ruby script that runs on its own, but still take advantage of the ActiveRecord configured by the web app. Is there an easy way to do this? Thanks in advance!

---

## [Ruby training? Worry no more](https://www.ruby-forum.com/t/ruby-training-worry-no-more/167726)

<div class="topic-metadata">

**Author:** [@Garfeee](https://www.ruby-forum.com/u/Garfeee)\
**Replies:** 6\
**Last updated:** [May 14, 2009, 8:11pm UTC](https://www.ruby-forum.com/t/ruby-training-worry-no-more/167726 "2009-05-14T20:11:42Z")

</div>

Thank you, Kevin S… For an amazing video tutorial with Ruy on Rails Essential Training. Really good job explaining all that matters with the simplicity it needs to be understood by “newbies”. Loved the array \> pocket …

---

## [Looking for a image upload plugin](https://www.ruby-forum.com/t/looking-for-a-image-upload-plugin/167994)

<div class="topic-metadata">

**Author:** [@sigma](https://www.ruby-forum.com/u/sigma)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 7:48pm UTC](https://www.ruby-forum.com/t/looking-for-a-image-upload-plugin/167994 "2009-05-14T19:48:12Z")

</div>

Hi all I’m looking for a image upload plugin! I’m searching something like paperclip, but thumbnails should not be stored permanently. They should be generated when they are displayed and then be able to be cached! …

---

## [Looking for S3 File Upload PlugIn](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 7:45pm UTC](https://www.ruby-forum.com/t/looking-for-s3-file-upload-plugin/167942 "2009-05-14T19:45:51Z")

</div>

Hi there, I’m looking for a file upload plug in to load any kind of files up to an Amazon S3 bucket. But the access to the files should be restricted to authenticated users. Any Suggestions? Regards, Chris

---

## [Unit testing an Observer](https://www.ruby-forum.com/t/unit-testing-an-observer/167966)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/unit-testing-an-observer/167966 "2009-05-14T19:18:44Z")

</div>

Hi, How can I unit test an Observer? Its new method is private, and I can’t find any documentation on that topic.

---

## [RoR Developer Needed](https://www.ruby-forum.com/t/ror-developer-needed/167989)

<div class="topic-metadata">

**Author:** [@Travis\_Reeder](https://www.ruby-forum.com/u/Travis_Reeder)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/ror-developer-needed/167989 "2009-05-14T18:56:23Z")

</div>

JOB : Software Engineers and Software Architects (hiring now) Location: San Francisco, California - remote work is fine Apply : Send resume by email to: jobs \[at\] crankapps \[dot\] com CrankApps is a software …

---

## [Import existing Access database](https://www.ruby-forum.com/t/import-existing-access-database/167987)

<div class="topic-metadata">

**Author:** [@stumeikle](https://www.ruby-forum.com/u/stumeikle)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/import-existing-access-database/167987 "2009-05-14T18:09:55Z")

</div>

I have a database project written in Micro$oft Access 2003 and would like to move the tables and data to a Ruby R. application with MySql as the backend database. Once I’ve imported the Access database into MySql, how…

---

## [Object attributes through habtm](https://www.ruby-forum.com/t/object-attributes-through-habtm/167972)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/object-attributes-through-habtm/167972 "2009-05-14T17:56:09Z")

</div>

Hi all, I have some “strange” behavior going on in one of my Rails apps. I have two models: CustomerCategory and PaymentType. Both have a HABTM relationship. If I want to know the attributes of a PaymentType, I do P…

---

## [Check for existence of session without triggering one?](https://www.ruby-forum.com/t/check-for-existence-of-session-without-triggering-one/167985)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/check-for-existence-of-session-without-triggering-one/167985 "2009-05-14T17:33:21Z")

</div>

With the new session lazy loading – how can I check to see if a session has already been created, and not trigger the creation of a session if not? Thanks!

---

## [Activerecord-jdbc-adapter 0.9 oracle number id problem](https://www.ruby-forum.com/t/activerecord-jdbc-adapter-0-9-oracle-number-id-problem/161914)

<div class="topic-metadata">

**Author:** [@markbates](https://www.ruby-forum.com/u/markbates)\
**Replies:** 10\
**Last updated:** [May 14, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/activerecord-jdbc-adapter-0-9-oracle-number-id-problem/161914 "2009-05-14T17:31:56Z")

</div>

I’m having a problem using jruby on rails with a legacy oracle database (Oracle Database 10g Enterprise Edition Release 10.1.0.3.0). The oracle number primary key is getting converted into a decimal, which is causing …

---

## [Thinking Sphinx](https://www.ruby-forum.com/t/thinking-sphinx/167976)

<div class="topic-metadata">

**Author:** [@raghu](https://www.ruby-forum.com/u/raghu)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/thinking-sphinx/167976 "2009-05-14T16:28:31Z")

</div>

Search criteria 1.Searching with the combination of the “AND” and “OR” conditions for four to five fields of the table. -Added the indexes for the search fields. Ex1. Order.search(:conditions=\>\[“store\_id=16 and (sto…

---

## [Selenium - using jquery locators instead of xpath](https://www.ruby-forum.com/t/selenium-using-jquery-locators-instead-of-xpath/167977)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/selenium-using-jquery-locators-instead-of-xpath/167977 "2009-05-14T16:13:21Z")

</div>

I’m writing some selenium tests and find myself doing stuff like this a lot: @browser.click("//div\[@id=‘four-col-bd’\]//div\[contains(@class, ‘column’)\]//a") In this case i want to click on the first link in the first …

---

## [Getting form field value within link\_to\_function](https://www.ruby-forum.com/t/getting-form-field-value-within-link-to-function/167959)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/getting-form-field-value-within-link-to-function/167959 "2009-05-14T15:44:42Z")

</div>

Hi all, I’m very new to this community, and I started practicing with Ruby on Rails just recently. I watched the 3 episodes , 72-73-74 for complex forms on railscasts , and I’m trying to deploy a “new” function for m…

---

## [Ferret\_ext error in running my app](https://www.ruby-forum.com/t/ferret-ext-error-in-running-my-app/167971)

<div class="topic-metadata">

**Author:** [@gmgmgm](https://www.ruby-forum.com/u/gmgmgm)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 3:39pm UTC](https://www.ruby-forum.com/t/ferret-ext-error-in-running-my-app/167971 "2009-05-14T15:39:19Z")

</div>

ii m getting this missing ‘ferret-ext’ while running i installed all gems updated help me – Ursgm

---

## [Complex forms in a simpler way?](https://www.ruby-forum.com/t/complex-forms-in-a-simpler-way/167947)

<div class="topic-metadata">

**Author:** [@holden](https://www.ruby-forum.com/u/holden)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/complex-forms-in-a-simpler-way/167947 "2009-05-14T15:18:05Z")

</div>

I have a form which updates across several models, and most of the time what is covered is close to the railscast example (complex forms), for adding photos etc, but i have another example trying to use the field\_for …

---

## [Voice alerts in Rails Application](https://www.ruby-forum.com/t/voice-alerts-in-rails-application/167965)

<div class="topic-metadata">

**Author:** [@cool](https://www.ruby-forum.com/u/cool)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/voice-alerts-in-rails-application/167965 "2009-05-14T14:21:32Z")

</div>

Guys, In my application when i create a announcement or comment and when i click “send alerts” it should send voice alerts to the users getting phone numbers of the users from the database. The users should get a ca…

---

## [Rails 3.0 release?](https://www.ruby-forum.com/t/rails-3-0-release/167941)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/rails-3-0-release/167941 "2009-05-14T14:13:17Z")

</div>

All, Is Rails 3.0 officially released yet? Because as far as I remember it is scheduled to be release after RailsConf. I don’t see any announcements or whatsoever though. Does anybody know the status of Rails 3.0? Pe…

---

## [Uninitialized constant DashboardController::User](https://www.ruby-forum.com/t/uninitialized-constant-dashboardcontroller-user/167958)

<div class="topic-metadata">

**Author:** [@irishfighter](https://www.ruby-forum.com/u/irishfighter)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-dashboardcontroller-user/167958 "2009-05-14T13:56:47Z")

</div>

Hi all, I’m new to rails and I’ve been getting this error as shown in my subject. Is there anyone out there who could possibly help in this matter. Thanks

---

## [Brief introduction to Gearman with Ruby for Linux Magazine](https://www.ruby-forum.com/t/brief-introduction-to-gearman-with-ruby-for-linux-magazine/167957)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/brief-introduction-to-gearman-with-ruby-for-linux-magazine/167957 "2009-05-14T13:46:48Z")

</div>

My introduction to Gearman with Ruby is now available on Linux Magazine at Stowarzyszenie Polski Recykling. My thanks to Andy Triggs, Eric Day, and the folks in the #gearman IRC channel who answered my questions. I am…

---

## [HABTM & find\_all\_by](https://www.ruby-forum.com/t/habtm-find-all-by/167930)

<div class="topic-metadata">

**Author:** [@akzidenz](https://www.ruby-forum.com/u/akzidenz)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/habtm-find-all-by/167930 "2009-05-14T12:24:13Z")

</div>

Hello! I’m a little new to rails and have a strange problem i’m trying to decipher. I have a Project model and Category model, connected together by a HABTM (with a categorys\_projects join table) Rails is doing ever…

---

## [Streaming from controller](https://www.ruby-forum.com/t/streaming-from-controller/167939)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 9:42am UTC](https://www.ruby-forum.com/t/streaming-from-controller/167939 "2009-05-14T09:42:20Z")

</div>

Hi people, I need to stream a lot of data from the controller (no need for a view). It generates on the go, and can take pretty long time to complete. I’m not sure it effective to generate a string (the output can b…

---

## [Keep fix data in database table while deploying](https://www.ruby-forum.com/t/keep-fix-data-in-database-table-while-deploying/167903)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 9:36am UTC](https://www.ruby-forum.com/t/keep-fix-data-in-database-table-while-deploying/167903 "2009-05-14T09:36:06Z")

</div>

Hi there, I’m pretty new to rails, but so far it’s fun! But I couldn’t find an answer to solve this problem the rails way: I deploy a webapp using capistrano and everything works fine. In my db I have a table that ha…

---

## [MVC, best practice for hash that combines objects?](https://www.ruby-forum.com/t/mvc-best-practice-for-hash-that-combines-objects/167902)

<div class="topic-metadata">

**Author:** [@arcX](https://www.ruby-forum.com/u/arcX)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 9:07am UTC](https://www.ruby-forum.com/t/mvc-best-practice-for-hash-that-combines-objects/167902 "2009-05-14T09:07:04Z")

</div>

Hi, I just wanted to see if I am on the right track, as I am new to MVC. I have a model called Tasks, and another called Entries. Tasks has many entries. Each entry has a time. So I want to total up the time entries …

---

## [Paypal express chceckout problem](https://www.ruby-forum.com/t/paypal-express-chceckout-problem/167937)

<div class="topic-metadata">

**Author:** [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 8:52am UTC](https://www.ruby-forum.com/t/paypal-express-chceckout-problem/167937 "2009-05-14T08:52:57Z")

</div>

Hi i have integrated paypal express checkout in my rails app through active merchant. Its going on the paypal site asking me to login after i login and make the payment it redirects me to my site. but the payment is n…

---

## [Keep getting this error after running scaffold command](https://www.ruby-forum.com/t/keep-getting-this-error-after-running-scaffold-command/167933)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 4\
**Last updated:** [May 14, 2009, 8:48am UTC](https://www.ruby-forum.com/t/keep-getting-this-error-after-running-scaffold-command/167933 "2009-05-14T08:48:17Z")

</div>

I ran ruby script/generate scaffold Ticket artist:string seat#:integer price:integer ticket\_price:float in my terminal Then I entered rake db:migrate I went to http://localhost:3000/tickets and I’m getting this err…

---

## [Converting created\_at to the number of days ago format](https://www.ruby-forum.com/t/converting-created-at-to-the-number-of-days-ago-format/167774)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 6:44am UTC](https://www.ruby-forum.com/t/converting-created-at-to-the-number-of-days-ago-format/167774 "2009-05-14T06:44:53Z")

</div>

Hi I want to display the created\_at field of my model in the format n days ago n hours ago Please help me in this

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

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