# Rails

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

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

---

## [Check if a backgroundrb job is running](https://www.ruby-forum.com/t/check-if-a-backgroundrb-job-is-running/105389)

<div class="topic-metadata">

**Author:** [@crossblaim](https://www.ruby-forum.com/u/crossblaim)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/check-if-a-backgroundrb-job-is-running/105389 "2007-05-29T15:16:56Z")

</div>

hi there, maybe it’s a stupid question but how do I check if a backgroundrb job is running without having to store the job\_key in a session var? I’ve tried MiddleMan\[“auth\_2”.to\_sym\] for example, but it always return…

---

## [Forms + Partials integration in login](https://www.ruby-forum.com/t/forms-partials-integration-in-login/105181)

<div class="topic-metadata">

**Author:** [@hpacheco](https://www.ruby-forum.com/u/hpacheco)\
**Replies:** 3\
**Last updated:** [May 29, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/forms-partials-integration-in-login/105181 "2007-05-29T14:44:29Z")

</div>

Hi all, I’m new at rails, so maybe my problem is very stupid. I’ve used act\_as\_authenticated to generate a login/logout/signup controllers and it all works fine. However, I’ve put both views login and logout into a p…

---

## [Find dynamic conditions?](https://www.ruby-forum.com/t/find-dynamic-conditions/105373)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/find-dynamic-conditions/105373 "2007-05-29T12:26:20Z")

</div>

Hello there, I have a little problem with the find, I want to put some conditions depend on the users want. #Language if params\[:l\].to\_i \> 0 find\_options\[:conditions\] = \[“language\_id = ?”, params\[:l\]\] end #Categor…

---

## [Application working with CGI but not with FastCGI](https://www.ruby-forum.com/t/application-working-with-cgi-but-not-with-fastcgi/105187)

<div class="topic-metadata">

**Author:** [@solanky](https://www.ruby-forum.com/u/solanky)\
**Replies:** 1\
**Last updated:** [May 29, 2007, 10:40am UTC](https://www.ruby-forum.com/t/application-working-with-cgi-but-not-with-fastcgi/105187 "2007-05-29T10:40:19Z")

</div>

Hi, I have started rails some week ago. I have deployed my application to production sever which is a shared host with FastCGI enabled. This application is actually Radiant CMS and working fine if I am using dispatch…

---

## [Rails command doesn't work on linux](https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 29, 2007, 10:08am UTC](https://www.ruby-forum.com/t/rails-command-doesnt-work-on-linux/105359 "2007-05-29T10:08:32Z")

</div>

I am on a Linux server with limited access. Even if ruby and gems commands are working fine for me, rails command doesn’t work. The rails is already installed( rails packages are listed when I run gem query --local) …

---

## [Deployment Issue with Capistrano1.4.1](https://www.ruby-forum.com/t/deployment-issue-with-capistrano1-4-1/105361)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 9:46am UTC](https://www.ruby-forum.com/t/deployment-issue-with-capistrano1-4-1/105361 "2007-05-29T09:46:08Z")

</div>

When I tried to deploy my project(in SVN) to test-environment, I got the following error: tag or branch not specified executing task test executing task deploy executing task update \*\* transaction: start executing t…

---

## [Request Routing Plugin Update - Feedback? Interest? Help?](https://www.ruby-forum.com/t/request-routing-plugin-update-feedback-interest-help/105358)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 9:10am UTC](https://www.ruby-forum.com/t/request-routing-plugin-update-feedback-interest-help/105358 "2007-05-29T09:10:05Z")

</div>

I have an update to the request plugin that I would like feedback or help with. I have contacted the author but have not heard anything back, which is why I am posting this here. My goal was to allow for sites that c…

---

## [Lookup tables](https://www.ruby-forum.com/t/lookup-tables/105330)

<div class="topic-metadata">

**Author:** [@railskater](https://www.ruby-forum.com/u/railskater)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 8:41am UTC](https://www.ruby-forum.com/t/lookup-tables/105330 "2007-05-29T08:41:37Z")

</div>

It is interesting to think about traditional db “lookup” tables in rails. Consider the notion of a “stage.” A stage can be “active”, “suspended”, “completed”, “terminated”, etc. In rails thinking I would have some …

---

## [Count words](https://www.ruby-forum.com/t/count-words/105288)

<div class="topic-metadata">

**Author:** [@diegoson](https://www.ruby-forum.com/u/diegoson)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 8:01am UTC](https://www.ruby-forum.com/t/count-words/105288 "2007-05-29T08:01:44Z")

</div>

Two questions: -How can I count words in a variable string? and -I have a variable, such a, string=“INN SO”. How can I found this string in mysql database where the field is “DINNER, SOAP”, for exemple? Thank you, D…

---

## [Ajax sortable\_element refresh](https://www.ruby-forum.com/t/ajax-sortable-element-refresh/105349)

<div class="topic-metadata">

**Author:** [@hpacheco](https://www.ruby-forum.com/u/hpacheco)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 6:36am UTC](https://www.ruby-forum.com/t/ajax-sortable-element-refresh/105349 "2007-05-29T06:36:47Z")

</div>

Hi, I have the following ajax example, with a list of counters, and two buttons for adding/removing elements. The list is sortable. There are two things that I don’t know how to do: . remove an elemet . when I add a…

---

## [Rjs variable substitution problem](https://www.ruby-forum.com/t/rjs-variable-substitution-problem/105252)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [May 29, 2007, 6:35am UTC](https://www.ruby-forum.com/t/rjs-variable-substitution-problem/105252 "2007-05-29T06:35:47Z")

</div>

I keep getting javascript alerts messages basically telling me that it can’t find the element. It obviously has something to do with the group.id value not being put in it’s place properly. here is the action method …

---

## [Proper use of db:migrate and associated scripts](https://www.ruby-forum.com/t/proper-use-of-db-migrate-and-associated-scripts/105326)

<div class="topic-metadata">

**Author:** [@Big\_Dave\_S](https://www.ruby-forum.com/u/Big_Dave_S)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 5:09am UTC](https://www.ruby-forum.com/t/proper-use-of-db-migrate-and-associated-scripts/105326 "2007-05-29T05:09:43Z")

</div>

Hi community, I’m a fairly new developer. I created a project in rails to learn with, and created a model for ‘computer’. I edited the appropriate 001\_create\_computer.rb migration file, and as part of it, included a …

---

## [Mailing to a form field](https://www.ruby-forum.com/t/mailing-to-a-form-field/105336)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [May 29, 2007, 5:00am UTC](https://www.ruby-forum.com/t/mailing-to-a-form-field/105336 "2007-05-29T05:00:43Z")

</div>

I have generated a mailer. The name of the mailer class is ‘Taf’ and the name of my email action method is ‘confirm’. I added an action method named taf\_send to an existing controller which happened to be named ‘sp…

---

## [Putting params back into link\_to](https://www.ruby-forum.com/t/putting-params-back-into-link-to/105339)

<div class="topic-metadata">

**Author:** [@Chad](https://www.ruby-forum.com/u/Chad)\
**Replies:** 1\
**Last updated:** [May 29, 2007, 4:39am UTC](https://www.ruby-forum.com/t/putting-params-back-into-link-to/105339 "2007-05-29T04:39:42Z")

</div>

I’ve read quite a few examples of how to do this, like http://railsenvy.com/2007/2/18/merging-params and it works fine so long as I use string variables in my link do you have any clue how to keep a hash in the link? …

---

## [YM4R GM Javascript events?](https://www.ruby-forum.com/t/ym4r-gm-javascript-events/105345)

<div class="topic-metadata">

**Author:** [@hpacheco](https://www.ruby-forum.com/u/hpacheco)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 4:37am UTC](https://www.ruby-forum.com/t/ym4r-gm-javascript-events/105345 "2007-05-29T04:37:42Z")

</div>

Hi all, I have added a GEvent to a google map with a JS calback and it works fine, but I do need to get some way of returning the values to rails, so I can add the new marker to an array. For that, I need some kind o…

---

## [Two or more forms in one page, and the controller will recie](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262)

<div class="topic-metadata">

**Author:** [@Smallbear](https://www.ruby-forum.com/u/Smallbear)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 3:19am UTC](https://www.ruby-forum.com/t/two-or-more-forms-in-one-page-and-the-controller-will-recie/105262 "2007-05-29T03:19:35Z")

</div>

thanks everybody.

---

## [Using fckeditor under rails](https://www.ruby-forum.com/t/using-fckeditor-under-rails/105329)

<div class="topic-metadata">

**Author:** [@Lucas\_Carvalho](https://www.ruby-forum.com/u/Lucas_Carvalho)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 3:02am UTC](https://www.ruby-forum.com/t/using-fckeditor-under-rails/105329 "2007-05-29T03:02:59Z")

</div>

Hello all, I am using fckeditor to write texts, but the problem is: the user can add JavaScripts commands. But when I am showing the content of record, I need to display only the HTML and deny the JavaScript comman…

---

## [Hi, how can i rewrite this to take out commas in tag field?](https://www.ruby-forum.com/t/hi-how-can-i-rewrite-this-to-take-out-commas-in-tag-field/105315)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [May 29, 2007, 2:46am UTC](https://www.ruby-forum.com/t/hi-how-can-i-rewrite-this-to-take-out-commas-in-tag-field/105315 "2007-05-29T02:46:51Z")

</div>

def tag\_with tags tags.split(" ").each do |tag| Tag.find\_or\_create\_by\_name(tag).taggables \<\< self end i have a text field box where the user can create tags. however, if they use commas, the comma becomes part of th…

---

## [Choosing tools (RoR/drupal/other)](https://www.ruby-forum.com/t/choosing-tools-ror-drupal-other/105117)

<div class="topic-metadata">

**Author:** [@nvm](https://www.ruby-forum.com/u/nvm)\
**Replies:** 3\
**Last updated:** [May 29, 2007, 1:53am UTC](https://www.ruby-forum.com/t/choosing-tools-ror-drupal-other/105117 "2007-05-29T01:53:31Z")

</div>

Hi! I have an idea for a project that would be based around a community like website. I am currently trying to evaluate different tools for me to build my site with. Though I’m fairly new to developing server side thi…

---

## [Problem adding data to db](https://www.ruby-forum.com/t/problem-adding-data-to-db/105334)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 1:09am UTC](https://www.ruby-forum.com/t/problem-adding-data-to-db/105334 "2007-05-29T01:09:31Z")

</div>

Hello i am trying to save some data to my db, this is what i got: MODEL: class File \< ActiveRecord::Base belongs\_to :product def uploaded\_file=(picture\_field) self.name = base\_part\_of(picture\_field.original\_fi…

---

## [FreeBSD 5.4 ROR 1.2.3 Premature end of script headers](https://www.ruby-forum.com/t/freebsd-5-4-ror-1-2-3-premature-end-of-script-headers/105337)

<div class="topic-metadata">

**Author:** [@lukec](https://www.ruby-forum.com/u/lukec)\
**Replies:** 0\
**Last updated:** [May 29, 2007, 1:00am UTC](https://www.ruby-forum.com/t/freebsd-5-4-ror-1-2-3-premature-end-of-script-headers/105337 "2007-05-29T01:00:45Z")

</div>

Hi Ruby on Rails experts, I have been trying to get Ruby on Rails running on my FreeBSD server to no avail. I’ve overcome a few technical issues, but I’m stumped again. Here’s an excerpt from my vhost.conf LoadModule…

---

## [REST Design](https://www.ruby-forum.com/t/rest-design/105328)

<div class="topic-metadata">

**Author:** [@Lza](https://www.ruby-forum.com/u/Lza)\
**Replies:** 2\
**Last updated:** [May 29, 2007, 12:21am UTC](https://www.ruby-forum.com/t/rest-design/105328 "2007-05-29T00:21:25Z")

</div>

I am trying to design an application using a REST style, however, I am unsure of the correct way to handle a page which has multiple resources being displayed, such as hotel rooms and advertisements; or a page that di…

---

## [IE issues](https://www.ruby-forum.com/t/ie-issues/105198)

<div class="topic-metadata">

**Author:** [@maxguzenski](https://www.ruby-forum.com/u/maxguzenski)\
**Replies:** 5\
**Last updated:** [May 28, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/ie-issues/105198 "2007-05-28T23:32:21Z")

</div>

HI, I released my project as LGPL: http://rubyforge.org/projects/financasonrails/ So, It works great with Firefox but with IE visual\_effects isn’t working correctly! Does anyone know why? demo site: http://demos.guz…

---

## [Stock](https://www.ruby-forum.com/t/stock/105323)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 1\
**Last updated:** [May 28, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/stock/105323 "2007-05-28T22:03:10Z")

</div>

is there an easy way, or hard way, to have amount of items, and as they’r been sold the amount or quantity be subtructed, and as they are added, the amount or quantity grows, ? I can see that everybody wants to sell b…

---

## [Looking For A Better Way To Do This](https://www.ruby-forum.com/t/looking-for-a-better-way-to-do-this/105327)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/looking-for-a-better-way-to-do-this/105327 "2007-05-28T21:39:08Z")

</div>

For efficiency sake after a bunch of experimentation I have come to the conclusion, for me, that the best way to export 100K plus rows into csv format is by breaking into mysql and doing an OUTFILE. It is easy except…

---

## [Updating several divs within a controller](https://www.ruby-forum.com/t/updating-several-divs-within-a-controller/105312)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/updating-several-divs-within-a-controller/105312 "2007-05-28T20:20:00Z")

</div>

I would know if it’s possible to do the following: I have a head-DIV, main-Div and a navigation-DIV and a global application Layout. head - link1 link2 link3 - nav - main - …

---

## [Creating tables within the app rather than manual configure](https://www.ruby-forum.com/t/creating-tables-within-the-app-rather-than-manual-configure/105174)

<div class="topic-metadata">

**Author:** [@patwa](https://www.ruby-forum.com/u/patwa)\
**Replies:** 5\
**Last updated:** [May 28, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/creating-tables-within-the-app-rather-than-manual-configure/105174 "2007-05-28T20:08:29Z")

</div>

Hello, Was wondering if anyone working with Ruby on Rails could advise? I am developing a blog for my site, but was thinking of also having it as an application which I could distribute. To this end I would want the…

---

## [Notifying a user after send\_data](https://www.ruby-forum.com/t/notifying-a-user-after-send-data/105319)

<div class="topic-metadata">

**Author:** [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/notifying-a-user-after-send-data/105319 "2007-05-28T19:49:54Z")

</div>

I’ve got a couple of places in my app where a user can click a link and download a file, which is generated by send\_data. However, with browsers nowadays set up to make downloads as unobtrusive as possible sometimes …

---

## [Is it really possible with rails?](https://www.ruby-forum.com/t/is-it-really-possible-with-rails/105235)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 2\
**Last updated:** [May 28, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/is-it-really-possible-with-rails/105235 "2007-05-28T19:01:49Z")

</div>

Hi everyone! I’ve been developing dinamic websites with Php for a long time. I’m really new to Rails. I’ ve thinking of a project for a long while, and technicaly speaking, is possible with php. In fact, i’ve already…

---

## [IRC setup does not appear to be working](https://www.ruby-forum.com/t/irc-setup-does-not-appear-to-be-working/105309)

<div class="topic-metadata">

**Author:** [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Replies:** 0\
**Last updated:** [May 28, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/irc-setup-does-not-appear-to-be-working/105309 "2007-05-28T18:38:46Z")

</div>

The #rubyonrails irc at irc.freenode.net requires registered nicknames. While I can get nickserv to admit I am me, the irc chat does not appear to be convinced. I am using colloquy to login to the chat and it compla…

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

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