# Rails

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

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

---

## [Version\_fu in Rails 2.1.1](https://www.ruby-forum.com/t/version-fu-in-rails-2-1-1/151466)

<div class="topic-metadata">

**Author:** [@tansaku](https://www.ruby-forum.com/u/tansaku)\
**Replies:** 3\
**Last updated:** [October 24, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/version-fu-in-rails-2-1-1/151466 "2008-10-24T18:33:13Z")

</div>

Hi, So I read about how acts\_as\_versioned doesn’t play so well with the latest Rails version. I got hold of an alternative, version\_fu, but I am still having trouble. GitHub - jmckible/version\_fu: Rails 3 update of a…

---

## [AJAXy Timeline (e.g. election.twitter.com)](https://www.ruby-forum.com/t/ajaxy-timeline-e-g-election-twitter-com/151707)

<div class="topic-metadata">

**Author:** [@Donnie](https://www.ruby-forum.com/u/Donnie)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 6:20pm UTC](https://www.ruby-forum.com/t/ajaxy-timeline-e-g-election-twitter-com/151707 "2008-10-24T18:20:51Z")

</div>

I’m using the Prototype helper “periodically\_call\_remote” to add a new item to a list similar to how http://election.twitter.com works. My question is, how do I make it so that periodically\_call\_remote will only add i…

---

## [Encrypt password on the browser](https://www.ruby-forum.com/t/encrypt-password-on-the-browser/151588)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 7\
**Last updated:** [October 24, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/encrypt-password-on-the-browser/151588 "2008-10-24T18:18:30Z")

</div>

Hi I was looking through my logs and I found that the password field in rails does not get encrypted. It is sent not encrypted from the browser. Is there anyway that I can encrypt the password field so if some one in…

---

## [Sort an Array of ActiveRecords objects by created\_at](https://www.ruby-forum.com/t/sort-an-array-of-activerecords-objects-by-created-at/151701)

<div class="topic-metadata">

**Author:** [@Bensoussan\_M](https://www.ruby-forum.com/u/Bensoussan_M)\
**Replies:** 10\
**Last updated:** [October 24, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/sort-an-array-of-activerecords-objects-by-created-at/151701 "2008-10-24T18:02:38Z")

</div>

Hi, I have an array of activerecords objects. I’d like to sort it by created\_at column (they all have one). Do you see a smart way to do it ?? Thanks, Mike

---

## [Syncing offline data to Rails app](https://www.ruby-forum.com/t/syncing-offline-data-to-rails-app/151657)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/syncing-offline-data-to-rails-app/151657 "2008-10-24T17:24:26Z")

</div>

I’m wondering how to go about setting up an app to allow data collection offline that is later sync’d to the master db… I picture the data collection being done on a PDA or something similar and then docked and upload…

---

## [InstantRails and SQLite](https://www.ruby-forum.com/t/instantrails-and-sqlite/151139)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/instantrails-and-sqlite/151139 "2008-10-24T17:17:58Z")

</div>

Hy, I’m using InstantRails for my RoR developments and it is really great. However I have a little problem since a few days. Here is the situation, I’m using InstantRails 2.0 with PHP 5.2.6 (I upgraded following the …

---

## [Installing msql 5.0 into instant rials - InnoDB error](https://www.ruby-forum.com/t/installing-msql-5-0-into-instant-rials-innodb-error/151691)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/installing-msql-5-0-into-instant-rials-innodb-error/151691 "2008-10-24T17:02:06Z")

</div>

Hi Im using a book based on 1.2\* ruby and rather than using instal rails to install all req. software it asks the user to do everthing individually. Well i already had instant rails working fine so thought id stick to…

---

## [Modifying a class method's state](https://www.ruby-forum.com/t/modifying-a-class-methods-state/151644)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/modifying-a-class-methods-state/151644 "2008-10-24T17:02:06Z")

</div>

Hi guys. I’m experiencing some strange behaviour in my Rails app. I have a constant, and two class methods: #----------# COORDINATES\_NOT\_NULL\_SQL = ‘latitude IS NOT NULL and longitude IS NOT NULL’ def self.sql\_for\_n…

---

## [Conversion of &apos; to ' in text in rails](https://www.ruby-forum.com/t/conversion-of-apos-to-in-text-in-rails/151699)

<div class="topic-metadata">

**Author:** [@kiran1234](https://www.ruby-forum.com/u/kiran1234)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/conversion-of-apos-to-in-text-in-rails/151699 "2008-10-24T16:32:11Z")

</div>

I have noticed ', ';, doesnt get converted in normal test display in a view file. how to get them converted back and get a valid html text displayed?

---

## [Using SMS gateway to receive Text messages for a RoR app](https://www.ruby-forum.com/t/using-sms-gateway-to-receive-text-messages-for-a-ror-app/151604)

<div class="topic-metadata">

**Author:** [@Yung-Rick](https://www.ruby-forum.com/u/Yung-Rick)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/using-sms-gateway-to-receive-text-messages-for-a-ror-app/151604 "2008-10-24T16:28:05Z")

</div>

I am supposed to develop an application for a client that retrieves text messages from three different GSM Network providers. I am a newbie and looking for any knowledge concerning this area. Information concerning se…

---

## [Soap4R](https://www.ruby-forum.com/t/soap4r/151594)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/soap4r/151594 "2008-10-24T16:23:58Z")

</div>

The following two line code creates the issue: factory = SOAP::WSDLDriverFactory.new(“http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl”) soap = factory.create\_rpc\_driver The error message is: part: r…

---

## [PostgreSQL datatypes equivalent when scaffolding](https://www.ruby-forum.com/t/postgresql-datatypes-equivalent-when-scaffolding/151637)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/postgresql-datatypes-equivalent-when-scaffolding/151637 "2008-10-24T15:08:17Z")

</div>

Hi, I’m trying to make a scaffold for my test application using PostgreSQL 8.3 database. and I remembered on an article for MySQL it uses :string for VARCHAR, :integer for INT, and :text for TINYTEXT, TEXT, MEDIUMTEXT…

---

## [Tiny mce - different options for different actions in same controller?](https://www.ruby-forum.com/t/tiny-mce-different-options-for-different-actions-in-same-controller/151680)

<div class="topic-metadata">

**Author:** [@hading](https://www.ruby-forum.com/u/hading)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 2:43pm UTC](https://www.ruby-forum.com/t/tiny-mce-different-options-for-different-actions-in-same-controller/151680 "2008-10-24T14:43:03Z")

</div>

Hi, I’m using the current TinyMCE plugin for rails (V. 3.2.0.2-1). I want to know if there is a way to use different options for the editor in a single controller depending on the action invoked. I’ve tried re- invok…

---

## [HTML from view into controller](https://www.ruby-forum.com/t/html-from-view-into-controller/151689)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/html-from-view-into-controller/151689 "2008-10-24T13:03:45Z")

</div>

How can i get the html code create by a view into the controller I need to save the html created into a view into a file something like File.open( ‘index.html’, ‘w’ ){|file| file.write (The\_view)}

---

## [Uberkit checkbox](https://www.ruby-forum.com/t/uberkit-checkbox/151690)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/uberkit-checkbox/151690 "2008-10-24T13:01:24Z")

</div>

Hello, I can’t figure out how to create a checkbox with uberkit :confused: Does anyone have an idea? There is not much to get from the documentation. I am trying to create a simple checkbox like this: f.check\_box(“…

---

## [Interacting select\_tags using onchange](https://www.ruby-forum.com/t/interacting-select-tags-using-onchange/148886)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 8\
**Last updated:** [October 24, 2008, 11:56am UTC](https://www.ruby-forum.com/t/interacting-select-tags-using-onchange/148886 "2008-10-24T11:56:50Z")

</div>

my view: \<%= render :partial =\> "event\_category\_select" %\> \<%= render :partial =\> "event\_category\_text\_field" %\> \<%= render :partial =\> "event\_description\_select…

---

## [Ruby on Rails project in Bay Area](https://www.ruby-forum.com/t/ruby-on-rails-project-in-bay-area/151681)

<div class="topic-metadata">

**Author:** [@Niranjan](https://www.ruby-forum.com/u/Niranjan)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 11:37am UTC](https://www.ruby-forum.com/t/ruby-on-rails-project-in-bay-area/151681 "2008-10-24T11:37:29Z")

</div>

We are looking for a consultant for a long term project. Please respond ASAP, if interested. 2+ years experience creating web applications using Ruby on Rails 5+ years software development experience 2+ years of RDBM…

---

## [Has\_many relationship able to be placed on one to others?](https://www.ruby-forum.com/t/has-many-relationship-able-to-be-placed-on-one-to-others/151592)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 11:03am UTC](https://www.ruby-forum.com/t/has-many-relationship-able-to-be-placed-on-one-to-others/151592 "2008-10-24T11:03:09Z")

</div>

It’s time for me to go to bed… but perhaps I’ll wake up to a bit of good advice. I have 3 tables: registrations cars motorcycles I am trying to define the registration object in this way: has\_many :cars has\_many …

---

## [MissingSourceFile/no such file to load -- scrubyt](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-scrubyt/151678)

<div class="topic-metadata">

**Author:** [@vinayhk](https://www.ruby-forum.com/u/vinayhk)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 10:54am UTC](https://www.ruby-forum.com/t/missingsourcefile-no-such-file-to-load-scrubyt/151678 "2008-10-24T10:54:12Z")

</div>

Hi, I am rails beginner. i have installed srubyt successfully. But the problem is when i run the code it gives an error. MissingSourceFile in TestController#index no such file to load – scrubyt RAILS\_ROOT: ./script/…

---

## [WEBrick server problem](https://www.ruby-forum.com/t/webrick-server-problem/151672)

<div class="topic-metadata">

**Author:** [@dureza](https://www.ruby-forum.com/u/dureza)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 10:30am UTC](https://www.ruby-forum.com/t/webrick-server-problem/151672 "2008-10-24T10:30:07Z")

</div>

hi there good day!! I am having problem with my WEBrick server i am using RoR for the past 2 yrs. and it is the 1st time I encountered this problem… When I start my WeBrick server it just keep on starting progress it …

---

## [How does rails decide which template file (rjs vs html) to use?](https://www.ruby-forum.com/t/how-does-rails-decide-which-template-file-rjs-vs-html-to-use/151669)

<div class="topic-metadata">

**Author:** [@GreenValley](https://www.ruby-forum.com/u/GreenValley)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 10:00am UTC](https://www.ruby-forum.com/t/how-does-rails-decide-which-template-file-rjs-vs-html-to-use/151669 "2008-10-24T10:00:10Z")

</div>

Hello, My application sometimes renders js.rjs template for an action and other times it tries to render html.erb template. Since, I do not have an html.erb template for the action, I get an error. I am trying to f…

---

## [Equality](https://www.ruby-forum.com/t/equality/151667)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 8:07am UTC](https://www.ruby-forum.com/t/equality/151667 "2008-10-24T08:07:18Z")

</div>

is there a better way to test for equality than this user1.interests.collect(&id).sort == user2.interests.collect(&id).sort TIA GP

---

## [Cap: deploy with "svn info" that doesn't know --username?](https://www.ruby-forum.com/t/cap-deploy-with-svn-info-that-doesnt-know-username/151475)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 6:49am UTC](https://www.ruby-forum.com/t/cap-deploy-with-svn-info-that-doesnt-know-username/151475 "2008-10-24T06:49:16Z")

</div>

Hi all Sadly my hoster uses an old version of Subversion whose “info” command doesn’t know the --username argument: removed\_email\_address@domain.invalid \[~/railsapps/shop\]# cap deploy:update executing \`deploy:update…

---

## [Easily finding attributes from Ext.grid.GroupingView's xml calls](https://www.ruby-forum.com/t/easily-finding-attributes-from-ext-grid-groupingviews-xml-calls/151666)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 0\
**Last updated:** [October 24, 2008, 6:23am UTC](https://www.ruby-forum.com/t/easily-finding-attributes-from-ext-grid-groupingviews-xml-calls/151666 "2008-10-24T06:23:33Z")

</div>

I have a ext.GroupingView grid that paginates, filters, and obviously groups. The combination of these options is both awesome and beyond the scope of this discussion. The problem is, the params request when a user w…

---

## [BackgrounDRb on Windows](https://www.ruby-forum.com/t/backgroundrb-on-windows/103089)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [October 24, 2008, 6:04am UTC](https://www.ruby-forum.com/t/backgroundrb-on-windows/103089 "2008-10-24T06:04:38Z")

</div>

Hi, I need to use BackgrounDRb, but the newest version is not supported for Windows. Does anyone know where to get an older version of BackgrounDRb that works with Windows? Does anyone know if the 0.3 version of Bac…

---

## [Newbie - Is BackgrounDRb compatible on windows?](https://www.ruby-forum.com/t/newbie-is-backgroundrb-compatible-on-windows/139577)

<div class="topic-metadata">

**Author:** [@procyon](https://www.ruby-forum.com/u/procyon)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 6:04am UTC](https://www.ruby-forum.com/t/newbie-is-backgroundrb-compatible-on-windows/139577 "2008-10-24T06:04:09Z")

</div>

I searched online but couldn’t find it. Even BackgrounDRb does not specify platform compatibility. Earlier version of BackgrounDRb ( \< 0.2 ) were incompatible with windows. The current version of BackgrounDRb is 1.3…

---

## [Different behavior between production and development environments?](https://www.ruby-forum.com/t/different-behavior-between-production-and-development-environments/151501)

<div class="topic-metadata">

**Author:** [@troy](https://www.ruby-forum.com/u/troy)\
**Replies:** 3\
**Last updated:** [October 24, 2008, 5:21am UTC](https://www.ruby-forum.com/t/different-behavior-between-production-and-development-environments/151501 "2008-10-24T05:21:36Z")

</div>

I have a yaml file that I am trying to import. If I am in the development environment it works perfectly, but when I am in the production environment it fails. The line “records = YAML::load( params\[:importfile\] )” is…

---

## [Script/dbconsole not working](https://www.ruby-forum.com/t/script-dbconsole-not-working/151656)

<div class="topic-metadata">

**Author:** [@Delirium\_tremens](https://www.ruby-forum.com/u/Delirium_tremens)\
**Replies:** 1\
**Last updated:** [October 24, 2008, 4:30am UTC](https://www.ruby-forum.com/t/script-dbconsole-not-working/151656 "2008-10-24T04:30:11Z")

</div>

Take a look… http://d.imagehost.org/0966/dbconsole\_image.png http://d.imagehost.org/0709/console\_image.png How to solve this problem?

---

## [cPanel RoR with mySQL database](https://www.ruby-forum.com/t/cpanel-ror-with-mysql-database/151610)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 2\
**Last updated:** [October 24, 2008, 1:51am UTC](https://www.ruby-forum.com/t/cpanel-ror-with-mysql-database/151610 "2008-10-24T01:51:13Z")

</div>

Hi, I have just started using Ruby on Rails with cPanel. I can set up my application ok but I am having problems with linking the application with a mysql database. I have run ruby sctipt/generate model and created t…

---

## [Misconfiguration on different machine](https://www.ruby-forum.com/t/misconfiguration-on-different-machine/151468)

<div class="topic-metadata">

**Author:** [@JHuizingh](https://www.ruby-forum.com/u/JHuizingh)\
**Replies:** 4\
**Last updated:** [October 24, 2008, 1:29am UTC](https://www.ruby-forum.com/t/misconfiguration-on-different-machine/151468 "2008-10-24T01:29:28Z")

</div>

I created and have a rails app running on one machine. It is using rails 2.1. I ran: rake rails:freeze and rake gems:unpack on my rails app to put all dependencies into the vendor directory. Then I checked it int…

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

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