# Rails

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

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

---

## [Newbie: Simple Routes](https://www.ruby-forum.com/t/newbie-simple-routes/146489)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/newbie-simple-routes/146489 "2008-08-21T18:50:14Z")

</div>

Hi, Just after some advice on routes, this is the first time I’ve played with them. I had a site which used “http://www.example.com/rss.xml” at the root of the site for the RSS feed. My new Rails powered site however…

---

## [Script/console .irb\_history is messed up](https://www.ruby-forum.com/t/script-console-irb-history-is-messed-up/146499)

<div class="topic-metadata">

**Author:** [@quinn](https://www.ruby-forum.com/u/quinn)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/script-console-irb-history-is-messed-up/146499 "2008-08-21T18:25:02Z")

</div>

for some reason when i exit script/console, even with an empty ~/.irb\_history, it copies a bunch of commands i didn’t type into irb\_history. they are commands i typed, just not in that particular session, and not in a…

---

## [Session cookie missing](https://www.ruby-forum.com/t/session-cookie-missing/146495)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/session-cookie-missing/146495 "2008-08-21T17:45:11Z")

</div>

I am running RAILS 1.2.6 with apache balancing between a cluster of mongrel processes. It appears that intermittently the server is not receiving the session cookie from the browser for certain users. Wondering what …

---

## [Is there a more efficient way to work dropdowns from other t](https://www.ruby-forum.com/t/is-there-a-more-efficient-way-to-work-dropdowns-from-other-t/146476)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 5\
**Last updated:** [August 21, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/is-there-a-more-efficient-way-to-work-dropdowns-from-other-t/146476 "2008-08-21T17:40:29Z")

</div>

Hi, all. Just wondering if there is a better dry way to do this: I have an inventory program, that I’m writing to learn rails. It has multiple tables, one of the main ones is called parts. Parts has name, manufacture…

---

## [Default named\_scope](https://www.ruby-forum.com/t/default-named-scope/146426)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [August 21, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/default-named-scope/146426 "2008-08-21T17:20:19Z")

</div>

Hi, I was wondering, is there a way to add a default named scope for a model? I would like all Model queries to have an “active = 1” condition. And optionally another named\_scope where “active = 1 or active = 0”. Ch…

---

## [Discuss Your Rails Hosting here, with rates & experience](https://www.ruby-forum.com/t/discuss-your-rails-hosting-here-with-rates-experience/142357)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 6\
**Last updated:** [August 21, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/discuss-your-rails-hosting-here-with-rates-experience/142357 "2008-08-21T17:00:36Z")

</div>

Hi to all, I have seen many threads here that talks a bit on Hosting scenario and keeps the matter hanging and discussions gets truncated without any outcome. It would be nice to have a serious thread like this, wher…

---

## [Better way to itterate through array](https://www.ruby-forum.com/t/better-way-to-itterate-through-array/146475)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 6\
**Last updated:** [August 21, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/better-way-to-itterate-through-array/146475 "2008-08-21T16:45:17Z")

</div>

Hi, all. Just wondering if there is a better dry way to itterate through array. Here is what I’m trying to accomplish. Some history: I have an inventory program, that I’m writing to learn rails. It has multiple tabl…

---

## [Javascript click vs dblclick](https://www.ruby-forum.com/t/javascript-click-vs-dblclick/146480)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 1\
**Last updated:** [August 21, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/javascript-click-vs-dblclick/146480 "2008-08-21T16:43:34Z")

</div>

Hi All, I have some issues with click and dblclick event. I am listening both of them on some div but when I issue a dblclick, I get two single click plus another dblclick event. Do you know how to handle that and ge…

---

## [SSL for PayPal](https://www.ruby-forum.com/t/ssl-for-paypal/146485)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/ssl-for-paypal/146485 "2008-08-21T16:30:06Z")

</div>

I have this for PayPal IPN: @query = ‘cmd=\_notify-validate’ request.params.each\_pair {|key, value| @query = @query + ‘&’ + key + ‘=’ value.first if key != ‘register/pay\_pal\_ipn.html/pay\_pal\_ipn’ } http = Net::HTTP.n…

---

## [Work from home Ruby on Rails project](https://www.ruby-forum.com/t/work-from-home-ruby-on-rails-project/146484)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/work-from-home-ruby-on-rails-project/146484 "2008-08-21T16:17:10Z")

</div>

I am a recruiter and I work in New York. I need help finding a Ruby on Rails developer for a client of mine in Denver, CO. This position is looking for someone that will work remotely/telecommute. Ideally they woul…

---

## [MySql grant all permission error](https://www.ruby-forum.com/t/mysql-grant-all-permission-error/146479)

<div class="topic-metadata">

**Author:** [@k\_verma](https://www.ruby-forum.com/u/k_verma)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/mysql-grant-all-permission-error/146479 "2008-08-21T15:47:09Z")

</div>

Hi, while granting permission to cookbook2\_development.\* ‘ODBC’@l’localhost; it shows up erro 1133\<42000\>: cant find any matching row in the user table i am not sure what to do next? Help would be appreciated

---

## [File upload](https://www.ruby-forum.com/t/file-upload/142175)

<div class="topic-metadata">

**Author:** [@jaiganez](https://www.ruby-forum.com/u/jaiganez)\
**Replies:** 9\
**Last updated:** [August 21, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/file-upload/142175 "2008-08-21T12:14:26Z")

</div>

is there any link for step by step guide in file upload in database … im follwing the link Ruby on Rails - File Uploading | Tutorialspoint… which shows file upload into folder not in database …pls help…

---

## [Theory Question](https://www.ruby-forum.com/t/theory-question/146284)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/theory-question/146284 "2008-08-21T12:11:45Z")

</div>

I have a scenario where there is list of things (a list of chores for example) that have two parts, task and description. On an ongoing basis we assign a group of chores to people. Each assigned chore can be tweaked –…

---

## [Stubbing out ThinkingSphinx for Rspec](https://www.ruby-forum.com/t/stubbing-out-thinkingsphinx-for-rspec/146303)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 4\
**Last updated:** [August 21, 2008, 11:55am UTC](https://www.ruby-forum.com/t/stubbing-out-thinkingsphinx-for-rspec/146303 "2008-08-21T11:55:19Z")

</div>

Unless someone advises against it, I don’t want my Rspec suite to be dependent on having Thinking Sphinx running, as I can often imagine situations where anyone working on my app would want to run the spec without the…

---

## [Ajax Pagination Problem](https://www.ruby-forum.com/t/ajax-pagination-problem/146457)

<div class="topic-metadata">

**Author:** [@vmvipin](https://www.ruby-forum.com/u/vmvipin)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 11:17am UTC](https://www.ruby-forum.com/t/ajax-pagination-problem/146457 "2008-08-21T11:17:10Z")

</div>

Hi All, Am Using will\_paginate with lowpro (http://railsontherun.com/2007/9/27/ajax-pagination-in-less-than-5-minutes). It works fine. My problem is, am using ajax methods for add, edit, update and delete. When i cli…

---

## [Where do I put my own class?](https://www.ruby-forum.com/t/where-do-i-put-my-own-class/146347)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 9\
**Last updated:** [August 21, 2008, 11:16am UTC](https://www.ruby-forum.com/t/where-do-i-put-my-own-class/146347 "2008-08-21T11:16:35Z")

</div>

If I do my own class, of something, and want to access it in my app / controllers, where do I put it? Is /lib the place? How do I access it? It’s about Rails but at the same time more of a Ruby question, so I hope th…

---

## [Modeling and querry difference?](https://www.ruby-forum.com/t/modeling-and-querry-difference/146443)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 9:56am UTC](https://www.ruby-forum.com/t/modeling-and-querry-difference/146443 "2008-08-21T09:56:52Z")

</div>

HI, I have this type of code where I used a modeling like ‘user.profile\_photo’ from user object I am trying to find profile photo.but it is happened in a loop so just I want to know that how modeling works ? Interna…

---

## [Migration error after upgrading project to Rails 2.0](https://www.ruby-forum.com/t/migration-error-after-upgrading-project-to-rails-2-0/146449)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 9:41am UTC](https://www.ruby-forum.com/t/migration-error-after-upgrading-project-to-rails-2-0/146449 "2008-08-21T09:41:39Z")

</div>

Hi, I started writing a project using Rails 1.x, then moved to 2.0 a couple of weeks after it came out. This moved the project to the new migration structure (timestamp based), and everything’s worked fine on my deve…

---

## [You have a nil object when you didn't expect it?](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/146406)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 21, 2008, 8:52am UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/146406 "2008-08-21T08:52:27Z")

</div>

Hello, I’m trying a simple AJAX test link with the following code inside my view : \<%= link\_to\_remote( “\[Total\]”, { :action =\> “total”, :update =\> “letotal” } ) %\> In my controller I put : def total @res = Perso…

---

## [Jaggernaut or Jabber for IM in Rails?](https://www.ruby-forum.com/t/jaggernaut-or-jabber-for-im-in-rails/146252)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 4\
**Last updated:** [August 21, 2008, 8:01am UTC](https://www.ruby-forum.com/t/jaggernaut-or-jabber-for-im-in-rails/146252 "2008-08-21T08:01:31Z")

</div>

Hi All, I have experienced connecting to the server using Juggernaut plugin. I have also heard about Jabber for instant messaging. Can you tell me which one is better for Rails? Jabber or Juggernaut? Also please give…

---

## [Issue with request and response on server](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 7:11am UTC](https://www.ruby-forum.com/t/issue-with-request-and-response-on-server/146380 "2008-08-21T07:11:12Z")

</div>

Hi, I am working for a web application using ruby on rails. I have my application on two servers 1) development server 2) production server with two separate databases. I have apache as web server and mongrel as appl…

---

## [Can anyone recommend a safe way/strategy to input some search conditions via URL parameters?](https://www.ruby-forum.com/t/can-anyone-recommend-a-safe-way-strategy-to-input-some-search-conditions-via-url-parameters/146437)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 3:53am UTC](https://www.ruby-forum.com/t/can-anyone-recommend-a-safe-way-strategy-to-input-some-search-conditions-via-url-parameters/146437 "2008-08-21T03:53:34Z")

</div>

Hi, Question - Can anyone recommend a safe way/strategy to input some search conditions via URL parameters? So the requirements are: \[1\] Only use URL parameters (e.g. key & value pair, where value is a string) \[2\] …

---

## [\[ANN\] Ruby Hoedown 2008 Videos Now Live](https://www.ruby-forum.com/t/ann-ruby-hoedown-2008-videos-now-live/146436)

<div class="topic-metadata">

**Author:** [@doncarlosx](https://www.ruby-forum.com/u/doncarlosx)\
**Replies:** 0\
**Last updated:** [August 21, 2008, 2:01am UTC](https://www.ruby-forum.com/t/ann-ruby-hoedown-2008-videos-now-live/146436 "2008-08-21T02:01:03Z")

</div>

We just got finished uploading the last of the videos from Ruby Hoedown 2008: Get 'em while they’re hot. This was a fun conference, held in humid Huntsville, Alabama. As one of the main organizers, Jeremy McAnally …

---

## [Acts\_as\_ferret and DRb server errors](https://www.ruby-forum.com/t/acts-as-ferret-and-drb-server-errors/146433)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 1\
**Last updated:** [August 21, 2008, 1:58am UTC](https://www.ruby-forum.com/t/acts-as-ferret-and-drb-server-errors/146433 "2008-08-21T01:58:20Z")

</div>

I am seeing this in my ferret\_server.log when I do a search: DRb server: ensure\_index\_exists for class Myclass1 DRb server: ensure\_index\_exists for class Myclass2 DRb server: ensure\_index\_exists for class Myclass3 DR…

---

## [Text does not wrap](https://www.ruby-forum.com/t/text-does-not-wrap/146376)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [August 21, 2008, 1:08am UTC](https://www.ruby-forum.com/t/text-does-not-wrap/146376 "2008-08-21T01:08:04Z")

</div>

I need a good method for wrapping a text Currently I am using textual\_wrap(h(text),wrap\_length)method but it is not efficient some times it wrap text but some time not? some time it wrap text like this e.g- hhfhhf f…

---

## [:include confused by true?](https://www.ruby-forum.com/t/include-confused-by-true/146425)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 7\
**Last updated:** [August 21, 2008, 12:52am UTC](https://www.ruby-forum.com/t/include-confused-by-true/146425 "2008-08-21T00:52:51Z")

</div>

I have two models: guest rsvp guest belongs\_to rsvp and rsvp has\_one guest When I try the following I get an error: @coming = Guest.find(:all, :conditions =\> \[“coming = ?”, true\], :include =\> :rsvp) It complains o…

---

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

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 3\
**Last updated:** [August 21, 2008, 12:42am UTC](https://www.ruby-forum.com/t/ajax-help/146280 "2008-08-21T00:42:54Z")

</div>

How can I update option in -box with Ajax ? How can I by clickin text-link update content of some ?

---

## [Association Abuse?](https://www.ruby-forum.com/t/association-abuse/146407)

<div class="topic-metadata">

**Author:** [@codeturkey](https://www.ruby-forum.com/u/codeturkey)\
**Replies:** 7\
**Last updated:** [August 20, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/association-abuse/146407 "2008-08-20T23:36:11Z")

</div>

I have the following relationships: users -\> user\_roles \<- roles In my Role model, I created a habtm association with users: I often find myself wanting to have a list of all the users that aren’t associated with a g…

---

## [List-Usenet gateway back up](https://www.ruby-forum.com/t/list-usenet-gateway-back-up/146424)

<div class="topic-metadata">

**Author:** [@elucify](https://www.ruby-forum.com/u/elucify)\
**Replies:** 0\
**Last updated:** [August 20, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/list-usenet-gateway-back-up/146424 "2008-08-20T22:55:10Z")

</div>

The gateway between the Rails list and Usenet through Gmane has been down during August, but is now back up again. So you can again use a newsreader to both read and post at nntp://news.gmane.org/gmane.comp.lang.ruby…

---

## [Newbie question on rails development](https://www.ruby-forum.com/t/newbie-question-on-rails-development/146421)

<div class="topic-metadata">

**Author:** [@codemax](https://www.ruby-forum.com/u/codemax)\
**Replies:** 2\
**Last updated:** [August 20, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/newbie-question-on-rails-development/146421 "2008-08-20T22:38:23Z")

</div>

Hello, Maybe someone can point me in the right direction here: Say I’m developing a site where the main page is a sort of portal. On that page I’d like to display content from various controllers in my Rails applica…

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

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