# Rails

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

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

---

## [Find works in view but not controller](https://www.ruby-forum.com/t/find-works-in-view-but-not-controller/87182)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 7\
**Last updated:** [March 6, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/find-works-in-view-but-not-controller/87182 "2007-03-06T16:15:24Z")

</div>

Part of my application should show a list of all users on the system who agreed to have their details revealed. So, I have an action like this: def view\_users @users = User.find(:all,:conditions=\>“reveal = 1”,:order=\>“…

---

## [SqlServer adapter mangling id column data](https://www.ruby-forum.com/t/sqlserver-adapter-mangling-id-column-data/87470)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/sqlserver-adapter-mangling-id-column-data/87470 "2007-03-06T14:48:38Z")

</div>

My venture in trying to use freetds with odbc did get me going, but I’ve hit a wall. Once in a while (read about 40% of the time) … the row id’s get transformed into these huge integers eg: http://hyde:3500/blog/sho…

---

## [Trouble setting up RadRails with Locomotive2 on a macosx](https://www.ruby-forum.com/t/trouble-setting-up-radrails-with-locomotive2-on-a-macosx/87836)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/trouble-setting-up-radrails-with-locomotive2-on-a-macosx/87836 "2007-03-06T14:43:00Z")

</div>

Hi I’ve been battling this for a while. I’m trying to set up RadRails on my macosx. I configured the ruby interpretor as so: /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/ i386/bin/ruby Which is…

---

## [MTM relationship with relationship attributes](https://www.ruby-forum.com/t/mtm-relationship-with-relationship-attributes/87738)

<div class="topic-metadata">

**Author:** [@vishu.raj](https://www.ruby-forum.com/u/vishu.raj)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/mtm-relationship-with-relationship-attributes/87738 "2007-03-06T14:16:57Z")

</div>

I have following many to many relationship: class Service \< ActiveRecord::Base has\_many :service\_dependencies has\_many :dependents, :through =\> :service\_dependencies end class ServiceDependency \< ActiveRecord::Base …

---

## [Ajax requests](https://www.ruby-forum.com/t/ajax-requests/87709)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/ajax-requests/87709 "2007-03-06T14:11:56Z")

</div>

every ajax request is written to the log file? can anyone help me in this regard? Processing HomeController#get\_speakers (for 127.0.0.1 at 2007-03-05 13:04:56) \[POST\] Session ID: 814981131b5955eb11b7a0dfa8d100a1 Par…

---

## [New app - Welcome loads fine but controller slow](https://www.ruby-forum.com/t/new-app-welcome-loads-fine-but-controller-slow/87850)

<div class="topic-metadata">

**Author:** [@draklava](https://www.ruby-forum.com/u/draklava)\
**Replies:** 5\
**Last updated:** [March 6, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/new-app-welcome-loads-fine-but-controller-slow/87850 "2007-03-06T13:59:50Z")

</div>

I am running RoR 1.2 on Fedora 6 in VMWare. I create a new app and fire up WEBrick and connect from my windows host over a host-only VMWare interface and it connects fine. Now I create a test controller and view and c…

---

## [Object duplication](https://www.ruby-forum.com/t/object-duplication/87853)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/object-duplication/87853 "2007-03-06T12:23:30Z")

</div>

Hi all, supposed i have a “User” class, which has\_many :companies for example. now, if i want to simply clone an instance of such class, how do i automatically copy all dependencies together ? Tnx

---

## [Strange NoMethodError exception with EDGE Rails](https://www.ruby-forum.com/t/strange-nomethoderror-exception-with-edge-rails/87849)

<div class="topic-metadata">

**Author:** [@AndrSSSSs\_Tarsoly](https://www.ruby-forum.com/u/AndrSSSSs_Tarsoly)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/strange-nomethoderror-exception-with-edge-rails/87849 "2007-03-06T12:23:29Z")

</div>

Hi guys, I’ve encountered a strange exception which I can just not understand why is it happening (tried to trace it back to the rails source, but I’m not an expert, so it proved no results). The situation is the fo…

---

## [Events calendars](https://www.ruby-forum.com/t/events-calendars/87828)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/events-calendars/87828 "2007-03-06T12:15:28Z")

</div>

how do y’all implement events calendars? just make an “events” model, and figure your own css for the views? seems like a big pita. Is there a plugin or helpers for this kind of thing? tia linoj

---

## [\[ANN\] Basedex - A Collaborative Index](https://www.ruby-forum.com/t/ann-basedex-a-collaborative-index/102703)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:43am UTC](https://www.ruby-forum.com/t/ann-basedex-a-collaborative-index/102703 "2007-03-06T11:43:43Z")

</div>

Hi again everyone, Basedex is a collaborative index to help you organize and share your information as well as discover what others have found. Since we announced our release a couple weeks ago, we have been hard at …

---

## [Mongrel gem install error .. how to](https://www.ruby-forum.com/t/mongrel-gem-install-error-how-to/87844)

<div class="topic-metadata">

**Author:** [@alberto](https://www.ruby-forum.com/u/alberto)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:31am UTC](https://www.ruby-forum.com/t/mongrel-gem-install-error-how-to/87844 "2007-03-06T11:31:28Z")

</div>

I am trying to set-up mongrel in osx but… london:~ ab$ sudo gem install mongrel Password: Need to update 8 gems from http://gems.rubyforge.org … complete Select which gem to install for your platform (powerpc-darwi…

---

## [Beginner Q: Image Selection and Object Attr Modification?](https://www.ruby-forum.com/t/beginner-q-image-selection-and-object-attr-modification/87843)

<div class="topic-metadata">

**Author:** [@scrambler](https://www.ruby-forum.com/u/scrambler)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 11:29am UTC](https://www.ruby-forum.com/t/beginner-q-image-selection-and-object-attr-modification/87843 "2007-03-06T11:29:58Z")

</div>

Hi forum, being new to Rails I’d like to ask if it is possible to use Rails to display a table of (JPG) images in a browser window (I’m sure that’s no problem…) from which the user is able to select one, several, or a…

---

## [Active::record and postgres schemas](https://www.ruby-forum.com/t/active-record-and-postgres-schemas/87830)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 11:23am UTC](https://www.ruby-forum.com/t/active-record-and-postgres-schemas/87830 "2007-03-06T11:23:23Z")

</div>

Hi It seems that active record only supports views from the public schema in postgres? but i feel that there must be a way to overide this. Somebody with an idea about how to achive this? i have a database with 3 dif…

---

## [Displaying relationship attributes in MTM relationships](https://www.ruby-forum.com/t/displaying-relationship-attributes-in-mtm-relationships/87840)

<div class="topic-metadata">

**Author:** [@Vishwaraj](https://www.ruby-forum.com/u/Vishwaraj)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 10:48am UTC](https://www.ruby-forum.com/t/displaying-relationship-attributes-in-mtm-relationships/87840 "2007-03-06T10:48:03Z")

</div>

I have following many to many relationship: class Service \< ActiveRecord::Base has\_many :service\_dependencies has\_many :dependents, :through =\> :service\_dependencies end class ServiceDependency \< ActiveRecord::Base …

---

## [SOLVED:Re: How to select postgres for usage instead postgres](https://www.ruby-forum.com/t/solved-how-to-select-postgres-for-usage-instead-postgres/87705)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 10:08am UTC](https://www.ruby-forum.com/t/solved-how-to-select-postgres-for-usage-instead-postgres/87705 "2007-03-06T10:08:10Z")

</div>

Figured it out chaps…not to worry!!! – Regards Andrew

---

## [Suitable design for "magazine" portal?](https://www.ruby-forum.com/t/suitable-design-for-magazine-portal/87834)

<div class="topic-metadata">

**Author:** [@David\_Johansson](https://www.ruby-forum.com/u/David_Johansson)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 9:58am UTC](https://www.ruby-forum.com/t/suitable-design-for-magazine-portal/87834 "2007-03-06T09:58:09Z")

</div>

I am designing a portal for a “digital magazine” within travel, and would like to ask for advice on the design. With digital magazine, I mean a portal with lots of editorial content and commentary on a variety of topi…

---

## [HABTM equivalent of :dependent?](https://www.ruby-forum.com/t/habtm-equivalent-of-dependent/87732)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 9:23am UTC](https://www.ruby-forum.com/t/habtm-equivalent-of-dependent/87732 "2007-03-06T09:23:01Z")

</div>

Hey guys :slight\_smile: I’m wondering how I would go about getting a :dependent behavior on a habtm relation… It seems logical enough not to have :dependent on habtms, because habtm usually has to do with two differen…

---

## [Problem with send\_file and Exlporer 7](https://www.ruby-forum.com/t/problem-with-send-file-and-exlporer-7/86980)

<div class="topic-metadata">

**Author:** [@fred\_o](https://www.ruby-forum.com/u/fred_o)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 9:20am UTC](https://www.ruby-forum.com/t/problem-with-send-file-and-exlporer-7/86980 "2007-03-06T09:20:10Z")

</div>

Hi all, I am new to RoR and ruby. In one of my controller I have: def attachment send\_file(‘polop.txt’, :filename =\> ‘polop.txt’, :disposition =\> ‘attachment’, :streaming =\> ‘true’) end With Firefox, whe…

---

## [Concerns about starting a new "RESTfull compliant" site](https://www.ruby-forum.com/t/concerns-about-starting-a-new-restfull-compliant-site/86380)

<div class="topic-metadata">

**Author:** [@diegal](https://www.ruby-forum.com/u/diegal)\
**Replies:** 6\
**Last updated:** [March 6, 2007, 8:25am UTC](https://www.ruby-forum.com/t/concerns-about-starting-a-new-restfull-compliant-site/86380 "2007-03-06T08:25:55Z")

</div>

Hi all. I’m just starting a new app from scratch, and want to do it RESTfully… I’ve seen many blog posts, articles, and DHH’s RailsConf keynote about REST and resources and still have some questions about it. I’ve n…

---

## [Find query issue](https://www.ruby-forum.com/t/find-query-issue/87787)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [March 6, 2007, 8:16am UTC](https://www.ruby-forum.com/t/find-query-issue/87787 "2007-03-06T08:16:55Z")

</div>

Hey all I have: Item has\_many :refs Ref belongs\_to :item Item has\_many :sales Sale belongs\_to :item I would like to find all refs that have been sold 2 days ago and which name=‘gizmo’ I tried that: @refs= Ref.fi…

---

## [Help with link\_to\_function and creating pull down menu](https://www.ruby-forum.com/t/help-with-link-to-function-and-creating-pull-down-menu/87812)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 7:07am UTC](https://www.ruby-forum.com/t/help-with-link-to-function-and-creating-pull-down-menu/87812 "2007-03-06T07:07:47Z")

</div>

Hi. I’m trying to create a pull down menu, but I’m not sure how to do it using the link\_to\_function in my view. When the user clicks on the select01.gif, the submenu on the side should display, else if should be hidde…

---

## [Collection\_select and remote\_function used together?](https://www.ruby-forum.com/t/collection-select-and-remote-function-used-together/87822)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 6:52am UTC](https://www.ruby-forum.com/t/collection-select-and-remote-function-used-together/87822 "2007-03-06T06:52:46Z")

</div>

Hi there I have this code \<%= collection\_select ‘address’, ‘address’, @addresses, :id, :address, {}, { :onchange =\> remote\_function(:url =\> { :action =\> ‘show\_order’, :controller =\> ‘addresses’, :id =\> @user }, :up…

---

## [Reload](https://www.ruby-forum.com/t/reload/87820)

<div class="topic-metadata">

**Author:** [@prabu](https://www.ruby-forum.com/u/prabu)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 6:37am UTC](https://www.ruby-forum.com/t/reload/87820 "2007-03-06T06:37:45Z")

</div>

def test\_invalid\_first\_week\_ship\_score Swap.find(1).update\_attributes(:swap\_status\_id =\> 1) users(:jacob).update\_attribute(:score, 1) old\_score = users(:jacob).reload.score login\_as :jacob send\_shipment\_test(old\_sco…

---

## [World's greatest Brand name.Where does it come from?](https://www.ruby-forum.com/t/worlds-greatest-brand-name-where-does-it-come-from/87817)

<div class="topic-metadata">

**Author:** [@Root\_Canal](https://www.ruby-forum.com/u/Root_Canal)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 6:02am UTC](https://www.ruby-forum.com/t/worlds-greatest-brand-name-where-does-it-come-from/87817 "2007-03-06T06:02:42Z")

</div>

Do you you where does the name Google, Yahoo, Apache, Adobe and etc. originated? visit http://pinoyhacker.blogspot.com for nice infos

---

## [Ruby on Rails developer wanted ASAP](https://www.ruby-forum.com/t/ruby-on-rails-developer-wanted-asap/87816)

<div class="topic-metadata">

**Author:** [@BiginJapan](https://www.ruby-forum.com/u/BiginJapan)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 5:38am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-wanted-asap/87816 "2007-03-06T05:38:40Z")

</div>

Are you a rockstar Ruby on Rails programmer? We are looking for a pinoy programmer to work from home. We work on cool projects for companies like FOX Television and LEGO. Our salary is competitive, Php 500,000 to 6…

---

## [RuntimeError: ERROR C42P01 Mrelation](https://www.ruby-forum.com/t/runtimeerror-error-c42p01-mrelation/87809)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 2\
**Last updated:** [March 6, 2007, 4:39am UTC](https://www.ruby-forum.com/t/runtimeerror-error-c42p01-mrelation/87809 "2007-03-06T04:39:37Z")

</div>

Hi Guys, Am trying to map a database ‘view’ to activerecord but i get the following error "RuntimeError: ERROR C42P01 Mrelation “gff3view” does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT \* FROM gff3vie…

---

## [How I Import file CSV into database](https://www.ruby-forum.com/t/how-i-import-file-csv-into-database/87378)

<div class="topic-metadata">

**Author:** [@watxit](https://www.ruby-forum.com/u/watxit)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 3:58am UTC](https://www.ruby-forum.com/t/how-i-import-file-csv-into-database/87378 "2007-03-06T03:58:58Z")

</div>

Hi there. I don’t know how to Import CSV file into my database.Can you help me code it.thks

---

## [Configure actionmailer to recieve email on localhost?](https://www.ruby-forum.com/t/configure-actionmailer-to-recieve-email-on-localhost/87543)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 3:22am UTC](https://www.ruby-forum.com/t/configure-actionmailer-to-recieve-email-on-localhost/87543 "2007-03-06T03:22:30Z")

</div>

hi, is there a way i can configure my localhost to receive email using smtp? i can out emails fine but now would like to test/get-to-know how to handle incoming emails. if on my localhost:3000, do i do anything like b…

---

## [Routes: query parameter keys and significant keys in routes](https://www.ruby-forum.com/t/routes-query-parameter-keys-and-significant-keys-in-routes/87805)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 2:23am UTC](https://www.ruby-forum.com/t/routes-query-parameter-keys-and-significant-keys-in-routes/87805 "2007-03-06T02:23:28Z")

</div>

I’m currently facing a problem where I’d like to take parameter which is encoded into the path portion of the URL via routes on one page, and add it as a query parameter for a link to a subsequent page (linked on the …

---

## [Integration tests and xhr](https://www.ruby-forum.com/t/integration-tests-and-xhr/87804)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [March 6, 2007, 1:40am UTC](https://www.ruby-forum.com/t/integration-tests-and-xhr/87804 "2007-03-06T01:40:22Z")

</div>

Hi \*, I have a page that displays a partial containing a form (\_followup) that uses ajax to post to a controller action ‘add\_followup’ that adds some elements to a list. I’m not able to post to that form in integrati…

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

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