# Rails

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

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

---

## [Authorization plugin: unsetting roles?](https://www.ruby-forum.com/t/authorization-plugin-unsetting-roles/89164)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/authorization-plugin-unsetting-roles/89164 "2007-03-17T23:26:11Z")

</div>

Hi there I’m using the Authorization plugin but am having trouble unsetting roles. I’m off and running with it using it on top of acts\_as\_authenticated but am having trouble unsetting roles once I’ve set them. A Sur…

---

## [Finding records with some attribute set to nil](https://www.ruby-forum.com/t/finding-records-with-some-attribute-set-to-nil/89141)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/finding-records-with-some-attribute-set-to-nil/89141 "2007-03-17T22:59:22Z")

</div>

Hi! Suppose there is boolean attribute “has\_been\_read” on Posts table… how do I find all the records that have this attribute set to NULL ? This seems logical, but it doesn’t work (I tried other things as well): Post…

---

## [Something useful - get stack trace by email](https://www.ruby-forum.com/t/something-useful-get-stack-trace-by-email/89150)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 10:45pm UTC](https://www.ruby-forum.com/t/something-useful-get-stack-trace-by-email/89150 "2007-03-17T22:45:07Z")

</div>

hi! I’ve heard about that on Geoffrey Grosenbach’s podcast (episode with Tom Copeland: link here: http://podcast.rubyonrails.org/transcripts/2006/tom\_copeland Geoffrey Grosenbach: Now, speaking of other kinds of s…

---

## [SOAP4R Error in Rails](https://www.ruby-forum.com/t/soap4r-error-in-rails/83753)

<div class="topic-metadata">

**Author:** [@alexamat](https://www.ruby-forum.com/u/alexamat)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/soap4r-error-in-rails/83753 "2007-03-17T22:43:07Z")

</div>

Hi all I have a ruby script that calls a web service which works just fine, However when i try to use the same code from a rails model I get the following error: uninitialized constant SOAP::Mapping::EncodedRegistry …

---

## [\[JOB\] Rails Developers, DC & SF](https://www.ruby-forum.com/t/job-rails-developers-dc-sf/89158)

<div class="topic-metadata">

**Author:** [@OSS](https://www.ruby-forum.com/u/OSS)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/job-rails-developers-dc-sf/89158 "2007-03-17T22:11:02Z")

</div>

I’m currently recruiting Rails Developers for 3 clients: 2 in Washington, D.C. and 1 in San Francisco. Instead of posting the job descriptions here, please see the following link and review the last 2 jobs posted: ht…

---

## [Uploading and file permissions on XP](https://www.ruby-forum.com/t/uploading-and-file-permissions-on-xp/89152)

<div class="topic-metadata">

**Author:** [@stiv](https://www.ruby-forum.com/u/stiv)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/uploading-and-file-permissions-on-xp/89152 "2007-03-17T21:30:08Z")

</div>

I’m trying to do a simple file (image) upload and I’m running into trouble with permission to upload the file System: XP User staus: local admin Rails env: Instant rails w/Mongrel (vanilla setup) local site www.sgm.…

---

## [Is there a centralized location (or link) by which to view a](https://www.ruby-forum.com/t/is-there-a-centralized-location-or-link-by-which-to-view-a/87355)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 3\
**Last updated:** [March 17, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/is-there-a-centralized-location-or-link-by-which-to-view-a/87355 "2007-03-17T21:19:57Z")

</div>

To my knowledge, I must manually open each “index” file as I desire to see them. Is there no plugin (or already created repository of which I’m simply not aware) that allows viewing of all RDoc in a project, centrall…

---

## [Is there a problem with map.root](https://www.ruby-forum.com/t/is-there-a-problem-with-map-root/89154)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/is-there-a-problem-with-map-root/89154 "2007-03-17T21:15:56Z")

</div>

Hi All, I’ve taken a look at the rails API, and per it, I should be able to say: map.root :controller =\> ‘controller\_name’ . . .however, ‘mongrel\_rails start’ seems to fail giving me an error: \*\* Starting Mongrel li…

---

## [Has\_many :through and has\_one association](https://www.ruby-forum.com/t/has-many-through-and-has-one-association/89129)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 3\
**Last updated:** [March 17, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/has-many-through-and-has-one-association/89129 "2007-03-17T20:46:23Z")

</div>

Can’t get the following to work: class Forum \< ActiveRecord::Base has\_many :topics has\_many :recent\_posts, :through =\> :topics, :source =\> :last\_post, :order =\> ‘posted\_at DESC’ end class Topic \< ActiveRecord::Base …

---

## [Rails v.1.2.3](https://www.ruby-forum.com/t/rails-v-1-2-3/89137)

<div class="topic-metadata">

**Author:** [@lancer](https://www.ruby-forum.com/u/lancer)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/rails-v-1-2-3/89137 "2007-03-17T19:56:49Z")

</div>

Hello, I installed Rails v.1.2.3 today and created a simple controller (MyTest) with one def, index. Index just renders some text. I don’t think I’m making it that far, though, when I call up the site. It gives the fo…

---

## [Created\_on and updated\_on in a non-ActiveRecord model](https://www.ruby-forum.com/t/created-on-and-updated-on-in-a-non-activerecord-model/89120)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 4\
**Last updated:** [March 17, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/created-on-and-updated-on-in-a-non-activerecord-model/89120 "2007-03-17T18:50:39Z")

</div>

Hi you all, I have a model simulating an ActiveRecord model, according to the tips stated in \[1\]. It is simulated because even though I am gonna save the attributes in a file, not in a DB, I still want the validations…

---

## [Recommend a pdf program for mac? for quick lookup?](https://www.ruby-forum.com/t/recommend-a-pdf-program-for-mac-for-quick-lookup/89131)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 6:49pm UTC](https://www.ruby-forum.com/t/recommend-a-pdf-program-for-mac-for-quick-lookup/89131 "2007-03-17T18:49:39Z")

</div>

hi, i was wondering if there is a recommended program to help with quick lookup in a pdf file via tags or maybe a better bookmark interface. thanks.

---

## [Ruby/Rails/Sysadmin job in Zurich/Switzerland](https://www.ruby-forum.com/t/ruby-rails-sysadmin-job-in-zurich-switzerland/89134)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/ruby-rails-sysadmin-job-in-zurich-switzerland/89134 "2007-03-17T18:27:37Z")

</div>

There is an open position for a "Pragmatic Programmer"™ at the Department of Geography of the University of Zurich. The job is a mixture of software developper and sysadmin. Over the time you would have to deal with q…

---

## [Where to put database loading method?](https://www.ruby-forum.com/t/where-to-put-database-loading-method/89135)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/where-to-put-database-loading-method/89135 "2007-03-17T18:16:36Z")

</div>

Hi all, I have a method in the model.rb that loads data for that model. I use script/runner to execute it. Should I be putting this method in the model controller instead ? Or put it in it’s own script in lib ? Thank…

---

## [Disabling a check\_box\_tag](https://www.ruby-forum.com/t/disabling-a-check-box-tag/89133)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/disabling-a-check-box-tag/89133 "2007-03-17T18:12:36Z")

</div>

Anyone know how to accomplish this? Can’t seem to get it to work. Thanks, Scott

---

## [Url, hash, flatten, etc](https://www.ruby-forum.com/t/url-hash-flatten-etc/89122)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/url-hash-flatten-etc/89122 "2007-03-17T17:05:22Z")

</div>

Hi, I have a form which generates statistics: form.rhtml --\> /my\_big\_app/stats/generate --\> view\_results.rhtml My method ‘generate’ generates an array of statistics @results = \[hash\_1,hash\_2,etc.\] and I want to displ…

---

## [When nothing isn't](https://www.ruby-forum.com/t/when-nothing-isnt/89087)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 6\
**Last updated:** [March 17, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/when-nothing-isnt/89087 "2007-03-17T16:56:09Z")

</div>

One of the strangest things for me, coming from the “C” world to Ruby was how much attention “nil” gets. Sure, NULL is there in C, but it’s about as interesting as its value. In Ruby, it seems as if nil is an extra v…

---

## [How to install freeimage on windows xp](https://www.ruby-forum.com/t/how-to-install-freeimage-on-windows-xp/89130)

<div class="topic-metadata">

**Author:** [@schaf88](https://www.ruby-forum.com/u/schaf88)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/how-to-install-freeimage-on-windows-xp/89130 "2007-03-17T16:50:16Z")

</div>

hi i want to install freeimage on windows xp, but i don’t know how to do. cheers flo

---

## [How to create a corporation](https://www.ruby-forum.com/t/how-to-create-a-corporation/89118)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/how-to-create-a-corporation/89118 "2007-03-17T14:44:17Z")

</div>

Hi all I need to creae a web site that will tal about differnt types of corporations, how to incorporate, and provide incorporation asssitance. Where can I find any RoR template that will help me on this project? tha…

---

## [Unit test problem -- BetterNestedSet?](https://www.ruby-forum.com/t/unit-test-problem-betternestedset/89123)

<div class="topic-metadata">

**Author:** [@al-evans](https://www.ruby-forum.com/u/al-evans)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/unit-test-problem-betternestedset/89123 "2007-03-17T14:29:36Z")

</div>

After adding validates\_uniqueness\_of :login\_name to a User model that acts\_as\_nested\_set using BetterNestedSet, my unit tests started failing. On investigation, I found that valid? wasn’t true for the records in que…

---

## [Common application models](https://www.ruby-forum.com/t/common-application-models/89000)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 4\
**Last updated:** [March 17, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/common-application-models/89000 "2007-03-17T13:44:34Z")

</div>

Hey all I have the situation where i will be building 3 seperate applications that use the same database; and hence the same models. As I dont really want to duplicate that code for the models, is there a way to make…

---

## [Emacs setup](https://www.ruby-forum.com/t/emacs-setup/89092)

<div class="topic-metadata">

**Author:** [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/emacs-setup/89092 "2007-03-17T13:09:54Z")

</div>

I have never used emacs before. I have a windows box. Can anyone point me at some kind of tutorial for setting up emacs with all the nifty Rails tools you can get for it? Thanks.

---

## [HO, HM, HMBTM plugins for views](https://www.ruby-forum.com/t/ho-hm-hmbtm-plugins-for-views/88870)

<div class="topic-metadata">

**Author:** [@Fefo](https://www.ruby-forum.com/u/Fefo)\
**Replies:** 5\
**Last updated:** [March 17, 2007, 11:04am UTC](https://www.ruby-forum.com/t/ho-hm-hmbtm-plugins-for-views/88870 "2007-03-17T11:04:49Z")

</div>

Hi all ! I’m a little bit lazy and I’m looking for a plugin or a generator that allows me to improve my views having in consideration the associations in the models (i.e. if I have a model called orders HM products th…

---

## [Multiple selection](https://www.ruby-forum.com/t/multiple-selection/50565)

<div class="topic-metadata">

**Author:** [@kitesurfer](https://www.ruby-forum.com/u/kitesurfer)\
**Replies:** 1\
**Last updated:** [March 17, 2007, 9:36am UTC](https://www.ruby-forum.com/t/multiple-selection/50565 "2007-03-17T09:36:12Z")

</div>

Hi, I have a table with a paginator and each row displays its own checkbox. I want to be able to offer actions like select\_all/deselect\_all/select\_partial. The problem how does on record user actions so that the for…

---

## [Require\_gem is obsolete error](https://www.ruby-forum.com/t/require-gem-is-obsolete-error/88991)

<div class="topic-metadata">

**Author:** [@macfizz](https://www.ruby-forum.com/u/macfizz)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 8:03am UTC](https://www.ruby-forum.com/t/require-gem-is-obsolete-error/88991 "2007-03-17T08:03:34Z")

</div>

Hi all, I upgraded my gem, ruby and rails installations yesterday. The versions are now respectively. Now, when I run the server I see this warning message: “/usr/local/bin/rake:17:Warning: require\_gem is obsolete. …

---

## [Encoding problems (i think utf-8 problems)](https://www.ruby-forum.com/t/encoding-problems-i-think-utf-8-problems/88976)

<div class="topic-metadata">

**Author:** [@dweinand](https://www.ruby-forum.com/u/dweinand)\
**Replies:** 2\
**Last updated:** [March 17, 2007, 8:02am UTC](https://www.ruby-forum.com/t/encoding-problems-i-think-utf-8-problems/88976 "2007-03-17T08:02:34Z")

</div>

i have problems with umlauts (ï¿½ï¿½ï¿½) sent from an observer to my controller. i dont exactely know what my controller receives. using rails 1.1.6 on Win XP the text field is observed with this Observer: \<%= obser…

---

## [Anonymous voting, how do they do this?](https://www.ruby-forum.com/t/anonymous-voting-how-do-they-do-this/88980)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 17, 2007, 7:47am UTC](https://www.ruby-forum.com/t/anonymous-voting-how-do-they-do-this/88980 "2007-03-17T07:47:34Z")

</div>

at wikio.com, you can vote anonymously, how do you think they are doing this…? if I vote in FF, then clear cookies, it remembers I voted if I then vote in IE, it still remembers I voted… so it must be server side, bu…

---

## [How to correct pluralization?](https://www.ruby-forum.com/t/how-to-correct-pluralization/89027)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 10\
**Last updated:** [March 17, 2007, 7:46am UTC](https://www.ruby-forum.com/t/how-to-correct-pluralization/89027 "2007-03-17T07:46:34Z")

</div>

Hi all! Is it possible to add rules to rails’ inflector so I can have posses -\> posse (thinks it’s “poss”) and hero -\> heroes (thinks it’s “heros”) Thank you!

---

## [Filling Dropdowns with 2 database columns](https://www.ruby-forum.com/t/filling-dropdowns-with-2-database-columns/89097)

<div class="topic-metadata">

**Author:** [@gelpimp](https://www.ruby-forum.com/u/gelpimp)\
**Replies:** 0\
**Last updated:** [March 17, 2007, 7:46am UTC](https://www.ruby-forum.com/t/filling-dropdowns-with-2-database-columns/89097 "2007-03-17T07:46:34Z")

</div>

hello, new to the whole rails thing, new to the group, too. please forgive me if i’m asking this in the wrong place. if so, please direct me to the proper place. this seems to be extremely basic, but it is early in…

---

## [Bad ActiveSupport gem in gem repository?](https://www.ruby-forum.com/t/bad-activesupport-gem-in-gem-repository/89054)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 5\
**Last updated:** [March 17, 2007, 7:22am UTC](https://www.ruby-forum.com/t/bad-activesupport-gem-in-gem-repository/89054 "2007-03-17T07:22:42Z")

</div>

All, I’m attempting to update my gems to 1.2 and I get the following: Install required dependency activesupport? \[Yn\] Y ERROR: While executing gem … (Gem::InstallError) invalid gem format for c:/ruby/lib/ruby/gems…

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

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