# Rails

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

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

---

## [OpenSSL private key error](https://www.ruby-forum.com/t/openssl-private-key-error/143661)

<div class="topic-metadata">

**Author:** [@traceyz](https://www.ruby-forum.com/u/traceyz)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/openssl-private-key-error/143661 "2008-07-21T17:30:09Z")

</div>

I am trying to use some ruby library code to sign some material with my private key,. and I am encountering an error. I have a private key as part of my SSL credentials from GoDaddy.com. I try key = OpenSSL::PKey::RSA…

---

## [Serialize not working as expected. Am I doing it wrong?](https://www.ruby-forum.com/t/serialize-not-working-as-expected-am-i-doing-it-wrong/196747)

<div class="topic-metadata">

**Author:** [@Jeremy\_SAuzigog](https://www.ruby-forum.com/u/Jeremy_SAuzigog)\
**Replies:** 5\
**Last updated:** [July 21, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/serialize-not-working-as-expected-am-i-doing-it-wrong/196747 "2008-07-21T17:19:00Z")

</div>

I reported the bug here: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/647-serialize-d-array-not-unserializing-properly But the replies are to the tone of “it’s not a bug”. Serialize isn’t working…

---

## [Asymmetrical HABTM(?)](https://www.ruby-forum.com/t/asymmetrical-habtm/143608)

<div class="topic-metadata">

**Author:** [@stan.baptista](https://www.ruby-forum.com/u/stan.baptista)\
**Replies:** 3\
**Last updated:** [July 21, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/asymmetrical-habtm/143608 "2008-07-21T17:16:37Z")

</div>

What is the best way to set up a relationship between two tables where table-1 has a one-to-one relationship with table-2 but table-2 has a one-to-many relationship with table-1? For example, suppose there is an event…

---

## [Displaying hash for has\_many](https://www.ruby-forum.com/t/displaying-hash-for-has-many/143591)

<div class="topic-metadata">

**Author:** [@Jeff.Corcoran](https://www.ruby-forum.com/u/Jeff.Corcoran)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/displaying-hash-for-has-many/143591 "2008-07-21T17:16:37Z")

</div>

Let me start off by saying I am very much a beginner. I currently have 2 models - Person, and address. I am currently trying to display a person and their address on the “index” page in the person section. I can crea…

---

## [Collection\_select with HABTM relationship](https://www.ruby-forum.com/t/collection-select-with-habtm-relationship/143603)

<div class="topic-metadata">

**Author:** [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/collection-select-with-habtm-relationship/143603 "2008-07-21T17:16:37Z")

</div>

I have a collection set… \<%= collection\_select(:bet, :opponent\_id, Friendship.find(:all, :conditions =\> \[ “user1\_id = ?”, current\_user \], :order =\> “id”) , :id, :id) %\> …wors fine. But I want to return the users fir…

---

## [Mobile version](https://www.ruby-forum.com/t/mobile-version/143647)

<div class="topic-metadata">

**Author:** [@matte\_S](https://www.ruby-forum.com/u/matte_S)\
**Replies:** 5\
**Last updated:** [July 21, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/mobile-version/143647 "2008-07-21T16:46:58Z")

</div>

Hi, I am building 3 layouts of the same site: 1 for the web, 1 for the iphone, 1 for the mobile (xhtml mp). I know if the request of my site is from iphone with this string: request.env\[“HTTP\_USER\_AGENT”\] && request.…

---

## [Texmate rails 2.0 widget for mac os](https://www.ruby-forum.com/t/texmate-rails-2-0-widget-for-mac-os/143654)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/texmate-rails-2-0-widget-for-mac-os/143654 "2008-07-21T16:05:37Z")

</div>

Hello, i have problems to remember the textmate shortcuts… só, I made a widget for mac os dashboard to help with most common shortcuts. If think this can help other people, if anyone have interest can download here: h…

---

## [Ri duplicate entries](https://www.ruby-forum.com/t/ri-duplicate-entries/143651)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/ri-duplicate-entries/143651 "2008-07-21T15:50:56Z")

</div>

Hello, Does anybody know why when I type, for example, ‘ri form\_for’ ri comes back with duplicate entries for form\_for? Now, I noticed that I have rails as an Ubuntu package and a gem. Is the gem and the package the …

---

## [Jump-starting a database application](https://www.ruby-forum.com/t/jump-starting-a-database-application/143523)

<div class="topic-metadata">

**Author:** [@seatown](https://www.ruby-forum.com/u/seatown)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/jump-starting-a-database-application/143523 "2008-07-21T15:47:25Z")

</div>

Hi, I’m fairly new to RoR development, and I realize that RoR already does a lot to help one get a database application up and running but I was wondering if there other modules I should be aware of. At this point t…

---

## [Software & Hardware Requirements for CentOS](https://www.ruby-forum.com/t/software-hardware-requirements-for-centos/143633)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/software-hardware-requirements-for-centos/143633 "2008-07-21T15:46:14Z")

</div>

Hi, Can anybody list the Software and Hardware Requirements for CentOS to use Ruby On Rails? Thanks in advance…

---

## [Webrick needs 80 seconds for starting](https://www.ruby-forum.com/t/webrick-needs-80-seconds-for-starting/143617)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 3:07pm UTC](https://www.ruby-forum.com/t/webrick-needs-80-seconds-for-starting/143617 "2008-07-21T15:07:42Z")

</div>

ruby script/console webrick after 23 seconds: =\> Booting WEBrick… after 78 seconds: =\> Rails application started on http://0.0.0.0:3000 =\> Ctrl-C to shutdown server; call with --help for options \[2008-07-21 08:07:1…

---

## [Oracle\_adapter...ora-00907](https://www.ruby-forum.com/t/oracle-adapter-ora-00907/143641)

<div class="topic-metadata">

**Author:** [@rajeev](https://www.ruby-forum.com/u/rajeev)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/oracle-adapter-ora-00907/143641 "2008-07-21T13:37:18Z")

</div>

Hi … I am trying to create a sample table in oracle using db:migrate and it gives me the following error. OCIError: ORA-00907: missing right parenthesis: CREATE TABLE comics (id NUMBER(38) NOT NULL PRIMARY KEY(38), t…

---

## [Using image with submit\_to\_remote](https://www.ruby-forum.com/t/using-image-with-submit-to-remote/143624)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [July 21, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/using-image-with-submit-to-remote/143624 "2008-07-21T13:32:15Z")

</div>

Hi How can I give an image to submit\_to\_remote .I could successfully do it with link\_to\_remote as below…But the same not working with submit\_to\_remote \<%= link\_to\_remote( image\_tag("/images/cancel.png", {:alt =\> ‘Ca…

---

## [Newbie: how to use link\_to to create ftp url to download a file?](https://www.ruby-forum.com/t/newbie-how-to-use-link-to-to-create-ftp-url-to-download-a-file/143334)

<div class="topic-metadata">

**Author:** [@Birgit\_A](https://www.ruby-forum.com/u/Birgit_A)\
**Replies:** 4\
**Last updated:** [July 21, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/newbie-how-to-use-link-to-to-create-ftp-url-to-download-a-file/143334 "2008-07-21T13:14:27Z")

</div>

Hi everyone, I’m struggling with link\_to. I’m trying to generate a link that will enable my web users to ftp a file. Table ‘calls’ contains a field ‘filename’. There the requirement to download this file via ftp. F…

---

## [Link to download flv file](https://www.ruby-forum.com/t/link-to-download-flv-file/143638)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/link-to-download-flv-file/143638 "2008-07-21T12:45:00Z")

</div>

Hello, just wanted to know how I could make a link to a flv file on my web page to enable users to download it, given its filename (from attachment\_fu). Basically, I would like a sweet save as box that would allow a …

---

## [\[ANN/ADV\] Erik Kastner to join D.A. Black in "Advancing With Rails" training](https://www.ruby-forum.com/t/ann-adv-erik-kastner-to-join-d-a-black-in-advancing-with-rails-training/143556)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/ann-adv-erik-kastner-to-join-d-a-black-in-advancing-with-rails-training/143556 "2008-07-21T12:43:45Z")

</div>

Hi everyone – I am extremely pleased to announce that Erik Kastner will be joining me in Edison, New Jersey, August 18-21, as co-instructor for the training course “Advancing With Rails”. This will be the first time …

---

## [Edit multipl check box](https://www.ruby-forum.com/t/edit-multipl-check-box/143626)

<div class="topic-metadata">

**Author:** [@jaiganez](https://www.ruby-forum.com/u/jaiganez)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/edit-multipl-check-box/143626 "2008-07-21T12:30:01Z")

</div>

how to edit multiple checkbox …pls help… new.erb is… “brand” column in table shows values “ram,sam”.

---

## [Help log4r\_config](https://www.ruby-forum.com/t/help-log4r-config/143632)

<div class="topic-metadata">

**Author:** [@zeldabio](https://www.ruby-forum.com/u/zeldabio)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 11:31am UTC](https://www.ruby-forum.com/t/help-log4r-config/143632 "2008-07-21T11:31:34Z")

</div>

how do i know properties of tag xml. or syntax of log4r\_config. I used this file and when run it. it doesn’t append continues. In the config directory I have a configuration file called log4r\_config.xml with the foll…

---

## [What happened to the open-source version of WhooTube?](https://www.ruby-forum.com/t/what-happened-to-the-open-source-version-of-whootube/143570)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 10:38am UTC](https://www.ruby-forum.com/t/what-happened-to-the-open-source-version-of-whootube/143570 "2008-07-21T10:38:21Z")

</div>

I was looking for this project but couldn’t find a download link. The following link redirects to a not found page on nedforce.nl: Does anyone know what happened? Did they step back and changed their mind? Thanks, M…

---

## [Ipaper alone in need](https://www.ruby-forum.com/t/ipaper-alone-in-need/143208)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 10:11am UTC](https://www.ruby-forum.com/t/ipaper-alone-in-need/143208 "2008-07-21T10:11:33Z")

</div>

Hi, The gem rscribd and the plugin scribd\_fu says that I want to upload files to scribd server and which can be viewed with ipaper in my app. Rather I want to show the uploaded files in my server with scribd ipaper. …

---

## [The financial training academy Problem with local\_request?](https://www.ruby-forum.com/t/the-financial-training-academy-problem-with-local-request/143620)

<div class="topic-metadata">

**Author:** [@thetrystero](https://www.ruby-forum.com/u/thetrystero)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 9:14am UTC](https://www.ruby-forum.com/t/the-financial-training-academy-problem-with-local-request/143620 "2008-07-21T09:14:49Z")

</div>

Hi, I have a problem with rescue\_action\_in\_public and local\_request? with 0.14.2. I override both in ApplicationControl but rails ignors them. I run in production mode with ActionController::Base.consider\_all\_request…

---

## [Installing plugins from .tar.gz file, how?](https://www.ruby-forum.com/t/installing-plugins-from-tar-gz-file-how/143594)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 9:00am UTC](https://www.ruby-forum.com/t/installing-plugins-from-tar-gz-file-how/143594 "2008-07-21T09:00:03Z")

</div>

First, thanks for your attention! I’m trying to install UltraSphinx plugin from svn but unfortunately it’s down. I have a .tar.gz package, how can i install it? ./script/install package.tar.gz - doesn’t work – Rega…

---

## [How to access current javascript object by $(this) using remote\_function :complete](https://www.ruby-forum.com/t/how-to-access-current-javascript-object-by-this-using-remote-function-complete/143592)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 1\
**Last updated:** [July 21, 2008, 8:58am UTC](https://www.ruby-forum.com/t/how-to-access-current-javascript-object-by-this-using-remote-function-complete/143592 "2008-07-21T08:58:17Z")

</div>

Hello I have the following: … :onchange =\> remote\_function(:url =\> {:action =\> ‘some\_action’}, :with =\> “‘id=’+this.value”, :complete =\> “var x = eval(’(’ + request.responseText + ‘)’); $(this).next(’.product\_price’…

---

## [New ways of protection and exchange of information](https://www.ruby-forum.com/t/new-ways-of-protection-and-exchange-of-information/143616)

<div class="topic-metadata">

**Author:** [@nik\_andr](https://www.ruby-forum.com/u/nik_andr)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 8:08am UTC](https://www.ruby-forum.com/t/new-ways-of-protection-and-exchange-of-information/143616 "2008-07-21T08:08:13Z")

</div>

Inventing and programmes implemented in the form of encryption algorithm random objects. Features: 1) you can specify a list of characters to be zashifrovyvaniyu and only they will be encrypted. For example, in biling…

---

## [Edit radio button values](https://www.ruby-forum.com/t/edit-radio-button-values/143607)

<div class="topic-metadata">

**Author:** [@jaiganez](https://www.ruby-forum.com/u/jaiganez)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 5:45am UTC](https://www.ruby-forum.com/t/edit-radio-button-values/143607 "2008-07-21T05:45:20Z")

</div>

my problem is… during edit process radio button should be checked as default …how can i do that …pl help… my edit .erb file \<% form\_tag (:action =\> ‘update’, :id =\> @mobile )do%\> Title: \<%= radio\_button 'mobile', 'b…

---

## [Named\_scope and habtm chaining problem](https://www.ruby-forum.com/t/named-scope-and-habtm-chaining-problem/143605)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [July 21, 2008, 5:30am UTC](https://www.ruby-forum.com/t/named-scope-and-habtm-chaining-problem/143605 "2008-07-21T05:30:01Z")

</div>

Can anyone help me with this? I have a habtm relationship. I defined a named\_scope on one side of it. It works fine except when I chain it. For example: class Category \< ActiveRecord::Base has\_and\_belongs\_to\_many :i…

---

## [No such file to load -- sqlite3](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/143543)

<div class="topic-metadata">

**Author:** [@olivia](https://www.ruby-forum.com/u/olivia)\
**Replies:** 2\
**Last updated:** [July 21, 2008, 3:46am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/143543 "2008-07-21T03:46:34Z")

</div>

I followed a tutorial on lynda.com to build Hello World app on Windows. I got an error msg as follow when I loaded http://localhost:3000/say/hello MissingSourceFile in SayController#hello no such file to load – sq…

---

## [Form\_for submit ends up in the "index" action](https://www.ruby-forum.com/t/form-for-submit-ends-up-in-the-index-action/143468)

<div class="topic-metadata">

**Author:** [@markmt](https://www.ruby-forum.com/u/markmt)\
**Replies:** 3\
**Last updated:** [July 21, 2008, 12:27am UTC](https://www.ruby-forum.com/t/form-for-submit-ends-up-in-the-index-action/143468 "2008-07-21T00:27:36Z")

</div>

I have a strange bug that’s driving me slightly crazy. Maybe the symptoms will be more meaningful to someone else here… I have a set of REST actions in my controller and a form\_for in both my new and edit views, in bo…

---

## [HELP with self-referential join (using another model as join table)](https://www.ruby-forum.com/t/help-with-self-referential-join-using-another-model-as-join-table/143571)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 3\
**Last updated:** [July 21, 2008, 12:11am UTC](https://www.ruby-forum.com/t/help-with-self-referential-join-using-another-model-as-join-table/143571 "2008-07-21T00:11:49Z")

</div>

Hi all, I’m having problems with the following relationship, can anybody help me out here? I’m using Rails 2.1. Cheers, Sazima Table name: votes Field Type Null Default id int(11) No auto\_incremen…

---

## [Generate a migration file](https://www.ruby-forum.com/t/generate-a-migration-file/196749)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 5\
**Last updated:** [July 20, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/generate-a-migration-file/196749 "2008-07-20T23:34:54Z")

</div>

Hi everybody, I had generated some migrations files such as “20080719111013\_create\_countries.rb” for “countries” table : class CreateCountries \< ActiveRecord::Migration def self.up create\_table :countries, :force =\> …

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

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