# Rails

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

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

---

## [How do I use link\_to with all the current options?](https://www.ruby-forum.com/t/how-do-i-use-link-to-with-all-the-current-options/91507)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 8\
**Last updated:** [April 10, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/how-do-i-use-link-to-with-all-the-current-options/91507 "2007-04-10T21:27:08Z")

</div>

In one of my pages I want to create some URLs that go to the same page, but tack on an extra parameter (column sorting stuff). How do I do that? I’ve tried link\_to “Title”, :sort =\> “title” and that’s pretty close……

---

## [Warning: Object#id will be deprecated; use Object#object\_id](https://www.ruby-forum.com/t/warning-object-id-will-be-deprecated-use-object-object-id/91587)

<div class="topic-metadata">

**Author:** [@Karim\_Maknojia](https://www.ruby-forum.com/u/Karim_Maknojia)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/warning-object-id-will-be-deprecated-use-object-object-id/91587 "2007-04-10T21:12:06Z")

</div>

Hello friends, I am getting this warning warning: Object#id will be deprecated; use Object#object\_id on the following line of code def to\_s() output = "\\nDO Class: " + self.class.to\_s() + “\\n” output += " id: " + …

---

## [AWD page 624-626 Understanding how Apache, Mongrel and Rais](https://www.ruby-forum.com/t/awd-page-624-626-understanding-how-apache-mongrel-and-rais/91579)

<div class="topic-metadata">

**Author:** [@bravedave](https://www.ruby-forum.com/u/bravedave)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/awd-page-624-626-understanding-how-apache-mongrel-and-rais/91579 "2007-04-10T21:06:04Z")

</div>

I’m trying to understand the ‘Big Picture’ of how Ruby on Rails applications are deployed and operate in distributed environment (one deployment server, many remote servers). I follow AWD by Dave T.’ explanation from …

---

## [Easiest way to order by field in joined table](https://www.ruby-forum.com/t/easiest-way-to-order-by-field-in-joined-table/91548)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 3\
**Last updated:** [April 10, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/easiest-way-to-order-by-field-in-joined-table/91548 "2007-04-10T21:02:04Z")

</div>

hey there - given a simple table like this: orders.id orders.client\_id orders.supplier\_id orders.date\_ordered I create and index view that has in it something like this: \<%= @orders.id %\> \<%= @orders.client\_name %\>…

---

## [Multiple after\_deploys in deploy.rb](https://www.ruby-forum.com/t/multiple-after-deploys-in-deploy-rb/91610)

<div class="topic-metadata">

**Author:** [@Curtis\_Spencer](https://www.ruby-forum.com/u/Curtis_Spencer)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/multiple-after-deploys-in-deploy-rb/91610 "2007-04-10T20:45:01Z")

</div>

Hi, I am using Capistrano to do a deploy to servers with different roles. I want call after\_deploy in the following manner. task :after\_deploy, :roles =\> \[:rolea\] do run “task a” end task :after\_deploy, :roles =\> \[…

---

## [Action Controller: Nil Object](https://www.ruby-forum.com/t/action-controller-nil-object/91605)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/action-controller-nil-object/91605 "2007-04-10T20:39:59Z")

</div>

I am getting this error message, although I have checked the show.rhtml file and the corresponding controller file, when trying to look at my new permalink. Any advice/help would be appreciated. Thanks! NoMethodErr…

---

## [Emoticons to images](https://www.ruby-forum.com/t/emoticons-to-images/91600)

<div class="topic-metadata">

**Author:** [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/emoticons-to-images/91600 "2007-04-10T20:30:57Z")

</div>

Hi, Is there any ruby/rails plugin or code snippet which will help in converting standard emoticons like :-), ;-), etc. to images. Thanks. Surendra

---

## [Using vim with project plugin](https://www.ruby-forum.com/t/using-vim-with-project-plugin/86784)

<div class="topic-metadata">

**Author:** [@Jakub\_Vosahlo](https://www.ruby-forum.com/u/Jakub_Vosahlo)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/using-vim-with-project-plugin/86784 "2007-04-10T20:14:55Z")

</div>

Hi, Can anyone using vim with project plugin for rails work help me out? When I generate anything (like migration) and a new directory is created in the process, I cannot get the new directory listed when refreshing …

---

## [Help with Acts As Taggable On Steroids](https://www.ruby-forum.com/t/help-with-acts-as-taggable-on-steroids/91602)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/help-with-acts-as-taggable-on-steroids/91602 "2007-04-10T20:14:54Z")

</div>

Hello There, the plug-in is working but having a look at the tables I don’t see any tag priority or count: I’m tagging canned answers given in a user support console and I would like to show a tag cloud for every answ…

---

## [Has\_many and belons\_to Problem](https://www.ruby-forum.com/t/has-many-and-belons-to-problem/91597)

<div class="topic-metadata">

**Author:** [@physalias](https://www.ruby-forum.com/u/physalias)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/has-many-and-belons-to-problem/91597 "2007-04-10T20:08:54Z")

</div>

Dear all, I have a problem with the relations of a model. The problem is the following. I have 2 models. Page and PeContainer. Page: has\_and\_belongs\_to\_many :pe\_containers PeContainer belongs\_to :page has\_many :p…

---

## [Beginner question about refreshing a page containing an obse](https://www.ruby-forum.com/t/beginner-question-about-refreshing-a-page-containing-an-obse/91532)

<div class="topic-metadata">

**Author:** [@bubulle](https://www.ruby-forum.com/u/bubulle)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/beginner-question-about-refreshing-a-page-containing-an-obse/91532 "2007-04-10T20:01:50Z")

</div>

Hi all, I’m still learning the new world of AJAX and RJS and I got hit by a problem I could not resolve today. I have a simple form containing (among other things) a drop\_down list (collection\_select with :include\_bl…

---

## [Has-many-through relationship - deleting DB rows](https://www.ruby-forum.com/t/has-many-through-relationship-deleting-db-rows/91599)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/has-many-through-relationship-deleting-db-rows/91599 "2007-04-10T19:46:46Z")

</div>

I have group memberships modeled in a HMT relationship. My problem is, when a member is removed from a group, the relationship is not deleted, but the userid is merely set to 0. http://pastie.caboo.se/52837 Which m…

---

## [Need help with concat and binding](https://www.ruby-forum.com/t/need-help-with-concat-and-binding/91300)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/need-help-with-concat-and-binding/91300 "2007-04-10T19:39:46Z")

</div>

Hi all I want to create a HTML table builder that outputs HTML code. \<% incense\_table do |table| -%\> \<% table.row do |row| -%\> \<%= row.header(‘bla’) %\> \<% end -%\> \<% table.row do |row| -%\> \<%= row.data(‘bla2’) %\> …

---

## [Question from Super-Novice regarding Permalink](https://www.ruby-forum.com/t/question-from-super-novice-regarding-permalink/91583)

<div class="topic-metadata">

**Author:** [@zak](https://www.ruby-forum.com/u/zak)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/question-from-super-novice-regarding-permalink/91583 "2007-04-10T19:14:41Z")

</div>

Hi- I am two weeks new to Ruby on Rails and I am working through the SitePoint book. Specifically Chapter 7. I am trying to do the permalink example for a story posting in their example, but I am getting an undefin…

---

## [As to call "helper" that this inside of a folder](https://www.ruby-forum.com/t/as-to-call-helper-that-this-inside-of-a-folder/91589)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/as-to-call-helper-that-this-inside-of-a-folder/91589 "2007-04-10T18:59:06Z")

</div>

As to call “helper” that this inside of a folder, for example: RAILS\_ROOT/app/helpers/componentes/componentes\_helper.rb As to call the componentes\_helper.rb into application.rb?

---

## [Capistrano, beta deployment and different database?](https://www.ruby-forum.com/t/capistrano-beta-deployment-and-different-database/91586)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/capistrano-beta-deployment-and-different-database/91586 "2007-04-10T18:56:40Z")

</div>

Hi, I’ve modified my deploy.rb to deploy a beta version of my site (trunk, rather than a tag) if I supply the BETA environment variable. It uses a different mongrel config and a different deploy\_to. I’d also like to u…

---

## [Looking for a great Designer/Design Team!](https://www.ruby-forum.com/t/looking-for-a-great-designer-design-team/91584)

<div class="topic-metadata">

**Author:** [@formless](https://www.ruby-forum.com/u/formless)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/looking-for-a-great-designer-design-team/91584 "2007-04-10T18:45:39Z")

</div>

Hi All, I work for a Startup based out of San Diego, CA. We are succesfull team of entrepreneurs with a proven track record. We have finished an initial design for a site that helps people be more productive with soc…

---

## [Process for Specifying Software](https://www.ruby-forum.com/t/process-for-specifying-software/90688)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 4\
**Last updated:** [April 10, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/process-for-specifying-software/90688 "2007-04-10T18:34:39Z")

</div>

Hello, I am planning in developing an application for my final undergraduate project and I am thinking of using Ruby On Rails to implement it. But I need to follow a kind of process or bibliography that can describe …

---

## [Difficulty with body in ActionMailer](https://www.ruby-forum.com/t/difficulty-with-body-in-actionmailer/91529)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/difficulty-with-body-in-actionmailer/91529 "2007-04-10T18:16:36Z")

</div>

AWRDwRv2 is pretty vague on the @body part of setting up a mailer. Here is my problem: p = Person.find(1) =\> #Person:0x45c944c SiteMailer.request\_admin\_approval§ NoMethodError: You have a nil object when you …

---

## [Searching for a Rails Wiki-Plugin](https://www.ruby-forum.com/t/searching-for-a-rails-wiki-plugin/91578)

<div class="topic-metadata">

**Author:** [@rognox](https://www.ruby-forum.com/u/rognox)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 6:08pm UTC](https://www.ruby-forum.com/t/searching-for-a-rails-wiki-plugin/91578 "2007-04-10T18:08:36Z")

</div>

Hi everybody, I posted this message 5 hours ago so I hope that there will be no “double posting” for this issue. One feature/part of the rails project I have to do is a small wiki-functionality. I don´t want to rein…

---

## [Finding and defeating a stale object](https://www.ruby-forum.com/t/finding-and-defeating-a-stale-object/91575)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/finding-and-defeating-a-stale-object/91575 "2007-04-10T17:39:16Z")

</div>

Hello, After a rather major update to our site, suddenly we are getting a large # of “Attempted to update a stale object” errors. I am quite new to rails and I understand the concept of optimistic locking but I don’t…

---

## [Rubyonrails.org/api.rubyonrails.org](https://www.ruby-forum.com/t/rubyonrails-org-api-rubyonrails-org/91573)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/rubyonrails-org-api-rubyonrails-org/91573 "2007-04-10T17:26:27Z")

</div>

Anyone know when the site will be back? Fredrik

---

## [Problem in vpim/vcard](https://www.ruby-forum.com/t/problem-in-vpim-vcard/91534)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/problem-in-vpim-vcard/91534 "2007-04-10T16:29:18Z")

</div>

Hai I am using ruby vpim to create vcard, 1)Is all names are mandatory? can i create vcard without name? 2) How to specify Vcard version ? Regards Selvaraj

---

## [Meet beautiful womans](https://www.ruby-forum.com/t/meet-beautiful-womans/91571)

<div class="topic-metadata">

**Author:** [@truedat07](https://www.ruby-forum.com/u/truedat07)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/meet-beautiful-womans/91571 "2007-04-10T16:21:26Z")

</div>

meet beautiful womans visit - http://www.freewebs.com/truedating

---

## [Planetrubyonrails.com is down](https://www.ruby-forum.com/t/planetrubyonrails-com-is-down/91474)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 4:20pm UTC](https://www.ruby-forum.com/t/planetrubyonrails-com-is-down/91474 "2007-04-10T16:20:17Z")

</div>

Any chance the site’s maintainer can put the site back up? Thanks, Bill

---

## [Codes work in console, irb, but not on website](https://www.ruby-forum.com/t/codes-work-in-console-irb-but-not-on-website/91240)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/codes-work-in-console-irb-but-not-on-website/91240 "2007-04-10T16:10:36Z")

</div>

I have the following code in my controller: if request.post? rid = params\[:route\_id\] salesorders = SalesOrder.find(:all) @sales\_orders = \[\] for so in salesorders if not so.latest\_history.nil? if so.latest\_history.…

---

## [Can I unit test backgroundrb workers?](https://www.ruby-forum.com/t/can-i-unit-test-backgroundrb-workers/91566)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/can-i-unit-test-backgroundrb-workers/91566 "2007-04-10T15:53:18Z")

</div>

Can I unit test a background worker model, and if so … how? For now I can only test the worker if I go through the MiddleMan - but is it possible to not use the MiddleMan to test my workers? Thanks Joerg

---

## [Rake test:functionals seg fault](https://www.ruby-forum.com/t/rake-test-functionals-seg-fault/91564)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/rake-test-functionals-seg-fault/91564 "2007-04-10T14:45:40Z")

</div>

Hello, I get a segfault since I’ve updated my system (to rails 1.2.2 and rake 0.7.2) when running rake:functionals I’ve tried to run each individual test, none of them produced a seg fault. Ruby version is 1.8.4 (Cen…

---

## [Backgroundrb and functional testing](https://www.ruby-forum.com/t/backgroundrb-and-functional-testing/91559)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 1:49pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-functional-testing/91559 "2007-04-10T13:49:26Z")

</div>

Hi, I have a backgroundrb task initiated through the front-end. I also have an action in my controller I poll every second or so to see whether the task has completed, so that I can redirect to a confirm page on comp…

---

## [Backgroundrb and authorization/sessions](https://www.ruby-forum.com/t/backgroundrb-and-authorization-sessions/91557)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-authorization-sessions/91557 "2007-04-10T13:44:26Z")

</div>

Hi, I have a backgroundrb task that performs a long running task initiated through a website. The website also uses authorization to log users on, and to record/audit who changes which record. What is the easiest way…

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

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