# Rails

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

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

---

## [ActiveResource noob](https://www.ruby-forum.com/t/activeresource-noob/107763)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [June 26, 2007, 12:54am UTC](https://www.ruby-forum.com/t/activeresource-noob/107763 "2007-06-26T00:54:58Z")

</div>

Hey all, I’ve just installed ActiveResource. Those are my two models: class Profile \< ActiveRecord::Base has\_many :emails end class Email \< ActiveRecord::Base belongs\_to :profile end My routes.rb file: map.reso…

---

## [Bug in http://wiki.rubyonrails.org/rails/pages/Tutorial](https://www.ruby-forum.com/t/bug-in-http-wiki-rubyonrails-org-rails-pages-tutorial/107747)

<div class="topic-metadata">

**Author:** [@bluejaguar](https://www.ruby-forum.com/u/bluejaguar)\
**Replies:** 2\
**Last updated:** [June 26, 2007, 12:51am UTC](https://www.ruby-forum.com/t/bug-in-http-wiki-rubyonrails-org-rails-pages-tutorial/107747 "2007-06-26T00:51:57Z")

</div>

http://wiki.rubyonrails.org/rails/pages/Tutorial Then, start the WeBRICK webserver with the following command: cd MyProject ./script/server Should read … ruby ./script/server

---

## [Need current version of 'engines'](https://www.ruby-forum.com/t/need-current-version-of-engines/107759)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 12:48am UTC](https://www.ruby-forum.com/t/need-current-version-of-engines/107759 "2007-06-26T00:48:57Z")

</div>

Using datebocks which requires engines. I tried to update which wiped out my current install of engines plugin and can’t download again because rails-engines.org is pretty much unresponsive. Does anyone have a curren…

---

## [Force Content-Type 'text/xml'](https://www.ruby-forum.com/t/force-content-type-text-xml/107333)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 12:04am UTC](https://www.ruby-forum.com/t/force-content-type-text-xml/107333 "2007-06-26T00:04:53Z")

</div>

This is driving me crazy. How do I force Content-Type to “text/xml”? It doesn’t matter what I’ve tried, I still get “application/xml”. I’ve tried: headers\[“Content-Type”\] = “text/xml” response.headers\[“Content-Type”\]…

---

## [Restful route not found](https://www.ruby-forum.com/t/restful-route-not-found/107634)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [June 26, 2007, 12:02am UTC](https://www.ruby-forum.com/t/restful-route-not-found/107634 "2007-06-26T00:02:53Z")

</div>

Hi all, When I try to submit an edit of a node I get: Routing Error no route found to match “/nodes/2” with {:method=\>:post} I don’t see why because “/nodes/2” is the restful way I think and I have map.resources :no…

---

## [Importing flat CSV into two tables and maintaining a relatio](https://www.ruby-forum.com/t/importing-flat-csv-into-two-tables-and-maintaining-a-relatio/107746)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/importing-flat-csv-into-two-tables-and-maintaining-a-relatio/107746 "2007-06-25T23:54:52Z")

</div>

Hello, I’m new to Ruby on Rails and I’ve been really enjoying the framework. I have recently hit a wall that I can’t seem to get around. I’ve searched to web and haven’t found an answer(and my agile development with …

---

## [Noob ?: sorting hashes within an array by another array](https://www.ruby-forum.com/t/noob-sorting-hashes-within-an-array-by-another-array/107742)

<div class="topic-metadata">

**Author:** [@bazzel](https://www.ruby-forum.com/u/bazzel)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/noob-sorting-hashes-within-an-array-by-another-array/107742 "2007-06-25T23:42:50Z")

</div>

I have two arrays: @new\_array\_ids = params\[@resource\_key\].map { |k| k.to\_i } @new\_array\_us = ProjectAssignment.find(@new\_array\_ids) Let’s say: @new\_array\_ids ----\> \[5,3\] @new\_array ----\> \[#\<ProjectAssignment:0x4706…

---

## [Dynamic show form fields depending on dropdown box](https://www.ruby-forum.com/t/dynamic-show-form-fields-depending-on-dropdown-box/107755)

<div class="topic-metadata">

**Author:** [@new\_railsor](https://www.ruby-forum.com/u/new_railsor)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/dynamic-show-form-fields-depending-on-dropdown-box/107755 "2007-06-25T23:41:06Z")

</div>

I have one question, let me take an example. when a user visits: http://www.ruby-forum.com/topic/new?forum\_id=3 it will show a form that has forum, name, email, subject, text five fields for posting. right? I want to…

---

## [One-on-One Net Training](https://www.ruby-forum.com/t/one-on-one-net-training/107743)

<div class="topic-metadata">

**Author:** [@George](https://www.ruby-forum.com/u/George)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/one-on-one-net-training/107743 "2007-06-25T23:24:48Z")

</div>

Is anyone interested in one-on-one Rails training over the Internet? I have a family member that is in college for graphics design and would like to learn Rails, but she needs a more structured approach on an individ…

---

## [Rail 2.0 release estimate?](https://www.ruby-forum.com/t/rail-2-0-release-estimate/107651)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 6\
**Last updated:** [June 25, 2007, 10:49pm UTC](https://www.ruby-forum.com/t/rail-2-0-release-estimate/107651 "2007-06-25T22:49:45Z")

</div>

was there any talk at railsconf or any talk in the chat rooms about rails 2.0 release. i seems they chose the new version number because it won’t be backwards compatible with 1.x sites.

---

## [Before updating scaffolding from new DB schema, try creating](https://www.ruby-forum.com/t/before-updating-scaffolding-from-new-db-schema-try-creating/107749)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/before-updating-scaffolding-from-new-db-schema-try-creating/107749 "2007-06-25T22:48:44Z")

</div>

What does the message “error Before updating scaffolding from new DB schema, try creating a table for your model (Legacy)” mean? My googling shows that others have received similar messages, but it’s not clear to me…

---

## [Redirect\_to difficulties](https://www.ruby-forum.com/t/redirect-to-difficulties/107745)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/redirect-to-difficulties/107745 "2007-06-25T22:17:45Z")

</div>

I’ve been working on a create function that takes some information from the user, compares it against existing records and, based on the results of that comparison, decides how to act. There is also the chance that if…

---

## [Adding variables through modules](https://www.ruby-forum.com/t/adding-variables-through-modules/107656)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [June 25, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/adding-variables-through-modules/107656 "2007-06-25T22:05:29Z")

</div>

Hi! I’m trying to enhance a set of controllers which can set the level of security. Class MenuControllder \< ApplicationController include BasicTest end module BasicTest # in lib/basic\_test.rb @test = nil def se…

---

## [RoR produciton deployment on centOS 5 (64 bit)](https://www.ruby-forum.com/t/ror-produciton-deployment-on-centos-5-64-bit/107692)

<div class="topic-metadata">

**Author:** [@sanjay\_suri](https://www.ruby-forum.com/u/sanjay_suri)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/ror-produciton-deployment-on-centos-5-64-bit/107692 "2007-06-25T21:59:38Z")

</div>

I am in the process of ordering a machine at softlayer.com to host my RoR app. The recommended version of Linux seems to be centOS 5 (64 bit). Does anyone have any experience with deployment RoR + app + lighttpd on th…

---

## [Problem](https://www.ruby-forum.com/t/problem/107741)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/problem/107741 "2007-06-25T21:55:38Z")

</div>

This is the source code generated by SaltedLoginGenerator @params\[‘user’\].delete(‘form’) Can anybody explain what the delete message do? – http://rubyforge.org/projects/ropenwiki/

---

## [Freeze pane](https://www.ruby-forum.com/t/freeze-pane/107730)

<div class="topic-metadata">

**Author:** [@gearoid](https://www.ruby-forum.com/u/gearoid)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/freeze-pane/107730 "2007-06-25T21:54:38Z")

</div>

Hi - Displaying a lot of information in a table and I need the user to be able to see the headline at all time… Any advice? Is there anything similar to Freeze pane in excel? any help will be much appreciated. Gearo…

---

## [A RESTful way for filtering results?](https://www.ruby-forum.com/t/a-restful-way-for-filtering-results/107740)

<div class="topic-metadata">

**Author:** [@Mike\_Rumble](https://www.ruby-forum.com/u/Mike_Rumble)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/a-restful-way-for-filtering-results/107740 "2007-06-25T21:50:37Z")

</div>

Hello, Recently I’ve been getting stuck in with ActiveResource and all the wonderful things that REST has to offer. There are a couple of things that I’ve been throwing around in my head which I can’t quite settle on…

---

## [Try creating a table for your model (Legacy)](https://www.ruby-forum.com/t/try-creating-a-table-for-your-model-legacy/107733)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 9:34pm UTC](https://www.ruby-forum.com/t/try-creating-a-table-for-your-model-legacy/107733 "2007-06-25T21:34:34Z")

</div>

what’s meant by the error message “error Before updating scaffolding from new DB schema, try creating a table for your model (Legacy)”? Is this why I can’t get a list view of the table? From googling on this code, p…

---

## [Sanitize\_properly?](https://www.ruby-forum.com/t/sanitize-properly/107736)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/sanitize-properly/107736 "2007-06-25T21:19:32Z")

</div>

I was reading the section on protecting records from some form parameters: Peak Obsession when showing how to manually set the attributes, they use a sanitize\_properly method which i can’t seem to find in the api or …

---

## [Multiple Join Tables between Two Tables? Another solution?](https://www.ruby-forum.com/t/multiple-join-tables-between-two-tables-another-solution/107734)

<div class="topic-metadata">

**Author:** [@rcgann](https://www.ruby-forum.com/u/rcgann)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/multiple-join-tables-between-two-tables-another-solution/107734 "2007-06-25T21:11:30Z")

</div>

I’m a RoR newbie, so I’d like to be sure I’m on the right track. I’m coding an application where I have one table with students and another table with first year seminars (fyss). The students have listed 4 fys prefe…

---

## [Multiple instances of same application](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677 "2007-06-25T21:04:29Z")

</div>

Hi, I am planning the deployment of my first rails app. The app is such that different users can, and should, be running against their own personal and separate databases. The load caused by each user is fairly low, …

---

## [Implementing search](https://www.ruby-forum.com/t/implementing-search/107713)

<div class="topic-metadata">

**Author:** [@arbirk](https://www.ruby-forum.com/u/arbirk)\
**Replies:** 3\
**Last updated:** [June 25, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/implementing-search/107713 "2007-06-25T20:51:26Z")

</div>

I am a newbie and have created a small blog-like app. Im have tried to implement the saerch function following this tutorial: http://snippets.dzone.com/posts/show/1691 Everything seems to work when the searchphase is …

---

## [Is there an official list of the largest sites running RoR?](https://www.ruby-forum.com/t/is-there-an-official-list-of-the-largest-sites-running-ror/107728)

<div class="topic-metadata">

**Author:** [@JGoodrich](https://www.ruby-forum.com/u/JGoodrich)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 8:32pm UTC](https://www.ruby-forum.com/t/is-there-an-official-list-of-the-largest-sites-running-ror/107728 "2007-06-25T20:32:23Z")

</div>

Our site is growing fast & the last few weeks, we’ve been running into a few scalability issues. For reference, this month we’re generating more than 600,000 unique visitors, and on a given day, we get an average of 3…

---

## [:include and sorting](https://www.ruby-forum.com/t/include-and-sorting/107673)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 2\
**Last updated:** [June 25, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/include-and-sorting/107673 "2007-06-25T20:26:21Z")

</div>

I added an include to a find statement in order to preload data rather than using lazy loading eg.Client.find(params\[:id\],:include=\>\[:contacts, :etc,:etc\]) I have a sort clause in the Client model eg has\_many :contac…

---

## [Performing finds on the first two characters on any entry](https://www.ruby-forum.com/t/performing-finds-on-the-first-two-characters-on-any-entry/107726)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 8:10pm UTC](https://www.ruby-forum.com/t/performing-finds-on-the-first-two-characters-on-any-entry/107726 "2007-06-25T20:10:13Z")

</div>

I have a basic find request where I am retrieving any records that match the first and last name provided in an earlier form. It’s almost like a directory lookup. @master = Master.find(params\[:id\], :conditions =\> { …

---

## [Problem with RSpec in legacy databases](https://www.ruby-forum.com/t/problem-with-rspec-in-legacy-databases/107724)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/problem-with-rspec-in-legacy-databases/107724 "2007-06-25T19:24:08Z")

</div>

Hello. I am a newbie with BDD. I am trying to use RSpec with some legacy tables and I use the set\_table\_name method in the models. The name of the table and the class doesnÂ´t match. It seems that there is no proble…

---

## [Storing data from database into array](https://www.ruby-forum.com/t/storing-data-from-database-into-array/107722)

<div class="topic-metadata">

**Author:** [@nekapoor](https://www.ruby-forum.com/u/nekapoor)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/storing-data-from-database-into-array/107722 "2007-06-25T18:32:09Z")

</div>

Hello, I don’t know what the Rails multidimensional array structure is and I am having a problem in this regard. Basically we have a set of games and in a XMLFEEDS table we have basic information about the games (the…

---

## [Acts\_as\_tree and drop downs](https://www.ruby-forum.com/t/acts-as-tree-and-drop-downs/107655)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 3\
**Last updated:** [June 25, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/acts-as-tree-and-drop-downs/107655 "2007-06-25T17:40:40Z")

</div>

Hello all, I’ve got an object called store\_section in which I have called the acts\_as\_tree function. In several of the views in my site, I have objects which need to specify the store\_section that they are in. What I …

---

## [Outlook calendar roadblock](https://www.ruby-forum.com/t/outlook-calendar-roadblock/107712)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [June 25, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/outlook-calendar-roadblock/107712 "2007-06-25T16:57:25Z")

</div>

Hello All, Summary Problem: I need to automatically import a VCS file into our company’s public outlook calendar. The vcs file is being generated through a user-form in my ruby on rails application. Details of my pr…

---

## [QUESTION: Grouping gems for a project](https://www.ruby-forum.com/t/question-grouping-gems-for-a-project/107702)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [June 25, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/question-grouping-gems-for-a-project/107702 "2007-06-25T16:55:24Z")

</div>

Hello. I’ve got about 10 gems that are needed for my current project. I’d like to somehow put them all into one package so I can install them quickly on another machine. Is there a way to do this, or do I have to in…

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

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