# Rails

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

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

---

## [Comment avoir la liste des gems?](https://www.ruby-forum.com/t/comment-avoir-la-liste-des-gems/131416)

<div class="topic-metadata">

**Author:** [@barchil](https://www.ruby-forum.com/u/barchil)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 2:11am UTC](https://www.ruby-forum.com/t/comment-avoir-la-liste-des-gems/131416 "2008-03-10T02:11:18Z")

</div>

bonjour , je voudrais savoir de quelle façon est ce qu’on peut savoir les gems installés dans un serveur hebergeur sans avoir acces au SSH ? pour les informations sur rails ou ruby c’est fait :wink: en utilisant la c…

---

## [New capistrano setup](https://www.ruby-forum.com/t/new-capistrano-setup/131436)

<div class="topic-metadata">

**Author:** [@pavel989](https://www.ruby-forum.com/u/pavel989)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 2:06am UTC](https://www.ruby-forum.com/t/new-capistrano-setup/131436 "2008-03-10T02:06:12Z")

</div>

I setup new capistrano using “gem install”. I have this simple script that I wrote. Its seems to work fine but then i run a deploy i get all these wierd errors about directories and things that i dont even have in my …

---

## [Capistrano first deploy after setup](https://www.ruby-forum.com/t/capistrano-first-deploy-after-setup/121908)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 1:58am UTC](https://www.ruby-forum.com/t/capistrano-first-deploy-after-setup/121908 "2008-03-10T01:58:44Z")

</div>

checkout seems to be fine , bit I can see some errors in the log \[www. mydomain.net\] executing command \*\*\* \[err :: www. mydomain.net\] find: \*\*\* \[err :: www. mydomain.net\] /var/rails/myprojects/app\_test/releases/20071…

---

## [Sortables, acts\_as\_list and performance](https://www.ruby-forum.com/t/sortables-acts-as-list-and-performance/131433)

<div class="topic-metadata">

**Author:** [@mourner](https://www.ruby-forum.com/u/mourner)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 1:51am UTC](https://www.ruby-forum.com/t/sortables-acts-as-list-and-performance/131433 "2008-03-10T01:51:19Z")

</div>

Hi! I have a reordering feature for one of my models. It’s done with Sortables JS component that sends an Ajax request with a hash of new positions for each item after reordering, with the following action that proce…

---

## [Mocha gem error on dreamhost](https://www.ruby-forum.com/t/mocha-gem-error-on-dreamhost/131434)

<div class="topic-metadata">

**Author:** [@shaish](https://www.ruby-forum.com/u/shaish)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 1:23am UTC](https://www.ruby-forum.com/t/mocha-gem-error-on-dreamhost/131434 "2008-03-10T01:23:12Z")

</div>

I’ve just signed up to dreamhost and I’m trying to set up a rails application but I get a ‘Rails application failed to start properly’ on the welcome screen of the rails page. I followed the instructions on the wiki p…

---

## [Routes or .htaccess?](https://www.ruby-forum.com/t/routes-or-htaccess/131432)

<div class="topic-metadata">

**Author:** [@clouder](https://www.ruby-forum.com/u/clouder)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 12:49am UTC](https://www.ruby-forum.com/t/routes-or-htaccess/131432 "2008-03-10T00:49:47Z")

</div>

I want to make a route that catches anything ending in /login ie mysite.com/login, mysite.com/item/1/login etc. Any url ending with / login will use the same controller and action to allow the user to login. Is this…

---

## [Backing up client specific data](https://www.ruby-forum.com/t/backing-up-client-specific-data/130977)

<div class="topic-metadata">

**Author:** [@jonzo](https://www.ruby-forum.com/u/jonzo)\
**Replies:** 7\
**Last updated:** [March 9, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/backing-up-client-specific-data/130977 "2008-03-09T23:25:43Z")

</div>

This is probably the wrong place to be asking about database backups… but this group goes off so: I have a corporate client that wants their data backed up, and in their hands. So, a full database backup and a promise…

---

## [Noob help with routing](https://www.ruby-forum.com/t/noob-help-with-routing/130736)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 5\
**Last updated:** [March 9, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/noob-help-with-routing/130736 "2008-03-09T21:41:23Z")

</div>

Hi all, I am trying to create my own plugin, and I’m not having much luck. I have my structure set up with my controller, models and views. I’ve been able to successfully migrate my database, however I can’t get m…

---

## [Textarea content text with tag html](https://www.ruby-forum.com/t/textarea-content-text-with-tag-html/131419)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/textarea-content-text-with-tag-html/131419 "2008-03-09T19:58:01Z")

</div>

I building a form for user profile editing. There is a textarea for description field. If the user insert in text area the code of a youtube video file, \<object … when he reeditingthe the descrption the text area hav…

---

## [Getting Object cannot be created in this context"code 9" trying to call javascript function](https://www.ruby-forum.com/t/getting-object-cannot-be-created-in-this-context-code-9-trying-to-call-javascript-function/131414)

<div class="topic-metadata">

**Author:** [@sweiss](https://www.ruby-forum.com/u/sweiss)\
**Replies:** 1\
**Last updated:** [March 9, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/getting-object-cannot-be-created-in-this-context-code-9-trying-to-call-javascript-function/131414 "2008-03-09T19:26:02Z")

</div>

What’s up guys, anyone seen this before, using rails 2.0.2, If I put a button on the page and try and call this javascript function all works well, but if I use rjs to call this javascripot function that is defined in…

---

## [Rake/Net::HTTP](https://www.ruby-forum.com/t/rake-net-http/131415)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/rake-net-http/131415 "2008-03-09T18:50:22Z")

</div>

Hello, I have a class method in a class in my lib dir of my rails app which basically fetches some URLs and stores them in a temp cache for processing. When I run the code via the script/console it works fine, but if…

---

## [Two form\_tag's](https://www.ruby-forum.com/t/two-form-tags/131374)

<div class="topic-metadata">

**Author:** [@abusiek](https://www.ruby-forum.com/u/abusiek)\
**Replies:** 2\
**Last updated:** [March 9, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/two-form-tags/131374 "2008-03-09T18:21:57Z")

</div>

Hi! I’m new with ruby on rails and I’ve faced such a problem: In layout I have one form: \<%= form\_tag ({:controller =\> ‘kontakty’, :action =\> ‘search’}, :method =\> ‘get’) %\> \<%= text\_field\_tag ‘s’%\> Szukaj \<%…

---

## [Text validation](https://www.ruby-forum.com/t/text-validation/131409)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 2\
**Last updated:** [March 9, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/text-validation/131409 "2008-03-09T18:00:05Z")

</div>

Hi I want to add some validation to my ruby site, and I want to stop my users putting in certain words for example dugs or stolen. I know ruby has validation commands and I was wondering if there was one for textbox …

---

## [Disable use of database in Rails app](https://www.ruby-forum.com/t/disable-use-of-database-in-rails-app/131395)

<div class="topic-metadata">

**Author:** [@fso1](https://www.ruby-forum.com/u/fso1)\
**Replies:** 2\
**Last updated:** [March 9, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/disable-use-of-database-in-rails-app/131395 "2008-03-09T17:26:18Z")

</div>

I am creating a webapp that requires the use of models but does not require actually saving to the database. With ActiveRecords, is there a setting to not require an actual data store? Thanks in advance for any point…

---

## [Active Record attributes (has\_many vs serialization vs sti)](https://www.ruby-forum.com/t/active-record-attributes-has-many-vs-serialization-vs-sti/131408)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/active-record-attributes-has-many-vs-serialization-vs-sti/131408 "2008-03-09T16:00:54Z")

</div>

I have a set of STI models, each have slightly different attributes. While I could create a row for each one, I feel that there may be too much null data in the database. At the moment I setup a has\_many to a paramet…

---

## [TzInfo and DST and UTC to Easter convert help](https://www.ruby-forum.com/t/tzinfo-and-dst-and-utc-to-easter-convert-help/225997)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [March 9, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/tzinfo-and-dst-and-utc-to-easter-convert-help/225997 "2008-03-09T14:45:26Z")

</div>

We created a calendar on ruby on rails using the TzInfo add-in. The users set a timezone in their preference and all dates/times are saved to the DB in UTC. This worked great up until March 8/9 for Eastern because o…

---

## [Prevent caching](https://www.ruby-forum.com/t/prevent-caching/131369)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 1\
**Last updated:** [March 9, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/prevent-caching/131369 "2008-03-09T14:24:14Z")

</div>

hi I’m trying to validate foreign keys: class Blocking \< ActiveRecord::Base belongs\_to :ressource validates\_inclusion\_of :ressource\_id, :in =\> Ressource.select\_all\_ids end class Ressource \< ActiveRecord::Base has…

---

## [Opinions on 'Fan' relationship model in RESTful app](https://www.ruby-forum.com/t/opinions-on-fan-relationship-model-in-restful-app/131403)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/opinions-on-fan-relationship-model-in-restful-app/131403 "2008-03-09T13:11:55Z")

</div>

I’m working on an app in which users can become a ‘fan’ of another user. I’m trying to determine if and how this is similar to a ‘friendship’ model, like the one seen in the has\_many\_friends plugin, but I haven’t got …

---

## [ActiveRecord, mapping a column value to a symbol](https://www.ruby-forum.com/t/activerecord-mapping-a-column-value-to-a-symbol/131313)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 10\
**Last updated:** [March 9, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/activerecord-mapping-a-column-value-to-a-symbol/131313 "2008-03-09T13:05:56Z")

</div>

Hi Is it possible to map a column value to a symbol? For example, lets say I have an integer in a table that will hold -1, 0 or 1 I want these to map to :negative, :neutral, :positive Or is there a better way to acc…

---

## [Decoding a string to hexadecimal](https://www.ruby-forum.com/t/decoding-a-string-to-hexadecimal/131071)

<div class="topic-metadata">

**Author:** [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Replies:** 7\
**Last updated:** [March 9, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/decoding-a-string-to-hexadecimal/131071 "2008-03-09T12:30:03Z")

</div>

Hello, I need to decode a utf-8 string to hexadecimal. After a lot of search I found the unpack method of the string class, it can be used like: “f”.unpack(‘U’)\[0\].to\_s(16) =\> “66” This method seems to decode only o…

---

## [Mephisto com Rails 2](https://www.ruby-forum.com/t/mephisto-com-rails-2/131383)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 1\
**Last updated:** [March 9, 2008, 9:02am UTC](https://www.ruby-forum.com/t/mephisto-com-rails-2/131383 "2008-03-09T09:02:23Z")

</div>

Hello everybody. I’m looking for good bloging system and i don’t use wordpress i would like use some system in rails. I take in Typo and Mephisto, i think mephisto is more simplificated but don’t had suport for 2.0 ye…

---

## [Simple message board: syntax error, unexpected tCONSTANT,](https://www.ruby-forum.com/t/simple-message-board-syntax-error-unexpected-tconstant/131354)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 2\
**Last updated:** [March 9, 2008, 9:00am UTC](https://www.ruby-forum.com/t/simple-message-board-syntax-error-unexpected-tconstant/131354 "2008-03-09T09:00:22Z")

</div>

Hi all Im trying to make a simple message board using this tutorial However I have hit a problem when I do rake db:migrate it has a problem with the post\_table migrate file, any help with this would be great. ./db/…

---

## [\[ANN\] assert\_latest{} detects new model objects](https://www.ruby-forum.com/t/ann-assert-latest-detects-new-model-objects/131394)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 8:33am UTC](https://www.ruby-forum.com/t/ann-assert-latest-detects-new-model-objects/131394 "2008-03-09T08:33:38Z")

</div>

Railsers: This simple test shows assert\_latest{} in action: c1, c2 = assert\_latest Chat do Chat.create(:user =\> aaron, :utterance =\> 'foo') Chat.create(:user =\> becky, :utterance =\> 'bar') …

---

## [Best approach to separate account info (newbie)](https://www.ruby-forum.com/t/best-approach-to-separate-account-info-newbie/131391)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 7:11am UTC](https://www.ruby-forum.com/t/best-approach-to-separate-account-info-newbie/131391 "2008-03-09T07:11:37Z")

</div>

I’m building something very common to most web applications: there are multiple users, and each user has its own set of resources (e.g. documents). And I need a way of ensuring one user cannot access the resource of …

---

## [Rake test:functionals failing for deeply generated namespace](https://www.ruby-forum.com/t/rake-test-functionals-failing-for-deeply-generated-namespace/131389)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 6:50am UTC](https://www.ruby-forum.com/t/rake-test-functionals-failing-for-deeply-generated-namespace/131389 "2008-03-09T06:50:40Z")

</div>

I’m having an issue with the rake test:functional task. It seems to be spitting up warnings and failing on some of my functional tests that are deeply generated resources… most are under namespaces. The tests work jus…

---

## [\[ANN\] IFRAME based RJS - responds\_to\_parent](https://www.ruby-forum.com/t/ann-iframe-based-rjs-responds-to-parent/61916)

<div class="topic-metadata">

**Author:** [@Sean\_Treadway](https://www.ruby-forum.com/u/Sean_Treadway)\
**Replies:** 3\
**Last updated:** [March 9, 2008, 2:40am UTC](https://www.ruby-forum.com/t/ann-iframe-based-rjs-responds-to-parent/61916 "2008-03-09T02:40:19Z")

</div>

\*\* File uploads with AJAX mojo \*\* Respond with RJS to your parent window with a form action targeted to a hidden IFRAME. Handles all the painful situations like scoping your JavaScript to your parent window generatin…

---

## [Connect with me and wht LinkedIn.com...the best way to stay in touch](https://www.ruby-forum.com/t/connect-with-me-and-wht-linkedin-com-the-best-way-to-stay-in-touch/131381)

<div class="topic-metadata">

**Author:** [@jfricci](https://www.ruby-forum.com/u/jfricci)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 1:58am UTC](https://www.ruby-forum.com/t/connect-with-me-and-wht-linkedin-com-the-best-way-to-stay-in-touch/131381 "2008-03-09T01:58:07Z")

</div>

Connect with me and wht LinkedIn.com…the best way to stay in touch My profile is at http://www.linkedin.com/in/jfricci Use my name John Ricci and email johnr\[at\]basn\[dotcom. I am an advisor to and investor in a number…

---

## [Facebooker: de-puzzle me, please! :)](https://www.ruby-forum.com/t/facebooker-de-puzzle-me-please/131362)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 9, 2008, 1:15am UTC](https://www.ruby-forum.com/t/facebooker-de-puzzle-me-please/131362 "2008-03-09T01:15:55Z")

</div>

\[NB\] probably I’m just too tired to see what I’m doing wrong… I’m testing my first app and I’m playing with friends: \<%= @user.inspect %\> ==\> #\<Facebooker::User:0x3620388 @friends=\[#\<Facebooker::User:0x3620338 @id=1…

---

## [Session expiration](https://www.ruby-forum.com/t/session-expiration/131378)

<div class="topic-metadata">

**Author:** [@brewpoo](https://www.ruby-forum.com/u/brewpoo)\
**Replies:** 0\
**Last updated:** [March 9, 2008, 1:13am UTC](https://www.ruby-forum.com/t/session-expiration/131378 "2008-03-09T01:13:36Z")

</div>

I recently moved to memcache for session management and I am very happy with the performance. However, I need a way to trigger methods when a user is logged out, including when the session timer expires. I can think …

---

## [Changing code mixing order](https://www.ruby-forum.com/t/changing-code-mixing-order/131304)

<div class="topic-metadata">

**Author:** [@mateo\_murphy](https://www.ruby-forum.com/u/mateo_murphy)\
**Replies:** 3\
**Last updated:** [March 8, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/changing-code-mixing-order/131304 "2008-03-08T23:40:48Z")

</div>

Hi all, In my latest project, I had a need to have code in a plugin override the code in the app (rather than the usual way) so I modified a couple of files to allow that. I was wondering if this was a feature that a…

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

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