# Rails

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

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

---

## [Beginners and fool-proof installation ? ??](https://www.ruby-forum.com/t/beginners-and-fool-proof-installation/149629)

<div class="topic-metadata">

**Author:** [@unclebob100](https://www.ruby-forum.com/u/unclebob100)\
**Replies:** 1\
**Last updated:** [September 27, 2008, 1:29am UTC](https://www.ruby-forum.com/t/beginners-and-fool-proof-installation/149629 "2008-09-27T01:29:07Z")

</div>

First off - rememebr We are ALL not rocket scientists. The concept is great but the docs fall short for us rookies . . . You would have a HUGE user base if you could get back to SIMPLIFYING the installs. BIG Question…

---

## [Track number of clicks on a link](https://www.ruby-forum.com/t/track-number-of-clicks-on-a-link/149528)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 8\
**Last updated:** [September 26, 2008, 11:46pm UTC](https://www.ruby-forum.com/t/track-number-of-clicks-on-a-link/149528 "2008-09-26T23:46:08Z")

</div>

Hello, So I am trying to simply track the number of hits a link has received and display that number on the site so other users can see which links are more popular. So once the link is clicked on it adds a +1 value t…

---

## [Format.xml not rendering associated model properly](https://www.ruby-forum.com/t/format-xml-not-rendering-associated-model-properly/149555)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/format-xml-not-rendering-associated-model-properly/149555 "2008-09-26T23:28:35Z")

</div>

respond\_to do |format| format.html # index.html.erb format.xml { render :xml =\> @directories } end #Software:0xb7046548 The model directory belongs to a software instance. – Anthony E. 408-656-2473 http://antho…

---

## [Database optimization approach](https://www.ruby-forum.com/t/database-optimization-approach/149611)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 10:18pm UTC](https://www.ruby-forum.com/t/database-optimization-approach/149611 "2008-09-26T22:18:54Z")

</div>

Hello everyone, I’ll like to hear your opinion on the following issue. I have a posts and post\_comments table. Posts belong to a group, so there is a group\_id column on it. I want to query for all the post\_comments of…

---

## [Directly calling an action](https://www.ruby-forum.com/t/directly-calling-an-action/149344)

<div class="topic-metadata">

**Author:** [@erhard](https://www.ruby-forum.com/u/erhard)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/directly-calling-an-action/149344 "2008-09-26T21:45:26Z")

</div>

Hi, I have got now ajax to work in my application. But I have still a small problem : I have a content - section … ...... Than I want to call a action which update this section depending on the data-constellation…

---

## [Capistano and SVN: Committing a change from the live copy?](https://www.ruby-forum.com/t/capistano-and-svn-committing-a-change-from-the-live-copy/149622)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/capistano-and-svn-committing-a-change-from-the-live-copy/149622 "2008-09-26T21:15:30Z")

</div>

I’m sure this is an easy fix for folks more familiar with subversion than me, but here it goes: I’m running Capistrano and have just successfully deployed my app from my local machine to my live server. The repository…

---

## [Capistrano SVN help: conflicting copies on prod and local](https://www.ruby-forum.com/t/capistrano-svn-help-conflicting-copies-on-prod-and-local/149593)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/capistrano-svn-help-conflicting-copies-on-prod-and-local/149593 "2008-09-26T21:12:53Z")

</div>

I’m sure this is an easy fix for folks more familiar with subversion than me, but here it goes: I’m running Capistrano and have successfully deployed my app from my local machine to my live server. The repository is o…

---

## [Problem with will\_paginate and total\_pages](https://www.ruby-forum.com/t/problem-with-will-paginate-and-total-pages/149624)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 9:08pm UTC](https://www.ruby-forum.com/t/problem-with-will-paginate-and-total-pages/149624 "2008-09-26T21:08:34Z")

</div>

I think I am observing a bug with the total\_pages count returned from my will\_paginate collection. Or, is there some other page count I can use that is more reliable? I have a paginated list with a search box that is…

---

## [Can not generate WSDL](https://www.ruby-forum.com/t/can-not-generate-wsdl/92109)

<div class="topic-metadata">

**Author:** [@anakintang](https://www.ruby-forum.com/u/anakintang)\
**Replies:** 9\
**Last updated:** [September 26, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/can-not-generate-wsdl/92109 "2008-09-26T21:00:24Z")

</div>

Hi, I am new to Rails and just play around with the Action Web Service. when I run “script/generator web\_service test method1”, I got a test\_controller and test\_api, in which there is a empty method1 definition and I…

---

## [Migrations](https://www.ruby-forum.com/t/migrations/149604)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 12\
**Last updated:** [September 26, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/migrations/149604 "2008-09-26T20:42:10Z")

</div>

the VERSION value at in rake db:migrate VERSION=\[versionNumber\] is the migration number right? for instance lets say I have 3 models generated in this respective order albums, users, and reviews. If I do “rake db:mi…

---

## [Join model misery](https://www.ruby-forum.com/t/join-model-misery/149607)

<div class="topic-metadata">

**Author:** [@rick\_2047](https://www.ruby-forum.com/u/rick_2047)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/join-model-misery/149607 "2008-09-26T20:04:34Z")

</div>

I have two models Event and Category in my rails app. I want a join model for many to many association so i used the script ./script/generate migration create\_categories\_events event\_id:integer category\_id:integer bu…

---

## [Twitter outbound](https://www.ruby-forum.com/t/twitter-outbound/149615)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/twitter-outbound/149615 "2008-09-26T19:18:00Z")

</div>

how can we send message to twitter account from our application.I am using twitter4r gem there is one message method in which we can post but it’s showing me following error @twitter.message(:post, ‘Are you coming ov…

---

## [Daemons gem vs cron jobs to execture rails code](https://www.ruby-forum.com/t/daemons-gem-vs-cron-jobs-to-execture-rails-code/149605)

<div class="topic-metadata">

**Author:** [@hotspoons](https://www.ruby-forum.com/u/hotspoons)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/daemons-gem-vs-cron-jobs-to-execture-rails-code/149605 "2008-09-26T18:56:07Z")

</div>

I need help understanding the pros and cons of these 2 facilities. Am I correct in assuming that this daemon by definitive runs in the rails environment, whereas a cron will have to load up a rail environment each tim…

---

## [Rake tasks + plugins](https://www.ruby-forum.com/t/rake-tasks-plugins/149597)

<div class="topic-metadata">

**Author:** [@alexey](https://www.ruby-forum.com/u/alexey)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/rake-tasks-plugins/149597 "2008-09-26T18:14:55Z")

</div>

In my rake task I try to use the classes and methods defined in a plugin. Seems that plugins are not hooked up during the rake task run. Models are also not hooked up. I can require ‘ModelName’ I can require ‘active…

---

## [Problema con auto\_complete](https://www.ruby-forum.com/t/problema-con-auto-complete/149600)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/problema-con-auto-complete/149600 "2008-09-26T18:05:29Z")

</div>

Nuevamente saludos a la comunidad tengo un problema con auto\_complete, primero que nada lo instale de la siguiente manera script/plugin install auto\_complete. luego hice el siguiente cÃ³digo: en mi vista tengo lo si…

---

## [Attachment\_fu and acts\_as\_list - a land war in Asia](https://www.ruby-forum.com/t/attachment-fu-and-acts-as-list-a-land-war-in-asia/149541)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-acts-as-list-a-land-war-in-asia/149541 "2008-09-26T18:03:44Z")

</div>

Hello- I’m trying to get a list of attachment\_fu objects (type of ProductImage) to play well with acts\_as\_list. Essentially, a single Product can have multiple ProductImages arranged in a sorted list (which feeds int…

---

## [Alternative to Google maps?](https://www.ruby-forum.com/t/alternative-to-google-maps/149589)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/alternative-to-google-maps/149589 "2008-09-26T17:45:29Z")

</div>

at my company we want to add mapping to our application, and while Google maps is clearly the most awesome mapping API on the planet, the terms and conditions dictate that it must be free to all users. We are thinking…

---

## [Chaining two named\_scope that have a block of code](https://www.ruby-forum.com/t/chaining-two-named-scope-that-have-a-block-of-code/149522)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/chaining-two-named-scope-that-have-a-block-of-code/149522 "2008-09-26T17:41:22Z")

</div>

Hi, I have a named\_scope that retrieves all the products for the current website based on its domain name: named\_scope :site, lambda { |website\_name| { :joins =\> :site, :order =\> ‘products.created\_at DESC’, :conditio…

---

## [With partial in a block is there any way to face "cycle" to restart?](https://www.ruby-forum.com/t/with-partial-in-a-block-is-there-any-way-to-face-cycle-to-restart/149591)

<div class="topic-metadata">

**Author:** [@magic6435](https://www.ruby-forum.com/u/magic6435)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/with-partial-in-a-block-is-there-any-way-to-face-cycle-to-restart/149591 "2008-09-26T16:52:26Z")

</div>

Im trying to display lists of products on a page which is split up into categories which is fine but, the way they are displayed is in a 3xwhatever grid so i was using cycle in my partial to set css styles for the spa…

---

## [Calling Create action from a link\_to](https://www.ruby-forum.com/t/calling-create-action-from-a-link-to/149585)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/calling-create-action-from-a-link-to/149585 "2008-09-26T16:06:56Z")

</div>

Hi, I have a Collection resource set up and I have configured my routes file: map.resources :collections I want to have a link which will create a new collection (instead of adding one via the form in the New action…

---

## [Spider Charts and Gruff: THE JOY OF GRAPHING](https://www.ruby-forum.com/t/spider-charts-and-gruff-the-joy-of-graphing/149517)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/spider-charts-and-gruff-the-joy-of-graphing/149517 "2008-09-26T15:53:04Z")

</div>

I hope this day finds you well. I need to generate Spider charts (aka radar charts) , and am using Gruff to do so. How can I show lines and axis numbers on a Spider chart? Here’s what I’m trying to make: How can …

---

## [How the url parameters are mapped to params hash?](https://www.ruby-forum.com/t/how-the-url-parameters-are-mapped-to-params-hash/149583)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/how-the-url-parameters-are-mapped-to-params-hash/149583 "2008-09-26T15:49:56Z")

</div>

Hi, I have created the url “http://localhost:3000/groups/home?group\_id=1&parent\_id=3”. I have one method in which I am able to access the url parameters by using params\[:group\_id\] and params\[:parent\_id\]. My question…

---

## [Creating routes to feeds](https://www.ruby-forum.com/t/creating-routes-to-feeds/149584)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/creating-routes-to-feeds/149584 "2008-09-26T15:19:15Z")

</div>

Hi all, I want to create rss feeds per user for his posts and events. Something like www.domain.com\\2\\posts\\feed where 2 is the id of the user, posts is the model and feed indictaing that the requested format is rss. …

---

## [Can anyone help? regarding simple\_captcha plugin](https://www.ruby-forum.com/t/can-anyone-help-regarding-simple-captcha-plugin/149558)

<div class="topic-metadata">

**Author:** [@sadathiru](https://www.ruby-forum.com/u/sadathiru)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/can-anyone-help-regarding-simple-captcha-plugin/149558 "2008-09-26T14:42:13Z")

</div>

simple\_captcha does not work in test environment Hi, I have been using simple\_captcha and it works fine and make myself happy. When I moved my app to test environment, It does not throwing message when the letters in …

---

## [Images are not shown on server / incorrect path](https://www.ruby-forum.com/t/images-are-not-shown-on-server-incorrect-path/149580)

<div class="topic-metadata">

**Author:** [@stefankroes](https://www.ruby-forum.com/u/stefankroes)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/images-are-not-shown-on-server-incorrect-path/149580 "2008-09-26T14:21:59Z")

</div>

Hi folks, i’m new to ROR. My Application works fine on my local machine, but if i deploy my application the pictures and files are not shown correctly. Instead of taking the right uri “http://adress/employee\_public/…

---

## [TDD and BDD](https://www.ruby-forum.com/t/tdd-and-bdd/149568)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/tdd-and-bdd/149568 "2008-09-26T14:14:54Z")

</div>

Hi Could anybody please tell me what these?BehaviouralDrivenDevelopment and TestDrivenDevelopment ? what are their pros and cons? And which is preferred by rails? Thanks in advance Sijo

---

## [Rails -1.2.3 to 2.1.1 ? how?](https://www.ruby-forum.com/t/rails-1-2-3-to-2-1-1-how/149559)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [September 26, 2008, 11:25am UTC](https://www.ruby-forum.com/t/rails-1-2-3-to-2-1-1-how/149559 "2008-09-26T11:25:47Z")

</div>

now i am working in a rails project version 1.2.3 but i like to work in rails 2.1.1 i thing by freexe the 1.2.3 gemm into vendor will solve the problem but i have 35 plugin in my project(which is version 1.2.3) so i …

---

## [Rails DOM naming conventions?](https://www.ruby-forum.com/t/rails-dom-naming-conventions/149562)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [September 26, 2008, 10:36am UTC](https://www.ruby-forum.com/t/rails-dom-naming-conventions/149562 "2008-09-26T10:36:01Z")

</div>

When I’m making views in Rails I am using my own naming conventions for dom id’s and classes: Ruby on Rails Lorem ipsum dolor sit amet. ... I’ve been trying to Google a little around, trying …

---

## [Preloading resources](https://www.ruby-forum.com/t/preloading-resources/149566)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 0\
**Last updated:** [September 26, 2008, 9:56am UTC](https://www.ruby-forum.com/t/preloading-resources/149566 "2008-09-26T09:56:06Z")

</div>

Hello, This is a little general question. What is the best way to preload certain resources like stylesheet, some images etc before a page is rendered to user? – Thanks, Jaikishan

---

## [Iterating through each record of a model and copy that to an](https://www.ruby-forum.com/t/iterating-through-each-record-of-a-model-and-copy-that-to-an/149563)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [September 26, 2008, 9:50am UTC](https://www.ruby-forum.com/t/iterating-through-each-record-of-a-model-and-copy-that-to-an/149563 "2008-09-26T09:50:48Z")

</div>

Hi I have to copy all the service desk cis to incident cis as part of converting sd\_ticket to incident…So in the Incident model I did sd\_ticket=ServiceDeskTicket.find(sd\_id) Then a new incident @incident is created h…

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

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