# Rails

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

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

---

## [Data Type Question](https://www.ruby-forum.com/t/data-type-question/184906)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 7\
**Last updated:** [March 11, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/data-type-question/184906 "2010-03-11T19:14:10Z")

</div>

Hi guys, I have this situation, #migration data class CreateStats \< ActiveRecord::Migration def self.up create\_table :stats do |t| t.integer :points t.integer :assists t.integer :blocks t.integer :turnovers end …

---

## [JOBS: Team Leader and Developers Required](https://www.ruby-forum.com/t/jobs-team-leader-and-developers-required/185005)

<div class="topic-metadata">

**Author:** [@Anetara\_Solutions](https://www.ruby-forum.com/u/Anetara_Solutions)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/jobs-team-leader-and-developers-required/185005 "2010-03-11T19:14:09Z")

</div>

Foxfire India is looking for candidates to add to its Ruby on Rails Development team on a long term basis. An ideal candidate should meet the following criteria: • Proven RoR Agile development experience. • At leas…

---

## [{JOBS} RoR Developers (Senior and Junior) Tottenham Court Road, London](https://www.ruby-forum.com/t/jobs-ror-developers-senior-and-junior-tottenham-court-road-london/185004)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/jobs-ror-developers-senior-and-junior-tottenham-court-road-london/185004 "2010-03-11T19:12:24Z")

</div>

I’m hiring Ruby on Rails Developers for the Tottenham Court Road area, London. Here’s some information: Working for a global online services organisation, the Senior Ruby on Rails Developer will design and develop la…

---

## [Rails & HTMLDoc - Error: Cannot allocate memory - htmldoc](https://www.ruby-forum.com/t/rails-htmldoc-error-cannot-allocate-memory-htmldoc/185007)

<div class="topic-metadata">

**Author:** [@Sergey\_Radchev](https://www.ruby-forum.com/u/Sergey_Radchev)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/rails-htmldoc-error-cannot-allocate-memory-htmldoc/185007 "2010-03-11T19:12:24Z")

</div>

Hi Guys, I’m converting HTML file by HTMLDoc and I’m getting the error below. Does anyone know how to solve this problem? HTML filesize: 7.5 MB Thanks, Error Message: Errno::ENOMEM: Cannot allocate memory - htmldoc …

---

## [Determine if part of a hash key exists](https://www.ruby-forum.com/t/determine-if-part-of-a-hash-key-exists/184979)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/determine-if-part-of-a-hash-key-exists/184979 "2010-03-11T19:12:23Z")

</div>

Hi, I have a hash something like {:schools\_name =\> ''test", :schools\_address =\> "test, etc…} What i need to know is does any of the keys contain the word “schools” in it. So hash.has\_key? :schools\_name will return…

---

## [Bad url in js script](https://www.ruby-forum.com/t/bad-url-in-js-script/184991)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/bad-url-in-js-script/184991 "2010-03-11T17:05:20Z")

</div>

When running in development env, I don’t have this problem, only in production… I have a view in which a js script display a FlowPlayer video player (+ plugins)… the flash files are located in the /public/dist folde…

---

## [Dom:loaded problems](https://www.ruby-forum.com/t/dom-loaded-problems/184997)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/dom-loaded-problems/184997 "2010-03-11T16:58:57Z")

</div>

Hi everybody: I was trying use dom:loaded, but I read in the Api of prototype that this function load all HTML code except the images. My problem is that all my web is an image and I want that it were full loaded befo…

---

## [Making Rails interract with external sites / JS processing](https://www.ruby-forum.com/t/making-rails-interract-with-external-sites-js-processing/184884)

<div class="topic-metadata">

**Author:** [@twp](https://www.ruby-forum.com/u/twp)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/making-rails-interract-with-external-sites-js-processing/184884 "2010-03-11T16:13:13Z")

</div>

For some hobby project of mine I am trying to come up with a way to let a Rails application interact with some external website. I am trying to achieve the following. Lets for example take a banner on a website. Which…

---

## [Suggest a wav or aiff player](https://www.ruby-forum.com/t/suggest-a-wav-or-aiff-player/184897)

<div class="topic-metadata">

**Author:** [@srikanth\_j](https://www.ruby-forum.com/u/srikanth_j)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/suggest-a-wav-or-aiff-player/184897 "2010-03-11T15:52:36Z")

</div>

Hi, Plz suggest me a player to play .wav or .aiff files. so that i can use it in my Ruby on Rails App. Thanks, Srikanth

---

## [Accessing subversion(svn) from rails application](https://www.ruby-forum.com/t/accessing-subversion-svn-from-rails-application/184971)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/accessing-subversion-svn-from-rails-application/184971 "2010-03-11T15:52:28Z")

</div>

Hi All, i need to interact with svn from my rails application to maintain versioning of the files uploaded through the application. i also need to implements the featues available in svn through rails application. i …

---

## [Bypassing automatic STI generation](https://www.ruby-forum.com/t/bypassing-automatic-sti-generation/184988)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/bypassing-automatic-sti-generation/184988 "2010-03-11T15:50:23Z")

</div>

Hi, Let’s say I have the following: Product \< AR Memberships \< Product I know that the product with id 10 has its type column set to “Membership”, but still I’d like to treat it as a regular product. So if I do: Pr…

---

## [Recommend CMS systems on rails](https://www.ruby-forum.com/t/recommend-cms-systems-on-rails/184978)

<div class="topic-metadata">

**Author:** [@karikrishni](https://www.ruby-forum.com/u/karikrishni)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/recommend-cms-systems-on-rails/184978 "2010-03-11T13:11:09Z")

</div>

Hi All, We are service based company, now start working on ruby on rails technologies. We need a CMS system with Blog, Events, News, Web Pages, Video/Podcasts, Emails and possibilities to send sms to multiple people …

---

## [Repeating fields on the same page](https://www.ruby-forum.com/t/repeating-fields-on-the-same-page/184956)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 1:00pm UTC](https://www.ruby-forum.com/t/repeating-fields-on-the-same-page/184956 "2010-03-11T13:00:36Z")

</div>

Does anyone know how I can repeat fields for a model (that would insert into different records) in a form? E.g. \<% form\_for @thing, do |f| %\> \<%= f.submit “DoIt” %\> \<%= f.text\_field :value %\> \<%= f.text\_field :valu…

---

## [Jrails\_auto\_complete problem](https://www.ruby-forum.com/t/jrails-auto-complete-problem/184982)

<div class="topic-metadata">

**Author:** [@Abhinav\_S](https://www.ruby-forum.com/u/Abhinav_S)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/jrails-auto-complete-problem/184982 "2010-03-11T12:41:51Z")

</div>

Hi All, I know this is not the right place to ask, but I am sure many people would have faced this weird jrails\_auto\_complete hovering problem. You can see my code here: http://pastie.org/864655 Everything works fi…

---

## [Using image\_tag as submit button inside form\_for block](https://www.ruby-forum.com/t/using-image-tag-as-submit-button-inside-form-for-block/184980)

<div class="topic-metadata">

**Author:** [@Liberty1776](https://www.ruby-forum.com/u/Liberty1776)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/using-image-tag-as-submit-button-inside-form-for-block/184980 "2010-03-11T12:35:24Z")

</div>

Hi, I’m using standard Rails form builder form\_for and haml. I’m trying to replace standard Rails submit button with an image. In addition Javascript runs on submit event. How can I replace the f.submit button by an …

---

## [Memcache configuration for sessions](https://www.ruby-forum.com/t/memcache-configuration-for-sessions/184981)

<div class="topic-metadata">

**Author:** [@Marcin\_Seroczynski](https://www.ruby-forum.com/u/Marcin_Seroczynski)\
**Replies:** 1\
**Last updated:** [March 11, 2010, 12:15pm UTC](https://www.ruby-forum.com/t/memcache-configuration-for-sessions/184981 "2010-03-11T12:15:29Z")

</div>

Hello, I’ve already got memcached running on desired machine by this command: memcached -d -m 256 -u nobody -p 11211 My configuration is placed in /config/enviroments/production.rb http://pastie.org/863178 But still…

---

## [Three submits, one controller](https://www.ruby-forum.com/t/three-submits-one-controller/184652)

<div class="topic-metadata">

**Author:** [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Replies:** 15\
**Last updated:** [March 11, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/three-submits-one-controller/184652 "2010-03-11T12:13:02Z")

</div>

I have a ‘new’ page with a submit for creating stories. On the ‘show’ page the submit allows a user to enter comments. I now want a ‘edit’ page for the stories with another submit for updates. I have used the ‘create’…

---

## [Career change: becoming RoR dev](https://www.ruby-forum.com/t/career-change-becoming-ror-dev/184853)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 7\
**Last updated:** [March 11, 2010, 12:07pm UTC](https://www.ruby-forum.com/t/career-change-becoming-ror-dev/184853 "2010-03-11T12:07:17Z")

</div>

Hi all, I’m 27 and worked in the sysadmin field for about five years now. I’ve been using Ruby to help me for the past two-three years, and I started with Ruby on Rails, albeit slowly, over a year ago. I’d like to ma…

---

## [Getting the id of selected radio button](https://www.ruby-forum.com/t/getting-the-id-of-selected-radio-button/184913)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 7\
**Last updated:** [March 11, 2010, 11:55am UTC](https://www.ruby-forum.com/t/getting-the-id-of-selected-radio-button/184913 "2010-03-11T11:55:04Z")

</div>

Hai friends, I am really new to ROR I have some radiobuttons…If user select a radiobutton i want to get the id of the selected radio button to be passed as an id to the index page of weather controller on clicking th…

---

## [Cappuccino framework with ruby on rails](https://www.ruby-forum.com/t/cappuccino-framework-with-ruby-on-rails/184976)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 10:43am UTC](https://www.ruby-forum.com/t/cappuccino-framework-with-ruby-on-rails/184976 "2010-03-11T10:43:41Z")

</div>

Hi, Is there any possibility to use the Cappuccino framework with ruby on rails. I am new for Cappuccino. Can you anybody help me how can we use the cappuccino framework with ruby on rails?. Thanks & Regards, Periya…

---

## [Mysql Error RELEASE SAVEPOINT active\_record\_1](https://www.ruby-forum.com/t/mysql-error-release-savepoint-active-record-1/164333)

<div class="topic-metadata">

**Author:** [@bobm](https://www.ruby-forum.com/u/bobm)\
**Replies:** 4\
**Last updated:** [March 11, 2010, 10:37am UTC](https://www.ruby-forum.com/t/mysql-error-release-savepoint-active-record-1/164333 "2010-03-11T10:37:43Z")

</div>

Hi, I’m trying to upgrade an app from 2.2.2 to 2.3.2 and I get a bunch of Mysql Errors : Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right…

---

## [sortable\_element-onUpdate](https://www.ruby-forum.com/t/sortable-element-onupdate/184967)

<div class="topic-metadata">

**Author:** [@priyadharsini](https://www.ruby-forum.com/u/priyadharsini)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 6:19am UTC](https://www.ruby-forum.com/t/sortable-element-onupdate/184967 "2010-03-11T06:19:35Z")

</div>

Hi All, Please check the below code and let me know whats the problem with the code. \<%= sortable\_element(“parent\_drag”,:tag=\>“div”,:handle=\>“legend”, :dropOnEmpty =\> true, :constraint=\>false,:onUpdate=\>“function(){r…

---

## [Pdf-stamper](https://www.ruby-forum.com/t/pdf-stamper/184861)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 9\
**Last updated:** [March 11, 2010, 4:59am UTC](https://www.ruby-forum.com/t/pdf-stamper/184861 "2010-03-11T04:59:59Z")

</div>

Hi, I have installed both pdf-stamper and rjb on my machine, and when I tired the following code in my controller code pdf = PDF::Stamper.new(“YellowReq.pdf”) I got an error uninitialized constant HomeController::PD…

---

## [Which files are rendered for an URL](https://www.ruby-forum.com/t/which-files-are-rendered-for-an-url/184957)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [March 11, 2010, 1:06am UTC](https://www.ruby-forum.com/t/which-files-are-rendered-for-an-url/184957 "2010-03-11T01:06:36Z")

</div>

Hi, Is there a way I can figure out which files are run for a specific URL in a controller or a script? Given http://www.planet.com/countries files like: countries/ index.html.erb, countries/\_country.html.erb, layout…

---

## [Sorting records within views by date](https://www.ruby-forum.com/t/sorting-records-within-views-by-date/184907)

<div class="topic-metadata">

**Author:** [@Dubocit](https://www.ruby-forum.com/u/Dubocit)\
**Replies:** 3\
**Last updated:** [March 11, 2010, 12:09am UTC](https://www.ruby-forum.com/t/sorting-records-within-views-by-date/184907 "2010-03-11T00:09:15Z")

</div>

I’m a newbie and was curious about displaying scaffold views ascending or descending by date. Here’s what my current view looks like. The first column is the one I’d like to sort by so that the user can see each date …

---

## [Dispatch.fcgi is hanging indefinitely](https://www.ruby-forum.com/t/dispatch-fcgi-is-hanging-indefinitely/184282)

<div class="topic-metadata">

**Author:** [@vfclists](https://www.ruby-forum.com/u/vfclists)\
**Replies:** 1\
**Last updated:** [March 10, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-is-hanging-indefinitely/184282 "2010-03-10T22:50:06Z")

</div>

I am getting a Rails application failed to start properly. When I use webrick it is alright. The problem appears to come from the fcgi part. when I run ./dispatch.fcgi or ruby dispatch.fcgi the it hangs indefintely. …

---

## [Tiny mce and link to remote](https://www.ruby-forum.com/t/tiny-mce-and-link-to-remote/184795)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 2\
**Last updated:** [March 10, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/tiny-mce-and-link-to-remote/184795 "2010-03-10T22:50:06Z")

</div>

I uses tiny mce in my rails application successfully, but when I try to use it in a form\_for on a page that have been loaded by link\_to\_remote tiny mce does not work any more. How to solve this problem ? Any other h…

---

## [Ajax-submit form on "check box onclick ": why this error?](https://www.ruby-forum.com/t/ajax-submit-form-on-check-box-onclick-why-this-error/184867)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 9\
**Last updated:** [March 10, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/ajax-submit-form-on-check-box-onclick-why-this-error/184867 "2010-03-10T22:36:07Z")

</div>

Hi there, I need to have a checkbox which ajax-submits a form. The following code throws an error “index 112009 out of string”. What’s wrong here? ============================================== \<% form\_remote\_tag :u…

---

## [Comparison of time](https://www.ruby-forum.com/t/comparison-of-time/184911)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 7\
**Last updated:** [March 10, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/comparison-of-time/184911 "2010-03-10T21:16:07Z")

</div>

Hello all, I want to compare the below given times. from\_time = ‘08:00 am’ to\_time = ‘04:30 pm’ @logtime = “ci.time \>= ‘#{from\_time}’ and ci.time \<= ‘#{@to\_time}’” but its not working fine…giving me the wrong resul…

---

## [Problem with remote\_form\_for](https://www.ruby-forum.com/t/problem-with-remote-form-for/184949)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 0\
**Last updated:** [March 10, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/problem-with-remote-form-for/184949 "2010-03-10T20:58:20Z")

</div>

Hi, I’ve got a problem with a remote\_form\_for I use it for a nested resource in that way: \<% remote\_form\_for(\[match , tip\]) do |f|%\> The resulting table begins with: I get the following output in the log: Processi…

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

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