# Rails

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

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

---

## [Ruby on Rails and Databases](https://www.ruby-forum.com/t/ruby-on-rails-and-databases/116276)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [October 4, 2007, 10:08am UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-databases/116276 "2007-10-04T10:08:30Z")

</div>

Hi, all. I’m the architect for the database tooling in NetBeans, and I’d really like to learn more about what RoR developers need in terms of database tooling. I know that a lot of database details are taken care of …

---

## [Question on Nested Link & defining relationship](https://www.ruby-forum.com/t/question-on-nested-link-defining-relationship/115979)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [October 4, 2007, 6:38am UTC](https://www.ruby-forum.com/t/question-on-nested-link-defining-relationship/115979 "2007-10-04T06:38:36Z")

</div>

Hi, I am a newbie to ROR and ActiveScaffold, below please find my DB schema and the issue that I am seeing with relationship Table Userviews userview\_id (Prim Key) drama\_id - belongs to table Drama venue\_id - belong…

---

## [Searching a database](https://www.ruby-forum.com/t/searching-a-database/116256)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 6:28am UTC](https://www.ruby-forum.com/t/searching-a-database/116256 "2007-10-04T06:28:04Z")

</div>

I realize this is an SQL problem but figured a lot of people using ROR have came across this before. I pulled apart the string that was entered into the search form and stored it in textArray. The problem I am havin…

---

## [Belongs\_to associations on non-primary keys](https://www.ruby-forum.com/t/belongs-to-associations-on-non-primary-keys/116248)

<div class="topic-metadata">

