# Rails

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

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

---

## [How to work with the Old Book and New Code for 2.0.2](https://www.ruby-forum.com/t/how-to-work-with-the-old-book-and-new-code-for-2-0-2/139609)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 6\
**Last updated:** [June 7, 2008, 7:42am UTC](https://www.ruby-forum.com/t/how-to-work-with-the-old-book-and-new-code-for-2-0-2/139609 "2008-06-07T07:42:09Z")

</div>

Hi, I own few good books based on rails 1.2. Its good enough but now outdated since many things have changed from 1.2 to 2.0.2 I have downloaded the codes in 2.0.2. But I am confused, how should i read the book and …

---

## [User Login](https://www.ruby-forum.com/t/user-login/139344)

<div class="topic-metadata">

**Author:** [@cz231](https://www.ruby-forum.com/u/cz231)\
**Replies:** 10\
**Last updated:** [June 7, 2008, 5:15am UTC](https://www.ruby-forum.com/t/user-login/139344 "2008-06-07T05:15:16Z")

</div>

Hi, I’m creating a website with Ruby on Rails, that has a user account feature. On the side bar, I have a login form. But if the user logs in, I want it to no display the user login form, but rather hello user\_name. …

---

## [I don't understand the reject syntax {|a|](https://www.ruby-forum.com/t/i-dont-understand-the-reject-syntax-a/139559)

<div class="topic-metadata">

**Author:** [@victordeandres](https://www.ruby-forum.com/u/victordeandres)\
**Replies:** 2\
**Last updated:** [June 7, 2008, 1:25am UTC](https://www.ruby-forum.com/t/i-dont-understand-the-reject-syntax-a/139559 "2008-06-07T01:25:47Z")

</div>

I have the following line of code, anyone could decypher this syntax ? @teams.reject {|a| a.sport.id != @sport.id }.sort { |a,b| b.points \<=\> a.points } \[0…2\]

---

## [Hacer referencia a distintos campos de distintas tablas](https://www.ruby-forum.com/t/hacer-referencia-a-distintos-campos-de-distintas-tablas/139739)

<div class="topic-metadata">

**Author:** [@arriquito](https://www.ruby-forum.com/u/arriquito)\
**Replies:** 1\
**Last updated:** [June 7, 2008, 12:46am UTC](https://www.ruby-forum.com/t/hacer-referencia-a-distintos-campos-de-distintas-tablas/139739 "2008-06-07T00:46:31Z")

</div>

Hola, soy demasiado nuevo en RoR, apenas llevo un par de semanas. En este momento me he trabado, y ya llevo unos dias con el problema que quiero hacer referencia a un campo de una tabla xx que ya esta seleccionado el …

---

## [Ajax site needs help](https://www.ruby-forum.com/t/ajax-site-needs-help/139789)

<div class="topic-metadata">

**Author:** [@nottiger](https://www.ruby-forum.com/u/nottiger)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 12:37am UTC](https://www.ruby-forum.com/t/ajax-site-needs-help/139789 "2008-06-07T00:37:06Z")

</div>

Hi All from Cambridge NZ, We have paused development with http://www.type-any-circle-of-six.com/ simply because we ran out of money end of 2007 Off topic as not Ruby site! - but our site is a simple Ajax web function…

---

## [Oracle text search](https://www.ruby-forum.com/t/oracle-text-search/139687)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [June 7, 2008, 12:35am UTC](https://www.ruby-forum.com/t/oracle-text-search/139687 "2008-06-07T00:35:56Z")

</div>

Hi, I’ve been asked to move an application to Oracle. It uses Ferret drb for text search \[& its been really stable thank you very much\]. Any one have any thoughts on how to do text searching in Oracle?

---

## [In\_place\_editor\_field in Rails 2.0.2](https://www.ruby-forum.com/t/in-place-editor-field-in-rails-2-0-2/139788)

<div class="topic-metadata">

**Author:** [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Replies:** 0\
**Last updated:** [June 7, 2008, 12:34am UTC](https://www.ruby-forum.com/t/in-place-editor-field-in-rails-2-0-2/139788 "2008-06-07T00:34:46Z")

</div>

I’m attempting to get an in\_place\_editor\_field working in my index view. I have the following: index.html.erb \<% for profile in @profiles %\> \<% div\_for(profile) do %\> \<% @profile = profile %\> \<%= in\_place\_editor\_fi…

---

## [Mocha stub for instance variable assignment](https://www.ruby-forum.com/t/mocha-stub-for-instance-variable-assignment/139780)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 1\
**Last updated:** [June 7, 2008, 12:13am UTC](https://www.ruby-forum.com/t/mocha-stub-for-instance-variable-assignment/139780 "2008-06-07T00:13:33Z")

</div>

Hi, I’m getting the following error when running spec on my controller: #Mock:core.core\_file=(#Mock:core\_file) - expected calls: 0, actual calls: 1 This is my mocha rspec setup: @core = mock(‘core’) core\_file = moc…

---

## [Rails 2.1 and validates\_length\_of](https://www.ruby-forum.com/t/rails-2-1-and-validates-length-of/139785)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-validates-length-of/139785 "2008-06-06T23:43:38Z")

</div>

Hi, I’m getting some weirdness when using validates\_length\_of and Rails 2.1 class User \< ActiveRecord::Base include Authentication include Authentication::ByPassword include Authentication::ByCookieToken validates…

---

## [Need some help/advice storying History](https://www.ruby-forum.com/t/need-some-help-advice-storying-history/139775)

<div class="topic-metadata">

**Author:** [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/need-some-help-advice-storying-history/139775 "2008-06-06T23:41:50Z")

</div>

Hi guys, I need some help storing Medical Record history. Basically I will need any change in a row of data to be stored some where. All I can think of is to copy the row and the change and re-store it in the database…

---

## [Mod\_rails fedora core](https://www.ruby-forum.com/t/mod-rails-fedora-core/135081)

<div class="topic-metadata">

**Author:** [@fdsa](https://www.ruby-forum.com/u/fdsa)\
**Replies:** 6\
**Last updated:** [June 6, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/mod-rails-fedora-core/135081 "2008-06-06T22:14:59Z")

</div>

ive found a couple other posts with similar errors, but they turn out to be permissions which doesnt seem to be the case here. any ideas? first it does something like this : \[30140:Hooks.cpp:370\] Processing HTTP reque…

---

## [Attachments using actionmailer](https://www.ruby-forum.com/t/attachments-using-actionmailer/139763)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/attachments-using-actionmailer/139763 "2008-06-06T22:06:24Z")

</div>

Hello, I have seen examples for attachment using action mailer in rails. They all say that you need to mention the content type of the file type attached and in the exmaple they give the content type explicitly(i.e …

---

## [FREE Entity Relationship Diagram Software](https://www.ruby-forum.com/t/free-entity-relationship-diagram-software/139777)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/free-entity-relationship-diagram-software/139777 "2008-06-06T22:05:33Z")

</div>

Does anyone know of a free entity relationship diagram software? My pencil and paper diagrams are getting rather elaborate and overlapping and hard to update. I used to use WO Modeler and it had an Entity Relationship…

---

## [Java/Ruby Developer](https://www.ruby-forum.com/t/java-ruby-developer/139771)

<div class="topic-metadata">

**Author:** [@adesordi](https://www.ruby-forum.com/u/adesordi)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 9:36pm UTC](https://www.ruby-forum.com/t/java-ruby-developer/139771 "2008-06-06T21:36:15Z")

</div>

Software Developer with Java/Ruby experience Do you enjoy being in an environment that promotes creativity? Do you enjoy solving problems? Do you enjoy working in a fun, casual and relaxed environment? Do you enjoy b…

---

## [How to Build a PopUp Menu](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724)

<div class="topic-metadata">

**Author:** [@baberjaved](https://www.ruby-forum.com/u/baberjaved)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724 "2008-06-06T21:28:38Z")

</div>

I want to make a table with clickable columns (better if they can also be highlighted) which when clicked opens up a pop up menu which contains a form something like the Google Calender if anyone has seen it… Can anyo…

---

## [Partial updates and validations](https://www.ruby-forum.com/t/partial-updates-and-validations/139769)

<div class="topic-metadata">

**Author:** [@Virginian](https://www.ruby-forum.com/u/Virginian)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/partial-updates-and-validations/139769 "2008-06-06T21:05:39Z")

</div>

Given a very wide table from a legacy database, I am going through a form wizard updating specific attributes on different pages. Is there a way to check to run validates\_presence\_of only on specific attributes that h…

---

## [High volume email sending](https://www.ruby-forum.com/t/high-volume-email-sending/139580)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 4\
**Last updated:** [June 6, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/high-volume-email-sending/139580 "2008-06-06T20:50:54Z")

</div>

I’m wondering if anyone here has worked on an app that involved sending lots of emails (1000+ emails per hour) from inside the rails app. Did you use sendmail, an smtp server or a specialized service?

---

## [Redirect 302 then redirect 304](https://www.ruby-forum.com/t/redirect-302-then-redirect-304/139767)

<div class="topic-metadata">

**Author:** [@jdoconnor](https://www.ruby-forum.com/u/jdoconnor)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 8:44pm UTC](https://www.ruby-forum.com/t/redirect-302-then-redirect-304/139767 "2008-06-06T20:44:09Z")

</div>

I have multiple instances where I need use redirect\_to in a controller, and two of them exhibit the problem that I’m describing (the two that update the record on which their acting) On my development server (mac, web…

---

## [One to many asscoaiation](https://www.ruby-forum.com/t/one-to-many-asscoaiation/139755)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/one-to-many-asscoaiation/139755 "2008-06-06T19:22:53Z")

</div>

I have an account and an account can have many creditcards, for example. So I have my models set as: class Account \< ActiveRecord::Base has\_many :creditcards end and class Creditcards \< ActiveRecord::Base belongs\_…

---

## [Mongrel cluster mysteriously stopping when using shared FS](https://www.ruby-forum.com/t/mongrel-cluster-mysteriously-stopping-when-using-shared-fs/139758)

<div class="topic-metadata">

**Author:** [@fjlj](https://www.ruby-forum.com/u/fjlj)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-mysteriously-stopping-when-using-shared-fs/139758 "2008-06-06T19:14:58Z")

</div>

Hi, I have a number of servers running mongrel cluster all of whom feed off of a shared filesystem (OCFS2). Each cluster has its own mongrel\_cluster\_web2.yml file with distinct PID and Log file names. In theory the…

---

## [Ruby on Rails developer Job](https://www.ruby-forum.com/t/ruby-on-rails-developer-job/137925)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-job/137925 "2008-06-06T18:52:35Z")

</div>

Hi, we are a Germany / US based company, looking for experienced Ruby on Rails developer for several projects. The projects ate moduar and planned for a longer timeframe, so we are looking for continous relationship …

---

## [Rescuing REXML::ParseException](https://www.ruby-forum.com/t/rescuing-rexml-parseexception/139751)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/rescuing-rexml-parseexception/139751 "2008-06-06T18:28:52Z")

</div>

i try to rescue REXML::ParseException in rescue\_action\_in\_public but nothing works always a “Stat.us: 500 Internal Server Error”. here is the command i pass to test it: curl -H ‘Content-Type: application/xml’ -H “Acc…

---

## [Problem with rails environment with cygwin...mysql doesn't](https://www.ruby-forum.com/t/problem-with-rails-environment-with-cygwin-mysql-doesnt/139448)

<div class="topic-metadata">

**Author:** [@m4lloc](https://www.ruby-forum.com/u/m4lloc)\
**Replies:** 16\
**Last updated:** [June 6, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/problem-with-rails-environment-with-cygwin-mysql-doesnt/139448 "2008-06-06T17:47:02Z")

</div>

I have rails 1.2.2, ruby 1.8, mysql 5 and Rad Rails in my win XP and this stack works fine. But I’m trying to use rails 2.1, mongrel, capistrano, git, mysql all in cygwin and e Text Editor.The only think that doesn’t…

---

## [Accessing Params Hash form Action Mailer Model](https://www.ruby-forum.com/t/accessing-params-hash-form-action-mailer-model/139546)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 8\
**Last updated:** [June 6, 2008, 5:14pm UTC](https://www.ruby-forum.com/t/accessing-params-hash-form-action-mailer-model/139546 "2008-06-06T17:14:34Z")

</div>

I have used Action Mailer to collect data from a form and send it to a recipient. Rather than hard-code things like the subject, recipients, and return address into the model, I would like to include that information…

---

## [Pentaho integration](https://www.ruby-forum.com/t/pentaho-integration/139489)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 4:08pm UTC](https://www.ruby-forum.com/t/pentaho-integration/139489 "2008-06-06T16:08:24Z")

</div>

Hi Does anyone know if there is a pentaho integration gem/plugin on integration rails with pentaho? Regards Ivor

---

## [What is proper way to load lookup/reference data into test database?](https://www.ruby-forum.com/t/what-is-proper-way-to-load-lookup-reference-data-into-test-database/139675)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 3\
**Last updated:** [June 6, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/what-is-proper-way-to-load-lookup-reference-data-into-test-database/139675 "2008-06-06T16:02:30Z")

</div>

I’m just getting into writing tests for my first RoR app. I’ve got a few data migrations to load reference data (i.e. 2-char state abbrevs, payment types, etc.). How do I get that data into the test database? I unde…

---

## [Unit test question](https://www.ruby-forum.com/t/unit-test-question/139572)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 23\
**Last updated:** [June 6, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/unit-test-question/139572 "2008-06-06T15:52:57Z")

</div>

In development and production, I’ve got postgresql constraints that prevent deleting a CaseManager if there is a Client that belongs to that CaseManager. In unit tests…and obviously in my testing db, those restriction…

---

## [Need help with Decryption using blowfish CBC](https://www.ruby-forum.com/t/need-help-with-decryption-using-blowfish-cbc/139735)

<div class="topic-metadata">

**Author:** [@FrikShun](https://www.ruby-forum.com/u/FrikShun)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/need-help-with-decryption-using-blowfish-cbc/139735 "2008-06-06T15:31:35Z")

</div>

Hello all, Hoping someone can help me out here. I’ve burned almost a week trying to figure out how to decrypt an image file that has been encrypted using Blowfish CBC. I found some code on the net and have modified …

---

## [Configuration Inquiry](https://www.ruby-forum.com/t/configuration-inquiry/139729)

<div class="topic-metadata">

**Author:** [@visaolive](https://www.ruby-forum.com/u/visaolive)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/configuration-inquiry/139729 "2008-06-06T15:28:36Z")

</div>

I’ve been racking my brain on configurations of Ruby, Rails, and Streamlined or Active Scaffold. It always seems that upon starting my web server, I receive error messages which keeps my web server from starting prope…

---

## [Ultrasphinx and utf8 searching](https://www.ruby-forum.com/t/ultrasphinx-and-utf8-searching/139733)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/ultrasphinx-and-utf8-searching/139733 "2008-06-06T15:09:01Z")

</div>

I am having a serious problem with ultrasphinx and not sure where to turn for help! We have an object that has this in its is\_indexed field (with other things): {:class\_name =\> "Participant", :field =\> “na…

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

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