# Rails

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

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

---

## [Session Problem with Ajax Call](https://www.ruby-forum.com/t/session-problem-with-ajax-call/107205)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 9:24am UTC](https://www.ruby-forum.com/t/session-problem-with-ajax-call/107205 "2007-06-22T09:24:41Z")

</div>

Hai, I am totally new to Ajax. I am trying to use ajax in my project. Its working fine, I am getting problem while session time expires. If session expires means i am redirecting to login page.Onclick i am calling on…

---

## [One-to-one, compound primary key, naming conventions](https://www.ruby-forum.com/t/one-to-one-compound-primary-key-naming-conventions/107398)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 11\
**Last updated:** [June 22, 2007, 8:42am UTC](https://www.ruby-forum.com/t/one-to-one-compound-primary-key-naming-conventions/107398 "2007-06-22T08:42:36Z")

</div>

My understanding is that, given tables Alpha and Beta that the table which holds the 1-to-1 relation will be called Alpha\_Beta (or is it alpha\_beta?). So far so good. alpha\_beta will have, lets say, two fields: alph…

---

## [Observe\_form only works once](https://www.ruby-forum.com/t/observe-form-only-works-once/107490)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 1\
**Last updated:** [June 22, 2007, 7:37am UTC](https://www.ruby-forum.com/t/observe-form-only-works-once/107490 "2007-06-22T07:37:58Z")

</div>

I’m using observe\_form for a simple ajax rating/voting system. When the user changes the form it works great. However, I replace the form with a :partial in my ajax data returned to reflect the new rating. For some re…

---

## [\[ANN\] RubyWorks 0.0.2 - Rails production stack, now with Deb](https://www.ruby-forum.com/t/ann-rubyworks-0-0-2-rails-production-stack-now-with-deb/107486)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 5:53am UTC](https://www.ruby-forum.com/t/ann-rubyworks-0-0-2-rails-production-stack-now-with-deb/107486 "2007-06-22T05:53:22Z")

</div>

RubyWorks production stack is a collection of open-source software required to host a RubyOnRails application on a Linux server, developed by ThoughtWorks Studios. To set up a production Rails server, you point a pack…

---

## [Rails On Emacs (in english)](https://www.ruby-forum.com/t/rails-on-emacs-in-english/107478)

<div class="topic-metadata">

**Author:** [@limux](https://www.ruby-forum.com/u/limux)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 5:32am UTC](https://www.ruby-forum.com/t/rails-on-emacs-in-english/107478 "2007-06-22T05:32:21Z")

</div>

Rails On Emacs (in english) is a article on http://dima-exe.ru/rails-on-emacs, there are several screenshot, what’s name of color theme used in it’s emacs?

---

## [OLAP and Models / ActiveRecord etc etc](https://www.ruby-forum.com/t/olap-and-models-activerecord-etc-etc/107481)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [June 22, 2007, 5:13am UTC](https://www.ruby-forum.com/t/olap-and-models-activerecord-etc-etc/107481 "2007-06-22T05:13:21Z")

</div>

How would you handle reporting on an OLAP database? I have no issues whatsoever using the Rails ActiveRecord way of doing things for my OLTP setup, but for OLAP it “seems” (I haven’t tried it yet) to be one heck of a …

---

## [Using through with habtm](https://www.ruby-forum.com/t/using-through-with-habtm/107482)

<div class="topic-metadata">

**Author:** [@Serengeti](https://www.ruby-forum.com/u/Serengeti)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 4:51am UTC](https://www.ruby-forum.com/t/using-through-with-habtm/107482 "2007-06-22T04:51:20Z")

</div>

I have two models with an habtm relationship: Foo has\_and\_belongs\_to\_many Bars (and vice-versa, obviously). Let’s say Bar has\_many Bazs (how the heck do you pluralize Baz?). It would be nice to be able to say that Foo…

---

## [RSS reader for rails application](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781)

<div class="topic-metadata">

**Author:** [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Replies:** 5\
**Last updated:** [June 22, 2007, 4:22am UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781 "2007-06-22T04:22:12Z")

</div>

Hi, I was wondering if there’s an RSS reader plugin of some sort available that will basically get the RSS feeds for me and then allow my Rails application to take those feeds and present them on my website. Would a…

---

## [How to reuse ActiveRecord::Validations](https://www.ruby-forum.com/t/how-to-reuse-activerecord-validations/107475)

<div class="topic-metadata">

**Author:** [@gpygood](https://www.ruby-forum.com/u/gpygood)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 3:45am UTC](https://www.ruby-forum.com/t/how-to-reuse-activerecord-validations/107475 "2007-06-22T03:45:05Z")

</div>

I want to reuser ActiveRecord::Validations with out ActiveRecord::Base How to do this ? class TempModel include ActiveRecord::Validations validate\_presence\_of :title end

---

## [X-sendfile horrendously slow?](https://www.ruby-forum.com/t/x-sendfile-horrendously-slow/107424)

<div class="topic-metadata">

**Author:** [@pdovy](https://www.ruby-forum.com/u/pdovy)\
**Replies:** 1\
**Last updated:** [June 22, 2007, 3:34am UTC](https://www.ruby-forum.com/t/x-sendfile-horrendously-slow/107424 "2007-06-22T03:34:15Z")

</div>

I’m using Camping (though I suspect this applies to RoR just as well, and if you have an RoR specific answer I’d be happy to hear it, I may switch) to do a number of things for an internal application, one of which is…

---

## [Bottom Up ORM / scaffolding](https://www.ruby-forum.com/t/bottom-up-orm-scaffolding/107474)

<div class="topic-metadata">

**Author:** [@ElKlaaso](https://www.ruby-forum.com/u/ElKlaaso)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 3:13am UTC](https://www.ruby-forum.com/t/bottom-up-orm-scaffolding/107474 "2007-06-22T03:13:12Z")

</div>

Hi, I am a total newbie to ruby on rails, but have been investigating it and ruby and ruby on rails seem to have a LOT of things i really like about a programming language… liked most of it… except 1 thing… And that …

---

## [Dont understand unit test self.use\_instantiated\_fixtures](https://www.ruby-forum.com/t/dont-understand-unit-test-self-use-instantiated-fixtures/107473)

<div class="topic-metadata">

**Author:** [@mjt](https://www.ruby-forum.com/u/mjt)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 3:11am UTC](https://www.ruby-forum.com/t/dont-understand-unit-test-self-use-instantiated-fixtures/107473 "2007-06-22T03:11:12Z")

</div>

Hi all, I am trying to do some tests based on a tutorial here http://www.aidanf.net/rails\_user\_authentication\_tutorial here is the two tests that seem to ‘blow up’ when I have the use\_instantiated\_fixtures line in pl…

---

## [Facebook api](https://www.ruby-forum.com/t/facebook-api/106592)

<div class="topic-metadata">

**Author:** [@arun123](https://www.ruby-forum.com/u/arun123)\
**Replies:** 15\
**Last updated:** [June 22, 2007, 1:21am UTC](https://www.ruby-forum.com/t/facebook-api/106592 "2007-06-22T01:21:06Z")

</div>

hello guys, i want to use facebook api for my app any body have any idea… – Arun A.

---

## [Migrations don't work :-(](https://www.ruby-forum.com/t/migrations-dont-work/107467)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 2\
**Last updated:** [June 22, 2007, 1:13am UTC](https://www.ruby-forum.com/t/migrations-dont-work/107467 "2007-06-22T01:13:02Z")

</div>

Ran rake db:migrate after adding a new table and this is what happened: C:\\my\_bigz\>rake db:migrate --trace (in C:/my\_bigz) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Execute environment …

---

## [Unit Testing Custom Validation Method](https://www.ruby-forum.com/t/unit-testing-custom-validation-method/107466)

<div class="topic-metadata">

**Author:** [@LeahH](https://www.ruby-forum.com/u/LeahH)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 12:52am UTC](https://www.ruby-forum.com/t/unit-testing-custom-validation-method/107466 "2007-06-22T00:52:00Z")

</div>

I posted this on comp.lang.ruby and thought it would be in my best interest to post it here too. I’ve written a custom validation method (to validate an email address). It looks like module ActiveRecord module Vali…

---

## [Sortable\_element -- need a strategy](https://www.ruby-forum.com/t/sortable-element-need-a-strategy/107465)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 0\
**Last updated:** [June 22, 2007, 12:36am UTC](https://www.ruby-forum.com/t/sortable-element-need-a-strategy/107465 "2007-06-22T00:36:00Z")

</div>

Hi, I have listings that are numbered. When I re-sort them, the first page of results re-sorts fine in the database, but the second page is ignored. How do I renumber all listings? Also, though the first page is re…

---

## [Off Topic: VMware Vs Parallels for Deployment](https://www.ruby-forum.com/t/off-topic-vmware-vs-parallels-for-deployment/107455)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 22, 2007, 12:11am UTC](https://www.ruby-forum.com/t/off-topic-vmware-vs-parallels-for-deployment/107455 "2007-06-22T00:11:57Z")

</div>

I am planning to buy either VMware or Parallels so that I can install Ubuntu and use that instance as a deployment environment. I am not sure which one is better for this purpose. Please share your experience on this …

---

## [Problem with redirect\_to() and VirtualHost](https://www.ruby-forum.com/t/problem-with-redirect-to-and-virtualhost/107461)

<div class="topic-metadata">

**Author:** [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/problem-with-redirect-to-and-virtualhost/107461 "2007-06-21T23:48:53Z")

</div>

I’m running into a problem with redirect\_to() and Apache’s VirtualHost facility. I have probably have something set up wrong, but I’m not even sure how to approach the problem. Background: We have DNS set up to retu…

---

## [Multiple User Types](https://www.ruby-forum.com/t/multiple-user-types/107425)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/multiple-user-types/107425 "2007-06-21T23:31:31Z")

</div>

Hi, I was hoping to create an application with multiple user types; examples: consumers, businesses, employers, etc… where each user type would have a specialized profile. As I’m new to rails I’m not really sure how t…

---

## [Help with highlight](https://www.ruby-forum.com/t/help-with-highlight/107456)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/help-with-highlight/107456 "2007-06-21T23:18:48Z")

</div>

Hi, I have a search box and seach results on my website. I have TextHelper’s hightlight working fine, but in addition to highlighting a phrase, I’d like to highlight the occurrence of each word in that phrase, in all…

---

## [Custom errors for validates\_presence, etc](https://www.ruby-forum.com/t/custom-errors-for-validates-presence-etc/106414)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/custom-errors-for-validates-presence-etc/106414 "2007-06-21T22:08:36Z")

</div>

I am trying to figure out how to customize the error messages when I use validates\_presence\_of. I am validating a user name and I use \<%= error\_messages\_for ‘user’ %\> in my view to display the messages. I know you c…

---

## [Render :partial =\> :url - is it possible?](https://www.ruby-forum.com/t/render-partial-url-is-it-possible/107441)

<div class="topic-metadata">

**Author:** [@James\_McGuigan](https://www.ruby-forum.com/u/James_McGuigan)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/render-partial-url-is-it-possible/107441 "2007-06-21T22:01:35Z")

</div>

Hi, this is my first post to the list. I’m still learning the rails framework, having done most of my previous web development in PHP. I’ve done a bit of googling for the answer to this question, but maybe I’m just la…

---

## [Ruby on Rails Developer Needed](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed/107442)

<div class="topic-metadata">

**Author:** [@alicia](https://www.ruby-forum.com/u/alicia)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed/107442 "2007-06-21T21:57:34Z")

</div>

It was suggested by a fellow ruby on rails developer that I post here. I am looking for a strong developer for a permanent opening. We will pay relo if needed. Please contact me directly if interested: removed\_emai…

---

## [How can I render an existing complete web page within rails?](https://www.ruby-forum.com/t/how-can-i-render-an-existing-complete-web-page-within-rails/107443)

<div class="topic-metadata">

**Author:** [@epo001](https://www.ruby-forum.com/u/epo001)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/how-can-i-render-an-existing-complete-web-page-within-rails/107443 "2007-06-21T21:57:29Z")

</div>

I’ve looked for an answer to this but not found anything dealing with complete html pages. I have a collection of complete web pages (harvested and localized by wget) my app classifies these and presents the user with…

---

## [Does activeresource only work with edge?](https://www.ruby-forum.com/t/does-activeresource-only-work-with-edge/107436)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/does-activeresource-only-work-with-edge/107436 "2007-06-21T20:27:23Z")

</div>

hey all, I’ve just installed the activeresource gem and it wasn’t working, so I did gem update rails and it worked. But now I have rails-1.2.3.6906 and I think this is edge right? Is there a way to work on regular ra…

---

## [Help w/ rb-termios, rb-mysql installation](https://www.ruby-forum.com/t/help-w-rb-termios-rb-mysql-installation/107432)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 21, 2007, 8:09pm UTC](https://www.ruby-forum.com/t/help-w-rb-termios-rb-mysql-installation/107432 "2007-06-21T20:09:06Z")

</div>

I’m following the tutorial at http://blog.duncandavidson.com/2006/04/sandboxing\_rail.html to install Rails using Macports, but I’m running into some trouble with the rb-termios and rb-mysql installations: sudo port …

---

## [Monitoring Rails Application in Prouction](https://www.ruby-forum.com/t/monitoring-rails-application-in-prouction/107376)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 4\
**Last updated:** [June 21, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/monitoring-rails-application-in-prouction/107376 "2007-06-21T19:34:17Z")

</div>

Anyone have any suggested tools or plugins to monitor a rail application in production?

---

## [Radio button tag checked conditon](https://www.ruby-forum.com/t/radio-button-tag-checked-conditon/107412)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/radio-button-tag-checked-conditon/107412 "2007-06-21T19:08:56Z")

</div>

Hello Is it possible to pass a condition to radio\_button\_tag helper to check if smth is true or not? \<%for brand in @brands%\> \<%=radio\_button\_tag "product\[brand\_id\]", brand.id, :checked =\> true%\> \<%= brand.name %\> \<…

---

## [Mailer Template in Database](https://www.ruby-forum.com/t/mailer-template-in-database/107426)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 1\
**Last updated:** [June 21, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/mailer-template-in-database/107426 "2007-06-21T18:27:59Z")

</div>

Hi, I need to be able to save email templates in the database so that my client can make changes to the layout and text using a WYSIWYG editor. What I would like to do is enable him to completely change the template …

---

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

<div class="topic-metadata">

**Author:** [@Bill\_Hansley](https://www.ruby-forum.com/u/Bill_Hansley)\
**Replies:** 0\
**Last updated:** [June 21, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/oracle-adapter-weirdness/107428 "2007-06-21T18:25:58Z")

</div>

Hi all, I’m trying to put together a quickie front-end for a maintenance task that has to be done on a legacy Oracle database. In particular, putting a date criteria in my conditions clause causes rails not to return…

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

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