# Rails

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

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

---

## [Active record logical cols](https://www.ruby-forum.com/t/active-record-logical-cols/163190)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 18, 2009, 7:07am UTC](https://www.ruby-forum.com/t/active-record-logical-cols/163190 "2009-03-18T07:07:42Z")

</div>

HI, I am new to Rails started project couple of weeks back. Here is my requirement please let me know the solution. When I do find on my active record class it returns all the columns in my database table. I want to …

---

## [Rails 2.3, restful\_authentication, and passenger](https://www.ruby-forum.com/t/rails-2-3-restful-authentication-and-passenger/163114)

<div class="topic-metadata">

**Author:** [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Replies:** 9\
**Last updated:** [March 18, 2009, 1:47am UTC](https://www.ruby-forum.com/t/rails-2-3-restful-authentication-and-passenger/163114 "2009-03-18T01:47:05Z")

</div>

I can no longer login using the latest passenger + Rails 2.3 with the restful\_authentication plugin. If I run a quick “script/server” everything is fine. Anyone else having trouble with this?

---

## [Language parameters gem calendar\_date\_select](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 4\
**Last updated:** [March 18, 2009, 1:35am UTC](https://www.ruby-forum.com/t/language-parameters-gem-calendar-date-select/162926 "2009-03-18T01:35:59Z")

</div>

Hi Ruby Community! I use the gem CalendarDateSelect with RoR 2.2.2. Everything works fine when I use the default date-format. In environment.rb I made the gem-dependency-entry: config.gem "calendar\_date\_select" Bu…

---

## [Looking for Ruby on Rails applications for a demo](https://www.ruby-forum.com/t/looking-for-ruby-on-rails-applications-for-a-demo/162994)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 3\
**Last updated:** [March 18, 2009, 12:15am UTC](https://www.ruby-forum.com/t/looking-for-ruby-on-rails-applications-for-a-demo/162994 "2009-03-18T00:15:31Z")

</div>

Hi all, I am looking for most popular ruby on rails applications that are currently implemented, and also who is using RoR to build new applications Thanks

---

## [Segment error loading rails](https://www.ruby-forum.com/t/segment-error-loading-rails/162701)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 8\
**Last updated:** [March 17, 2009, 11:34pm UTC](https://www.ruby-forum.com/t/segment-error-loading-rails/162701 "2009-03-17T23:34:20Z")

</div>

I have downloaded ruby 1.9.1 binaries to c:\\ruby191 (I have ruby 1.8.6 under c:\\ruby). I then downloaded gems 1.3.1 and ran “gem install rails –include-dependencies” from c:\\ruby191\\bin and it ran and came up with a s…

---

## [Session problem with subdomains](https://www.ruby-forum.com/t/session-problem-with-subdomains/163102)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/session-problem-with-subdomains/163102 "2009-03-17T23:23:53Z")

</div>

Hi, i’ve a problem with keeping the session between different subdomains. The subdomain itself works as expected, it’s just the session which isn’t keep. The url are like: http://username.users.localhost where userna…

---

## [How to truncate a table from a rake file](https://www.ruby-forum.com/t/how-to-truncate-a-table-from-a-rake-file/163160)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 3\
**Last updated:** [March 17, 2009, 11:09pm UTC](https://www.ruby-forum.com/t/how-to-truncate-a-table-from-a-rake-file/163160 "2009-03-17T23:09:10Z")

</div>

I am new to rails and want to figure out the syntax for truncating a table using a rake file. Any ideas? thanks in advance!

---

## [Upload image to MySQL](https://www.ruby-forum.com/t/upload-image-to-mysql/163162)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 10:32pm UTC](https://www.ruby-forum.com/t/upload-image-to-mysql/163162 "2009-03-17T22:32:09Z")

</div>

Need simple sample, how to upload image in to MySQL database (in BLOB) Rails 2.2.2

---

## [Validates\_presence\_of](https://www.ruby-forum.com/t/validates-presence-of/163163)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/validates-presence-of/163163 "2009-03-17T22:02:51Z")

</div>

Hi all I am wondering of how to use validates\_presence\_of in case I want to check either one of the field is present for example validates\_presence\_of :phone\_number, mobile\_number I want to check if either one prese…

---

## [\[ANN/ADV\] Ruby training in Atlanta: bring a friend for 1/2 price!](https://www.ruby-forum.com/t/ann-adv-ruby-training-in-atlanta-bring-a-friend-for-1-2-price/196918)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 8:28pm UTC](https://www.ruby-forum.com/t/ann-adv-ruby-training-in-atlanta-bring-a-friend-for-1-2-price/196918 "2009-03-17T20:28:38Z")

</div>

Hi all – You can now sign up for Ruby training in Atlanta, April 1-3, and add a friend for half price! Just go to: http://entp.eventwax.com/ruby-training-atlanta/register and use the promo code “friend”. Purchase ON…

---

## [Gem install paypal library on linux server problem](https://www.ruby-forum.com/t/gem-install-paypal-library-on-linux-server-problem/163147)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/gem-install-paypal-library-on-linux-server-problem/163147 "2009-03-17T20:17:52Z")

</div>

Hi, I’m struggling to install the paypal library via “gem install -source dist.leetsoft.com” on linux server. I paste the error-msg including my used parameters below this post. I searched a lot to find more info ab…

---

## [Just how many rails installations?](https://www.ruby-forum.com/t/just-how-many-rails-installations/163151)

<div class="topic-metadata">

**Author:** [@pguy](https://www.ruby-forum.com/u/pguy)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/just-how-many-rails-installations/163151 "2009-03-17T19:59:19Z")

</div>

Just a totally off the bat question - is there any reasonable guesstimate on the total number of rails installations across the web serving world? I was curious to see how fast rail has grown and its tipping point. An…

---

## [OpenSSL::Cipher decrypt returns 'wrong final block length'](https://www.ruby-forum.com/t/openssl-cipher-decrypt-returns-wrong-final-block-length/161401)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 11\
**Last updated:** [March 17, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/openssl-cipher-decrypt-returns-wrong-final-block-length/161401 "2009-03-17T19:04:54Z")

</div>

I just want to encrypt a string submitted through a form before saving it to the DB. And then decrypt it again when I need to retrieve and use it. Im trying to use the OpenSSL::Cipher library. I have the following mo…

---

## [Onsubmit for remote\_form\_for not working properly](https://www.ruby-forum.com/t/onsubmit-for-remote-form-for-not-working-properly/162465)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 5\
**Last updated:** [March 17, 2009, 5:17pm UTC](https://www.ruby-forum.com/t/onsubmit-for-remote-form-for-not-working-properly/162465 "2009-03-17T17:17:01Z")

</div>

I want to use onsubmit for a form validation using javascript on remote\_form\_for for this i am doing something like this \<% remote\_form\_for :timesheet, @timesheet, :url =\>{:action =\> ‘report\_user’}, :html =\> {:onsubm…

---

## [How to create an association through a Drag & Drop](https://www.ruby-forum.com/t/how-to-create-an-association-through-a-drag-drop/163136)

<div class="topic-metadata">

**Author:** [@Sacredceltic](https://www.ruby-forum.com/u/Sacredceltic)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 5:04pm UTC](https://www.ruby-forum.com/t/how-to-create-an-association-through-a-drag-drop/163136 "2009-03-17T17:04:24Z")

</div>

I have 3 tables A, B and C Table A has\_many Cs Table B has\_many Cs so C contains 2 foreign keys, A\_id and B\_id) I have a screen with 2 lists : A list and B list I would like to be able to create a C record by simply…

---

## [Rails loads wrong files](https://www.ruby-forum.com/t/rails-loads-wrong-files/163093)

<div class="topic-metadata">

**Author:** [@cobra050](https://www.ruby-forum.com/u/cobra050)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/rails-loads-wrong-files/163093 "2009-03-17T16:54:10Z")

</div>

I run in to errors which I dont understand: I never get the newest version of code (xxx.html.erb) displayed, instead my editors backupfile (xxx.html.erb.bak) are loaded/run. I run Rails v2.3.2 (I am new. How to instal…

---

## [How to create a simple loop counter](https://www.ruby-forum.com/t/how-to-create-a-simple-loop-counter/163133)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [March 17, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/how-to-create-a-simple-loop-counter/163133 "2009-03-17T16:42:04Z")

</div>

Hi all, as you may have gathered I am a newbie to rails and programming. I want to count the number of enquiries in the database and produce it as a number in the view preferably in the index page. All I want is the …

---

## [About rss read error---no address associated with hostname](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 3\
**Last updated:** [March 17, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085 "2009-03-17T16:17:57Z")

</div>

I use the rss/2.0 or simple-rss gems to locally access the feed url-----http://sports.espn.go.com /espn/rss/news.The code is like following: #################### require ‘rubygems’ require ‘simple-rss’ require ‘op…

---

## [Urgent please :HTTPS html parsing](https://www.ruby-forum.com/t/urgent-please-https-html-parsing/163115)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 7\
**Last updated:** [March 17, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/urgent-please-https-html-parsing/163115 "2009-03-17T16:04:25Z")

</div>

Hi, Is there any way to extract the html code of a https:// website in hpricot. When i use hpricot to access a https:// website i receive the following error. /usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:3…

---

## [Adding a Form Cancel Button](https://www.ruby-forum.com/t/adding-a-form-cancel-button/160987)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 8\
**Last updated:** [March 17, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/adding-a-form-cancel-button/160987 "2009-03-17T15:53:45Z")

</div>

I’d like my create and edit forms to both have a Cancel button that redirects back to the referring page. To date, the best approach I’ve found is to include an additional submit\_tag with a :name parameter of cancel.…

---

## [Problem during creating an app in facebook](https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [March 17, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127 "2009-03-17T14:57:05Z")

</div>

Hi, I am using rails 2.2. I am trying to develop an application in facebook. I installed gem rfacebook (0.9.8) and also I installed plugin “rfacebook” by using “ruby script/plugin install http://rfacebook.rubyforge.…

---

## [Start server](https://www.ruby-forum.com/t/start-server/163126)

<div class="topic-metadata">

**Author:** [@rjberry](https://www.ruby-forum.com/u/rjberry)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/start-server/163126 "2009-03-17T14:50:34Z")

</div>

Good morning on today my proyect report this bug “6036” =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails 2.1.2 application starting on http://127.0.0.1:3000 =\> Call with -d to detach =\> C…

---

## [Layouts in ActionMailer](https://www.ruby-forum.com/t/layouts-in-actionmailer/163123)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/layouts-in-actionmailer/163123 "2009-03-17T14:09:30Z")

</div>

Hiya I am having loads of trouble adding layouts to my emails in rails 2.2. I created a layout app/views/layouts/notifier.html.erb and this layout was used for all my emails regardless of content type. All was well. B…

---

## [Nested forms in rails 2.3](https://www.ruby-forum.com/t/nested-forms-in-rails-2-3/162991)

<div class="topic-metadata">

**Author:** [@tilt](https://www.ruby-forum.com/u/tilt)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/nested-forms-in-rails-2-3/162991 "2009-03-17T14:07:08Z")

</div>

Hi, Is there a simpler way to implement the view-component of nested forms as it was done in Railscast #75 (Complex Forms Part 3) in Rails 2.3? I’d like to add and remove the owned objects dynamically using AJAX requ…

---

## [DEV Laptop : Ubuntu or Centos , Netbeans or Eclipse?](https://www.ruby-forum.com/t/dev-laptop-ubuntu-or-centos-netbeans-or-eclipse/162989)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 15\
**Last updated:** [March 17, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/dev-laptop-ubuntu-or-centos-netbeans-or-eclipse/162989 "2009-03-17T12:59:17Z")

</div>

After doing some playing around RoR ,now is time to make it real and start making money… The target for now is to make simple website and get used to new tecnology (Github , capistrano and so on) Now I need to inst…

---

## [Rails loads wrong files](https://www.ruby-forum.com/t/rails-loads-wrong-files/163111)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/rails-loads-wrong-files/163111 "2009-03-17T12:59:07Z")

</div>

I run in to errors which I dont understand: I never get the newest version of code (xxx.html.erb) displayed, instead my editors backupfile (xxx.html.erb.bak) are loaded/run. I run Rails v2.3.2 (I am new. How to insta…

---

## [Find all messages from all friends](https://www.ruby-forum.com/t/find-all-messages-from-all-friends/162932)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 6\
**Last updated:** [March 17, 2009, 11:49am UTC](https://www.ruby-forum.com/t/find-all-messages-from-all-friends/162932 "2009-03-17T11:49:16Z")

</div>

Hi, I have an app where users have friends, and friends can have messages for friends to see. I would like to list all the messages that my friends have easily. I can use @user\_friends = current\_user.friends to find …

---

## [Overriding ActiveRecord associations for special cases](https://www.ruby-forum.com/t/overriding-activerecord-associations-for-special-cases/163010)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 4\
**Last updated:** [March 17, 2009, 11:18am UTC](https://www.ruby-forum.com/t/overriding-activerecord-associations-for-special-cases/163010 "2009-03-17T11:18:41Z")

</div>

Hi, Does anyone know a good way to override AR associations to take special cases into account. My current take is the example below which allows the ‘root’ user to access all products, but only works if I remember t…

---

## [JAX India 2009: International Conference on Java Technologie](https://www.ruby-forum.com/t/jax-india-2009-international-conference-on-java-technologie/163094)

<div class="topic-metadata">

**Author:** [@2009jax](https://www.ruby-forum.com/u/2009jax)\
**Replies:** 0\
**Last updated:** [March 17, 2009, 11:09am UTC](https://www.ruby-forum.com/t/jax-india-2009-international-conference-on-java-technologie/163094 "2009-03-17T11:09:48Z")

</div>

Hi, Here is an update on JAX India 2009, an International Conference on Java Technologies to be held in Bangalore between April 06 and 10. Liferay, SAP, Signsoft, isc2 and many other companies have stepped in as sp…

---

## [Building Relationship between Models](https://www.ruby-forum.com/t/building-relationship-between-models/163049)

<div class="topic-metadata">

**Author:** [@ialuronico](https://www.ruby-forum.com/u/ialuronico)\
**Replies:** 2\
**Last updated:** [March 17, 2009, 10:53am UTC](https://www.ruby-forum.com/t/building-relationship-between-models/163049 "2009-03-17T10:53:48Z")

</div>

Hi again… :slight\_smile: I’m still working on RoR right now i’m fighting against relationship. I generated 3 scaffolds car wheel engine all the 3 CRUD works and now in the database I’ve many engines , many wheel …

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

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