# Rails

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

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

---

## [Update a database table without a form](https://www.ruby-forum.com/t/update-a-database-table-without-a-form/139630)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/update-a-database-table-without-a-form/139630 "2008-06-05T18:06:42Z")

</div>

Hi everybody, a few days ago I began to build a group manager which only use AJAX for the CRUD - functions. But I have some problems now. The content of the database table will be editable by cklicking on the name of …

---

## [Installed RMagick and ImageMagick, now Chronic is given errors](https://www.ruby-forum.com/t/installed-rmagick-and-imagemagick-now-chronic-is-given-errors/139628)

<div class="topic-metadata">

**Author:** [@gorgeoussoul](https://www.ruby-forum.com/u/gorgeoussoul)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/installed-rmagick-and-imagemagick-now-chronic-is-given-errors/139628 "2008-06-05T17:31:32Z")

</div>

I’m stuck. I’m relatively new to Rails and haven’t had to troubleshoot “rails weirdness” before. I’ve been using Chronic for a while now without any problems. But, I just installed ImageMagick, RMagick, and Gruff. …

---

## [Find based on conditions defined in the model](https://www.ruby-forum.com/t/find-based-on-conditions-defined-in-the-model/139543)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 3\
**Last updated:** [June 5, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/find-based-on-conditions-defined-in-the-model/139543 "2008-06-05T16:33:05Z")

</div>

Hi all, Does anyone know how to run a find where a condition is based on an attribute specified in an object’s model? I have a Payment object, and in its model I have a function called “amount\_unapplied”. That code…

---

## ['mod\_rails' Passenger gem on OpenBSD](https://www.ruby-forum.com/t/mod-rails-passenger-gem-on-openbsd/139625)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 4:32pm UTC](https://www.ruby-forum.com/t/mod-rails-passenger-gem-on-openbsd/139625 "2008-06-05T16:32:21Z")

</div>

Hey all, Has anyone had any luck getting mod\_rails to install on OpenBSD? Googled around and couldn’t find much. Mikel

---

## [Comparing Time Zones](https://www.ruby-forum.com/t/comparing-time-zones/139583)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 6\
**Last updated:** [June 5, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/comparing-time-zones/139583 "2008-06-05T16:25:13Z")

</div>

Is there a way in 2.1 to compare Time Zones? Basically, my application’s time zone is set to EST. I have a Client model with a time zone and I have a drop down using TimeZone.us\_zones which only stores the string of …

---

## [Subset of a model instance's collection](https://www.ruby-forum.com/t/subset-of-a-model-instances-collection/139624)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/subset-of-a-model-instances-collection/139624 "2008-06-05T16:18:42Z")

</div>

I need to get a subset of an objects collection. Sort of like named\_scope but for a specific model instance. Foo has\_many :bar Bar has\_many :buzz I want all of the bars for a specific foo but I only want to consider …

---

## [Display statistical data on a region map](https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602)

<div class="topic-metadata">

**Author:** [@sneha](https://www.ruby-forum.com/u/sneha)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/display-statistical-data-on-a-region-map/139602 "2008-06-05T16:05:03Z")

</div>

Hi all, My rails 2.0.2 application needs to display the sales of my client regionwise. ex: Display colours in various states of a country scale wise. I’ve already wasted 2 days behind this but still not got anything …

---

## [Transfert xml strings](https://www.ruby-forum.com/t/transfert-xml-strings/139610)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/transfert-xml-strings/139610 "2008-06-05T15:40:45Z")

</div>

Hi, I have a webservice which communicate in xml. i send xml strings to rails and they are available in my controller in params variable as hash. how can i have directly the xml string? without transform from hash to…

---

## [Redirect\_to, render -- Controller Questions](https://www.ruby-forum.com/t/redirect-to-render-controller-questions/139221)

<div class="topic-metadata">

**Author:** [@dougd1101](https://www.ruby-forum.com/u/dougd1101)\
**Replies:** 3\
**Last updated:** [June 5, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/redirect-to-render-controller-questions/139221 "2008-06-05T15:21:07Z")

</div>

So I am just learning RoR and how I learn best is to come up with a problem and use another language to accomplish this. So I decided to do “Digg” type of site where people post a comment and people respond. So in m…

---

## [YAML, Serialize and Date Formats problem](https://www.ruby-forum.com/t/yaml-serialize-and-date-formats-problem/139617)

<div class="topic-metadata">

**Author:** [@railsgeek](https://www.ruby-forum.com/u/railsgeek)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/yaml-serialize-and-date-formats-problem/139617 "2008-06-05T14:59:56Z")

</div>

I’m froma Spain, and was using DATE\_FORMATS to allow correct spanish format of date values. I’m using this at environment.rb file: ActiveSupport::CoreExtensions::date::Conversions::DATE\_FORMATS\[:default\] = ‘%d-%m-%Y’ …

---

## [Should actionmailer portion put in another thread?](https://www.ruby-forum.com/t/should-actionmailer-portion-put-in-another-thread/139615)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/should-actionmailer-portion-put-in-another-thread/139615 "2008-06-05T14:50:35Z")

</div>

Hi I have controller code like below def edit\_service\_desk\_status\_after\_transfer ActiveRecord::Base.transaction do sd\_status\_history = ServiceDeskStatusHistory.new sd\_status\_history.service\_desk\_ticket\_id = sd\_ticke…

---

## [Date format conversion](https://www.ruby-forum.com/t/date-format-conversion/139581)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/date-format-conversion/139581 "2008-06-05T13:54:00Z")

</div>

Now i facing the date format in my database. I am using mysql as my database then the datetime format is 2008-06-04 15:17:55. But my datetime format is like this Fri May 23 16:43:28 +0800 2008. So when i execute it sa…

---

## [How to get REMOTE\_USER in Rails?](https://www.ruby-forum.com/t/how-to-get-remote-user-in-rails/139596)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-get-remote-user-in-rails/139596 "2008-06-05T12:42:13Z")

</div>

Hi, I need to retrieve what’s stored in ‘REMOTE\_USER’. I’m looking around in “ActionController::AbstractRequest”, but don’t have something to work with. I need this data to kick accesses that don’t have a valid ‘REMO…

---

## [Database query trouble](https://www.ruby-forum.com/t/database-query-trouble/139605)

<div class="topic-metadata">

**Author:** [@harryvermeulen](https://www.ruby-forum.com/u/harryvermeulen)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/database-query-trouble/139605 "2008-06-05T12:16:57Z")

</div>

Hello, I’m creating a multilingual blog, where a translator would translate single posts into several languages. I’m having some trouble searching and comparing records. My database is set up like this: Posts: id, bo…

---

## [Div and loop help](https://www.ruby-forum.com/t/div-and-loop-help/139538)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 11:46am UTC](https://www.ruby-forum.com/t/div-and-loop-help/139538 "2008-06-05T11:46:34Z")

</div>

Hello, I want to display a effect.slidedown in a table. I have a table called contactnotes. \<%= link\_to(@person.first\_name, "#", html\_options={:onclick =\> "Effect.SlideDown('show\_details\_of\_contact\_note'); return …

---

## [Rake tasks not writing to log file anymore](https://www.ruby-forum.com/t/rake-tasks-not-writing-to-log-file-anymore/134299)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 11\
**Last updated:** [June 5, 2008, 11:32am UTC](https://www.ruby-forum.com/t/rake-tasks-not-writing-to-log-file-anymore/134299 "2008-06-05T11:32:33Z")

</div>

I have a Rails app, and some custom rake tasks which are called by cron jobs every hour or so. The rake tasks would just call some methods on my models to perform some work. The models in turn use RAILS\_DEFAULT\_LOGG…

---

## [Datetime format](https://www.ruby-forum.com/t/datetime-format/139590)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 11:24am UTC](https://www.ruby-forum.com/t/datetime-format/139590 "2008-06-05T11:24:22Z")

</div>

These code is to read the email i save in the text file that i have retrieved from gmail. msisdn = “” datetime = “” date = “” File.open(Pathname.new(ARGV\[0\]), ‘r’) do |mbox| RMail::Mailbox.parse\_mbox(mbox) do |raw| …

---

## [Using Javascript variables](https://www.ruby-forum.com/t/using-javascript-variables/139507)

<div class="topic-metadata">

**Author:** [@sachin](https://www.ruby-forum.com/u/sachin)\
**Replies:** 3\
**Last updated:** [June 5, 2008, 11:21am UTC](https://www.ruby-forum.com/t/using-javascript-variables/139507 "2008-06-05T11:21:49Z")

</div>

How one can use a JS variable in the ruby code?

---

## [Send a list to the controller](https://www.ruby-forum.com/t/send-a-list-to-the-controller/139599)

<div class="topic-metadata">

**Author:** [@mucca](https://www.ruby-forum.com/u/mucca)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 11:15am UTC](https://www.ruby-forum.com/t/send-a-list-to-the-controller/139599 "2008-06-05T11:15:19Z")

</div>

Hi all, I’m new on rails, I need to send a list from the template to the controller but if i define a list of checkbox wiith the some name the result is only 1 in the param into the controller … how can i do? many th…

---

## [CPU spike when I quit rails](https://www.ruby-forum.com/t/cpu-spike-when-i-quit-rails/139600)

<div class="topic-metadata">

**Author:** [@shanusmagnus](https://www.ruby-forum.com/u/shanusmagnus)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 11:01am UTC](https://www.ruby-forum.com/t/cpu-spike-when-i-quit-rails/139600 "2008-06-05T11:01:42Z")

</div>

Hi - I’m new to rails, not so new to Ruby (though by no means any sort of wizard; just use it for real projects at school.) I’ve coded up a pretty simple rails app to run an experiment. Very standard, nothing trick…

---

## [ActionMailer](https://www.ruby-forum.com/t/actionmailer/139592)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 10:37am UTC](https://www.ruby-forum.com/t/actionmailer/139592 "2008-06-05T10:37:20Z")

</div>

Hi I tried to send mail from application and succeed …Since I am new to this I have a doubt to be cleared regarding this…Should I generate one action mailer (ruby script/generate mailer name)for the whole application…

---

## [Cookies not storing?](https://www.ruby-forum.com/t/cookies-not-storing/139598)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 10:36am UTC](https://www.ruby-forum.com/t/cookies-not-storing/139598 "2008-06-05T10:36:00Z")

</div>

hi, got an annoying problem with my cookies, can’t get them to store to the browser, even though the the browser is set to accept all cookies and the code runs thru ok, def index cookie\[:hello\] = “something” end in…

---

## [Error logging](https://www.ruby-forum.com/t/error-logging/139383)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 10:32am UTC](https://www.ruby-forum.com/t/error-logging/139383 "2008-06-05T10:32:10Z")

</div>

hi, just a quickie, how do i write custom error messages to the log so i can debug a little better. similar to writing stuff to the Javascript console with console.debug(‘222’); or alert(‘444’); appreciate it?

---

## [Retrieving indexed words from Ferret](https://www.ruby-forum.com/t/retrieving-indexed-words-from-ferret/139513)

<div class="topic-metadata">

**Author:** [@Rey9999](https://www.ruby-forum.com/u/Rey9999)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 10:00am UTC](https://www.ruby-forum.com/t/retrieving-indexed-words-from-ferret/139513 "2008-06-05T10:00:50Z")

</div>

Hello everyone. Let us say I have a simple blog application, with ferret set up and running, performing searches on posts and comments (which are using acts\_as\_ferret). My question is: is it possible, for each objec…

---

## [Saving data from text file into database](https://www.ruby-forum.com/t/saving-data-from-text-file-into-database/139234)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 9:39am UTC](https://www.ruby-forum.com/t/saving-data-from-text-file-into-database/139234 "2008-06-05T09:39:20Z")

</div>

Hi i’m new to ROR. I do not sure how am i going to extract out the data from a text file into a database. This is the asd.txt file i want to extract: removed\_email\_address@domain.invalid,Fri May 23 16:43:28 +0800 2008…

---

## [How to change ActiveRecord date format conversion](https://www.ruby-forum.com/t/how-to-change-activerecord-date-format-conversion/139479)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 9:30am UTC](https://www.ruby-forum.com/t/how-to-change-activerecord-date-format-conversion/139479 "2008-06-05T09:30:06Z")

</div>

I am using custom control for entering a date on the form. My date format is dd.mm.yyyy and this is also what the control returns to program. But ActiveRecord expects date to be formated as mm.dd.yyyy and thus saves w…

---

## [Trouble finding the right records](https://www.ruby-forum.com/t/trouble-finding-the-right-records/139593)

<div class="topic-metadata">

**Author:** [@harryvermeulen](https://www.ruby-forum.com/u/harryvermeulen)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 9:27am UTC](https://www.ruby-forum.com/t/trouble-finding-the-right-records/139593 "2008-06-05T09:27:01Z")

</div>

Hello, I’m creating a multilingual blog, where a translator would translate single posts into several languages. I’m having some trouble searching and comparing records. My database is set up like this: Posts: id, bo…

---

## [Jobs scheduling](https://www.ruby-forum.com/t/jobs-scheduling/139443)

<div class="topic-metadata">

**Author:** [@anka](https://www.ruby-forum.com/u/anka)\
**Replies:** 6\
**Last updated:** [June 5, 2008, 9:06am UTC](https://www.ruby-forum.com/t/jobs-scheduling/139443 "2008-06-05T09:06:22Z")

</div>

I know, that my question is easy for you, but not for me, because I’m beginner with RoR. So… My application sends a lot of emails - not only for confirm registration, change password, but others. I take time if I do …

---

## [Will\_paginate](https://www.ruby-forum.com/t/will-paginate/139591)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 9:04am UTC](https://www.ruby-forum.com/t/will-paginate/139591 "2008-06-05T09:04:03Z")

</div>

Hi all… I’m doing pagination using will\_paginate on data retrieved from three tables hardware\_cis, software\_cis, document\_cis The data retrieved from the tables are pushed into an array and the pagination is applied …

---

## [Large numeric prefix on generated migration files](https://www.ruby-forum.com/t/large-numeric-prefix-on-generated-migration-files/139589)

<div class="topic-metadata">

**Author:** [@conz](https://www.ruby-forum.com/u/conz)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 8:59am UTC](https://www.ruby-forum.com/t/large-numeric-prefix-on-generated-migration-files/139589 "2008-06-05T08:59:52Z")

</div>

Hi, I noticed that the prefix for the migration files are very large numeric numbers. Is this a bug? -Conrad

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

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