# Rails

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

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

---

## [Why can't I save to a join table in a migration or rake tas](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-tas/103917)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-tas/103917 "2007-05-11T17:21:45Z")

</div>

u.roles \<\< member\_role p “#{u.roles.size}” p “added member role to #{u.name}” end and see what happens Chris, Thanks so much for providing another set of eyes. I took your suggestion and expanded on it. Quickly …

---

## [Link\_to Subdomain and the Opposite](https://www.ruby-forum.com/t/link-to-subdomain-and-the-opposite/103820)

<div class="topic-metadata">

**Author:** [@xmg-eric](https://www.ruby-forum.com/u/xmg-eric)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/link-to-subdomain-and-the-opposite/103820 "2007-05-11T17:14:44Z")

</div>

Hey all, I’ve been working on a recent project that employs the use of account\_location to route clients to http://username.mysite.com, which is working fine. However, when they’re on their domain (http://username.my…

---

## [On "Agile Web Dev (2nde edition)", Question about the Playti](https://www.ruby-forum.com/t/on-agile-web-dev-2nde-edition-question-about-the-playti/90293)

<div class="topic-metadata">

**Author:** [@Canardo](https://www.ruby-forum.com/u/Canardo)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/on-agile-web-dev-2nde-edition-question-about-the-playti/90293 "2007-05-11T17:11:44Z")

</div>

Hi, I’m surprised by the solution published at the following place : For the 4th point : the solution published make a database request for remove a Product from a Cart. I think it’s not needed. What do you all thin…

---

## [Categories like ebay](https://www.ruby-forum.com/t/categories-like-ebay/103912)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/categories-like-ebay/103912 "2007-05-11T17:04:13Z")

</div>

I think the category feature of eBay is very handy. I want to figure out a way to to make this function work on rails. What is so sepcial with ebay’s category feature? Let’s say we are going to buy a Movie DVD. HOME-\>…

---

## [Url\_for and capitalization](https://www.ruby-forum.com/t/url-for-and-capitalization/103908)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/url-for-and-capitalization/103908 "2007-05-11T16:50:15Z")

</div>

i am having a very weird problem with url\_for… i have been using this for several version of rails, but recently, i had a problem… it seems as though url\_for is causing the results to be returned in lower case… if t…

---

## [Wanna add a bunch of forums to my rails site](https://www.ruby-forum.com/t/wanna-add-a-bunch-of-forums-to-my-rails-site/103889)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/wanna-add-a-bunch-of-forums-to-my-rails-site/103889 "2007-05-11T16:37:40Z")

</div>

hey all, I want to integrate a bunch of forums to my rails site. My site is about college communities and different business colleges in Asia, so I would have different pages for each college. And I want to add one f…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/117669)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/unsubscribe/117669 "2007-05-11T16:34:40Z")

</div>

unsubscribe

---

## [How do I implement a simple geographic information database](https://www.ruby-forum.com/t/how-do-i-implement-a-simple-geographic-information-database/103836)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 11\
**Last updated:** [May 11, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/how-do-i-implement-a-simple-geographic-information-database/103836 "2007-05-11T13:44:12Z")

</div>

Hi, Sorry that this topic is not really rails-specific, but I happen to be implementing it in rails. I’m trying to implement a common scenario, where you get a comprehensive list of states/provinces, cities, and zip…

---

## [Frustration with dapper -\> feisty](https://www.ruby-forum.com/t/frustration-with-dapper-feisty/103492)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 5\
**Last updated:** [May 11, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/frustration-with-dapper-feisty/103492 "2007-05-11T13:33:11Z")

</div>

I updated my server from dapper drake to feisty fawn this weekend and all seemed to go fine. However, I’m now getting nothing but Internal Server Error 500 on my rails apps. Non-rails apps are fine… It doesn’t seem …

---

## [Model Cache instead of Controller Cache](https://www.ruby-forum.com/t/model-cache-instead-of-controller-cache/103611)

<div class="topic-metadata">

