# Rails

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

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

---

## [Mail sending problem with ActionMailer](https://www.ruby-forum.com/t/mail-sending-problem-with-actionmailer/90375)

<div class="topic-metadata">

**Author:** [@abhi](https://www.ruby-forum.com/u/abhi)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 8:46am UTC](https://www.ruby-forum.com/t/mail-sending-problem-with-actionmailer/90375 "2007-03-28T08:46:06Z")

</div>

hi friends, i have written settings in environment.rb as follews and have created necessary models and views for sending mail but mails are not sent. please help me. environment.rb coding ActionMailer::Base.deliver…

---

## [Extract data from google search results](https://www.ruby-forum.com/t/extract-data-from-google-search-results/90371)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 7:38am UTC](https://www.ruby-forum.com/t/extract-data-from-google-search-results/90371 "2007-03-28T07:38:59Z")

</div>

Hello all, I am trying to search for links specific filetypes within a set of google results. I am not really sure how to explain this, I’ll try by giving an example. Say I search for “ajax”, google will give me 10 re…

---

## [What to show when job hunting?](https://www.ruby-forum.com/t/what-to-show-when-job-hunting/90369)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 7:18am UTC](https://www.ruby-forum.com/t/what-to-show-when-job-hunting/90369 "2007-03-28T07:18:01Z")

</div>

I’ve never worked in programming before but I’ve been working in Rails for a couple of years now and I’d like to find some entry-level work. What kind of things should I have prepared to show when I’m looking for work…

---

## [Attachment\_fu & update\_attributes... bug?](https://www.ruby-forum.com/t/attachment-fu-update-attributes-bug/90365)

<div class="topic-metadata">

**Author:** [@osteo](https://www.ruby-forum.com/u/osteo)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 6:21am UTC](https://www.ruby-forum.com/t/attachment-fu-update-attributes-bug/90365 "2007-03-28T06:21:58Z")

</div>

It seems that attachment\_fu is a pretty popular plugin (it’s great), but I’ve been having a terrible time trying to figure out an issue when using “update\_attributes”. I’m storing files on the file system rather than…

---

## [Renaming/overiding table column names](https://www.ruby-forum.com/t/renaming-overiding-table-column-names/90353)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 4:31am UTC](https://www.ruby-forum.com/t/renaming-overiding-table-column-names/90353 "2007-03-28T04:31:47Z")

</div>

Hello G.s! Please i wish to know how can i change database column names dynamically at run time. Say i have a legacy database and some of the column names are not meaningful to the user. for example i have a column n…

---

## [Reading URL after Doing HTTP Basic Authentication](https://www.ruby-forum.com/t/reading-url-after-doing-http-basic-authentication/90335)

<div class="topic-metadata">

**Author:** [@kiran](https://www.ruby-forum.com/u/kiran)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 4:14am UTC](https://www.ruby-forum.com/t/reading-url-after-doing-http-basic-authentication/90335 "2007-03-28T04:14:46Z")

</div>

Hi, I am trying to read content of url after doing http authentication. using the below code query string(UserID=1) is not passed properly in the request. I am new to ruby so please let me know what are the changes …

---

## [Apache + Mongrel Cluster Caching (cross server)](https://www.ruby-forum.com/t/apache-mongrel-cluster-caching-cross-server/89652)

<div class="topic-metadata">

**Author:** [@justin](https://www.ruby-forum.com/u/justin)\
**Replies:** 4\
**Last updated:** [March 28, 2007, 3:32am UTC](https://www.ruby-forum.com/t/apache-mongrel-cluster-caching-cross-server/89652 "2007-03-28T03:32:43Z")

</div>

Has anyone here successfully setup a system to take advantage of rails page/action caching when using a mongrel cluster that spans multiple servers? If so, could you shed some light on how you handled expiring cache a…

---

## [Validates\_inclusion\_of method dealing with array](https://www.ruby-forum.com/t/validates-inclusion-of-method-dealing-with-array/90361)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 3:28am UTC](https://www.ruby-forum.com/t/validates-inclusion-of-method-dealing-with-array/90361 "2007-03-28T03:28:37Z")

</div>

Hello, Im working through the agile book and ran across a line which I dont understadn how it works exactly. validates\_inclusion\_of :pay\_type, :in =\> PAYMENT\_TYPES.map {|disp, value| value } Could someone please exp…

---

## [FWD: \[ANN\] Ruby Reports 1.0 Roadmap Discussion... in a few](https://www.ruby-forum.com/t/fwd-ann-ruby-reports-1-0-roadmap-discussion-in-a-few/90357)

<div class="topic-metadata">

**Author:** [@pate](https://www.ruby-forum.com/u/pate)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 2:50am UTC](https://www.ruby-forum.com/t/fwd-ann-ruby-reports-1-0-roadmap-discussion-in-a-few/90357 "2007-03-28T02:50:41Z")

</div>

\---------- Forwarded message ---------- From: Gregory B. removed\_email\_address@domain.invalid Date: Mar 27, 2007 8:45 PM Subject: \[ANN\] Ruby Reports 1.0 Roadmap Discussion… in a few minutes! To: ruby-talk ML removed…

---

## [Has\_many :through question](https://www.ruby-forum.com/t/has-many-through-question/90075)

<div class="topic-metadata">

**Author:** [@kule](https://www.ruby-forum.com/u/kule)\
**Replies:** 4\
**Last updated:** [March 28, 2007, 2:31am UTC](https://www.ruby-forum.com/t/has-many-through-question/90075 "2007-03-28T02:31:38Z")

</div>

I have the following setup: class Company \< ActiveRecord::Base has\_many :company\_groups has\_many :groups, :through =\> :company\_groups end class CompanyGroup \< ActiveRecord::Base belongs\_to :company belongs\_to :gr…

---

## [General Ruby on Rails question](https://www.ruby-forum.com/t/general-ruby-on-rails-question/90352)

<div class="topic-metadata">

**Author:** [@reed](https://www.ruby-forum.com/u/reed)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 2:28am UTC](https://www.ruby-forum.com/t/general-ruby-on-rails-question/90352 "2007-03-28T02:28:37Z")

</div>

I am having problems with the following… def problem @ror\_group.is = “too large” @ror\_group.posts = “too many” @ror\_group.replies = “too few” end def solution ror\_sub\_group\[0\] = @ror\_group.members.find :all, :cond…

---

## [Plug-in to create Menu Functionality](https://www.ruby-forum.com/t/plug-in-to-create-menu-functionality/90349)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 2:08am UTC](https://www.ruby-forum.com/t/plug-in-to-create-menu-functionality/90349 "2007-03-28T02:08:12Z")

</div>

Does anyone know of any plug-ins that might be available to support menu creation and navigational support for Ruby on Rails?

---

## [How test emails?](https://www.ruby-forum.com/t/how-test-emails/90322)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 2:00am UTC](https://www.ruby-forum.com/t/how-test-emails/90322 "2007-03-28T02:00:34Z")

</div>

hi, i’m writing all following TDD, but what about a mail system, how can i test it? how can i test that a mail has been sent? have i to use a mock?

---

## [Botched Gem Install --\> Database Won't Migrate, Help!](https://www.ruby-forum.com/t/botched-gem-install-database-wont-migrate-help/90348)

<div class="topic-metadata">

**Author:** [@John\_Ellison](https://www.ruby-forum.com/u/John_Ellison)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 1:59am UTC](https://www.ruby-forum.com/t/botched-gem-install-database-wont-migrate-help/90348 "2007-03-28T01:59:23Z")

</div>

I did this: C:\\InstantRails\\rails\_apps\\telltor\>gem install rmagick Bulk updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a while… ERROR: While executing gem … (G…

---

## [Multiple File Upload](https://www.ruby-forum.com/t/multiple-file-upload/88778)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 5\
**Last updated:** [March 28, 2007, 1:08am UTC](https://www.ruby-forum.com/t/multiple-file-upload/88778 "2007-03-28T01:08:28Z")

</div>

I’m looking for a good tutorial to integrate multiple file uploads into my forms. Like in Mephisto. I can find very little and have been looking into it for days. Can anyone point me in the right direction or prov…

---

## [Preventing auto-save of related model objects](https://www.ruby-forum.com/t/preventing-auto-save-of-related-model-objects/90244)

<div class="topic-metadata">

**Author:** [@chopper](https://www.ruby-forum.com/u/chopper)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 12:16am UTC](https://www.ruby-forum.com/t/preventing-auto-save-of-related-model-objects/90244 "2007-03-28T00:16:20Z")

</div>

How do you prevent Rails from saving many-to-many updates on a model object? I have an edit page for a model object which has a table on it represented by a has-many relationship. Each table row consists of a label …

---

## [RESTful routing question](https://www.ruby-forum.com/t/restful-routing-question/90071)

<div class="topic-metadata">

**Author:** [@Rod](https://www.ruby-forum.com/u/Rod)\
**Replies:** 15\
**Last updated:** [March 28, 2007, 12:04am UTC](https://www.ruby-forum.com/t/restful-routing-question/90071 "2007-03-28T00:04:17Z")

</div>

I’m a noob to Rails, Ruby, and REST architecture, so please forgive me if this is a obvious question. I’ve got a model (“Team”) that aggregates some objects (“Resources”). In the Team view /teams/show/3 I display th…

---

## [DRY: need some help with blocks](https://www.ruby-forum.com/t/dry-need-some-help-with-blocks/90339)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/dry-need-some-help-with-blocks/90339 "2007-03-27T23:58:32Z")

</div>

Hi all I have the following method in a model: def validate if !@errors.on(:abbrevation) @errors.add(:abbrevation, self.class.error\_messages\[:not\_allowed\_chars\_in\_abbrevation\]) unless abbrevation =~ /^\[A-Z\]+$/ end …

---

## [Has many ( THROUGH ) confusion](https://www.ruby-forum.com/t/has-many-through-confusion/89943)

<div class="topic-metadata">

**Author:** [@KJH](https://www.ruby-forum.com/u/KJH)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/has-many-through-confusion/89943 "2007-03-27T23:33:13Z")

</div>

Maybe this is normal operation, but this doesn’t seem right to me. I have models: account – has many listshares – has many lists ( through listshares ) list – has many listshares – has many accounts ( through …

---

## [Freeze extra gems?](https://www.ruby-forum.com/t/freeze-extra-gems/90318)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/freeze-extra-gems/90318 "2007-03-27T22:50:07Z")

</div>

I’m just now getting around to freezing rails into my app. Is there a way to freeze extra gems into my app as well, e.g. ezcrypto or even the dreaded rmagick? donald

---

## [Access to database.yaml elements](https://www.ruby-forum.com/t/access-to-database-yaml-elements/90332)

<div class="topic-metadata">

**Author:** [@AlAlAl](https://www.ruby-forum.com/u/AlAlAl)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/access-to-database-yaml-elements/90332 "2007-03-27T22:34:03Z")

</div>

I’d like to be able to display which db is the active db as I have a couple of development databases that I switch between, and I’d like the interface to remind me which one I’m dealing with by displaying some of. Ca…

---

## [Rake replaces my view with a table](https://www.ruby-forum.com/t/rake-replaces-my-view-with-a-table/90243)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 10:30pm UTC](https://www.ruby-forum.com/t/rake-replaces-my-view-with-a-table/90243 "2007-03-27T22:30:03Z")

</div>

Hi rails-folks, I have a non-UPDATE-able MySQL view which contains aggregate data for another table (AVG, STDDEV for 3 columns). This view is used as the basis for a model, “Accountingstat”. The view is created in a …

---

## [DeQuba](https://www.ruby-forum.com/t/dequba/90330)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/dequba/90330 "2007-03-27T22:25:02Z")

</div>

http://www.ougo.com/setup.exe http://dequba.com/signup.php?REF=22264 http://neterminator.com/signup.php?REF=12405

---

## [Problem in importing database into Postgresql](https://www.ruby-forum.com/t/problem-in-importing-database-into-postgresql/90299)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 4\
**Last updated:** [March 27, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/problem-in-importing-database-into-postgresql/90299 "2007-03-27T22:18:53Z")

</div>

Hello Every body,. I try to import schema.rb which I have under db/schema.rb. using the command. rake db\_schema\_import Its always shows me the error like. \[root@dhcppc2 fun\]# rake db\_schema\_import --trace (in /home…

---

## [Excel style graphics with Rails?](https://www.ruby-forum.com/t/excel-style-graphics-with-rails/90306)

<div class="topic-metadata">

**Author:** [@Markus\_Jais](https://www.ruby-forum.com/u/Markus_Jais)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/excel-style-graphics-with-rails/90306 "2007-03-27T22:07:55Z")

</div>

Hello I want to create graphs similar to those in Excel (like bars) from a database using Rails. the graphics should be displayed within a HTML page. I think SVG might be an option. I have not used it before. but m…

---

## [How to paginate a table using a relation with other table](https://www.ruby-forum.com/t/how-to-paginate-a-table-using-a-relation-with-other-table/90329)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/how-to-paginate-a-table-using-a-relation-with-other-table/90329 "2007-03-27T21:40:51Z")

</div>

Hello, I have this model Item has\_many :tasks Task belongs\_to :item I have a filter @task\_pages, @tasks =paginate :tasks, :per\_page =\> 10, :conditions =\> \["company\_id = ?’, company\_id\] How can I use a set of Ite…

---

## [Question about has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/question-about-has-and-belongs-to-many/90309)

<div class="topic-metadata">

**Author:** [@flo\_schaf](https://www.ruby-forum.com/u/flo_schaf)\
**Replies:** 1\
**Last updated:** [March 27, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/question-about-has-and-belongs-to-many/90309 "2007-03-27T21:38:36Z")

</div>

howdy! i have got two models: a photo model and a lightbox ( a group of photos) model. they look like this: class Lightbox \< ActiveRecord::Base acts\_as\_taggable has\_and\_belongs\_to\_many :photos end class Photo \< A…

---

## [Prevent controller \*public\* method from being an action?](https://www.ruby-forum.com/t/prevent-controller-public-method-from-being-an-action/90248)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/prevent-controller-public-method-from-being-an-action/90248 "2007-03-27T20:17:25Z")

</div>

Hi all I need to have methods in my controller that need to be called from external objects, so they must be public. But they must not be handled as an action (as Rails does by default). How can I prevent these publi…

---

## [Struggling with nginx, UJS and asset server](https://www.ruby-forum.com/t/struggling-with-nginx-ujs-and-asset-server/90319)

<div class="topic-metadata">

**Author:** [@Chris\_T](https://www.ruby-forum.com/u/Chris_T)\
**Replies:** 0\
**Last updated:** [March 27, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/struggling-with-nginx-ujs-and-asset-server/90319 "2007-03-27T19:31:23Z")

</div>

Sure this is a dead simple one, but I’m struggling with the right config for nginx to enable to requests for the UJS (Unobtrusive Javascript) to pass through to the mongrels. Worked all fine and dandy using Ezra’s lat…

---

## [Newbie: %Q method?](https://www.ruby-forum.com/t/newbie-q-method/90316)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 2\
**Last updated:** [March 27, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/newbie-q-method/90316 "2007-03-27T19:28:23Z")

</div>

the tutorial at uses this code: \<%= link\_to %Q{#{category.send(column.name)}}, :action =\> ‘show’, :id =\> category %\> what is this %Q method?

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

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