# Rails

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

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

---

## [How to prevent Rails from url-encoding](https://www.ruby-forum.com/t/how-to-prevent-rails-from-url-encoding/118771)

<div class="topic-metadata">

**Author:** [@threeeyedfish](https://www.ruby-forum.com/u/threeeyedfish)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/how-to-prevent-rails-from-url-encoding/118771 "2007-10-30T23:33:14Z")

</div>

I have a route map.connect ‘browse/:languages’, :controller =\> ‘browse’, :action =\> ‘index’ where I expect :languages to be something like ‘en+jp+zh\_tw’ so that I can later do languages = params\[:languages\].split(’ …

---

## [Scope Find On Non ActiveRecord Models](https://www.ruby-forum.com/t/scope-find-on-non-activerecord-models/118789)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/scope-find-on-non-activerecord-models/118789 "2007-10-30T23:07:31Z")

</div>

I have the following setup class User \< MySuperClass #not an AR model attr\_accessor :id, :name end class Picture \< AR::Base end Picture’s db table looks something like -id -user\_id -size I want to be able to d…

---

## [Create post method error](https://www.ruby-forum.com/t/create-post-method-error/118788)

<div class="topic-metadata">

**Author:** [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/create-post-method-error/118788 "2007-10-30T23:05:11Z")

</div>

Hi I am having trouble with a submit code for a form. I don’t get errors or anything. it just goes to the redirect and it dosen’t show anything def create @comment = ForumComment.new(params\[:post\]) @comment.user\_id …

---

## [Render partial collection with index](https://www.ruby-forum.com/t/render-partial-collection-with-index/118786)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/render-partial-collection-with-index/118786 "2007-10-30T23:01:05Z")

</div>

Hi, is there an option for “render” command to have an index while rendering a partial with a collection? Regards

---

## [Message queue with good ruby bindings?](https://www.ruby-forum.com/t/message-queue-with-good-ruby-bindings/118785)

<div class="topic-metadata">

**Author:** [@bdeverea](https://www.ruby-forum.com/u/bdeverea)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/message-queue-with-good-ruby-bindings/118785 "2007-10-30T22:16:08Z")

</div>

I’m looking for a message queuing system that has good ruby bindings. I’ve found a bunch of a systems (ActiveMQ, JBoss Messaging, RabbitMQ, etc…) but I’m having difficulty selecting one. I’m looking to use the messagi…

---

## [Self-referential :has\_many :through relationship?](https://www.ruby-forum.com/t/self-referential-has-many-through-relationship/118575)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/self-referential-has-many-through-relationship/118575 "2007-10-30T21:57:18Z")

</div>

Hi All, I’m building an app that needs to make a comparison between two people and I’m wondering how to best build the models, and if I’m doing this correctly. I’m representing each partner as a User, so I wanted to …

---

## [ActiveRecord Query Building Questions](https://www.ruby-forum.com/t/activerecord-query-building-questions/118775)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/activerecord-query-building-questions/118775 "2007-10-30T21:55:53Z")

</div>

In my own framework, I have a tool which converts forms into queries and has certain features I’m not seeing talked about for ActiveRecord. Before I go transcribing the tools I’m used to working with into Ruby , I fig…

---

## [Rails and a gnome rss aggregator: straw](https://www.ruby-forum.com/t/rails-and-a-gnome-rss-aggregator-straw/118777)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/rails-and-a-gnome-rss-aggregator-straw/118777 "2007-10-30T21:23:56Z")

</div>

I really like the straw RSS aggregator, \<http://www.gnome.org/projects/ straw/\>, and would like to build a RoR application on top of straw. Of course, this would be much easier if straw were to follow RoR schema conve…

---

## [How to call mutiple actions in one layout](https://www.ruby-forum.com/t/how-to-call-mutiple-actions-in-one-layout/118736)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 6\
**Last updated:** [October 30, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-call-mutiple-actions-in-one-layout/118736 "2007-10-30T21:22:35Z")

</div>

hi for a few days now I am searching for a solution for this problem: I would like to render multiple actions in a layout. For example: I have in the welcome layout two divs: 1 menubar and a main. the menu bar has …

---

## [Freeimage/image\_science on leopard](https://www.ruby-forum.com/t/freeimage-image-science-on-leopard/118482)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 10\
**Last updated:** [October 30, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/freeimage-image-science-on-leopard/118482 "2007-10-30T21:17:30Z")

</div>

\---------- Forwarded message ---------- From: Michael S. removed\_email\_address@domain.invalid Date: Oct 27, 2007 11:21 AM Subject: Re: freeimage on leopard To: Thomas M. removed\_email\_address@domain.invalid Hi Thoma…

---

## [Iterator question](https://www.ruby-forum.com/t/iterator-question/118698)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 9\
**Last updated:** [October 30, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/iterator-question/118698 "2007-10-30T20:52:20Z")

</div>

I am trying to create a form dropdown select field and I would like to use an array to build it. My code is: \<% states = \[“Alabama”, “Alaska”, “Alberta”, “Arizona”, “Arkansas” \] states.each do | state | %\> \<optio…

---

## [Which server should i use for RAILs on my VPS](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619)

<div class="topic-metadata">

**Author:** [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Replies:** 9\
**Last updated:** [October 30, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/which-server-should-i-use-for-rails-on-my-vps/118619 "2007-10-30T20:40:14Z")

</div>

Hi guys, I have a linux VPS. I was wondering which is the best way to run rails on my server. Should I use: Webbricks Apache Apache+mongrel LiteSpeed - http://litespeedtech.com waiting for some nice suggestions

---

## [Logging in model](https://www.ruby-forum.com/t/logging-in-model/118735)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/logging-in-model/118735 "2007-10-30T19:42:42Z")

</div>

When I try to use logger in a model, I get a NameError: for example, class ItemFactory def getItemById(id) logger.info(“getItemById #{id}”) end end produces… NameError: undefined local variable or method logger' …

---

## [Force the id value](https://www.ruby-forum.com/t/force-the-id-value/118641)

<div class="topic-metadata">

**Author:** [@gabriele](https://www.ruby-forum.com/u/gabriele)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/force-the-id-value/118641 "2007-10-30T19:38:02Z")

</div>

Hallo, I’m trying to migrate a lot of values from a database (MS Access mdb via odbc) to another mysql database (from which I’ll start to build a RoR based application), using the ruby-odbc library I can access the d…

---

## [Running install.rb for piston'd plugins?](https://www.ruby-forum.com/t/running-install-rb-for-pistond-plugins/113706)

<div class="topic-metadata">

**Author:** [@ntran](https://www.ruby-forum.com/u/ntran)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/running-install-rb-for-pistond-plugins/113706 "2007-10-30T19:26:54Z")

</div>

Using piston to handle plugins is great, except that the install.rb script isn’t run when you use ‘piston import’. I’ve tried using script\\runner to complete the installation, but ran into problems with paths. Does a…

---

## [Mephisto Install](https://www.ruby-forum.com/t/mephisto-install/118768)

<div class="topic-metadata">

**Author:** [@rubynewby](https://www.ruby-forum.com/u/rubynewby)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/mephisto-install/118768 "2007-10-30T19:05:13Z")

</div>

I have a brand spankin’ new install of mephisto hosted on HostGator and am getting the following errors: …/config/…/vendor/RedCloth-3.0.4/lib/redcloth.rb:630: warning: ambiguous first argument; put parentheses or eve…

---

## [Soap Mapping Object Problem](https://www.ruby-forum.com/t/soap-mapping-object-problem/118767)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/soap-mapping-object-problem/118767 "2007-10-30T19:03:24Z")

</div>

I have a soap mapping object which has been returned by betfair:- irb(main):026:0\> response.result.eventTypeItems.eventType\[0\] =\> #\<SOAP::Mapping::Object:0x…fdbc5d734 {}id=“6423” {}name=“American Football” {}nextMarke…

---

## [Object Oriented Partials](https://www.ruby-forum.com/t/object-oriented-partials/118760)

<div class="topic-metadata">

**Author:** [@steve13o](https://www.ruby-forum.com/u/steve13o)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/object-oriented-partials/118760 "2007-10-30T18:48:50Z")

</div>

Are there any plugins/mixins that provide an OO partial view framework? e.g If A \< B (subclass) and A \< C, As I’m rendering a list of A’s, depending on the type of A, attempts to render \_B\_as\_listitem or \_C\_as\_listi…

---

## [Looking for RoR Developers in PEI](https://www.ruby-forum.com/t/looking-for-ror-developers-in-pei/118759)

<div class="topic-metadata">

**Author:** [@ROSS\_RSMSShannon](https://www.ruby-forum.com/u/ROSS_RSMSShannon)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/looking-for-ror-developers-in-pei/118759 "2007-10-30T18:03:42Z")

</div>

To apply contact Shannon Baker at removed\_email\_address@domain.invalid. ROSS (a division of Pinnacle) is a leading provider of Recruitment Process Outsourcing (RPO). Our unique model truly creates strategic alignment …

---

## [Custom method in restful design](https://www.ruby-forum.com/t/custom-method-in-restful-design/116333)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/custom-method-in-restful-design/116333 "2007-10-30T17:41:26Z")

</div>

Hi all, I want to make a custom method in my restful users controller. The method ‘activate’, activates and finalizes the signup proces of a user. The method should get the id and the activation code of the user (pr…

---

## [Rails Caching with no caching at all](https://www.ruby-forum.com/t/rails-caching-with-no-caching-at-all/118752)

<div class="topic-metadata">

**Author:** [@pcollins](https://www.ruby-forum.com/u/pcollins)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/rails-caching-with-no-caching-at-all/118752 "2007-10-30T17:28:00Z")

</div>

Im developing a data oriented application, i mean, i have a lot of tables with catalogs and views, but the code is allmost the same for every page. Every module use the same view, so i put it in a partial and use it w…

---

## [Current value of object.method in helper](https://www.ruby-forum.com/t/current-value-of-object-method-in-helper/118510)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/current-value-of-object-method-in-helper/118510 "2007-10-30T17:22:44Z")

</div>

Hi, I am currently working to generate selection from my validation table where code and description pairs are stored. This works fine except when the current value is not exist in validation table. There are some …

---

## [EDGE Rails, Erb Views, Confused](https://www.ruby-forum.com/t/edge-rails-erb-views-confused/118579)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/edge-rails-erb-views-confused/118579 "2007-10-30T16:38:10Z")

</div>

I have been working with rails on and off for a while now. I still consider myself a noob with rails. Now with EDGE rails I am quite lost. I am using the Preview Release right now. My database migrations are quite sex…

---

## [Script.aculo.us Sortable leave copy](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054)

<div class="topic-metadata">

**Author:** [@bugfix](https://www.ruby-forum.com/u/bugfix)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/script-aculo-us-sortable-leave-copy/88054 "2007-10-30T16:30:29Z")

</div>

Is there a way to clone an element, so that it leaves a copy of itself from its point of origin when itâ€™s dragged to another sortable list? Thanks for hints! harald

---

## [Asset delivery](https://www.ruby-forum.com/t/asset-delivery/118706)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/asset-delivery/118706 "2007-10-30T16:27:03Z")

</div>

So I am using asset packager. It works find in dev, but when I build it, it has an error in the js and doesn’t include a lot of the styles in the files. I am looking a bundle fu, but since I have a few packages, this …

---

## [Finding layouts](https://www.ruby-forum.com/t/finding-layouts/118729)

<div class="topic-metadata">

**Author:** [@jdgary](https://www.ruby-forum.com/u/jdgary)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/finding-layouts/118729 "2007-10-30T15:47:01Z")

</div>

I’m trying to find out whether a particular layout file exists at runtime. I need to potentially change the layout depending on which “site” a customer is visiting. I can do this by calling a method in the controller …

---

## [Using Standard Integration Tests with RSpec](https://www.ruby-forum.com/t/using-standard-integration-tests-with-rspec/118718)

<div class="topic-metadata">

**Author:** [@dougal](https://www.ruby-forum.com/u/dougal)\
**Replies:** 5\
**Last updated:** [October 30, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/using-standard-integration-tests-with-rspec/118718 "2007-10-30T15:18:46Z")

</div>

Hi there. I am using RSpec for unit and functional testing on a project. I have however found the (experimental) RSpec stories to be un-intuitive in some situations. The RSpec plugins seems to disable the standard R…

---

## [Problem with Oracle](https://www.ruby-forum.com/t/problem-with-oracle/118335)

<div class="topic-metadata">

**Author:** [@Torben\_Bruun](https://www.ruby-forum.com/u/Torben_Bruun)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/problem-with-oracle/118335 "2007-10-30T14:35:21Z")

</div>

Hi, Normally I’m using Rails with mySql but for the moment I’m trying to make a Rails/Oracle solution using oci and instantclient, but I’m having a problem I receive the following when doing a select Exception string…

---

## [How to define methods dynamically using define\_method](https://www.ruby-forum.com/t/how-to-define-methods-dynamically-using-define-method/196506)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 2:12pm UTC](https://www.ruby-forum.com/t/how-to-define-methods-dynamically-using-define-method/196506 "2007-10-30T14:12:28Z")

</div>

Hi Folks, I have an array has\_roles = %w\[admin employee …\] which is a subset of application\_roles = \[“admin”, “employee”, “manager”…\] Now I would define a method for each role in application roles where i would call …

---

## [Lazy loading code samples](https://www.ruby-forum.com/t/lazy-loading-code-samples/118725)

<div class="topic-metadata">

**Author:** [@meerkalim](https://www.ruby-forum.com/u/meerkalim)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/lazy-loading-code-samples/118725 "2007-10-30T13:12:12Z")

</div>

Hi, we need to apply the lazy loading of field values when mouse scroll down in views generated using the AJAX\_SCAFFOLD for ROR web project can any one help me out with sample code regards meer

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

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