# Rails

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

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

---

## [Mongrel - Missing required gems - but THEY ARE THERE!](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628)

<div class="topic-metadata">

**Author:** [@bzouchir](https://www.ruby-forum.com/u/bzouchir)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 3:05am UTC](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628 "2010-03-04T03:05:37Z")

</div>

Hi guys, the strangest thing is all the below was not happening before this latest deployment, attempting to use Capistrano, didn’t work so manually deploying. RUBYGEMS VERSION: 1.3.1 RUBY VERSION: 1.8.6 Rails 2.3…

---

## [How change the port](https://www.ruby-forum.com/t/how-change-the-port/179151)

<div class="topic-metadata">

**Author:** [@divyanshutri](https://www.ruby-forum.com/u/divyanshutri)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 3:04am UTC](https://www.ruby-forum.com/t/how-change-the-port/179151 "2010-03-04T03:04:04Z")

</div>

my ruby runs default.localhost:3000 and i wana to run on the same port spree… so how cn it run on the port 3000…

---

## [Gem install does not work](https://www.ruby-forum.com/t/gem-install-does-not-work/197253)

<div class="topic-metadata">

**Author:** [@max\_1219](https://www.ruby-forum.com/u/max_1219)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 2:56am UTC](https://www.ruby-forum.com/t/gem-install-does-not-work/197253 "2010-03-04T02:56:43Z")

</div>

newbie in ROR. Win 7 ruby 1.8.6 (2007-09-24 patchlevel 111) \[i386-mswin32\] run admin cmd gem install rails --include-dependencies then I got the error here: ERROR: While executing gem … (Gem::GemNotFoundException) …

---

## [Newbie: need help with deployment](https://www.ruby-forum.com/t/newbie-need-help-with-deployment/183729)

<div class="topic-metadata">

**Author:** [@farhad](https://www.ruby-forum.com/u/farhad)\
**Replies:** 1\
**Last updated:** [March 4, 2010, 2:49am UTC](https://www.ruby-forum.com/t/newbie-need-help-with-deployment/183729 "2010-03-04T02:49:06Z")

</div>

PLEASE HELP!!! I just did my first installation of ruby on rails. When I go to www.mysite.com I get the following error: We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a lo…

---

## [Ajaxy cross-tab form](https://www.ruby-forum.com/t/ajaxy-cross-tab-form/184457)

<div class="topic-metadata">

**Author:** [@ptorrsmith](https://www.ruby-forum.com/u/ptorrsmith)\
**Replies:** 2\
**Last updated:** [March 4, 2010, 1:28am UTC](https://www.ruby-forum.com/t/ajaxy-cross-tab-form/184457 "2010-03-04T01:28:50Z")

</div>

Hiya’ll. I’m trying to create an ajaxy form full of intersect values in which each intersect-field can be edited (in place style) and submitted back on change. I have 3 models :people (name) :wants (name) :people…

---

## [Current state of Rails CMSs](https://www.ruby-forum.com/t/current-state-of-rails-cmss/184508)

<div class="topic-metadata">

**Author:** [@twifkak](https://www.ruby-forum.com/u/twifkak)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 1:28am UTC](https://www.ruby-forum.com/t/current-state-of-rails-cmss/184508 "2010-03-04T01:28:50Z")

</div>

I’ve been using Rails for many years, but it’s been primarily for building custom applications and hosting small sites with less than ten pages. I’m interested in learning a CMS to start building more content-heavy s…

---

## [On-line Quizzes: any Rails gem orplugin?](https://www.ruby-forum.com/t/on-line-quizzes-any-rails-gem-orplugin/183239)

<div class="topic-metadata">

**Author:** [@solyaris](https://www.ruby-forum.com/u/solyaris)\
**Replies:** 4\
**Last updated:** [March 4, 2010, 1:28am UTC](https://www.ruby-forum.com/t/on-line-quizzes-any-rails-gem-orplugin/183239 "2010-03-04T01:28:14Z")

</div>

Hi all! my first post here; Does exist any Rails plugin or gem do realize something in this application area: Course Management System, Learning Management System, Virtual Learning Environment ? More specifically: …

---

## [Question about Nested Join Tables](https://www.ruby-forum.com/t/question-about-nested-join-tables/184532)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [March 4, 2010, 12:50am UTC](https://www.ruby-forum.com/t/question-about-nested-join-tables/184532 "2010-03-04T00:50:10Z")

</div>

I have five tables that I am trying to get to work nicely together but may need some help. I have three main tables: accounts, members and roles. With two join tables account\_members and account\_member\_roles. The a…

---

## [Change server root to set locale but keep routes](https://www.ruby-forum.com/t/change-server-root-to-set-locale-but-keep-routes/184531)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/change-server-root-to-set-locale-but-keep-routes/184531 "2010-03-03T23:59:51Z")

</div>

Given the following URL as a base: http://www.domain.com/resources/1 I want to insert locale information after the server like this: http://www.domain.com/en/resources/1 http://www.domain.com/es/resources/1 Has anyo…

---

## [Has\_many models in a form](https://www.ruby-forum.com/t/has-many-models-in-a-form/184389)

<div class="topic-metadata">

**Author:** [@bluegreen](https://www.ruby-forum.com/u/bluegreen)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/has-many-models-in-a-form/184389 "2010-03-03T23:12:50Z")

</div>

Hi, guys. There are four models in the program, A has\_many B through C, B has\_many A through C, A has\_many D, D belongs\_to A. I have a form to create A. Inspired by Ryan B.’ railscasts I was able to create A and D in…

---

## [New window parameters disappear with validation fails](https://www.ruby-forum.com/t/new-window-parameters-disappear-with-validation-fails/184447)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 10:22pm UTC](https://www.ruby-forum.com/t/new-window-parameters-disappear-with-validation-fails/184447 "2010-03-03T22:22:06Z")

</div>

Hello all, My 5th month with Ruby on Rails is over and on to #6, but still learning. I have an application… Rails 2.3.5 Ruby 1.8.7 I have a jQuery dialog box that gives the user the option to “create” a new projec…

---

## [Access authlogic current\_user in actionmailer view](https://www.ruby-forum.com/t/access-authlogic-current-user-in-actionmailer-view/184418)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/access-authlogic-current-user-in-actionmailer-view/184418 "2010-03-03T22:16:15Z")

</div>

Hi I am using authlogic and having current\_user as a private method in application controller . Now I would like to know how I can access that in my actionmailer view Or actionmailer class Thanks in advance Tom

---

## [Saving HTTP Referer](https://www.ruby-forum.com/t/saving-http-referer/184464)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 10:13pm UTC](https://www.ruby-forum.com/t/saving-http-referer/184464 "2010-03-03T22:13:54Z")

</div>

I’m trying to save the site that a user came from when they sign up. Right now I have a before\_filter in my ApplicationController: before\_filter :save\_referer def save\_referer unless is\_logged\_in? session\[‘referer’\]…

---

## [How to create a UNIQUE table constraint with migrations](https://www.ruby-forum.com/t/how-to-create-a-unique-table-constraint-with-migrations/184080)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 10\
**Last updated:** [March 3, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/how-to-create-a-unique-table-constraint-with-migrations/184080 "2010-03-03T21:56:20Z")

</div>

Hi. This must be the most obvious thing to do, but I just can’t seem to find examples of how to do this. I would like to create a table with a table unique constraint on database level. In deed some migration code th…

---

## [Use "establish\_connection"](https://www.ruby-forum.com/t/use-establish-connection/182687)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [March 3, 2010, 9:49pm UTC](https://www.ruby-forum.com/t/use-establish-connection/182687 "2010-03-03T21:49:19Z")

</div>

Hi, I have 2 database for my application “development1” and “development2”. My default database is “development1”. But I have to update the “contacts” table which is in “davelopment2”. So I know that I have to use th…

---

## [Complex sql query. How to do with has\_many and belongs\_to?](https://www.ruby-forum.com/t/complex-sql-query-how-to-do-with-has-many-and-belongs-to/184475)

<div class="topic-metadata">

**Author:** [@webdesignporto](https://www.ruby-forum.com/u/webdesignporto)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 9:34pm UTC](https://www.ruby-forum.com/t/complex-sql-query-how-to-do-with-has-many-and-belongs-to/184475 "2010-03-03T21:34:34Z")

</div>

SELECT profiles.\*, friendships.updated\_at AS friendship\_updated\_at, friendships.profile\_id, friendships.friend\_id, friendships.accepted AS friendship\_accepted, friendships.rejected AS friendship\_rejected FROM profiles …

---

## [Using gsub to replace text with link from database](https://www.ruby-forum.com/t/using-gsub-to-replace-text-with-link-from-database/184520)

<div class="topic-metadata">

**Author:** [@allanium](https://www.ruby-forum.com/u/allanium)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/using-gsub-to-replace-text-with-link-from-database/184520 "2010-03-03T19:41:31Z")

</div>

I’m really close to solving this that I can smell it. In a nutshell I’m trying to create this: I have an app that has a database of baseball players. I’m trying to create a feature where you can copy and paste your b…

---

## [Eliminating .fieldWithErrors for labels](https://www.ruby-forum.com/t/eliminating-fieldwitherrors-for-labels/184515)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 7:17pm UTC](https://www.ruby-forum.com/t/eliminating-fieldwitherrors-for-labels/184515 "2010-03-03T19:17:18Z")

</div>

I would like to prevent Rails from wrapping my label tags inside the fieldWithErrors div. I found a way to do it, but was hoping that there’s a better solution. Here’s and example from a git diff that shows what I’ve …

---

## [I cant run the capify. command in my ubuntu machine](https://www.ruby-forum.com/t/i-cant-run-the-capify-command-in-my-ubuntu-machine/167029)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/i-cant-run-the-capify-command-in-my-ubuntu-machine/167029 "2010-03-03T18:47:20Z")

</div>

i am the lastest rails release 2.3.2 and when i try to run capify.command i get this error pedro@pedroC:~/railsapp$ sudo gem install capistrano Successfully installed net-ssh-2.0.11 Successfully installed net-sftp-2.…

---

## [Mongrel not starting](https://www.ruby-forum.com/t/mongrel-not-starting/184501)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [March 3, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/mongrel-not-starting/184501 "2010-03-03T18:15:50Z")

</div>

Hello all, I’m have a problem starting Mongrel. I get the following… user-fc0e6f:ProjectDB johnmcleod$ script/server mongrel ^C/Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/gems.rb:11:in require': Interrupt …

---

## [SQL Server 2008](https://www.ruby-forum.com/t/sql-server-2008/184505)

<div class="topic-metadata">

**Author:** [@Steven\_RSElliott\_J](https://www.ruby-forum.com/u/Steven_RSElliott_J)\
**Replies:** 2\
**Last updated:** [March 3, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/sql-server-2008/184505 "2010-03-03T17:41:05Z")

</div>

Hello friends, I have been asked to write front-end for an accounting system that would allow customers to view their bill and pay online, reconcile their bill, add/delete people that they are paying for etc. The da…

---

## [Html/JavaScript/CSS code ouput in TextArea-- Best Ways](https://www.ruby-forum.com/t/html-javascript-css-code-ouput-in-textarea-best-ways/184472)

<div class="topic-metadata">

**Author:** [@smarter](https://www.ruby-forum.com/u/smarter)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 5:35pm UTC](https://www.ruby-forum.com/t/html-javascript-css-code-ouput-in-textarea-best-ways/184472 "2010-03-03T17:35:08Z")

</div>

Hello: What would be the best way to Output Code in TextArea for a UI component? The Rails App View is pure HTML and JavaScript. 1.render in text for controller action and the text is the code string. The \< and \> et…

---

## [Need ETL admin IBM InfoSphere exp - urgent](https://www.ruby-forum.com/t/need-etl-admin-ibm-infosphere-exp-urgent/184503)

<div class="topic-metadata">

**Author:** [@Robinson\_Crusoe\_Abe](https://www.ruby-forum.com/u/Robinson_Crusoe_Abe)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 4:29pm UTC](https://www.ruby-forum.com/t/need-etl-admin-ibm-infosphere-exp-urgent/184503 "2010-03-03T16:29:05Z")

</div>

Hi, We have the following requirement. Kindly send me your consultants resume if available and interested. ETL Admin Austin, TX • Position: ETL Admin with IBM InfoSphere exp • Location: Austin, TX • Duration: 6…

---

## [How to clear an input box from the controller?](https://www.ruby-forum.com/t/how-to-clear-an-input-box-from-the-controller/184488)

<div class="topic-metadata">

**Author:** [@hostep](https://www.ruby-forum.com/u/hostep)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 3:59pm UTC](https://www.ruby-forum.com/t/how-to-clear-an-input-box-from-the-controller/184488 "2010-03-03T15:59:32Z")

</div>

hi! I have a normal text input box on a page. The controller renders results to another div, but I need to clear the content of the input box after a search. Most of my interaction is done with something like page.re…

---

## [Aliased render](https://www.ruby-forum.com/t/aliased-render/184496)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 1:53pm UTC](https://www.ruby-forum.com/t/aliased-render/184496 "2010-03-03T13:53:39Z")

</div>

Hi In my routes.rb I have map.login ‘/login’,:controller =\> :user\_sessions, :action =\> :new Now I have controller action as def create @user\_session = UserSession.new(params\[:user\_session\]) if @user\_session.save r…

---

## [Single table inheritance](https://www.ruby-forum.com/t/single-table-inheritance/184444)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 10:07am UTC](https://www.ruby-forum.com/t/single-table-inheritance/184444 "2010-03-03T10:07:46Z")

</div>

Hi all plz hel me 1 2 3 4 5 6 7 8 \*im using single table inheritance in thirdpartycompany model ThirdPartyCompany \< Company now im creating a new thirdpartycompant using thirdpartycompany controller @third…

---

## [Memcached: "no such file to load -- memcache-client" when running script/console](https://www.ruby-forum.com/t/memcached-no-such-file-to-load-memcache-client-when-running-script-console/184479)

<div class="topic-metadata">

**Author:** [@uberllama](https://www.ruby-forum.com/u/uberllama)\
**Replies:** 2\
**Last updated:** [March 3, 2010, 9:59am UTC](https://www.ruby-forum.com/t/memcached-no-such-file-to-load-memcache-client-when-running-script-console/184479 "2010-03-03T09:59:49Z")

</div>

Hi folks. I’ve started down the memcached path and everything was running grand until I decided to start up my console. I have manually installed libevent 1.4.13 and memcached 1.4.4 into /usr/local, following which I …

---

## [How I Do](https://www.ruby-forum.com/t/how-i-do/184467)

<div class="topic-metadata">

**Author:** [@kirkgo](https://www.ruby-forum.com/u/kirkgo)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 3:06am UTC](https://www.ruby-forum.com/t/how-i-do/184467 "2010-03-03T03:06:14Z")

</div>

How I do to get ActiveRecord validation errors using ExtJS? In this case, I’m using Json. Thanks!

---

## [Weird sort](https://www.ruby-forum.com/t/weird-sort/184458)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 1\
**Last updated:** [March 3, 2010, 3:04am UTC](https://www.ruby-forum.com/t/weird-sort/184458 "2010-03-03T03:04:14Z")

</div>

Hi guys: Having this strange problem using Rails on Postgres. I’m trying to count up the records that match a certain created\_at date, but they don’t seem to be grouping in order. Tip: this worked fine in MySQL, but I…

---

## [Asset cache (timestamp after the image link)](https://www.ruby-forum.com/t/asset-cache-timestamp-after-the-image-link/184466)

<div class="topic-metadata">

**Author:** [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Replies:** 0\
**Last updated:** [March 3, 2010, 2:55am UTC](https://www.ruby-forum.com/t/asset-cache-timestamp-after-the-image-link/184466 "2010-03-03T02:55:55Z")

</div>

For browser cache purpose, asset\_helper help us to add a timestamp (integer) after image, javascript and css files (http://www.example.com/image.jpg?123456), but which seems doesn’t working properly in my production s…

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

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