**Author:** [@Drew](https://www.ruby-forum.com/u/Drew)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 6:12am UTC](https://www.ruby-forum.com/t/belongs-to-associations-on-non-primary-keys/116248 "2007-10-04T06:12:17Z")

</div>

I’d like to join two tables without using the primary key on either. Let’s say I have the following tables: /items id name item\_other\_key /item\_links id link\_id item\_other\_key created\_at I’d like to say item\_…

---

## [Module + Constant Issue](https://www.ruby-forum.com/t/module-constant-issue/116290)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 5:53am UTC](https://www.ruby-forum.com/t/module-constant-issue/116290 "2007-10-04T05:53:36Z")

</div>

I ran into the following problem in my application when I went from my dev environment to my staging environment. Modules and classes that were previously autoloaded just fine in dev ended up with a strange error in …

---

## [Added table column but scaffold script wont pick it up](https://www.ruby-forum.com/t/added-table-column-but-scaffold-script-wont-pick-it-up/116288)

<div class="topic-metadata">

**Author:** [@isea](https://www.ruby-forum.com/u/isea)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 5:43am UTC](https://www.ruby-forum.com/t/added-table-column-but-scaffold-script-wont-pick-it-up/116288 "2007-10-04T05:43:27Z")

</div>

Hello all, I tried adding a column to my db. After the column was added successfully I ran “ruby script/generate scaffold Product Admin” hoping that would recreate the scaffold and show my new column. However, it’s n…

---

## [Setting Accepts header for post method in functional test](https://www.ruby-forum.com/t/setting-accepts-header-for-post-method-in-functional-test/116284)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 4:42am UTC](https://www.ruby-forum.com/t/setting-accepts-header-for-post-method-in-functional-test/116284 "2007-10-04T04:42:17Z")

</div>

I can’t find where the post method is documented. post :create, :transcoder\_queue =\> { :campaign\_id =\> “1” } That is from my functional test. I want to be able to set the Accepts header for this request. how can I do…

---

## [\[n00b\] WEBrick hangs overnight -- my bug? Rails?](https://www.ruby-forum.com/t/n00b-webrick-hangs-overnight-my-bug-rails/116280)

<div class="topic-metadata">

**Author:** [@olie](https://www.ruby-forum.com/u/olie)\
**Replies:** 1\
**Last updated:** [October 4, 2007, 4:23am UTC](https://www.ruby-forum.com/t/n00b-webrick-hangs-overnight-my-bug-rails/116280 "2007-10-04T04:23:33Z")

</div>

I’ve got: $ ruby --version ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-linux\] $ rails --version Rails 1.2.3 and I’m running my app via ruby script/server, which brings up \[2007-10-03 11:03:44\] INFO WEBrick 1.3.1 \[…

---

## [Weird active record problem - goes away with cache\_classes change](https://www.ruby-forum.com/t/weird-active-record-problem-goes-away-with-cache-classes-change/116283)

<div class="topic-metadata">

**Author:** [@Obelix](https://www.ruby-forum.com/u/Obelix)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 3:13am UTC](https://www.ruby-forum.com/t/weird-active-record-problem-goes-away-with-cache-classes-change/116283 "2007-10-04T03:13:26Z")

</div>

I have three active record objects, User, Question and Answer Questions belong to a user and has\_many answers Answer belongs to a user Now, when I start with an array of answers, I can do this successfully: for a in…

---

## [Deployment issue](https://www.ruby-forum.com/t/deployment-issue/115975)

<div class="topic-metadata">

**Author:** [@jalal](https://www.ruby-forum.com/u/jalal)\
**Replies:** 6\
**Last updated:** [October 4, 2007, 2:19am UTC](https://www.ruby-forum.com/t/deployment-issue/115975 "2007-10-04T02:19:06Z")

</div>

hi everyone, being new to ROR, i am facing some problem with deployment. i don’t know but going through various books and online tutorials, i am feeling that deploying ROR application is not that easy. basically i us…

---

## [Implement invitation feature](https://www.ruby-forum.com/t/implement-invitation-feature/116273)

<div class="topic-metadata">

**Author:** [@Chuong\_Huynh](https://www.ruby-forum.com/u/Chuong_Huynh)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 1:07am UTC](https://www.ruby-forum.com/t/implement-invitation-feature/116273 "2007-10-04T01:07:12Z")

</div>

Hi all, I want to implement invitation feature, just like Gmail in the early days: Each user is grant a specific number of invitation A user can send invitations to a number of friends by entering their email addres…

---

## [\[ANN\] Call for papers and Registration Open for the Rails Conference for Spanish speakers](https://www.ruby-forum.com/t/ann-call-for-papers-and-registration-open-for-the-rails-conference-for-spanish-speakers/116271)

<div class="topic-metadata">

**Author:** [@javier\_ramirez](https://www.ruby-forum.com/u/javier_ramirez)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 1:03am UTC](https://www.ruby-forum.com/t/ann-call-for-papers-and-registration-open-for-the-rails-conference-for-spanish-speakers/116271 "2007-10-04T01:03:06Z")

</div>

Hi, After the success of last year’s edition (29 sessions and about 200 attendants) we are pleased to announce the second edition of the Rails Conference (http://www.conferenciarails.org) for Spanish speakers, to be …

---

## [Ruby on Rails](https://www.ruby-forum.com/t/ruby-on-rails/116269)

<div class="topic-metadata">

**Author:** [@sagarpat](https://www.ruby-forum.com/u/sagarpat)\
**Replies:** 0\
**Last updated:** [October 4, 2007, 12:14am UTC](https://www.ruby-forum.com/t/ruby-on-rails/116269 "2007-10-04T00:14:42Z")

</div>

We are a 2.5 year old profitable startup based in California that provides on demand private label social networking services to enterprises (SaaS). The company is currently expanding its software development office i…

---

## [RailsEnvy.com Podcast & Video](https://www.ruby-forum.com/t/railsenvy-com-podcast-video/116237)

<div class="topic-metadata">

**Author:** [@patched](https://www.ruby-forum.com/u/patched)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/railsenvy-com-podcast-video/116237 "2007-10-03T23:57:37Z")

</div>

Hey guys, Two quick things relevant to Rails programmers: Jason and I at RailsEnvy.com created a new weekly podcast to help you keep up to date on the latest developments in the Ruby/Rails world. http://www.RailsEnvy…

---

## [Directory structure for additional tests](https://www.ruby-forum.com/t/directory-structure-for-additional-tests/116266)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/directory-structure-for-additional-tests/116266 "2007-10-03T23:42:25Z")

</div>

I like to test things besides models, views and controllers. For example, I’ve got a current project with a significant chunk of code in the lib directory. Right now I’ve got a test case for it in the test/integratio…

---

## [Scroll to anchor from RJS](https://www.ruby-forum.com/t/scroll-to-anchor-from-rjs/116251)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/scroll-to-anchor-from-rjs/116251 "2007-10-03T22:25:00Z")

</div>

Is there an way to tell the browser to scroll to a certain anchor from an RJS template? I’m doing a page update, adding stuff at the bottom and want to browser to go there after it’s been added. Thanks, Helzer

---

## [ActionMailer Message-Id field](https://www.ruby-forum.com/t/actionmailer-message-id-field/116253)

<div class="topic-metadata">

**Author:** [@jsimone](https://www.ruby-forum.com/u/jsimone)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/actionmailer-message-id-field/116253 "2007-10-03T21:56:51Z")

</div>

I am attempting to set my own value for the message-id header in emails delivered via ActionMailer. The underlying TMail object allows the message\_id to be set, but it looks like the deliver method of action mailer w…

---

## [Providing HTML in an error message generated by validation](https://www.ruby-forum.com/t/providing-html-in-an-error-message-generated-by-validation/116240)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/providing-html-in-an-error-message-generated-by-validation/116240 "2007-10-03T21:52:31Z")

</div>

All, I have some validation that I’m doing in a model. As part of the error message, I would like to provide an HTML link. What is the best approach to handling this? APPROACH 1: One way is to include ActionView::He…

---

## [Xml namespaces not in model with builder](https://www.ruby-forum.com/t/xml-namespaces-not-in-model-with-builder/116252)

<div class="topic-metadata">

**Author:** [@karma\_guru](https://www.ruby-forum.com/u/karma_guru)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/xml-namespaces-not-in-model-with-builder/116252 "2007-10-03T21:49:47Z")

</div>

I’m trying to grab some data from within a model and output it in xml. I’ve done this previously using the builder libs and it works a treat. However, I’m trying to add xml with namespaces and get the following error: …

---

## [Which IDE has the best SVN integration?](https://www.ruby-forum.com/t/which-ide-has-the-best-svn-integration/115980)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 6\
**Last updated:** [October 3, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/which-ide-has-the-best-svn-integration/115980 "2007-10-03T21:26:21Z")

</div>

Hi AFAIK, Aptana RadRails, Netbeans RubyIDE and 3rdRail have SVN integration support. Which of these IDEs have the best SVN integration and why ?

---

## [SQL to postgresql and DB to migration](https://www.ruby-forum.com/t/sql-to-postgresql-and-db-to-migration/116005)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [October 3, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/sql-to-postgresql-and-db-to-migration/116005 "2007-10-03T21:14:03Z")

</div>

how to convert SQL database to Postgresql? Is there any possible way from Database to migration file ? actually we created database table by executing migration file Is it possible in reverse direction ?, then what i…

---

## [Form\_remote\_tag :onsubmit not working](https://www.ruby-forum.com/t/form-remote-tag-onsubmit-not-working/116218)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 4\
**Last updated:** [October 3, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/form-remote-tag-onsubmit-not-working/116218 "2007-10-03T21:04:41Z")

</div>

Hi, Has anyone successfully implemented the :onsubmit option for form\_remote\_tag. It doesn’t seem to work for me. Is there any specific version of rails which is required for the same. Here’s my piece of code. \<%= …

---

## [Cleaning up session files](https://www.ruby-forum.com/t/cleaning-up-session-files/116124)

<div class="topic-metadata">

**Author:** [@Tobias\_Nurmiranta](https://www.ruby-forum.com/u/Tobias_Nurmiranta)\
**Replies:** 6\
**Last updated:** [October 3, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/cleaning-up-session-files/116124 "2007-10-03T20:25:23Z")

</div>

Hi, it seems like session files never get erased? I’ve made a small monkeypath for environment.rb to clean up old session every time a new session is created. Do you know of any nicer place to put this code? Without h…

---

## [Database text and '\<'](https://www.ruby-forum.com/t/database-text-and/116232)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/database-text-and/116232 "2007-10-03T19:49:35Z")

</div>

I just typed a long post with my model, controller and view file snippets, and lost it :frowning: Here goes again: I have a 2 postgres tables: files and lines. Files simply has an id and a string name. Lines has a f…

---

## [Very important](https://www.ruby-forum.com/t/very-important/196478)

<div class="topic-metadata">

**Author:** [@fevzi\_kurtuluSSSS](https://www.ruby-forum.com/u/fevzi_kurtuluSSSS)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/very-important/196478 "2007-10-03T19:48:25Z")

</div>

http://www.gazeteport.com.tr/YAZARARANIYOR/NEWS/GP\_083040

---

## [Some problems](https://www.ruby-forum.com/t/some-problems/116244)

<div class="topic-metadata">

**Author:** [@fevzi\_kurtuluSSSS](https://www.ruby-forum.com/u/fevzi_kurtuluSSSS)\
**Replies:** 0\
**Last updated:** [October 3, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/some-problems/116244 "2007-10-03T19:45:29Z")

</div>

http://www.gazeteport.com.tr/YAZARARANIYOR/NEWS/GP\_083040

---

## [Lost in AJAX with rails](https://www.ruby-forum.com/t/lost-in-ajax-with-rails/116227)

<div class="topic-metadata">

**Author:** [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/lost-in-ajax-with-rails/116227 "2007-10-03T19:03:51Z")

</div>

I am trying to create a menu for navigation that starts out as Group1 Group2 Group3 Group4 and when you click on one of the groups it brings up one of the model tables you can navigate to. Group1 Group2 |== Mode…

---

## [IE problems with "validate"](https://www.ruby-forum.com/t/ie-problems-with-validate/116152)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [October 3, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/ie-problems-with-validate/116152 "2007-10-03T18:38:34Z")

</div>

I was wondering if anyone else has a problem with using IE7 vs Firefox. I am new to Rails and I have purchased the Agile Web Development with Rails book. When I try to do the depot example, the “validate\_” commands …

---

## [Get server url](https://www.ruby-forum.com/t/get-server-url/116221)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [October 3, 2007, 6:20pm UTC](https://www.ruby-forum.com/t/get-server-url/116221 "2007-10-03T18:20:23Z")

</div>

Hi all, How do i get the server url? Much like the PHP function $\_SERVER\[“REQUEST\_URI”\] Regards, Stijn

---

## [About callbacks: after\_update](https://www.ruby-forum.com/t/about-callbacks-after-update/116154)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [October 3, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/about-callbacks-after-update/116154 "2007-10-03T18:11:33Z")

</div>

Hi, it would be great if someone could help me. I’m using an after\_update callback in a particular model to keep a history of some object’s modifications. It works find but I have a little inconvenient. For some spec…

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

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