**Author:** [@Tobias\_Numiranta](https://www.ruby-forum.com/u/Tobias_Numiranta)\
**Replies:** 3\
**Last updated:** [May 11, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/model-cache-instead-of-controller-cache/103611 "2007-05-11T12:34:05Z")

</div>

Hi, I’ve made a model cache for rails, to use when you want to cache model instance methods, rather than controller calls. Does anything similar exist already? Any comments on the implementation? Since it serializes c…

---

## [Querying using Ruby on Rails](https://www.ruby-forum.com/t/querying-using-ruby-on-rails/103884)

<div class="topic-metadata">

**Author:** [@venugopal](https://www.ruby-forum.com/u/venugopal)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 10:24am UTC](https://www.ruby-forum.com/t/querying-using-ruby-on-rails/103884 "2007-05-11T10:24:39Z")

</div>

Hi Everyone… I’need to query using Ruby on rails…dynamically rather than hard coding the statement like: select\* from authors where name=“Hello”; i need to get the value of the name from a text box in the earlier pa…

---

## [Sharing secure information](https://www.ruby-forum.com/t/sharing-secure-information/103885)

<div class="topic-metadata">

**Author:** [@Zirael](https://www.ruby-forum.com/u/Zirael)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 9:45am UTC](https://www.ruby-forum.com/t/sharing-secure-information/103885 "2007-05-11T09:45:34Z")

</div>

Hi, I want to migrate my system from .NET to RoR but I need to do that in some steps. Is there an archecture/pattern which let me share information between sessions? Maybe some of you has an experience in that issue…

---

## [Help :: Sorting Dates](https://www.ruby-forum.com/t/help-sorting-dates/103883)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 9:41am UTC](https://www.ruby-forum.com/t/help-sorting-dates/103883 "2007-05-11T09:41:01Z")

</div>

Hi all, I want to sort dates of form “Month year”. I’ve list of all dates in my database like , “Jan 2006” “Apr 2006” “Feb 2006” “Dec 2005” … All are in as string. Is there any logic/method to sort them and display. …

---

## [Question on Ferret](https://www.ruby-forum.com/t/question-on-ferret/103849)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 9:26am UTC](https://www.ruby-forum.com/t/question-on-ferret/103849 "2007-05-11T09:26:34Z")

</div>

It seems like Ferret is making new index on each save of the model. Is there any way to eliminate this redundancy? TIA.

---

## [A simple web program using mysql](https://www.ruby-forum.com/t/a-simple-web-program-using-mysql/103791)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 11, 2007, 8:41am UTC](https://www.ruby-forum.com/t/a-simple-web-program-using-mysql/103791 "2007-05-11T08:41:49Z")

</div>

Hi, Can any one send me a simple program for webpage using ruby on rails with mysql for insert, update, delete and show records with character and number type data…

---

## [Upload files to the specified directory](https://www.ruby-forum.com/t/upload-files-to-the-specified-directory/103872)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 8:34am UTC](https://www.ruby-forum.com/t/upload-files-to-the-specified-directory/103872 "2007-05-11T08:34:22Z")

</div>

hello Can you tell me how do i create a page that allows me to have a facility by which the user can upload a file to the defined folder pls provide the code for controller,model and view thanks dhaval

---

## [Download files after uploading](https://www.ruby-forum.com/t/download-files-after-uploading/103882)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 8:11am UTC](https://www.ruby-forum.com/t/download-files-after-uploading/103882 "2007-05-11T08:11:28Z")

</div>

hello I have uploaded my files in the /public/images folder now i want to create a page that will allow me to download all those files that r there… This page should automatically add the file name and make it availa…

---

## [Polymorphic has\_many :images, :through =\> \[...\] - possible?](https://www.ruby-forum.com/t/polymorphic-has-many-images-through-possible/103869)

<div class="topic-metadata">

**Author:** [@aroth](https://www.ruby-forum.com/u/aroth)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 7:55am UTC](https://www.ruby-forum.com/t/polymorphic-has-many-images-through-possible/103869 "2007-05-11T07:55:26Z")

</div>

I have a polymorphic image model (profiles have images, products have images, user has a profile, user has products). I’d like to be able to access all of a user’s images regardless of which model they represent. This…

---

## [Hieraki help](https://www.ruby-forum.com/t/hieraki-help/103877)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 6:51am UTC](https://www.ruby-forum.com/t/hieraki-help/103877 "2007-05-11T06:51:20Z")

</div>

I need to set up a Wiki for a project that I’m working on, and HIeraki seems to be the best rails-based option for my needs. I’ve got it installed & with the help of some notes on the net, it’s mostly working. Unfortu…

---

## [Easy Question - Get the Class Name](https://www.ruby-forum.com/t/easy-question-get-the-class-name/103788)

<div class="topic-metadata">

**Author:** [@flip](https://www.ruby-forum.com/u/flip)\
**Replies:** 6\
**Last updated:** [May 11, 2007, 6:06am UTC](https://www.ruby-forum.com/t/easy-question-get-the-class-name/103788 "2007-05-11T06:06:10Z")

</div>

I can not for the life of me figure this out and I know it is easy but I can’t seem to find the answer in the API docs or looking at different plugins but I have a variable that can be different classes (objects, what…

---

## [Why can't I save to a join table in a migration or rake task](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-task/103871)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 5:00am UTC](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-task/103871 "2007-05-11T05:00:03Z")

</div>

At 9:13 PM -0400 5/10/07, Chris H. wrote: where is member\_role coming from? also, the save! is not necessary, as the \<\< method saves the data in the join table. Hi Chris, Here’s is the rake task version. member\_ro…

---

## [Need to verify email address - help!](https://www.ruby-forum.com/t/need-to-verify-email-address-help/103870)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 4:51am UTC](https://www.ruby-forum.com/t/need-to-verify-email-address-help/103870 "2007-05-11T04:51:03Z")

</div>

not sure if this is the best way to go about it, but i’m generating a key that gets sent to a person’s email and then ask them click on the link to verify the key. routes.rb then looks like this for me: map.connect ‘…

---

## [Rewriterule muck up](https://www.ruby-forum.com/t/rewriterule-muck-up/103746)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 4:41am UTC](https://www.ruby-forum.com/t/rewriterule-muck-up/103746 "2007-05-11T04:41:01Z")

</div>

ok, want to have my nice rails/mongrel app show a maint page when available… trying to do something like this… http://jonathan.tron.name/articles/2006/07/26/apache-2-0-x-mongrel-mod\_proxy-mod\_rewrite-configuration my…

---

## [Problem with nested associations](https://www.ruby-forum.com/t/problem-with-nested-associations/103865)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 4:01am UTC](https://www.ruby-forum.com/t/problem-with-nested-associations/103865 "2007-05-11T04:01:58Z")

</div>

I have a department which has many courses which has many sections however when I try to access course.sections.create or create a section and save I get an error. ActiveRecord::StatementInvalid: SystemStackError: sta…

---

## [\[RailsConf\] Rails Conference All Sessions ticket for sale](https://www.ruby-forum.com/t/railsconf-rails-conference-all-sessions-ticket-for-sale/103863)

<div class="topic-metadata">

**Author:** [@Devin\_Ben-Hur](https://www.ruby-forum.com/u/Devin_Ben-Hur)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 3:19am UTC](https://www.ruby-forum.com/t/railsconf-rails-conference-all-sessions-ticket-for-sale/103863 "2007-05-11T03:19:55Z")

</div>

Alas, I’ve got a conflict with next week’s conference. My ticket is available at steep discount at this eBay auction: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=250113688714 If you missed your spot because it…

---

## [RailsConf extra tickets](https://www.ruby-forum.com/t/railsconf-extra-tickets/103677)

<div class="topic-metadata">

**Author:** [@jnjnjn](https://www.ruby-forum.com/u/jnjnjn)\
**Replies:** 1\
**Last updated:** [May 11, 2007, 3:00am UTC](https://www.ruby-forum.com/t/railsconf-extra-tickets/103677 "2007-05-11T03:00:54Z")

</div>

How do the extra tickets work? Has anyone bought one of these and had it transferred? – jn

---

## [Automatic numbering of form components](https://www.ruby-forum.com/t/automatic-numbering-of-form-components/103787)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 3\
**Last updated:** [May 11, 2007, 2:59am UTC](https://www.ruby-forum.com/t/automatic-numbering-of-form-components/103787 "2007-05-11T02:59:54Z")

</div>

Hi, Does anyone how to automatically put sequence number in view? I have an inquiry form like below. However, the number of questions is more than 70, and they are deleted and/reordered in the future. So, I do not w…

---

## [Attachment\_fu. . .HTML involved in immediately associating a](https://www.ruby-forum.com/t/attachment-fu-html-involved-in-immediately-associating-a/103446)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 8\
**Last updated:** [May 11, 2007, 2:42am UTC](https://www.ruby-forum.com/t/attachment-fu-html-involved-in-immediately-associating-a/103446 "2007-05-11T02:42:53Z")

</div>

All, I’m having trouble wrapping my head around how to associate my IMAGE model with my PRODUCT model. Basically I have the obligatory fields for the attachment\_fu association: class CreateImages \< ActiveRecord::Mig…

---

## [How to use Single Table Inheritance with Modules](https://www.ruby-forum.com/t/how-to-use-single-table-inheritance-with-modules/103752)

<div class="topic-metadata">

**Author:** [@bramski](https://www.ruby-forum.com/u/bramski)\
**Replies:** 2\
**Last updated:** [May 11, 2007, 2:18am UTC](https://www.ruby-forum.com/t/how-to-use-single-table-inheritance-with-modules/103752 "2007-05-11T02:18:51Z")

</div>

So, I have a table… events id int type varchar(255) data text Which I’m using to log some simple system events… class Event \< ActiveRecord::Base end I’d like to file quite a lot of events in here, and load them la…

---

## [Why can't I save to a join table in a migration or rake task](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-task/103860)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [May 11, 2007, 1:48am UTC](https://www.ruby-forum.com/t/why-cant-i-save-to-a-join-table-in-a-migration-or-rake-task/103860 "2007-05-11T01:48:49Z")

</div>

I’ve tried to put this in a migration and in a rake task but nothing gets created in the roles\_users join table: User.find(:all).each {|u| u.roles \<\< member\_role; u.save! } It works fine from script/console. Stephen…

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

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