# Rails

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

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

---

## [Binary data on SQLite adaptor is not properly escaped?](https://www.ruby-forum.com/t/binary-data-on-sqlite-adaptor-is-not-properly-escaped/133178)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/binary-data-on-sqlite-adaptor-is-not-properly-escaped/133178 "2008-03-28T15:57:06Z")

</div>

I’m problems that seem to indicate that binary data is not properly escaped by the SQLite adaptor. I haven’t tested any other adaptors. Is this a known issue? My code looks something like this: create\_table :mytab do…

---

## [Live search with one input field for few columns](https://www.ruby-forum.com/t/live-search-with-one-input-field-for-few-columns/133059)

<div class="topic-metadata">

**Author:** [@SSSSS\_awek\_Tuleja](https://www.ruby-forum.com/u/SSSSS_awek_Tuleja)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/live-search-with-one-input-field-for-few-columns/133059 "2008-03-28T15:55:15Z")

</div>

Hello In Rails Cookbook is example of live search. There is one input field and we are looking for word (words) in TITLE column. code: def self.search(terms) find :all, :conditions =\> \[(\[“(LOWER(title) LIKE ?)”\] …

---

## [Session handling in Mozilla](https://www.ruby-forum.com/t/session-handling-in-mozilla/133175)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 3:33pm UTC](https://www.ruby-forum.com/t/session-handling-in-mozilla/133175 "2008-03-28T15:33:04Z")

</div>

Dear Friends, I have created one bookmarking app. Bookmark is created using javascript and its a frame. Its not like a opening a new window like google bookmark. The problem is when i login from one tab and wants to …

---

## [What is a good virtual machine rails hosting service?](https://www.ruby-forum.com/t/what-is-a-good-virtual-machine-rails-hosting-service/133122)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/what-is-a-good-virtual-machine-rails-hosting-service/133122 "2008-03-28T15:28:15Z")

</div>

I want to get a virtual machine hosting service (not shared hosting) that will scale up. Can people please recommend services that they like? I don’t want shared hosting because I want complete control over the envi…

---

## [Capistrano - want to environment variable to be set](https://www.ruby-forum.com/t/capistrano-want-to-environment-variable-to-be-set/133174)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/capistrano-want-to-environment-variable-to-be-set/133174 "2008-03-28T15:19:09Z")

</div>

I’m running centos on my server, and naturally, I’m using capistrano to deploy rails. I have a script, /etc/profile, that runs when I log in via ssh. It sets a bunch of environment variables like PATH, and GEM\_HOME. …

---

## [Ajax call on button](https://www.ruby-forum.com/t/ajax-call-on-button/133165)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 3\
**Last updated:** [March 28, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/ajax-call-on-button/133165 "2008-03-28T14:57:59Z")

</div>

How do i use a button to perform an ajax call. Im not updating/creating a form so submit\_to\_remote wont work as it is expecting form options. button\_to\_function is just for javascript from what ive read. I could use …

---

## [Join query](https://www.ruby-forum.com/t/join-query/133152)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/join-query/133152 "2008-03-28T14:52:43Z")

</div>

hello i am new in ruby on rails…i will want to know how we write join query in ruby on rails,and how we define relationship between two tables in ruby on rails…(like belongs\_to,has\_many etc) can anyone provide simple …

---

## [Folding Text in div Box](https://www.ruby-forum.com/t/folding-text-in-div-box/133149)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/folding-text-in-div-box/133149 "2008-03-28T14:39:22Z")

</div>

I’m ajaxing some user-entered text back to a div box, with a border and background, so it’s clear where the box is. The long lines in the text go out beyond the right borders of the box, and even off the screen. I c…

---

## [Stupid question on application layout](https://www.ruby-forum.com/t/stupid-question-on-application-layout/133130)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/stupid-question-on-application-layout/133130 "2008-03-28T13:59:48Z")

</div>

I know this is a stupid question, but I can’t seem to find the answer. In my app/views/layouts, I had tasks.html.erb (and others) That worked great. I added application.html.erb, but NOTHING is using it. What I wan…

---

## [Layouts for emails?](https://www.ruby-forum.com/t/layouts-for-emails/133166)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/layouts-for-emails/133166 "2008-03-28T13:22:13Z")

</div>

Can i use some kind of layouts for html-mails i want to sen? They all have to fit in a general layout, so i’m wondering how to do that.

---

## [Ajax and the partials](https://www.ruby-forum.com/t/ajax-and-the-partials/133069)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/ajax-and-the-partials/133069 "2008-03-28T13:08:08Z")

</div>

I have tried some ajax scripts, but I noticed they don’t work on partials (\_form and list in views) I needed to integrate some ajax functions from rails to my applications, am I doing something wrong ? It works when …

---

## [Extarnal database](https://www.ruby-forum.com/t/extarnal-database/133161)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/extarnal-database/133161 "2008-03-28T13:06:41Z")

</div>

Hi, On my rails-server (192.168.1.1) there is no mysql installed. Mysql is installed on different server(192.168.1.2) Question: Wich setup intructions must i use in the database.yml. Grtz…remco

---

## [Related\_collection\_select / related\_select\_form problem](https://www.ruby-forum.com/t/related-collection-select-related-select-form-problem/133162)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 12:41pm UTC](https://www.ruby-forum.com/t/related-collection-select-related-select-form-problem/133162 "2008-03-28T12:41:49Z")

</div>

Hi I have been using the helper related\_select\_form, declared prototype right and everything, but I keep getting an error which says wrong number of arguments (1 for 0) my related\_collection\_select is as follow (based…

---

## [Event.toggle does not work in IE](https://www.ruby-forum.com/t/event-toggle-does-not-work-in-ie/133155)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:35am UTC](https://www.ruby-forum.com/t/event-toggle-does-not-work-in-ie/133155 "2008-03-28T11:35:55Z")

</div>

Hi all… I canâ€™t get IE6 to work nicely with Event.toggle here The code Iâ€™m using is: \<%= link\_to\_remote( "Select", :update =\> "ci\_class\_div", :url =\>{ :con…

---

## [Problems with URL encoding](https://www.ruby-forum.com/t/problems-with-url-encoding/133156)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:21am UTC](https://www.ruby-forum.com/t/problems-with-url-encoding/133156 "2008-03-28T11:21:45Z")

</div>

Hi I have a problem when sending parameters from link\_to\_remote. My link code: \<%= link\_to\_remote “Remove”, :url =\> object\_relation\_path( :id =\> 0, :object\_relation =\> { :parent\_id =\> @product.id, :parent\_type =\> …

---

## [Rss feeds not working help](https://www.ruby-forum.com/t/rss-feeds-not-working-help/133153)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 11:20am UTC](https://www.ruby-forum.com/t/rss-feeds-not-working-help/133153 "2008-03-28T11:20:14Z")

</div>

I had created two rss feeds and they were working perfectly the other day but for some reason they now show in an xml tree format when displayed. controller: def rss @products = Product.find(:all, :order=\> “item\_nam…

---

## [Payment Gateway for International Payments](https://www.ruby-forum.com/t/payment-gateway-for-international-payments/133139)

<div class="topic-metadata">

**Author:** [@Petep](https://www.ruby-forum.com/u/Petep)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 11:00am UTC](https://www.ruby-forum.com/t/payment-gateway-for-international-payments/133139 "2008-03-28T11:00:42Z")

</div>

Hello, We have global customers, and we’re planning on using Worldpay since they could upgrade us to Bibit quite easily. However, Active Merchant doesn’t have a rails plugin yet. Therefore, we’re going to use PayPal …

---

## [Making Rails application dependent](https://www.ruby-forum.com/t/making-rails-application-dependent/133128)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 4\
**Last updated:** [March 28, 2008, 11:00am UTC](https://www.ruby-forum.com/t/making-rails-application-dependent/133128 "2008-03-28T11:00:10Z")

</div>

hi all I want to make the rails version application dependent…Say suppose i have a website which runs on rails 2.0 version and then i want to configure mephisto which uses rails 1.2.5 version in the same application …

---

## [\[\]Help with form\_for](https://www.ruby-forum.com/t/help-with-form-for/133109)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 28, 2008, 10:27am UTC](https://www.ruby-forum.com/t/help-with-form-for/133109 "2008-03-28T10:27:52Z")

</div>

I have this rhtml, that generate a table with the object @evaluations filled it before. The problem is that i need to get those text\_field with the data loaded, but instead it’ filled all text\_field whit the last @eva…

---

## [Distributed storage?](https://www.ruby-forum.com/t/distributed-storage/129146)

<div class="topic-metadata">

**Author:** [@crayz](https://www.ruby-forum.com/u/crayz)\
**Replies:** 5\
**Last updated:** [March 28, 2008, 10:06am UTC](https://www.ruby-forum.com/t/distributed-storage/129146 "2008-03-28T10:06:25Z")

</div>

I currently have a number of intranet Rails apps running on a ‘cluster’ of Xen VEs spread out on different hardware, separated into servers by role(app/web). I do logging centrally via syslog-ng, and don’t have a prob…

---

## [TECHNICAL LEAD- urgent!](https://www.ruby-forum.com/t/technical-lead-urgent/133147)

<div class="topic-metadata">

**Author:** [@Jehner\_SSDela\_C](https://www.ruby-forum.com/u/Jehner_SSDela_C)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 9:32am UTC](https://www.ruby-forum.com/t/technical-lead-urgent/133147 "2008-03-28T09:32:45Z")

</div>

Hi All, We’re looking for an ROR Lead or Java Lead who’s willing to be trained on ROR: Technical Lead Responsibilities: Â· End-to-end implementation of the software development life cycle activities - fro…

---

## [Create the workflow](https://www.ruby-forum.com/t/create-the-workflow/133136)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 7:05am UTC](https://www.ruby-forum.com/t/create-the-workflow/133136 "2008-03-28T07:05:50Z")

</div>

Hi, I want to create one application with work flow. Is there any plug in for work flow. If there please send me that and sample application also. How can I create the application for the work flow. Is there any spec…

---

## [Select in a loop](https://www.ruby-forum.com/t/select-in-a-loop/133133)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 6:29am UTC](https://www.ruby-forum.com/t/select-in-a-loop/133133 "2008-03-28T06:29:41Z")

</div>

Hi My view code is \<% for hardware\_ci in @hardware\_cis %\> \<%= select( "sd\_ci", "service\_desk\_ci\_association\_type\_id", ServiceDeskCiAssociationType.find(:all).collect {|p| \[ p.description, p.id \] }) %\> \<%= hidden\_fiel…

---

## [Youtube api for ruby](https://www.ruby-forum.com/t/youtube-api-for-ruby/97706)

<div class="topic-metadata">

**Author:** [@mikki](https://www.ruby-forum.com/u/mikki)\
**Replies:** 1\
**Last updated:** [March 28, 2008, 5:45am UTC](https://www.ruby-forum.com/t/youtube-api-for-ruby/97706 "2008-03-28T05:45:17Z")

</div>

where can I find some information on YouTube API for Ruby on Rails ??

---

## [Selections, updates and counter caches](https://www.ruby-forum.com/t/selections-updates-and-counter-caches/133126)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [March 28, 2008, 4:00am UTC](https://www.ruby-forum.com/t/selections-updates-and-counter-caches/133126 "2008-03-28T04:00:35Z")

</div>

Hi All, Just wondered how you are meant to get around this little issue: I have a Company model, which has\_many :people and I keep track of the number with a counter cache: class Company \< ActiveRecord::Base has\_man…

---

## [Observe field sending 2 fields back to controller](https://www.ruby-forum.com/t/observe-field-sending-2-fields-back-to-controller/133038)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [March 28, 2008, 1:20am UTC](https://www.ruby-forum.com/t/observe-field-sending-2-fields-back-to-controller/133038 "2008-03-28T01:20:19Z")

</div>

Trying to send the text\_field values from 2 fields back and I keep getting syntax errors no matter how I try to configure this… \<%= observe\_field(:right\_controller, :update =\> “show\_controller”, :with =\> \[:right\_cont…

---

## [Active record - Help Updating single attributes](https://www.ruby-forum.com/t/active-record-help-updating-single-attributes/133061)

<div class="topic-metadata">

**Author:** [@sideshow](https://www.ruby-forum.com/u/sideshow)\
**Replies:** 5\
**Last updated:** [March 28, 2008, 12:17am UTC](https://www.ruby-forum.com/t/active-record-help-updating-single-attributes/133061 "2008-03-28T00:17:25Z")

</div>

Hi , Can someone guide me as to how to update a single attribute/column rather than the whole row in rails 2.0 My table has about 40 columns in it and i have a page that only wants to pull and update about 5 columns …

---

## [Add onchange or onclick to field in select](https://www.ruby-forum.com/t/add-onchange-or-onclick-to-field-in-select/132977)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/add-onchange-or-onclick-to-field-in-select/132977 "2008-03-27T23:20:58Z")

</div>

Hello I’d like to make a list of items and then when an item is clicked, I display the “edit” view, something like @items = Item.find(:all) \<%= select ‘my\_items’, select\_options(@items), :onchange =\> remote\_function…

---

## [Has\_many, through, foreign key problems](https://www.ruby-forum.com/t/has-many-through-foreign-key-problems/133075)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 11\
**Last updated:** [March 27, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/has-many-through-foreign-key-problems/133075 "2008-03-27T22:17:21Z")

</div>

Sorry for the long post… I’m having difficulties with accessing my data using has\_many through associations. For simplicity, I’ll reference the Agile Web D. example on this topic. Article has\_many :readings has\_ma…

---

## [Writing an "upto" block in Rails](https://www.ruby-forum.com/t/writing-an-upto-block-in-rails/133106)

<div class="topic-metadata">

**Author:** [@sara231](https://www.ruby-forum.com/u/sara231)\
**Replies:** 4\
**Last updated:** [March 27, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/writing-an-upto-block-in-rails/133106 "2008-03-27T21:24:53Z")

</div>

I am trying to loop through records in a db and pull out a particular field. I have no problem with the code when I run it in the console; however when I try to transfer the code to my Rails environment it fails. Th…

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

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