# Rails

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

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

---

## [Re: Lightbox](https://www.ruby-forum.com/t/re-lightbox/131162)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 12:48am UTC](https://www.ruby-forum.com/t/re-lightbox/131162 "2008-03-07T00:48:52Z")

</div>

We are using lightbox to view photos and it seems to work pretty well. I think you can use it to display HTML as well. http://www.huddletogether.com/projects/lightbox2/ http://www.wanlord.com/articles/2008/03/03/light…

---

## [Searching multiple related models](https://www.ruby-forum.com/t/searching-multiple-related-models/131222)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 12:46am UTC](https://www.ruby-forum.com/t/searching-multiple-related-models/131222 "2008-03-07T00:46:32Z")

</div>

Hi, I’m interested in some feedback about a solution for searching multiple related models by columns (as opposed to full-text). A brief example would be three models with typical has\_many relations: Hotel (name, com…

---

## [How to set variable to responsetext from an Ajax Request](https://www.ruby-forum.com/t/how-to-set-variable-to-responsetext-from-an-ajax-request/131219)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 12:25am UTC](https://www.ruby-forum.com/t/how-to-set-variable-to-responsetext-from-an-ajax-request/131219 "2008-03-07T00:25:04Z")

</div>

Hi. I have been wondering, is it possible to set a variable to the responsetext from an Ajax Request event? var something = "" Ajax.Request("http://google.dk", { onComplete: function(e){ something = e.responseT…

---

## [Problems uploading .zip files with attachment\_fu](https://www.ruby-forum.com/t/problems-uploading-zip-files-with-attachment-fu/131213)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/problems-uploading-zip-files-with-attachment-fu/131213 "2008-03-06T23:44:15Z")

</div>

I’m using attachment\_fu for uploading all of my files and have done so successfully except when I try to upload zip files. I continuously get this error: “Size is not included in the list” I implemented this fix: ht…

---

## [Microsoft's newly launched IE8 beta download](https://www.ruby-forum.com/t/microsofts-newly-launched-ie8-beta-download/131209)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/microsofts-newly-launched-ie8-beta-download/131209 "2008-03-06T23:33:40Z")

</div>

Internet Explorer 8 beta release is for developers, and Microsoft’s Dean Hachamovitch promised at MIX08 that IE8 will make it easier to build Web sites for multiple browsers and stop wasting developers’ time. Microsof…

---

## [Question about Erb](https://www.ruby-forum.com/t/question-about-erb/131095)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/question-about-erb/131095 "2008-03-06T23:33:05Z")

</div>

Okay, so this is really a beginner’s question. I’m just starting to move over from ColdFusion to Rails and I’m having some trouble accessing ActiveRecord objects from within views. I’m sure I’m missing something pret…

---

## [Was "Inflector" moved in Rails 2.0?](https://www.ruby-forum.com/t/was-inflector-moved-in-rails-2-0/131210)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/was-inflector-moved-in-rails-2-0/131210 "2008-03-06T23:18:23Z")

</div>

Trying to place the following code in my “environment.rb” file is throwing an “uninitialized constant Inflector (NameError)”. Did they move where these types of customized rules were supposed to be declared? CODE In…

---

## [Probably common n00b question: Default id](https://www.ruby-forum.com/t/probably-common-n00b-question-default-id/131196)

<div class="topic-metadata">

**Author:** [@tomx](https://www.ruby-forum.com/u/tomx)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/probably-common-n00b-question-default-id/131196 "2008-03-06T22:55:20Z")

</div>

Hi, I’m new to Rails but I develop in PHP somtimes. I figured that the best way to learn Rails is to create a simple CMS. While I understand the basics of ruby and rails, one issue has caught me: how can I set a defau…

---

## [Don't know how to build task 'migrate --?](https://www.ruby-forum.com/t/dont-know-how-to-build-task-migrate/128554)

<div class="topic-metadata">

**Author:** [@ric](https://www.ruby-forum.com/u/ric)\
**Replies:** 3\
**Last updated:** [March 6, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/dont-know-how-to-build-task-migrate/128554 "2008-03-06T22:48:56Z")

</div>

Environment: Mac OS X (Leopard) version 10.5.1 ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-darwin8.10.1\] Rails 2.0.2 Rake, version 0.8.1 I’m following a simple example from OS X’s dev doc (“Expenses”). My Problems: …

---

## [How to get the readers of 2 specific articles?](https://www.ruby-forum.com/t/how-to-get-the-readers-of-2-specific-articles/130268)

<div class="topic-metadata">

**Author:** [@harryspier](https://www.ruby-forum.com/u/harryspier)\
**Replies:** 6\
**Last updated:** [March 6, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/how-to-get-the-readers-of-2-specific-articles/130268 "2008-03-06T22:36:05Z")

</div>

Hi, I have 2 articles and I want to get the readers of both articles. How do I do that ? Here is the pattern (from AWDWR): class Article \< ActiveRecord::Base has\_many :readings has\_many :readers, :through =\> :readi…

---

## [Rails Developer Needed For A Few Days Work](https://www.ruby-forum.com/t/rails-developer-needed-for-a-few-days-work/131200)

<div class="topic-metadata">

**Author:** [@Wlo](https://www.ruby-forum.com/u/Wlo)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/rails-developer-needed-for-a-few-days-work/131200 "2008-03-06T21:43:24Z")

</div>

Hiya. I’m looking for a rails developer to help me do some extra bits on an existing live web project, and write an interface for it to run as a Facebook application. I’m looking for someone who’s good with Rails 2 a…

---

## [Plugin/open source file management?](https://www.ruby-forum.com/t/plugin-open-source-file-management/131197)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/plugin-open-source-file-management/131197 "2008-03-06T21:12:32Z")

</div>

Does anyone know of a file mangement plugin or open source project (similar to basecamp type functionality)? working on a new webapp and uploading/downloading to the web is really the core of the app. thanks

---

## [Flash\[:notice\] with remote\_format\_for](https://www.ruby-forum.com/t/flash-notice-with-remote-format-for/131194)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/flash-notice-with-remote-format-for/131194 "2008-03-06T21:03:48Z")

</div>

This has been asked before but I didn’t find an elegant solution. How do you display validations errors when you’re doing a remote\_format\_for (or in my case form\_for with UJS) This is what I came up with in the parti…

---

## [Re: Rails Social Networking](https://www.ruby-forum.com/t/re-rails-social-networking/131195)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/re-rails-social-networking/131195 "2008-03-06T20:59:00Z")

</div>

just a side note I am looking for a joint venture (I have the product looking for a programmer) and could go either with PHP or Ruby In San Diego the PHP club web site - sdphp.net - has been dead for a year. And I …

---

## [Problems with migrating code from Cap 2.1.0 to 2.2.0](https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173)

<div class="topic-metadata">

**Author:** [@lena](https://www.ruby-forum.com/u/lena)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 8:48pm UTC](https://www.ruby-forum.com/t/problems-with-migrating-code-from-cap-2-1-0-to-2-2-0/131173 "2008-03-06T20:48:00Z")

</div>

I’ve got a plugin in Cruise Controlrb which worked with Cap 2.1.0. The plugin invokes Cap on a successful build. Now with Cap 2.2.0 I get this error: /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/c…

---

## [How to end the BFS traversal at will( RGL)](https://www.ruby-forum.com/t/how-to-end-the-bfs-traversal-at-will-rgl/131193)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/how-to-end-the-bfs-traversal-at-will-rgl/131193 "2008-03-06T20:47:24Z")

</div>

Hi, I am using RGL for some of the graph implementations. My requirements is such that I need to find out all nodes that are at distance less than 3. For this, I thought of traversing the graph using BFS and stop th…

---

## [Polymorphic STI](https://www.ruby-forum.com/t/polymorphic-sti/131140)

<div class="topic-metadata">

**Author:** [@miv](https://www.ruby-forum.com/u/miv)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/polymorphic-sti/131140 "2008-03-06T20:47:06Z")

</div>

For fun, I wanted to write a wallet application. There must be tranasctions with came in to flavors - income and spendings. After playing for a while, i wanted to make everything pretty. I have something like: class …

---

## [Url forwarding](https://www.ruby-forum.com/t/url-forwarding/131192)

<div class="topic-metadata">

**Author:** [@kashmu](https://www.ruby-forum.com/u/kashmu)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/url-forwarding/131192 "2008-03-06T20:41:12Z")

</div>

Hi, Just beginning to look into RoR, have a question about routing. Have a need to create a RoR front end to an application written in python, which do have a lot of REStful URLs. Python application running and liste…

---

## [Persistent Network Connection from Rails Instance](https://www.ruby-forum.com/t/persistent-network-connection-from-rails-instance/131025)

<div class="topic-metadata">

**Author:** [@florian](https://www.ruby-forum.com/u/florian)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 8:31pm UTC](https://www.ruby-forum.com/t/persistent-network-connection-from-rails-instance/131025 "2008-03-06T20:31:42Z")

</div>

Hi Everyone, right now im building a rails app which needs to send xmpp (Jabber) messages from time to time. Instead of connecting to the xmpp server every time i want to send a message, i would like to establish a p…

---

## [Req: Ruby on Rails : Direct Client](https://www.ruby-forum.com/t/req-ruby-on-rails-direct-client/131187)

<div class="topic-metadata">

**Author:** [@nitin](https://www.ruby-forum.com/u/nitin)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/req-ruby-on-rails-direct-client/131187 "2008-03-06T19:40:58Z")

</div>

Hi Group, I am looking for a SR RUBY ON RAILS Consultant for a position in Burbank for 3 months. Responsibilities: Build functional applications to support internal processes and applications Collaborate with team…

---

## [Savage Beast: Custom user model methods get lost](https://www.ruby-forum.com/t/savage-beast-custom-user-model-methods-get-lost/131104)

<div class="topic-metadata">

**Author:** [@adrian](https://www.ruby-forum.com/u/adrian)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/savage-beast-custom-user-model-methods-get-lost/131104 "2008-03-06T19:30:56Z")

</div>

I’m currently trying to install savage beast and it has worked well to the point that I’m able to post an read topics. However, I’ve run into the following weirdness that I haven’t been able to figure out: At the For…

---

## [Month view](https://www.ruby-forum.com/t/month-view/131159)

<div class="topic-metadata">

**Author:** [@mariachi77](https://www.ruby-forum.com/u/mariachi77)\
**Replies:** 3\
**Last updated:** [March 6, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/month-view/131159 "2008-03-06T19:26:50Z")

</div>

Hey guys need some help, I have a model like this: t.integer :company\_id t.string :truck t.string :trailer t.string :driver t.string :from t.date :load\_on t.decimal :price and I want to be able to see the trips i…

---

## [Per-install email configuration](https://www.ruby-forum.com/t/per-install-email-configuration/131184)

<div class="topic-metadata">

**Author:** [@grav](https://www.ruby-forum.com/u/grav)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/per-install-email-configuration/131184 "2008-03-06T19:14:30Z")

</div>

Hey! I’m looking for some way of changing email configuration per install (eg. different mail server). It should work a bit like the config/database.yml which I keep per install (eg. it isn’t part of the repository) …

---

## [REST seems goood, accept for one thing](https://www.ruby-forum.com/t/rest-seems-goood-accept-for-one-thing/131124)

<div class="topic-metadata">

**Author:** [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/rest-seems-goood-accept-for-one-thing/131124 "2008-03-06T19:10:58Z")

</div>

Hi, After having been given som references concerining this hip new REST thing (thanks Mathieu) it seems that REST, especially the nested resources bit, is for me. I am trying to develop a membership administration a…

---

## [Validate\_on\_update compare old value to new value](https://www.ruby-forum.com/t/validate-on-update-compare-old-value-to-new-value/131050)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/validate-on-update-compare-old-value-to-new-value/131050 "2008-03-06T19:09:48Z")

</div>

Hello, After a model has been saved I want to prevent some of it’s fields from being updated. I was going to do this by overriding validate\_on\_update but I don’t know how to access the old value to compare it to the …

---

## [Active Record Question](https://www.ruby-forum.com/t/active-record-question/131174)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 4\
**Last updated:** [March 6, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/active-record-question/131174 "2008-03-06T18:47:53Z")

</div>

Hi- Say I am returning some collection of DateTime items and I only want to compare the month. Is there a way to do this directly in the find? Something like this… @coll = Collection.find(:all, :conditions =\> \[“date…

---

## [Best Practices Advice](https://www.ruby-forum.com/t/best-practices-advice/131178)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/best-practices-advice/131178 "2008-03-06T18:08:05Z")

</div>

I have currently have two rails apps. One is the Card\_Server which stores all the credit cards, and the other is the main rails app.I am starting to build the billing section of the application which will handle charg…

---

## ["-" instead of "\_" in routes?](https://www.ruby-forum.com/t/instead-of-in-routes/131172)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [March 6, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/instead-of-in-routes/131172 "2008-03-06T18:02:25Z")

</div>

Hi all I don’t like “www.mysite.xx/some\_cool\_controller”, I’d rather like to have “www.mysite.xx/some-cool-controller”. Is there an easy way to achieve this? :slight\_smile: Thanks Josh

---

## [Emails Going to Hotmail Spam Folder](https://www.ruby-forum.com/t/emails-going-to-hotmail-spam-folder/131177)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [March 6, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/emails-going-to-hotmail-spam-folder/131177 "2008-03-06T17:58:40Z")

</div>

Hi, I’ve built an emailer that sends alerts to the user’s email address. Works fine for google mail but strangely when the emails arrive in a MSN Hotmail account’s inbox they automatically get moved into the spam fold…

---

## [Association](https://www.ruby-forum.com/t/association/131136)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [March 6, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/association/131136 "2008-03-06T17:37:55Z")

</div>

Hi I have tables 1)sd\_impacts id integer not null name character varying(80) 2)sd\_urgencies id integer not null name character varying(80) 3)sd\_priorities id integer not null name character varying(80) …

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

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