# Rails

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

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

---

## [Thoughts on controllers](https://www.ruby-forum.com/t/thoughts-on-controllers/155809)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 5\
**Last updated:** [December 17, 2008, 8:10am UTC](https://www.ruby-forum.com/t/thoughts-on-controllers/155809 "2008-12-17T08:10:00Z")

</div>

I am new to Rails. I have read a couple books and ran through a few tutorials as well. I have been using scaffolding a bit to structure a few projects that I am building for learning purposes. I am curious what your t…

---

## [Scaffold leads to OK database, but model empty](https://www.ruby-forum.com/t/scaffold-leads-to-ok-database-but-model-empty/155692)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 6\
**Last updated:** [December 17, 2008, 6:56am UTC](https://www.ruby-forum.com/t/scaffold-leads-to-ok-database-but-model-empty/155692 "2008-12-17T06:56:17Z")

</div>

Hi, I ran: ruby script/generate scaffold Csv filename:string created:date modified:date imported:date rake db:migrate sqlite3 db\\development.sqlite3 .dump csvs (database columns displayed as expected) type app\\mod…

---

## [Error when installing rails on new linode instance](https://www.ruby-forum.com/t/error-when-installing-rails-on-new-linode-instance/155810)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 5:37am UTC](https://www.ruby-forum.com/t/error-when-installing-rails-on-new-linode-instance/155810 "2008-12-17T05:37:22Z")

</div>

Hello All, I have just created a new install of Ubuntu 8.10, and have proceeded to install all of the necessary packages for Ruby on Rails. I installed ruby, gems, and rails, but when i run rails -v, i get the follo…

---

## [Updating a record error](https://www.ruby-forum.com/t/updating-a-record-error/155806)

<div class="topic-metadata">

**Author:** [@mpathare](https://www.ruby-forum.com/u/mpathare)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 3:56am UTC](https://www.ruby-forum.com/t/updating-a-record-error/155806 "2008-12-17T03:56:15Z")

</div>

I have having some trouble with my update statement. I have a page that allows users to change their personal information (name, password…etc), The update statement seems to execute successfully but does not update an…

---

## [Db:create & db:migrate issues](https://www.ruby-forum.com/t/db-create-db-migrate-issues/155802)

<div class="topic-metadata">

**Author:** [@charlieb](https://www.ruby-forum.com/u/charlieb)\
**Replies:** 0\
**Last updated:** [December 17, 2008, 1:06am UTC](https://www.ruby-forum.com/t/db-create-db-migrate-issues/155802 "2008-12-17T01:06:33Z")

</div>

Greetings: I am new to ROR and RadRails. All assistance will always be appreciated. My environment: Windows XP Ruby 1.8.6 Rails 2.2.2 Aptana Studio, build: 1.2.1.020234 RadRails 1.1.0.200812081651NGT I created a…

---

## [Faceted browse/filter](https://www.ruby-forum.com/t/faceted-browse-filter/155725)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [December 17, 2008, 12:40am UTC](https://www.ruby-forum.com/t/faceted-browse-filter/155725 "2008-12-17T00:40:48Z")

</div>

Hello, Are there any tools for facilitating faceted browsing / filtering for A/R? I saw lots of examples for unstructured (solr, sphinx, etc), all I’m looking for is something that helps me organize the cardinality of …

---

## [Stylesheet Query String](https://www.ruby-forum.com/t/stylesheet-query-string/155502)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 11:17pm UTC](https://www.ruby-forum.com/t/stylesheet-query-string/155502 "2008-12-16T23:17:04Z")

</div>

How does Rails come up with the query string appended to the stylesheet tag? The API does not even show a query string being appended: http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M001499 …

---

## [Toronto Ruby on Rails Project Night - Jan 14th](https://www.ruby-forum.com/t/toronto-ruby-on-rails-project-night-jan-14th/155795)

<div class="topic-metadata">

**Author:** [@Corina](https://www.ruby-forum.com/u/Corina)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 10:47pm UTC](https://www.ruby-forum.com/t/toronto-ruby-on-rails-project-night-jan-14th/155795 "2008-12-16T22:47:08Z")

</div>

Toronto’s Ruby on Rails Project Night returns January 14th to the Rich Media Institute (Toronto) Yes we will have a drink sponsor, yes we have THREE fantastic presentations lined up… Details to come, RSVPs apprecia…

---

## [How to setup a default route?](https://www.ruby-forum.com/t/how-to-setup-a-default-route/154821)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 5\
**Last updated:** [December 16, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/how-to-setup-a-default-route/154821 "2008-12-16T22:04:37Z")

</div>

I’ve got a new Rails 2.0.2 application for which I created CRUD functionality with: ruby script/generate scaffold Csv \[with a few fields and their types\] http://localhost:3000/csvs runs fine, invoking: app\\controlle…

---

## [Acts\_as\_taggible\_on\_steroids](https://www.ruby-forum.com/t/acts-as-taggible-on-steroids/155789)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/acts-as-taggible-on-steroids/155789 "2008-12-16T21:33:52Z")

</div>

I’m wondering if it’s possible to use acts\_as\_taggible\_on\_steroids for something like the user’s age. What I’m wondering is, can it do name/value pairs? can it search on a range? GP

---

## [STI and routing](https://www.ruby-forum.com/t/sti-and-routing/155748)

<div class="topic-metadata">

**Author:** [@coxy](https://www.ruby-forum.com/u/coxy)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/sti-and-routing/155748 "2008-12-16T21:31:02Z")

</div>

Hello all, I have a main model Article, which is subclassed by several others like so: class Music \< Article class RecordReview \< Music; end class Interview \< Music; end end class Film \< Article class Review \< F…

---

## [Trying to track down an issue in a performance based load test.. using Rails 2.2.2](https://www.ruby-forum.com/t/trying-to-track-down-an-issue-in-a-performance-based-load-test-using-rails-2-2-2/155676)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 9:20pm UTC](https://www.ruby-forum.com/t/trying-to-track-down-an-issue-in-a-performance-based-load-test-using-rails-2-2-2/155676 "2008-12-16T21:20:28Z")

</div>

I am trying to debug an issue with Rails 2.2.2… I am running a load test where I am logging in and out 20 users, and I am occasionally seeing this error, in my logs: (see stack trace below) it appears that the body …

---

## [Why isn't there a :dependent =\> false option?](https://www.ruby-forum.com/t/why-isnt-there-a-dependent-false-option/155771)

<div class="topic-metadata">

**Author:** [@Ed\_Lebert](https://www.ruby-forum.com/u/Ed_Lebert)\
**Replies:** 6\
**Last updated:** [December 16, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/why-isnt-there-a-dependent-false-option/155771 "2008-12-16T20:12:38Z")

</div>

I have an “audit” table that records when changes are made to another table. If a record is destroyed, I don’t want all the change audits for that record destroyed or nullified along with it.

---

## [\[JOB\] Sr. Rails Developer, SF - Relo OK | 90-150k](https://www.ruby-forum.com/t/job-sr-rails-developer-sf-relo-ok-90-150k/155784)

<div class="topic-metadata">

**Author:** [@OSS](https://www.ruby-forum.com/u/OSS)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/job-sr-rails-developer-sf-relo-ok-90-150k/155784 "2008-12-16T19:41:10Z")

</div>

Job Title: Senior Rails Developer Location: San Francisco - Relocation assistance provided Duration: Full Time/Permanent Salary: 90-150k DOE Candidates who have made it to 1st and/or 2nd interviews have: \*\*\* worked …

---

## [Saving a "final" version of a record](https://www.ruby-forum.com/t/saving-a-final-version-of-a-record/155640)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 6\
**Last updated:** [December 16, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/saving-a-final-version-of-a-record/155640 "2008-12-16T17:49:09Z")

</div>

I’ll start by apologizing for the title. I can’t think what to call this. I have some Claims that need to be entered, but when they are “closed” it saves the data from other related tables into the Claim (this could …

---

## [Substituting single quotes in strings](https://www.ruby-forum.com/t/substituting-single-quotes-in-strings/155768)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/substituting-single-quotes-in-strings/155768 "2008-12-16T17:39:46Z")

</div>

Hi I want to substitute single quotes in a string but fails unless resorting to overkill (imho) techniques like blocks: s = “ab’cd” =\> “ab’cd” s.sub("’") {|s| %q{’} } =\> “ab\\'cd” As seen this method works bu…

---

## [.erb invoked unexpectedly](https://www.ruby-forum.com/t/erb-invoked-unexpectedly/155732)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 3\
**Last updated:** [December 16, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/erb-invoked-unexpectedly/155732 "2008-12-16T15:54:01Z")

</div>

I’ve got an app that starts up with: map.root :controller =\> “csvs”, :action =\> ‘startup’ The csvs\_controller.rb is posted on http://www.pastie.org/340100 The startup routine checks the RAILS\_ROOT + “/public/data/csv” …

---

## [Git workflow](https://www.ruby-forum.com/t/git-workflow/155728)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/git-workflow/155728 "2008-12-16T15:30:32Z")

</div>

Hi, Can someone answer a couple of Git questions that are puzzling me? I have a repo on my Linux Server I ‘git clone’ the repo on my laptop (xp) I do some stuff I do a ‘git add .’ and a ‘git commit -m “some comment”…

---

## [How to get fleximage plugin work on edge?](https://www.ruby-forum.com/t/how-to-get-fleximage-plugin-work-on-edge/148205)

<div class="topic-metadata">

**Author:** [@Erik\_Dahlstrand](https://www.ruby-forum.com/u/Erik_Dahlstrand)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/how-to-get-fleximage-plugin-work-on-edge/148205 "2008-12-16T13:37:10Z")

</div>

Hi all! I have developed an application during the last month as a personal rails learning project (I’m from .NET world). Now I want to make the site public. The application is developed using edge rails because I ne…

---

## [Little information in mongrel output](https://www.ruby-forum.com/t/little-information-in-mongrel-output/155751)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 11:59am UTC](https://www.ruby-forum.com/t/little-information-in-mongrel-output/155751 "2008-12-16T11:59:34Z")

</div>

I’m currently using MS SQL Server for the first time and am successfully connecting to a remote server using ODBC, following the excellent guidelines published at Peak Obsession. I’m used to seeing lots of informatio…

---

## [Newbie installing EdgeRails: Error](https://www.ruby-forum.com/t/newbie-installing-edgerails-error/155712)

<div class="topic-metadata">

**Author:** [@Michael\_Franzl](https://www.ruby-forum.com/u/Michael_Franzl)\
**Replies:** 2\
**Last updated:** [December 16, 2008, 11:48am UTC](https://www.ruby-forum.com/t/newbie-installing-edgerails-error/155712 "2008-12-16T11:48:59Z")

</div>

Hi, I’m using Ruby-1.8.7, Rubygems-1.3.1, Rails-2.2.2 and Rake-0.8.3. But getting EdgeRails via rails test cd test rake rails:freeze:edge yields rake aborted! wrong number of arguments (2 for 1) What is wrong…

---

## [How to create a new page?](https://www.ruby-forum.com/t/how-to-create-a-new-page/155760)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 11:41am UTC](https://www.ruby-forum.com/t/how-to-create-a-new-page/155760 "2008-12-16T11:41:21Z")

</div>

hi all, i have implemented a applaction with streams table with tags and tagging support. every thing is working fine for me. Problem is while entering the data in to tables i am able to add all fields in to stre…

---

## [Problem of updating the tag name from new.html.erb?](https://www.ruby-forum.com/t/problem-of-updating-the-tag-name-from-new-html-erb/155756)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 11:16am UTC](https://www.ruby-forum.com/t/problem-of-updating-the-tag-name-from-new-html-erb/155756 "2008-12-16T11:16:06Z")

</div>

Hi All, i have created tables called streams and tags. Tags table is to assign the tag name to stream table entries. to tag support i am using acts\_as\_taggable\_steroids plugin. if i want to create a new table entry f…

---

## [Pagination caching](https://www.ruby-forum.com/t/pagination-caching/155750)

<div class="topic-metadata">

**Author:** [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 10:50am UTC](https://www.ruby-forum.com/t/pagination-caching/155750 "2008-12-16T10:50:08Z")

</div>

Hi everybody, I have a list of paginated items using ferret. Every item could be updated and deleted with an ajax call. Let’s suppose I’m paginating my results 10 by 10. When a user deletes an item, a frequent action…

---

## [Thread deadlock activerecord 2.2.2/ruby 1.8.6/postgres win32](https://www.ruby-forum.com/t/thread-deadlock-activerecord-2-2-2-ruby-1-8-6-postgres-win32/155749)

<div class="topic-metadata">

**Author:** [@ccd](https://www.ruby-forum.com/u/ccd)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 10:29am UTC](https://www.ruby-forum.com/t/thread-deadlock-activerecord-2-2-2-ruby-1-8-6-postgres-win32/155749 "2008-12-16T10:29:54Z")

</div>

Hello, I’m trying to run the tests that come with activerecord-2.2.2. I’m using PostgreSQL 8.3 with the pg driver. Other details: ruby version: 1.8.6 build 111 platform: windows XP SP2 activerecord version: 2.2.2 a…

---

## [Rails + jQuery and Links](https://www.ruby-forum.com/t/rails-jquery-and-links/155747)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 10:26am UTC](https://www.ruby-forum.com/t/rails-jquery-and-links/155747 "2008-12-16T10:26:34Z")

</div>

Hi, I currently have a “save for later” function that effectively allows a logged in user to save an position for later viewing. (Similar to the watch/unwatch function on github). In my scenario I have a Position m…

---

## [Starling and Workling?](https://www.ruby-forum.com/t/starling-and-workling/155745)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 10:21am UTC](https://www.ruby-forum.com/t/starling-and-workling/155745 "2008-12-16T10:21:08Z")

</div>

Hi everyone, I’m trying to get workling+starling to work but I’m getting a “uninitialized constant MemCache” error. When I do require ‘rubygems’; require ‘memcache’ in irb I don’t get errors though. Anyone know what…

---

## [I want to create text box but in run time](https://www.ruby-forum.com/t/i-want-to-create-text-box-but-in-run-time/155627)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 4\
**Last updated:** [December 16, 2008, 10:17am UTC](https://www.ruby-forum.com/t/i-want-to-create-text-box-but-in-run-time/155627 "2008-12-16T10:17:36Z")

</div>

I want to create text box but in run time when I write in the controller for @a="input type =‘text’ " and in the view \<%=@a%\> it display text box in the page when it run but when I write in the controller for @a="\<%…

---

## [Upload File Using Form](https://www.ruby-forum.com/t/upload-file-using-form/155735)

<div class="topic-metadata">

**Author:** [@jdhale](https://www.ruby-forum.com/u/jdhale)\
**Replies:** 1\
**Last updated:** [December 16, 2008, 9:06am UTC](https://www.ruby-forum.com/t/upload-file-using-form/155735 "2008-12-16T09:06:44Z")

</div>

I am trying to upload a CSV file through a form, process it, then input the values in the file it into my database. So first step, I need to upload the file. I created the form, uploaded a test file but I am having …

---

## [How to enter and update difeerent tables data from views?](https://www.ruby-forum.com/t/how-to-enter-and-update-difeerent-tables-data-from-views/155738)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/how-to-enter-and-update-difeerent-tables-data-from-views/155738 "2008-12-16T08:10:59Z")

</div>

hi , i have two tables called streams and tags. using tags table i am assigning tags to the stream table entries using acts\_as\_taggable plugin. Now problem is if i try to enter the data for tag table in new.html.er…

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

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