# Rails

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

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

---

## [Relationships between tables issue](https://www.ruby-forum.com/t/relationships-between-tables-issue/125184)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/relationships-between-tables-issue/125184 "2008-01-06T23:47:15Z")

</div>

Hi, there: I made two models - “task” and “comment” in my app without any connections each other, but now I wanna a “one to many” between them, saying one task has many comments, one comments has to belong to one tas…

---

## [Unable to log in to Rubyforge..... Again](https://www.ruby-forum.com/t/unable-to-log-in-to-rubyforge-again/125197)

<div class="topic-metadata">

**Author:** [@ellils](https://www.ruby-forum.com/u/ellils)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/unable-to-log-in-to-rubyforge-again/125197 "2008-01-06T23:18:32Z")

</div>

Hi there, I am having some problems logging in to Rubyforge. I managed to log in sometime ago but it seems that I cannot log in again. I keep getting the “Cookies must be enabled past this point.” and my cookies ARE…

---

## [Error! Ruby on Rails based on FastCGI, Hello world!](https://www.ruby-forum.com/t/error-ruby-on-rails-based-on-fastcgi-hello-world/125111)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 7\
**Last updated:** [January 6, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/error-ruby-on-rails-based-on-fastcgi-hello-world/125111 "2008-01-06T22:51:17Z")

</div>

Hey, I try to do my first steps in Ruby, and designed an “Hello World!” Application. Now I want to install this Application on an Apache server. I copied it to the “/public\_html/” Directory here: (the application is …

---

## [Get all logged in users?](https://www.ruby-forum.com/t/get-all-logged-in-users/125193)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/get-all-logged-in-users/125193 "2008-01-06T22:18:15Z")

</div>

Hi all, I’m fairly new to Ruby on Rails and I need some help on what is a fairly standard part of many web applications today. I need a way to know all users who are currently logged in. This can be used for keeping t…

---

## [Apache rewriting rule to access non-rails static page](https://www.ruby-forum.com/t/apache-rewriting-rule-to-access-non-rails-static-page/125177)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/apache-rewriting-rule-to-access-non-rails-static-page/125177 "2008-01-06T21:48:57Z")

</div>

I am running my rails app at : http://www.mydomain.tld which is used for all my http://www.mydomain.tld///… I have the following rewriting rules for Apache2 : DocumentRoot /var/rails/mydomain/current/public Rewrite…

---

## [Trying to remove HTML layout from RXML templates](https://www.ruby-forum.com/t/trying-to-remove-html-layout-from-rxml-templates/125119)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/trying-to-remove-html-layout-from-rxml-templates/125119 "2008-01-06T20:47:52Z")

</div>

Hi you all, I have a simple REST app with a controller method like this: def index @sdrs = Sdr.find(:all) respond\_to do |format| format.html format.xml end end The rxml is well constructed, however, what I get w…

---

## [Observer is deprecated and will be removed from Rails 2.0](https://www.ruby-forum.com/t/observer-is-deprecated-and-will-be-removed-from-rails-2-0/125163)

<div class="topic-metadata">

**Author:** [@oldbear](https://www.ruby-forum.com/u/oldbear)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/observer-is-deprecated-and-will-be-removed-from-rails-2-0/125163 "2008-01-06T20:31:21Z")

</div>

hi guys rails 1.2.6 run my code and find: DEPRECATION WARNING: observer is deprecated and will be removed from Rails 2.0 See Ruby on Rails — A web-app framework that includes everything needed to create database-back…

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125188)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125188 "2008-01-06T20:25:09Z")

</div>

Ruby noob here. Just installed Rails 2.0, and am having trouble with updating DB tables, using the ApplicationController. The controller was generated using the command: rake db:migrate ruby script/generate controll…

---

## [Help with date format](https://www.ruby-forum.com/t/help-with-date-format/125144)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 8:09pm UTC](https://www.ruby-forum.com/t/help-with-date-format/125144 "2008-01-06T20:09:40Z")

</div>

HI Everybody, I have one date instant. I want to format the date using strftime method, and the result I want is 2008 Jan 06th Here How can I add the suffix with the day like (1st, 2nd, 3rd, 4th etc). Thanks with r…

---

## [Confused by the unit test results](https://www.ruby-forum.com/t/confused-by-the-unit-test-results/125029)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 5\
**Last updated:** [January 6, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/confused-by-the-unit-test-results/125029 "2008-01-06T17:58:13Z")

</div>

I’m testing the relation between two of my models: MessageThread (parent), which has\_many Message (children). When I run the following test, it gives me an error: test with a valid message def test\_valid\_message\_new …

---

## [Collect\_select conditional options={}](https://www.ruby-forum.com/t/collect-select-conditional-options/125174)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/collect-select-conditional-options/125174 "2008-01-06T17:48:14Z")

</div>

Hi, I’m trying to use a partial that acts as both the edit a view for my application. within this partial I have a collect\_select, for example, \<%= collection\_select(myTag, :product\_id, @products, :id, :description…

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125154)

<div class="topic-metadata">

**Author:** [@Harpoon](https://www.ruby-forum.com/u/Harpoon)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125154 "2008-01-06T16:36:42Z")

</div>

Ruby noob here. Just installed Rails 2.0, and am having trouble with updating DB tables, using the ApplicationController. My ApplicationController file looks like: class StoryController \< ApplicationController prote…

---

## [Im looking for RubyOnRails Hosting, but with many sides](https://www.ruby-forum.com/t/im-looking-for-rubyonrails-hosting-but-with-many-sides/125152)

<div class="topic-metadata">

**Author:** [@Michael\_N](https://www.ruby-forum.com/u/Michael_N)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/im-looking-for-rubyonrails-hosting-but-with-many-sides/125152 "2008-01-06T15:56:37Z")

</div>

Im looking for some RubyOnRails Hosting. but: i will seperate the domainregistry and the hosting. i want to point one or many domains to this hosting without to register the domains with the hosting company. i will on…

---

## [Another Engines 2.0 problem](https://www.ruby-forum.com/t/another-engines-2-0-problem/125118)

<div class="topic-metadata">

**Author:** [@Sean\_Schofield](https://www.ruby-forum.com/u/Sean_Schofield)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 10:18am UTC](https://www.ruby-forum.com/t/another-engines-2-0-problem/125118 "2008-01-06T10:18:24Z")

</div>

I’m having a brand new problem that seems to be caused by either Engines 2.0 and/or Rails 2.0.2. Everything was working fine until I upgraded both of these. I’m getting this message when I refresh a page. A copy of…

---

## [N00b question/issue](https://www.ruby-forum.com/t/n00b-question-issue/125146)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 8\
**Last updated:** [January 6, 2008, 8:08am UTC](https://www.ruby-forum.com/t/n00b-question-issue/125146 "2008-01-06T08:08:08Z")

</div>

i know this is n00b but i have searched and i can not figure it out. i am running instantrails on windows. i downloaded ajax\_scaffold and installed using script/generate in a new rails project. after configing the d…

---

## [Login ticket](https://www.ruby-forum.com/t/login-ticket/125147)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 7:25am UTC](https://www.ruby-forum.com/t/login-ticket/125147 "2008-01-06T07:25:16Z")

</div>

Hello frnds I want a plugin which will help me to generate a random ticket no A login ticket should automatically generated pass code, an expiration date, and a user who may log in with the pass code. It should provid…

---

## [Fixtures Munging Data?](https://www.ruby-forum.com/t/fixtures-munging-data/125047)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 5:45am UTC](https://www.ruby-forum.com/t/fixtures-munging-data/125047 "2008-01-06T05:45:31Z")

</div>

I export all my dev data into yaml files so that they can be version controlled along with the migrations. On one of my tables I have a MySQL varchar field called ‘name’. The yaml file for that table had numerical val…

---

## [Creating dynamically expanding forms](https://www.ruby-forum.com/t/creating-dynamically-expanding-forms/124699)

<div class="topic-metadata">

**Author:** [@rex](https://www.ruby-forum.com/u/rex)\
**Replies:** 3\
**Last updated:** [January 6, 2008, 5:42am UTC](https://www.ruby-forum.com/t/creating-dynamically-expanding-forms/124699 "2008-01-06T05:42:36Z")

</div>

Hello, I’m learning Rails right now, and as my first project I am trying to create a fun little useful website. However, I’m getting stuck on one of the steps, and was wondering what the easiest approach would be. Wh…

---

## [WYSIWYG / content formatting suggestions?](https://www.ruby-forum.com/t/wysiwyg-content-formatting-suggestions/125131)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 4:55am UTC](https://www.ruby-forum.com/t/wysiwyg-content-formatting-suggestions/125131 "2008-01-06T04:55:53Z")

</div>

Hey there, I am currently using plain textiled fields to allow formatting up to a certain degree, but if I let other users use my little project, they might not be so technologically savvy and might have problems with …

---

## [Large scale deployment](https://www.ruby-forum.com/t/large-scale-deployment/124988)

<div class="topic-metadata">

**Author:** [@Damien\_Hunter](https://www.ruby-forum.com/u/Damien_Hunter)\
**Replies:** 21\
**Last updated:** [January 6, 2008, 4:53am UTC](https://www.ruby-forum.com/t/large-scale-deployment/124988 "2008-01-06T04:53:32Z")

</div>

I’m looking to deploy a digital sign-up/appointment sheet application at a university. Can anyone give suggestions on the best setups to handle sporadic use by 8,000 individuals? Two major factors here are reliability…

---

## [Many-to-many relationhip](https://www.ruby-forum.com/t/many-to-many-relationhip/124892)

<div class="topic-metadata">

**Author:** [@dazonic](https://www.ruby-forum.com/u/dazonic)\
**Replies:** 7\
**Last updated:** [January 6, 2008, 4:36am UTC](https://www.ruby-forum.com/t/many-to-many-relationhip/124892 "2008-01-06T04:36:00Z")

</div>

Hello friendly railers! I’m really having trouble getting my head around database relationships. Is it set up in the model, or in the migration? I’m building a basic cart for tshirts, and this is what i’ve had in min…

---

## [ActiveMerchant SSL Cert Problem](https://www.ruby-forum.com/t/activemerchant-ssl-cert-problem/125136)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [January 6, 2008, 1:03am UTC](https://www.ruby-forum.com/t/activemerchant-ssl-cert-problem/125136 "2008-01-06T01:03:03Z")

</div>

I’m trying to get AM setup with PayPal and am getting this error: OpenSSL::X509::CertificateError: not enough data I have an ssl cert generated but I don’t know how to tell AM how to find it… any ideas? Thanks

---

## [Making REST /bugs/by\_state/open URL possible](https://www.ruby-forum.com/t/making-rest-bugs-by-state-open-url-possible/125132)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 1\
**Last updated:** [January 6, 2008, 12:12am UTC](https://www.ruby-forum.com/t/making-rest-bugs-by-state-open-url-possible/125132 "2008-01-06T00:12:10Z")

</div>

Hi you all, I have a REST app where I want to consult a resource by all its different attributes. So I may have the following URLs: List of bugs: /bugs The bug with id 1, and so on: /bugs/1 List of values of “whatev…

---

## [Engines' related Rails Development Mode errors (solved I think)](https://www.ruby-forum.com/t/engines-related-rails-development-mode-errors-solved-i-think/125117)

<div class="topic-metadata">

**Author:** [@Pascal\_Rettig](https://www.ruby-forum.com/u/Pascal_Rettig)\
**Replies:** 3\
**Last updated:** [January 5, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/engines-related-rails-development-mode-errors-solved-i-think/125117 "2008-01-05T23:46:13Z")

</div>

Hi All, I’m pretty new to Engines, but in upgrading a Rails application to 2.0 I decided to move a bunch of modules from the deprecated “components” directory to a new “vendor/modules” directory and Engines seemed lik…

---

## [Memory leak with WSDLDriverFactory?](https://www.ruby-forum.com/t/memory-leak-with-wsdldriverfactory/125115)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 1\
**Last updated:** [January 5, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/memory-leak-with-wsdldriverfactory/125115 "2008-01-05T22:01:16Z")

</div>

My app makes use of a 3rd party webservice to lookup company information. However, there seems to be a major memory leak with WSDLDriverFactory. I do: class MyService @@auth\_hash = { :username =\> ‘username’, :passw…

---

## [\[Repost, with Formatting\] Trying to understand unicode character entry, goes into postgres DB backi](https://www.ruby-forum.com/t/repost-with-formatting-trying-to-understand-unicode-character-entry-goes-into-postgres-db-backi/125127)

<div class="topic-metadata">

**Author:** [@Steven\_GSHarms](https://www.ruby-forum.com/u/Steven_GSHarms)\
**Replies:** 0\
**Last updated:** [January 5, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/repost-with-formatting-trying-to-understand-unicode-character-entry-goes-into-postgres-db-backi/125127 "2008-01-05T21:19:41Z")

</div>

Apologies on unformatted send previously, i hit Enter and the web UI posted, to my chagrin. Examine the Unicode standard’s code page collection for “Latin small letter a with macron”. Nets U0100.pdf “Latin sma…

---

## [Trying to understand unicode character entry, goes into postgres DB backing rails, saved to yaml as](https://www.ruby-forum.com/t/trying-to-understand-unicode-character-entry-goes-into-postgres-db-backing-rails-saved-to-yaml-as/125124)

<div class="topic-metadata">

**Author:** [@Steven\_GSHarms](https://www.ruby-forum.com/u/Steven_GSHarms)\
**Replies:** 0\
**Last updated:** [January 5, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/trying-to-understand-unicode-character-entry-goes-into-postgres-db-backing-rails-saved-to-yaml-as/125124 "2008-01-05T21:14:59Z")

</div>

Examine the Unicode standard’s code page collection for “Latin small letter a with macron”. Nets U0100.pdf “Latin small letter a with macron” appears on chart as 0101. This is a hexidemial number which points to U+01…

---

## [Highlighting words in text](https://www.ruby-forum.com/t/highlighting-words-in-text/125114)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/highlighting-words-in-text/125114 "2008-01-05T20:02:46Z")

</div>

If I have a string: @tmp = “This is a test string 1 2 3 testing…” and I want to higlight a string “test” when I show it on a page, so how I can do it? Result shold be like this: “This is a test string 1 2 3 testing” …

---

## [Gem install problem on os x](https://www.ruby-forum.com/t/gem-install-problem-on-os-x/115074)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 1\
**Last updated:** [January 5, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/gem-install-problem-on-os-x/115074 "2008-01-05T18:45:05Z")

</div>

I just got a mac monday and am trying to install ruby-debug, however, when I do it fails and gives me an error. Its happened with a few other gems too. I type “sudo gem install ruby-debug” and I get the following: In…

---

## [Building a recommendation engine in Rails](https://www.ruby-forum.com/t/building-a-recommendation-engine-in-rails/123529)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 2\
**Last updated:** [January 5, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/building-a-recommendation-engine-in-rails/123529 "2008-01-05T17:33:15Z")

</div>

Hi, I’m going to build a recommendation engine for our Intranet, which aims to recommend content and connections based on data that is stored in our database, such as tags, user-info etc. Anyone know of a good place t…

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

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