# Rails

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

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

---

## [Submit\_to\_remote fails on rails 2.2.2](https://www.ruby-forum.com/t/submit-to-remote-fails-on-rails-2-2-2/168305)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/submit-to-remote-fails-on-rails-2-2-2/168305 "2009-05-19T12:52:11Z")

</div>

submit\_to\_remote fails on rails 2.2.2 and rails 2.3.2 but fully working with 2.0.2 please give me an answer as soon as possible. its very urgent the code is HTML \<% form\_for :todo, @todo, :url =\> { :action =\> “upda…

---

## [View testing (rspec/selenium) - test if a file link works](https://www.ruby-forum.com/t/view-testing-rspec-selenium-test-if-a-file-link-works/168302)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/view-testing-rspec-selenium-test-if-a-file-link-works/168302 "2009-05-19T12:00:06Z")

</div>

I have a ‘download’ link on one page that causes a zip to be built and then pushes it back as a file to the browser. I want to write a test to verify that it does actually push a zip file back but i can’t work out ho…

---

## [Test Driven Design and Rails Helpers](https://www.ruby-forum.com/t/test-driven-design-and-rails-helpers/168178)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 4\
**Last updated:** [May 19, 2009, 10:10am UTC](https://www.ruby-forum.com/t/test-driven-design-and-rails-helpers/168178 "2009-05-19T10:10:21Z")

</div>

I have a bit of a problem trying to implement using TDD. As I understand it the idea is to decide what you want the code to do, write a test to check that it does, then write the code and get it to pass the test. I…

---

## [Parameter in a image\_submit\_tag?](https://www.ruby-forum.com/t/parameter-in-a-image-submit-tag/117307)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 3\
**Last updated:** [May 19, 2009, 9:48am UTC](https://www.ruby-forum.com/t/parameter-in-a-image-submit-tag/117307 "2009-05-19T09:48:14Z")

</div>

You can send a parameter in a image\_submit\_tag? I have two buttons on a form and I do not know how to differentiate which has been pressed. \<=% Image\_submit\_tag ("…/ images / incluir.gif “: op =\>” addImage “)%\> \<=% I…

---

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

<div class="topic-metadata">

**Author:** [@doelsengupta](https://www.ruby-forum.com/u/doelsengupta)\
**Replies:** 1\
**Last updated:** [May 19, 2009, 9:38am UTC](https://www.ruby-forum.com/t/pagination/168290 "2009-05-19T09:38:06Z")

</div>

Hi, Thanx for the sugestion regarding the view of the pagination, but the code is not available in the site, http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/ I have written t…

---

## [Rails + Cappuccino : a screencast](https://www.ruby-forum.com/t/rails-cappuccino-a-screencast/168296)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 9:36am UTC](https://www.ruby-forum.com/t/rails-cappuccino-a-screencast/168296 "2009-05-19T09:36:20Z")

</div>

Hey, I’ve released 2 screencasts about Rails + Cappuccino (http://cappuccino.org) : http://bit.ly/CappuccinoRails1 http://bit.ly/CappuccinoRails2 They show how to create a Cappuccino interface for the Rails Weblog …

---

## [How to use input control in loop](https://www.ruby-forum.com/t/how-to-use-input-control-in-loop/168287)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 1\
**Last updated:** [May 19, 2009, 9:34am UTC](https://www.ruby-forum.com/t/how-to-use-input-control-in-loop/168287 "2009-05-19T09:34:34Z")

</div>

Hi everyone, i am using a in a for loop. but not getting the data as loop. also in controller how i will fatch the data of that loop. Here is my code. \<% for pros in @pros%\> \<%=pros.name%\> 0\</ …

---

## [Rails + AJAX + mootools](https://www.ruby-forum.com/t/rails-ajax-mootools/168270)

<div class="topic-metadata">

**Author:** [@fRAnKEnSTEin](https://www.ruby-forum.com/u/fRAnKEnSTEin)\
**Replies:** 1\
**Last updated:** [May 19, 2009, 9:29am UTC](https://www.ruby-forum.com/t/rails-ajax-mootools/168270 "2009-05-19T09:29:53Z")

</div>

hi there, I am trying to use rails with mootools, everything just worked great. I have a little problem with the ajax thing, because every time i send a form with ajax an error occur that said something like “authent…

---

## [Exception occurred during reader method compilation.?](https://www.ruby-forum.com/t/exception-occurred-during-reader-method-compilation/168267)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 1\
**Last updated:** [May 19, 2009, 9:28am UTC](https://www.ruby-forum.com/t/exception-occurred-during-reader-method-compilation/168267 "2009-05-19T09:28:07Z")

</div>

I don’t get it. or how to fix it. Exception occurred during reader method compilation. Maybe 11 is not a valid Ruby identifier? compile error /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active\_record/attribut…

---

## [Lock Table : Help me to write an alternative code in RoR](https://www.ruby-forum.com/t/lock-table-help-me-to-write-an-alternative-code-in-ror/168286)

<div class="topic-metadata">

**Author:** [@venkat\_ruby](https://www.ruby-forum.com/u/venkat_ruby)\
**Replies:** 2\
**Last updated:** [May 19, 2009, 9:27am UTC](https://www.ruby-forum.com/t/lock-table-help-me-to-write-an-alternative-code-in-ror/168286 "2009-05-19T09:27:31Z")

</div>

Please help me to write an alternative code for below in ROR… ActiveRecord::Base.connection.execute(“LOCK TABLES table\_name WRITE”) ActiveRecord::Base.connection.execute(‘UNLOCK TABLES’) Regards,

---

## [Act\_as\_state\_machine (or aasm) to manage integer state?](https://www.ruby-forum.com/t/act-as-state-machine-or-aasm-to-manage-integer-state/168068)

<div class="topic-metadata">

**Author:** [@triplem](https://www.ruby-forum.com/u/triplem)\
**Replies:** 1\
**Last updated:** [May 19, 2009, 9:21am UTC](https://www.ruby-forum.com/t/act-as-state-machine-or-aasm-to-manage-integer-state/168068 "2009-05-19T09:21:05Z")

</div>

I have already done my model and i have managed state with an external table where with paperclip i appended an icon for every state. But now i have some trouble with aasm, it seems it can’t use integer value as state…

---

## [\[JOBS\] Online Client Intake Questionnaire](https://www.ruby-forum.com/t/jobs-online-client-intake-questionnaire/168292)

<div class="topic-metadata">

**Author:** [@Debbie\_ProVault](https://www.ruby-forum.com/u/Debbie_ProVault)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 9:17am UTC](https://www.ruby-forum.com/t/jobs-online-client-intake-questionnaire/168292 "2009-05-19T09:17:26Z")

</div>

I need a developer(s) for an online client intake questionnaire for law firms immediately. Developer can telecommute (we are located in Colorado), must be available immediately and full time. I have professional des…

---

## [Getting Rates from FedEx Web Services](https://www.ruby-forum.com/t/getting-rates-from-fedex-web-services/168228)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 3\
**Last updated:** [May 19, 2009, 9:10am UTC](https://www.ruby-forum.com/t/getting-rates-from-fedex-web-services/168228 "2009-05-19T09:10:24Z")

</div>

I am looking to retrieve just rate information from FedEx Web Services API. I have the account information setup. After reviewing previous posts most people recommend the Shipping gem. However, I only need to get the …

---

## [How to dump a variable?](https://www.ruby-forum.com/t/how-to-dump-a-variable/147255)

<div class="topic-metadata">

**Author:** [@trope](https://www.ruby-forum.com/u/trope)\
**Replies:** 8\
**Last updated:** [May 19, 2009, 9:09am UTC](https://www.ruby-forum.com/t/how-to-dump-a-variable/147255 "2009-05-19T09:09:49Z")

</div>

I am new, coming from a PHP background. In PHP , you can use var\_dump(var) and you will be presented with all of a variables info. Is there a way to dump in RoR? For instance, can I dump my :customers object from my …

---

## [Multi select checkbox in a form](https://www.ruby-forum.com/t/multi-select-checkbox-in-a-form/168291)

<div class="topic-metadata">

**Author:** [@doelsengupta](https://www.ruby-forum.com/u/doelsengupta)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 8:55am UTC](https://www.ruby-forum.com/t/multi-select-checkbox-in-a-form/168291 "2009-05-19T08:55:56Z")

</div>

Hi, How can I create a multi-select checkbox in a form with a select all option. I am currently using the check\_box\_tag but I dont know how to use the Select all option in it. Please suggest a way! Thanx in advance…

---

## [How to calculate the rate of one field based on another rate](https://www.ruby-forum.com/t/how-to-calculate-the-rate-of-one-field-based-on-another-rate/168289)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 8:14am UTC](https://www.ruby-forum.com/t/how-to-calculate-the-rate-of-one-field-based-on-another-rate/168289 "2009-05-19T08:14:09Z")

</div>

i m using a rating system by star. performance: terms: team: overall: for overall, i need to calculate it automatically, based on another three rating. here is my code. view:— Pe…

---

## [Populating Select Dropdown for Editing?](https://www.ruby-forum.com/t/populating-select-dropdown-for-editing/168274)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 2:02am UTC](https://www.ruby-forum.com/t/populating-select-dropdown-for-editing/168274 "2009-05-19T02:02:34Z")

</div>

I’m having trouble populating a select tag in a form? I have moved the form to a partial so it can be used in both the create and edit views. My standard text fields are populated with data from the DB just fine in t…

---

## [PayPal IPN](https://www.ruby-forum.com/t/paypal-ipn/168273)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 0\
**Last updated:** [May 19, 2009, 1:44am UTC](https://www.ruby-forum.com/t/paypal-ipn/168273 "2009-05-19T01:44:26Z")

</div>

I have been looking at ActiveMerchant, but this plugin/gem seems like a lot of overhead. Does anyone have code that handles PayPal IPNs? Thanks, Jason

---

## [2.3 Nested Model Forms; build new without updating existing](https://www.ruby-forum.com/t/2-3-nested-model-forms-build-new-without-updating-existing/167768)

<div class="topic-metadata">

**Author:** [@Guitaronin](https://www.ruby-forum.com/u/Guitaronin)\
**Replies:** 2\
**Last updated:** [May 19, 2009, 12:49am UTC](https://www.ruby-forum.com/t/2-3-nested-model-forms-build-new-without-updating-existing/167768 "2009-05-19T00:49:59Z")

</div>

I’m trying to build something similar to a Facebook messaging app, in which the view displays all the messages for a particular thread, with a form box for replying at the bottom of the thread. The problem is that usi…

---

## [RFacebook send emails to friends](https://www.ruby-forum.com/t/rfacebook-send-emails-to-friends/168268)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/rfacebook-send-emails-to-friends/168268 "2009-05-18T23:22:55Z")

</div>

Hello all I have one issue ,in my application I am using Rfacebook, my facebook application , I have loaded all friends Now I want to send or get emails of friends , How can I get those emails of friends using Rfaceb…

---

## [Rails / windows / apache question](https://www.ruby-forum.com/t/rails-windows-apache-question/167703)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/rails-windows-apache-question/167703 "2009-05-18T23:22:41Z")

</div>

In my app I say go to /companies/index for a modal box. Locally it runs fine because it sees /public as the root. When I put it on the server I have an alias mapped for the root. when I goto the url above it goes to …

---

## [Move rails app from 2.0.2 to 2.3.2](https://www.ruby-forum.com/t/move-rails-app-from-2-0-2-to-2-3-2/168215)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 2\
**Last updated:** [May 18, 2009, 10:41pm UTC](https://www.ruby-forum.com/t/move-rails-app-from-2-0-2-to-2-3-2/168215 "2009-05-18T22:41:31Z")

</div>

How do I make my application work in 2.3.2 when it was created in 2.0.2? Thanks Mitch

---

## [Yet Another Time Zone Question](https://www.ruby-forum.com/t/yet-another-time-zone-question/167757)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 3\
**Last updated:** [May 18, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/yet-another-time-zone-question/167757 "2009-05-18T21:12:20Z")

</div>

Seems like there should be an easy solution to this problem, yet I can’t seem to find one. Here is the issue: How do you assign a time zone to a Time object that results from a parsed date/time string? Example: I …

---

## [First day on rails...and already hamstrung!](https://www.ruby-forum.com/t/first-day-on-rails-and-already-hamstrung/168259)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 2\
**Last updated:** [May 18, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/first-day-on-rails-and-already-hamstrung/168259 "2009-05-18T21:06:34Z")

</div>

I’m reading along with “Ajax on Rails” (2007) and the first exercise goes like this: rails example cd example script/generate controller chap2 myaction script/server Then editing example/app/views/myaction.html.erb…

---

## [Canvas scroll](https://www.ruby-forum.com/t/canvas-scroll/168257)

<div class="topic-metadata">

**Author:** [@mpathare](https://www.ruby-forum.com/u/mpathare)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 8:14pm UTC](https://www.ruby-forum.com/t/canvas-scroll/168257 "2009-05-18T20:14:21Z")

</div>

I am writing a solitaire app. I use a canvas to draw everything on the screen. Sometimes a pile of cards will get big and extend below the bottom of the screen. I would like to make the canvas scrollable so the user c…

---

## [Validating against other records for bulk creates/updates?](https://www.ruby-forum.com/t/validating-against-other-records-for-bulk-creates-updates/168202)

<div class="topic-metadata">

**Author:** [@jacib](https://www.ruby-forum.com/u/jacib)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/validating-against-other-records-for-bulk-creates-updates/168202 "2009-05-18T18:18:01Z")

</div>

I’ve got a OpeningHour model in my application, which keeps tracks of a store’s opening times (like Monday 9am-12pm, and then 1pm-5pm). I want to make sure that the opening hours don’t overlap, and if I do something …

---

## [ActiveRecord SerializationTypeMismatch MySQL SQLite](https://www.ruby-forum.com/t/activerecord-serializationtypemismatch-mysql-sqlite/168248)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/activerecord-serializationtypemismatch-mysql-sqlite/168248 "2009-05-18T18:15:37Z")

</div>

I was having this error in Development but not in Test: ActiveRecord::SerializationTypeMismatch: cambiable\_attributes was supposed to be a Hash, but was a String Which was the problem? I was using MySQL in Developmen…

---

## [Ruby script/plugin install not working](https://www.ruby-forum.com/t/ruby-script-plugin-install-not-working/168168)

<div class="topic-metadata">

**Author:** [@tispratik](https://www.ruby-forum.com/u/tispratik)\
**Replies:** 5\
**Last updated:** [May 18, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/ruby-script-plugin-install-not-working/168168 "2009-05-18T16:58:47Z")

</div>

Windows OS. Am running the following command to install authlogic. But the command is not working. Running the script creates an empty folder named authlogic inside /vendor/plugins directory but no files are copied i…

---

## [Clean solution for a questionnaire](https://www.ruby-forum.com/t/clean-solution-for-a-questionnaire/168237)

<div class="topic-metadata">

**Author:** [@brianj](https://www.ruby-forum.com/u/brianj)\
**Replies:** 0\
**Last updated:** [May 18, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/clean-solution-for-a-questionnaire/168237 "2009-05-18T16:51:45Z")

</div>

The requirements: A user should be able to create, update and edit a questionnaire for others to complete. The view should consist of a text\_field for each of the categories and under each category there should be 10…

---

## [Alas! Poor old MySql version 4.0.2 and the IN Clause](https://www.ruby-forum.com/t/alas-poor-old-mysql-version-4-0-2-and-the-in-clause/168196)

<div class="topic-metadata">

**Author:** [@adeel\_bm](https://www.ruby-forum.com/u/adeel_bm)\
**Replies:** 1\
**Last updated:** [May 18, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/alas-poor-old-mysql-version-4-0-2-and-the-in-clause/168196 "2009-05-18T16:49:18Z")

</div>

While using IN clause in find\_by\_sql’s parametrized query, I got the error message from MySQl. The idea is to put a join on number of tables describe as: contacts -\> id, status\_id profiles -\> id, contact\_id, fi…

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

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