# Rails

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

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

---

## [Simple find works in console but not in controller](https://www.ruby-forum.com/t/simple-find-works-in-console-but-not-in-controller/140280)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 7\
**Last updated:** [June 12, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/simple-find-works-in-console-but-not-in-controller/140280 "2008-06-12T20:50:58Z")

</div>

I’m still new to rails and trying to figure out why this isn’t working. I’ve got a model named Buzzuser. It’s got an a boolean column/attribute named npc. At first I tried Buzzuser.find(:all, :conditions =\> \[“npc =…

---

## [Text uniqueness, using google or something else](https://www.ruby-forum.com/t/text-uniqueness-using-google-or-something-else/139123)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/text-uniqueness-using-google-or-something-else/139123 "2008-06-12T20:48:03Z")

</div>

Hi, i’ve some long texts. do you know if it’s possible to check if a given text is already on the web? maybe with a % of similarity. For example a text which is \>75% similar with another on the web isn’t unique. Any …

---

## [Symbol as array index (TypeError)](https://www.ruby-forum.com/t/symbol-as-array-index-typeerror/140307)

<div class="topic-metadata">

**Author:** [@geetarista](https://www.ruby-forum.com/u/geetarista)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/symbol-as-array-index-typeerror/140307 "2008-06-12T20:35:00Z")

</div>

I’m unfortunate to be working on a Windows machine and my editor of choice right now is NetBeans. I have a couple of projects that I’m working on and everything has been fine until I started getting an error. It lit…

---

## [Refreshing sortable\_element](https://www.ruby-forum.com/t/refreshing-sortable-element/140304)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/refreshing-sortable-element/140304 "2008-06-12T19:58:36Z")

</div>

Here’s a question: I have a sortable collection set up with \<%= sortable\_element … %\> I want to ajax more elements into the collection, but for them to work i have to destroy the sortable and recreate it. Is there ei…

---

## [A simple patch for the ri ruby documentation viewer](https://www.ruby-forum.com/t/a-simple-patch-for-the-ri-ruby-documentation-viewer/140300)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/a-simple-patch-for-the-ri-ruby-documentation-viewer/140300 "2008-06-12T19:52:03Z")

</div>

Hi everyone I wrote a simple patch for the ri Ruby documentation viewer that makes to easier to look up ambiguous methods. Please check it out and send or post me feedback. Here’s the link: http://danielchoi.com/sof…

---

## [Rails params parsing bug?](https://www.ruby-forum.com/t/rails-params-parsing-bug/140079)

<div class="topic-metadata">

**Author:** [@Eric\_LIn](https://www.ruby-forum.com/u/Eric_LIn)\
**Replies:** 5\
**Last updated:** [June 12, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/rails-params-parsing-bug/140079 "2008-06-12T18:54:21Z")

</div>

I have a form that sends the following query string to my Rails controller: transaxion\[category\_association\_attributes\]\[\]\[category\_id\]=2& transaxion\[category\_association\_attributes\]\[\]\[amount\]=12& transaxion\[category\_…

---

## [Weird update problem.. ID value being dropped any ideas why?](https://www.ruby-forum.com/t/weird-update-problem-id-value-being-dropped-any-ideas-why/140269)

<div class="topic-metadata">

**Author:** [@oshuma](https://www.ruby-forum.com/u/oshuma)\
**Replies:** 9\
**Last updated:** [June 12, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/weird-update-problem-id-value-being-dropped-any-ideas-why/140269 "2008-06-12T17:50:53Z")

</div>

Ive been trying to get my forst rials program to update and delete records ina mysql database and I’ve been experiencing this weird problem where no errors are thrown up the data doent get updated/deleted. Ive rtaced …

---

## [SslRequirement Problem](https://www.ruby-forum.com/t/sslrequirement-problem/140232)

<div class="topic-metadata">

**Author:** [@nyterage](https://www.ruby-forum.com/u/nyterage)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/sslrequirement-problem/140232 "2008-06-12T17:22:14Z")

</div>

Hello everyone, I’m pretty new to the RoR’s thing and am having a problem setting up SslRequirement plugin. I have installed the SslRequirement plugin and added it to my application\_controller.rb with include SslRequ…

---

## [Keeping the size of log files](https://www.ruby-forum.com/t/keeping-the-size-of-log-files/140261)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/keeping-the-size-of-log-files/140261 "2008-06-12T17:20:50Z")

</div>

Hi, During development, I see the size of development.log / test.log is increasing forever. Is it possible to set the limit of the size? I see that I can run rake log:clear occasionally, but I just wanna ignore the f…

---

## [Validate select list](https://www.ruby-forum.com/t/validate-select-list/140270)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 3\
**Last updated:** [June 12, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/validate-select-list/140270 "2008-06-12T16:51:15Z")

</div>

Hi, I have two database - tables (users and user\_permissions) which have a 1…n - relationship. If I want to create a new entry on ‘users’ table I need the correct user\_permission\_id from the other table. So the form …

---

## [How do you set HABTM values during migration?](https://www.ruby-forum.com/t/how-do-you-set-habtm-values-during-migration/140234)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/how-do-you-set-habtm-values-during-migration/140234 "2008-06-12T16:25:51Z")

</div>

Hi All, I’m a bit perplexed as to how to set up certain values during migration. My issue is similar to the following post: http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/95e65b9f701a8f95/8bce8f…

---

## [Writing archive files](https://www.ruby-forum.com/t/writing-archive-files/140263)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/writing-archive-files/140263 "2008-06-12T16:13:27Z")

</div>

Hi all, I want to collect a bunch of files from my filesystem, bundle them into an archive (ideally a .zip, but .tar or something would do) and send the archive to the user via send\_file. Is there an easy way to do t…

---

## [Converting REXML to libxml](https://www.ruby-forum.com/t/converting-rexml-to-libxml/140276)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/converting-rexml-to-libxml/140276 "2008-06-12T15:43:56Z")

</div>

Hello, REXML has been dog slow for us, and my tests with libxml are faster. Does anybody know how to incorporate libxml directly into the views for parsing and rendering instead of xml.builder ? Thanks Adam

---

## [Error message in flash can't display when using redirect\_to](https://www.ruby-forum.com/t/error-message-in-flash-cant-display-when-using-redirect-to/140268)

<div class="topic-metadata">

**Author:** [@infinit](https://www.ruby-forum.com/u/infinit)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/error-message-in-flash-cant-display-when-using-redirect-to/140268 "2008-06-12T14:09:02Z")

</div>

Hi all, I encountered a issue when using redirect\_to: in new.html.erb \<%= error\_messages\_for :user %\> in my controller, when I use render :action =\> ‘new’, the error msg can display correctly. but when I change ren…

---

## [Periodically\_call\_remote not updating page](https://www.ruby-forum.com/t/periodically-call-remote-not-updating-page/139969)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 5\
**Last updated:** [June 12, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/periodically-call-remote-not-updating-page/139969 "2008-06-12T14:04:23Z")

</div>

I’ve got an app where it takes considerable time to process a list of requests from a user, and so would like to use periodically\_call\_remote to update a page showing how many requests have been processed. The relevan…

---

## [Ruby/Rails Jobs in Queensland, Australia](https://www.ruby-forum.com/t/ruby-rails-jobs-in-queensland-australia/140272)

<div class="topic-metadata">

**Author:** [@mark\_gandolfo](https://www.ruby-forum.com/u/mark_gandolfo)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/ruby-rails-jobs-in-queensland-australia/140272 "2008-06-12T13:54:49Z")

</div>

Hey Guys, Is anyone after a ruby on rails developer in Queensland Australia? I’m currently a Technical Lead at a public company, and I’m looking at sharpening up my rails skills in a commercial environment. I code in …

---

## [Abstracted associations?](https://www.ruby-forum.com/t/abstracted-associations/140217)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 7\
**Last updated:** [June 12, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/abstracted-associations/140217 "2008-06-12T12:49:50Z")

</div>

I have a case where an association needs to be abstracted. It happens to be a has\_one. The parent will always have a has\_one association, but the exact model/table that should point to will change based on value avail…

---

## [Using absolute paths for images](https://www.ruby-forum.com/t/using-absolute-paths-for-images/140222)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 4\
**Last updated:** [June 12, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/using-absolute-paths-for-images/140222 "2008-06-12T12:14:01Z")

</div>

Hi all, I want to make images stored on my filesystem available to a Rails app, even if they are outside the Rails directory. For example, if my app is in /home/adam/rails\_app/my\_app I want to display an image from / …

---

## [Access database information at runtime](https://www.ruby-forum.com/t/access-database-information-at-runtime/138727)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 7\
**Last updated:** [June 12, 2008, 11:59am UTC](https://www.ruby-forum.com/t/access-database-information-at-runtime/138727 "2008-06-12T11:59:54Z")

</div>

Hi everyone Is there a way to access the information in db/database.yml at runtime. Sort of a DB\_ENV or something similar? Kindest regards Erik L.

---

## [Looking for flickr style pagination plug-in](https://www.ruby-forum.com/t/looking-for-flickr-style-pagination-plug-in/140253)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 11:57am UTC](https://www.ruby-forum.com/t/looking-for-flickr-style-pagination-plug-in/140253 "2008-06-12T11:57:33Z")

</div>

I am looking for a plug-in that might give me flickr-style pagination. Do you happen to know of one or something close? What do I mean by flickr-style? run this and scroll down. You will see pages 1-7 listed and wh…

---

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

<div class="topic-metadata">

**Author:** [@nanetsu](https://www.ruby-forum.com/u/nanetsu)\
**Replies:** 6\
**Last updated:** [June 12, 2008, 11:55am UTC](https://www.ruby-forum.com/t/pagination-problem/140239 "2008-06-12T11:55:38Z")

</div>

Hello everybody!! I have a problem cannot resolve in hold 2 days. This is step by step I made my Rail Application Create rail Aplication rails store Create database named store\_development by mySQL Fix store…

---

## [Ferret rebuild\_index](https://www.ruby-forum.com/t/ferret-rebuild-index/196711)

<div class="topic-metadata">

**Author:** [@purab](https://www.ruby-forum.com/u/purab)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 10:33am UTC](https://www.ruby-forum.com/t/ferret-rebuild-index/196711 "2008-06-12T10:33:55Z")

</div>

i am using ferret search engine for site search. but after week i need to rebuild index for ferret manually. i am searching for, is there any automated way for creating indexes in ferret.

---

## [Ruby-postgres gem installation on Leopard](https://www.ruby-forum.com/t/ruby-postgres-gem-installation-on-leopard/140249)

<div class="topic-metadata">

**Author:** [@simon.m.fox](https://www.ruby-forum.com/u/simon.m.fox)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 10:00am UTC](https://www.ruby-forum.com/t/ruby-postgres-gem-installation-on-leopard/140249 "2008-06-12T10:00:34Z")

</div>

Hi all I am just about to start a project using rails and am trying to setup my enviroment with postgres as the database. I have installed postgres 8.3.1 from source and am now having trouble installing the ruby- pos…

---

## [Some RJS Help](https://www.ruby-forum.com/t/some-rjs-help/140193)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 10\
**Last updated:** [June 12, 2008, 9:48am UTC](https://www.ruby-forum.com/t/some-rjs-help/140193 "2008-06-12T09:48:49Z")

</div>

I think this is quite basic. If I want to run some RJS effects on an element, but I’m not sure that the element will be there or not, how do I stop an error occurring? e.g. page\[‘test’\].visual\_effect :highlight give…

---

## [Has\_many :through and/or eager loading issues](https://www.ruby-forum.com/t/has-many-through-and-or-eager-loading-issues/140191)

<div class="topic-metadata">

**Author:** [@sabon](https://www.ruby-forum.com/u/sabon)\
**Replies:** 3\
**Last updated:** [June 12, 2008, 9:48am UTC](https://www.ruby-forum.com/t/has-many-through-and-or-eager-loading-issues/140191 "2008-06-12T09:48:13Z")

</div>

I’m stuck with some issues I can’t overcome by myself, please help. What I want to achieve: I want to get the list of spend per category for the current user for the last 30 days. Preferably also sorted by spend, des…

---

## [Crash in actionpack on uploading files to the server](https://www.ruby-forum.com/t/crash-in-actionpack-on-uploading-files-to-the-server/140246)

<div class="topic-metadata">

**Author:** [@Tim\_Sanders](https://www.ruby-forum.com/u/Tim_Sanders)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 9:24am UTC](https://www.ruby-forum.com/t/crash-in-actionpack-on-uploading-files-to-the-server/140246 "2008-06-12T09:24:39Z")

</div>

I have a working Rails application that allows users to upload files in a couple of places. I recently converted from doing my development on a Linux box to OS X 10.5 and also upgraded from Rails 1.1.6 to Rails 2.1. I…

---

## [Rails routes case sensitive?](https://www.ruby-forum.com/t/rails-routes-case-sensitive/135434)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [June 12, 2008, 8:36am UTC](https://www.ruby-forum.com/t/rails-routes-case-sensitive/135434 "2008-06-12T08:36:52Z")

</div>

If I have a route map.connect ‘/test’, :controller =\> “test”, :action =\> "test localhost:3000/test (works) localhost:3000/TEST (doesn’t work) How do I get both to work? Thanks for your help.

---

## [Cleaning URL hashes(#)](https://www.ruby-forum.com/t/cleaning-url-hashes/140166)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 1\
**Last updated:** [June 12, 2008, 8:35am UTC](https://www.ruby-forum.com/t/cleaning-url-hashes/140166 "2008-06-12T08:35:12Z")

</div>

Hi i am getting # in all the urls in my application.How to get rid of this # in urls http://localhost:3000/#/question/question\_list http://localhost:3000/#/base/welcome … … suggest me any solution ripan

---

## [Starting record id is 10000 in oracle 10g ,why?](https://www.ruby-forum.com/t/starting-record-id-is-10000-in-oracle-10g-why/140181)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [June 12, 2008, 8:13am UTC](https://www.ruby-forum.com/t/starting-record-id-is-10000-in-oracle-10g-why/140181 "2008-06-12T08:13:15Z")

</div>

i create a new model(User) and create a new record (User.create(attributes)) in oracle when i check User.find 1 in console it gives record not found error when i try User.find(:first).id --\> 10000 how to change th…

---

## [View the new node added to a tree](https://www.ruby-forum.com/t/view-the-new-node-added-to-a-tree/140240)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [June 12, 2008, 7:24am UTC](https://www.ruby-forum.com/t/view-the-new-node-added-to-a-tree/140240 "2008-06-12T07:24:37Z")

</div>

Hi… I am working on data having tree structure. I did the insertion of new node to the tree. After inserting I need to show the tree with the new node. For example: At first the tree looks like: - Root - Node 1 N…

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

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