# Rails

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

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

---

## [How does rails handle wrong/malformed datatypes](https://www.ruby-forum.com/t/how-does-rails-handle-wrong-malformed-datatypes/87322)

<div class="topic-metadata">

**Author:** [@austin7873](https://www.ruby-forum.com/u/austin7873)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/how-does-rails-handle-wrong-malformed-datatypes/87322 "2007-03-01T20:24:05Z")

</div>

Hi, I need help understanding how rails handles setting object attributes with the wrong datatype. Specifically a datetime attribute, but the behavior happens with other data types too (I’ve also tried with integers…

---

## [PostgreSQL primary (sequence) key issue (Ruby/Rails)](https://www.ruby-forum.com/t/postgresql-primary-sequence-key-issue-ruby-rails/87334)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/postgresql-primary-sequence-key-issue-ruby-rails/87334 "2007-03-01T20:20:05Z")

</div>

Hi Guys, I’m completely stumped with this one! I’ve included ActiveRecord::Base.set\_sequence\_name in my environment.rb, and in my user.rb I’ve placed the following code: class Usertbl \< ActiveRecord::Base set\_prima…

---

## [Failed to lookup Init function...SHA1.bundle](https://www.ruby-forum.com/t/failed-to-lookup-init-function-sha1-bundle/87332)

<div class="topic-metadata">

**Author:** [@Matt\_Dawson](https://www.ruby-forum.com/u/Matt_Dawson)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/failed-to-lookup-init-function-sha1-bundle/87332 "2007-03-01T20:14:54Z")

</div>

Failed to lookup Init function /usr/local/lib/ruby/1.8/i686-darwin8.8.1/digest/SHA1.bundle

---

## [Using Capistrano without the svn being excecuted on remote s](https://www.ruby-forum.com/t/using-capistrano-without-the-svn-being-excecuted-on-remote-s/87288)

<div class="topic-metadata">

**Author:** [@stemey](https://www.ruby-forum.com/u/stemey)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/using-capistrano-without-the-svn-being-excecuted-on-remote-s/87288 "2007-03-01T20:07:59Z")

</div>

Hi, I am trying ot Capistrano to deploy my ruby app. It seems that Capistrano tries to load the source code from the remote server (the one I want to deploy to) via svn. Unfortunately this is not possible in my setup…

---

## [Rails cant display Â£](https://www.ruby-forum.com/t/rails-cant-display-a/87306)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/rails-cant-display-a/87306 "2007-03-01T19:22:08Z")

</div>

Hi, under webrick the character, Â£, displays fine. Under apache it has some problems. The Â£ displays fine on my administrator page, using the default generated code: \<% for column in Product.content\_columns %\> \<…

---

## [Extracting HTML/Javascript from Rails](https://www.ruby-forum.com/t/extracting-html-javascript-from-rails/85873)

<div class="topic-metadata">

**Author:** [@bryan82](https://www.ruby-forum.com/u/bryan82)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/extracting-html-javascript-from-rails/85873 "2007-03-01T18:28:03Z")

</div>

Hi. Is there a way, or has anyone written anything that would let me extract the HTML and Javascript code that Rails generates? I’m going to be applying for a front-end design position, and would like to be able to s…

---

## [How can we know wherethe the button is clicked or not](https://www.ruby-forum.com/t/how-can-we-know-wherethe-the-button-is-clicked-or-not/87316)

<div class="topic-metadata">

**Author:** [@trai\_dau\_bap](https://www.ruby-forum.com/u/trai_dau_bap)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/how-can-we-know-wherethe-the-button-is-clicked-or-not/87316 "2007-03-01T18:05:58Z")

</div>

In php we have a command that let we know if the button is clicked : isset(buttonId). In there any command that have the same function in rail? If anyone know, please show me. thanks :slight\_smile:

---

## [Variable variable](https://www.ruby-forum.com/t/variable-variable/87139)

<div class="topic-metadata">

**Author:** [@newbee](https://www.ruby-forum.com/u/newbee)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/variable-variable/87139 "2007-03-01T18:01:00Z")

</div>

Hi, i also program in php and one of the concepts i miss in ruby is the “variable variable” $a=“test” $$a=“test2” echo $test will output “test2” this can be usefull when a field on a form determines which object to …

---

## [Diffrnce between flash\[:message\] and flash\[:notice\] and](https://www.ruby-forum.com/t/diffrnce-between-flash-message-and-flash-notice-and/87292)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/diffrnce-between-flash-message-and-flash-notice-and/87292 "2007-03-01T17:42:59Z")

</div>

Hi, How could i learn the diffrence between flash\[:message\] and flash\[:notice\] and flash\[:warning\]. In the global layout of any rails project…scafflod is only put flash\[:notice\]. If i declare flash\[:message\]… its no…

---

## [Variables in routes.rb?](https://www.ruby-forum.com/t/variables-in-routes-rb/87267)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/variables-in-routes-rb/87267 "2007-03-01T17:28:57Z")

</div>

Hi everyone, The title is based on what I think is the solution to this problem: I need to have files available without, as far as the client is concerned, server processing. I know how to make http://www.myapp.com/…

---

## [Rails - django speed comparison](https://www.ruby-forum.com/t/rails-django-speed-comparison/87307)

<div class="topic-metadata">

**Author:** [@dankelley](https://www.ruby-forum.com/u/dankelley)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/rails-django-speed-comparison/87307 "2007-03-01T17:24:57Z")

</div>

I wonder whether anyone here can comment on the disappointing benchmarks for Rails, reported a few weeks ago at http://www.alrond.com/en/2007/feb/04/in-addition-to-the-test-of-mvc-frameworks/

---

## [Require tzinfo on rails 1.2](https://www.ruby-forum.com/t/require-tzinfo-on-rails-1-2/87108)

<div class="topic-metadata">

**Author:** [@robbie](https://www.ruby-forum.com/u/robbie)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/require-tzinfo-on-rails-1-2/87108 "2007-03-01T16:56:52Z")

</div>

I’ve just upgraded rails to 1.2 and now everything breaks when accessing pages that use tzinfo. I get the following errors: uninitialized constant FriendController::Timezone c:/ruby/lib/ruby/gems/1.8/gems/activesuppo…

---

## [Encoding Rails project source code](https://www.ruby-forum.com/t/encoding-rails-project-source-code/87303)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/encoding-rails-project-source-code/87303 "2007-03-01T16:41:50Z")

</div>

Hello, After weeks of speaking with my boss, I’ve finally convinced him to allow me to switch our in-house PHP application (for inventory control, employee monitoring, etc.) to Ruby on Rails. He told me that once the…

---

## [PostgreSQL primary (sequence) key issue](https://www.ruby-forum.com/t/postgresql-primary-sequence-key-issue/87302)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/postgresql-primary-sequence-key-issue/87302 "2007-03-01T16:29:49Z")

</div>

Hi, I have a sequence set up on one of my tables called seq\_user\_mytable. I tried the following with no joy: set\_primary\_key “user\_id”, :sequence =\> “seq\_user\_mytable” and: ActiveRecord::Base.seq\_user\_mytable again …

---

## [Retrieve data from related tables](https://www.ruby-forum.com/t/retrieve-data-from-related-tables/87007)

<div class="topic-metadata">

**Author:** [@elmy-liddiard](https://www.ruby-forum.com/u/elmy-liddiard)\
**Replies:** 7\
**Last updated:** [March 1, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/retrieve-data-from-related-tables/87007 "2007-03-01T16:20:45Z")

</div>

New to Ruby on Rails so please be patient. I have two tables policies and standards Policies has id, and PolicyName fields Standards has id, StandardName and ParentPolicyId fields. Each tale has a primary key on id a…

---

## [Problem with acts\_as\_versioned and comatose](https://www.ruby-forum.com/t/problem-with-acts-as-versioned-and-comatose/87308)

<div class="topic-metadata">

**Author:** [@shafhuz](https://www.ruby-forum.com/u/shafhuz)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 4:01pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-versioned-and-comatose/87308 "2007-03-01T16:01:42Z")

</div>

Hi there, I’m would like to use the comatose plugin for CMS and have a problem running the migration script. The error is produced by the comatose migration script is thrown by the acts\_as\_versioned call (at line 4). …

---

## [Ruby/rails port of Cocoon/hibernate](https://www.ruby-forum.com/t/ruby-rails-port-of-cocoon-hibernate/86906)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 24\
**Last updated:** [March 1, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/ruby-rails-port-of-cocoon-hibernate/86906 "2007-03-01T15:57:43Z")

</div>

Hi, I’m currently running an apache/jboss cocoon/flow/hibernate/ajax paypal (directpayment) project and am looking into the possibility of porting it across to ruby/rails. For that reason I would like to know the fol…

---

## [Development Hosting](https://www.ruby-forum.com/t/development-hosting/87216)

<div class="topic-metadata">

**Author:** [@jima](https://www.ruby-forum.com/u/jima)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/development-hosting/87216 "2007-03-01T15:48:42Z")

</div>

HI, I am looking at a hosted environment for RoR, subversion, trac and possible also a JVM. I would like to start of with a srtandard plan while I am in development mode and then upgrade to a production-level plan in…

---

## [:dependent =\> :destroy vs ON DELETE CASCADE](https://www.ruby-forum.com/t/dependent-destroy-vs-on-delete-cascade/87296)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/dependent-destroy-vs-on-delete-cascade/87296 "2007-03-01T15:23:39Z")

</div>

Sorry if I missed this in the docs somewhere. My guess is that if I use :dependent =\> :destroy, then the application sends commands to the db to destroy the dependent records. If I am using a database that supports FK…

---

## [Create on a has\_many through?](https://www.ruby-forum.com/t/create-on-a-has-many-through/87220)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/create-on-a-has-many-through/87220 "2007-03-01T15:06:37Z")

</div>

Hi, I have two models, User and Item, as well as a join model, UserItem. So the User model includes the lines: has\_many :user\_items has\_many :items, :through =\> :user\_items I’ve noticed that this doesn’t work: u = …

---

## [Timestamp columns in Sybase](https://www.ruby-forum.com/t/timestamp-columns-in-sybase/87293)

<div class="topic-metadata">

**Author:** [@Mike\_J](https://www.ruby-forum.com/u/Mike_J)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/timestamp-columns-in-sybase/87293 "2007-03-01T14:39:31Z")

</div>

On Sybase DBs, the timestamp column cannot be updated with a query, the server does it automatically(http://www.sybase.com/detail? id=20316). Since ActiveRecord writes all attributes back to the database on every call…

---

## [ActiveRecord Unique key association](https://www.ruby-forum.com/t/activerecord-unique-key-association/87272)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/activerecord-unique-key-association/87272 "2007-03-01T14:31:28Z")

</div>

Hi, I am in the process of incorporating a legacy database into my first ruby/rails project. All is going well so far (he says crossing all toes/fingers!). I have a User tbl which has a unique key association on two …

---

## [How to get value from select box in rhtml page](https://www.ruby-forum.com/t/how-to-get-value-from-select-box-in-rhtml-page/87250)

<div class="topic-metadata">

**Author:** [@trai\_dau\_bap](https://www.ruby-forum.com/u/trai_dau_bap)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/how-to-get-value-from-select-box-in-rhtml-page/87250 "2007-03-01T14:21:26Z")

</div>

I have an select box in my rhtml page and I wanna put a link on the buttom of this page .when user choose to link to another page i wanna get the selected value that user has chosen in the select box and send it to an…

---

## [\[ANN\] Rails 1.1.x Initializer Directory plugin initial relea](https://www.ruby-forum.com/t/ann-rails-1-1-x-initializer-directory-plugin-initial-relea/87291)

<div class="topic-metadata">

**Author:** [@bryanl](https://www.ruby-forum.com/u/bryanl)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 1:50pm UTC](https://www.ruby-forum.com/t/ann-rails-1-1-x-initializer-directory-plugin-initial-relea/87291 "2007-03-01T13:50:21Z")

</div>

In my conquest to keep my Rails applications organized, I have backported changeset 6212 (http://dev.rubyonrails.org/changeset/6212) to Rails 1.1.x. This plugin allows code in files in the RAILS\_ROOT/ config/initiali…

---

## [Problems with rake db:schema:dump and Ruby 1.8.5](https://www.ruby-forum.com/t/problems-with-rake-dbdump-and-ruby-1-8-5/87273)

<div class="topic-metadata">

**Author:** [@mezza](https://www.ruby-forum.com/u/mezza)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/problems-with-rake-dbdump-and-ruby-1-8-5/87273 "2007-03-01T13:39:19Z")

</div>

Hi, I’ve got a couple of development machines, and on one of them I recently updated Ruby to 1.8.5 (the other’s on 1.8.4), then rebuilt gems and installed rails etc etc. Apart from that the two machines are identical…

---

## [Injecting SQL conditions to models?](https://www.ruby-forum.com/t/injecting-sql-conditions-to-models/86977)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 1:27pm UTC](https://www.ruby-forum.com/t/injecting-sql-conditions-to-models/86977 "2007-03-01T13:27:19Z")

</div>

Hi all, I have an app where I have Users, users upload images, post blog comments, etc. All has been fine until we now need to disable a user. Which means all calls to User.find\_by\_id() now need to exclude any disabl…

---

## [Help with sub-domain deployment?](https://www.ruby-forum.com/t/help-with-sub-domain-deployment/86924)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/help-with-sub-domain-deployment/86924 "2007-03-01T12:33:07Z")

</div>

K, I have a host (A2 Hosting) that allows me to point different domains at sub-folders for add-on domain hosting. I’d like to be able to run diferent rails apps in each of those folders and one in the root also. I fi…

---

## [Error in if statement](https://www.ruby-forum.com/t/error-in-if-statement/87269)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/error-in-if-statement/87269 "2007-03-01T12:29:14Z")

</div>

Hi, The below code is my global layout…code I would like to include a if statement in it. Languages: \<%= controller.action\_name %\> \<%= stylesheet\_link\_tag 'scaffold' %\> \<% if flash\[:notice\].empty? then pu…

---

## [Template is missing error](https://www.ruby-forum.com/t/template-is-missing-error/87271)

<div class="topic-metadata">

**Author:** [@Andy\_pd](https://www.ruby-forum.com/u/Andy_pd)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/template-is-missing-error/87271 "2007-03-01T12:24:05Z")

</div>

Hello , I am using Rails 1.2.2 and Ruby 1.8.5. According to what i have read rails redirects the request to a view with the same name as the controller. This is supposed to work even if you don’t explicitly give a r…

---

## [Ruby: No such file or directory -- rails (LoadError)](https://www.ruby-forum.com/t/ruby-no-such-file-or-directory-rails-loaderror/87262)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 11:27am UTC](https://www.ruby-forum.com/t/ruby-no-such-file-or-directory-rails-loaderror/87262 "2007-03-01T11:27:55Z")

</div>

Hi, I’m running Windows XP SP2 with Java 1.6.0 an am getting the above mentioned error message when I try and run rails, to create a project, from the command prompt: c:\>rails project\_name I have placed c:\\pgRails\\…

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

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