# Rails

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

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

---

## [RoR Posting for Scientific Programmer needed](https://www.ruby-forum.com/t/ror-posting-for-scientific-programmer-needed/144644)

<div class="topic-metadata">

**Author:** [@Lockheed\_Recruiter](https://www.ruby-forum.com/u/Lockheed_Recruiter)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/ror-posting-for-scientific-programmer-needed/144644 "2008-07-31T19:09:10Z")

</div>

Hi, I just want to add to my post below regarding the Programming opportunity at the NIH, we are open to non US Nationals, you do not need to be a US Citizen to apply, we also are able to provide visa sponsorship and…

---

## [Trying to delete file using FileUtils not working](https://www.ruby-forum.com/t/trying-to-delete-file-using-fileutils-not-working/144636)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/trying-to-delete-file-using-fileutils-not-working/144636 "2008-07-31T18:07:59Z")

</div>

I have a directory (dir\_menu) that contains the following files: dir\_menu |-menu.htm |-menu\_lesson.htmt |-menu\_topic.htmt |-launchunitvars.js I’m trying to remove the two files with the “.htmt” extensions using the …

---

## [Only get, put, and delete requests are allowed](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed/144634)

<div class="topic-metadata">

**Author:** [@tinney](https://www.ruby-forum.com/u/tinney)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 6:06pm UTC](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed/144634 "2008-07-31T18:06:30Z")

</div>

Greetings, I’m running into an odd problem here. Everything was working fine until I started playing with my application this morning. It seems that when I try to use my login action, I’m instead given this error. On…

---

## [Custom routes](https://www.ruby-forum.com/t/custom-routes/67690)

<div class="topic-metadata">

**Author:** [@hreyaatnh](https://www.ruby-forum.com/u/hreyaatnh)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/custom-routes/67690 "2008-07-31T18:05:07Z")

</div>

I want to display the 404.html page for routes that are not defined in my application. So if a visitor tries to visit “http:://www.yoursite.com/undefined” instead of “Routing error” they will get my 404.html page. H…

---

## [Redirecting with params](https://www.ruby-forum.com/t/redirecting-with-params/144557)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 31, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/redirecting-with-params/144557 "2008-07-31T18:03:30Z")

</div>

def index @posts = Post.search(params\[:search\], params\[:page\]) session.model.update\_attribute(:viewing, “Home”) end def save\_requirement @post = Post.new(params\[:post\]) if @post.save params\[:search\] = @po…

---

## [I'm a newb ... I'm not be able to add a new method to my controller](https://www.ruby-forum.com/t/im-a-newb-im-not-be-able-to-add-a-new-method-to-my-controller/144635)

<div class="topic-metadata">

**Author:** [@divino\_marchese](https://www.ruby-forum.com/u/divino_marchese)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/im-a-newb-im-not-be-able-to-add-a-new-method-to-my-controller/144635 "2008-07-31T18:01:49Z")

</div>

Hi, I’m a newb . I joined because I have a question. Here above there are my steps. I add to my controller a method: view\_all I type: http://localhost:3000/entries/view\_all in my browser. I recive this error ActiveRe…

---

## [Looking for a RoR Programmer for a Scientific Application within a Project at NIH](https://www.ruby-forum.com/t/looking-for-a-ror-programmer-for-a-scientific-application-within-a-project-at-nih/144638)

<div class="topic-metadata">

**Author:** [@Lockheed\_Recruiter](https://www.ruby-forum.com/u/Lockheed_Recruiter)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/looking-for-a-ror-programmer-for-a-scientific-application-within-a-project-at-nih/144638 "2008-07-31T17:51:16Z")

</div>

Hi, I actually staff for scientific projects within a large program at the National Institutes of Health in the Wash DC area. I have been looking for quite some time for a strong Ruby P.mer to work in conjunction wit…

---

## [Freeze field in active record](https://www.ruby-forum.com/t/freeze-field-in-active-record/144633)

<div class="topic-metadata">

**Author:** [@christophe1](https://www.ruby-forum.com/u/christophe1)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/freeze-field-in-active-record/144633 "2008-07-31T17:44:47Z")

</div>

Hello, I have a freeze field in a table (that I can’t change). When I try to find a record in this table I have the exception : C:/DATA/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ activerecord-2.1.0/lib/active\_reco…

---

## [Difficulty nesting array in hash](https://www.ruby-forum.com/t/difficulty-nesting-array-in-hash/144583)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 4\
**Last updated:** [July 31, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/difficulty-nesting-array-in-hash/144583 "2008-07-31T17:34:48Z")

</div>

Here’s my problem: I have an array of shipments, each of them has a ship\_date @shipments = Shipment.find(:all, :order =\> \['ship\_date ASC'\]) I have an array of dates for which I will display scheduled shipments: @date…

---

## [Basic n00b question](https://www.ruby-forum.com/t/basic-n00b-question/144622)

<div class="topic-metadata">

**Author:** [@etetet](https://www.ruby-forum.com/u/etetet)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/basic-n00b-question/144622 "2008-07-31T17:28:56Z")

</div>

I have a model called comment which has the typical stuff like belongs\_to :post, author, email, body and a posts controller with the method add\_comment. On the views/posts/show.html.erb I have: \<% form\_for @comment, …

---

## [\[ANN\] Lone Star Ruby Conference 2008](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008/144626)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/ann-lone-star-ruby-conference-2008/144626 "2008-07-31T17:04:15Z")

</div>

Greetings This is a quick reminder that the second annual Lone Star Ruby Conference (Sep 4-6) is filling up quickly and early registration ends soon (Aug 10). We have an excellent program this year. Matz and Evan P.…

---

## [Need help selecting a good upload plugin](https://www.ruby-forum.com/t/need-help-selecting-a-good-upload-plugin/144553)

<div class="topic-metadata">

**Author:** [@brandon](https://www.ruby-forum.com/u/brandon)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/need-help-selecting-a-good-upload-plugin/144553 "2008-07-31T17:01:20Z")

</div>

I’m designing a website that allows users to upload documents, images, mp3s and videos. What is a good upload plugin that can handle all these file types? Required: Simple integration with rmagick or other image pro…

---

## [Alphanumeric Sort](https://www.ruby-forum.com/t/alphanumeric-sort/144592)

<div class="topic-metadata">

**Author:** [@tgreiser](https://www.ruby-forum.com/u/tgreiser)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 4:58pm UTC](https://www.ruby-forum.com/t/alphanumeric-sort/144592 "2008-07-31T16:58:24Z")

</div>

I need to sort a collection of book models by their title. These are technical books with long names including stuff like “Title 49, Parts 100-185”. My problem is that “Title 10” comes before “Title 2” because strings…

---

## [Gears on rails](https://www.ruby-forum.com/t/gears-on-rails/144441)

<div class="topic-metadata">

**Author:** [@mariek](https://www.ruby-forum.com/u/mariek)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/gears-on-rails/144441 "2008-07-31T15:54:27Z")

</div>

have You succesfully launched an aplication using this plugin ? It started for me, registered to gears, detected being online, but after loosing connection the problem concerned with jester js lib appeared and failed …

---

## [Prototype](https://www.ruby-forum.com/t/prototype/144617)

<div class="topic-metadata">

**Author:** [@mikael](https://www.ruby-forum.com/u/mikael)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/prototype/144617 "2008-07-31T15:29:32Z")

</div>

Hello! I wonder if anyone knows if there is a big different between prototype.js 1.6.0.1 and 1.6.0.2. I have problem when using links and :method =\> :delete. Someware i read that 1.6.0.2 is the fix, but as allways t…

---

## [Help building readline on OS X Leopard](https://www.ruby-forum.com/t/help-building-readline-on-os-x-leopard/144175)

<div class="topic-metadata">

**Author:** [@Unnsse\_Khan](https://www.ruby-forum.com/u/Unnsse_Khan)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/help-building-readline-on-os-x-leopard/144175 "2008-07-31T15:15:13Z")

</div>

Was following the instructions on this web page: When I got the following errors after issuing: make The error: i686-apple-darwin9-gcc-4.0.1: -compatibility\_version only allowed with -dynamiclib make\[1\]: \*\*\* \[lib…

---

## [Count of users between months](https://www.ruby-forum.com/t/count-of-users-between-months/144618)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/count-of-users-between-months/144618 "2008-07-31T15:14:36Z")

</div>

Hi, i was struggling how to get the count of users from jan 08 to july 08, i have a users\_trackers table with column names id, user\_id and updated\_at with different users and data from jan 08 till date. i was usin…

---

## [DRYing my app](https://www.ruby-forum.com/t/drying-my-app/144171)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/drying-my-app/144171 "2008-07-31T15:11:08Z")

</div>

Hello. I am using auto-complete fields in my application and I found myself duplicating a lot of code. Here is a sample of what I have in my view: \<%= text\_field\_with\_auto\_complete :model, :codeA, …

---

## [ActionMailer Not Working After Small Change](https://www.ruby-forum.com/t/actionmailer-not-working-after-small-change/144526)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 3:04pm UTC](https://www.ruby-forum.com/t/actionmailer-not-working-after-small-change/144526 "2008-07-31T15:04:41Z")

</div>

Greetings, Well though my crash-course on Rails, I’ve encountered a mystery that is driving my somewhat insane. Our previous web developer wrote a quick form on our site that allowed the user of the site to request a …

---

## [How to re-construct ActiveRecord from yaml](https://www.ruby-forum.com/t/how-to-re-construct-activerecord-from-yaml/144554)

<div class="topic-metadata">

**Author:** [@John\_Do](https://www.ruby-forum.com/u/John_Do)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/how-to-re-construct-activerecord-from-yaml/144554 "2008-07-31T14:57:40Z")

</div>

My controller rm\_grants\_controller.rb snip: class RmGrantsController \< ApplicationController def dump File.open(‘db/backup/rm\_grants.yaml’, ‘w’) { |f| f.puts RmGrants.find(:all).to\_yaml } end end This creates ‘db/…

---

## [File\_column - edit a record](https://www.ruby-forum.com/t/file-column-edit-a-record/144616)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/file-column-edit-a-record/144616 "2008-07-31T14:54:24Z")

</div>

I have install file\_column plug-in, it work fine. When i edit a record (edit view) in the file field i can insert a new image that substitute the actual image. but if i want to delete the actual image without destroy…

---

## [RESTful action for 'save as'?](https://www.ruby-forum.com/t/restful-action-for-save-as/144597)

<div class="topic-metadata">

**Author:** [@amolk](https://www.ruby-forum.com/u/amolk)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/restful-action-for-save-as/144597 "2008-07-31T14:37:10Z")

</div>

Hi all, I would like to show the user a unified ‘overwrite existing or create new item’ page - similar to a ‘save as’ dialog. In that page the user would either select from existing items (to overwrite that item) or …

---

## [Backgroundjob scalability vs starling](https://www.ruby-forum.com/t/backgroundjob-scalability-vs-starling/144609)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/backgroundjob-scalability-vs-starling/144609 "2008-07-31T14:27:46Z")

</div>

Hi. I am currently reviewing backgroundjob and starling as alternatives to handling background processing. We would like to architect the system to be scalable. Starling it would seem was designed with scalability in…

---

## [Searching between two date](https://www.ruby-forum.com/t/searching-between-two-date/144603)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [July 31, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/searching-between-two-date/144603 "2008-07-31T14:03:10Z")

</div>

Hi In model i have (as part of find statement) sd.created\_on \<=\> (sd\_ticket\_start\_date…sd\_ticket\_end\_date) (Here i am using ez\_where plugin So \<=\> means BETWEEN) And for example I am passing dates from view like \<%…

---

## [Variable name convention](https://www.ruby-forum.com/t/variable-name-convention/144352)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 8\
**Last updated:** [July 31, 2008, 1:26pm UTC](https://www.ruby-forum.com/t/variable-name-convention/144352 "2008-07-31T13:26:50Z")

</div>

Hello All, still a newbie in rails and would like to know when I shoud place a ‘@’ before a variable name and when not ? Regards, Joel

---

## [How to validate password complexity](https://www.ruby-forum.com/t/how-to-validate-password-complexity/144549)

<div class="topic-metadata">

**Author:** [@GreenValley](https://www.ruby-forum.com/u/GreenValley)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 1:19pm UTC](https://www.ruby-forum.com/t/how-to-validate-password-complexity/144549 "2008-07-31T13:19:14Z")

</div>

Hi, I have a user model that saves password\_salt and password\_hash in DB, there is no password attribute. I would like to validate the password complexity with regular expression, but because password is not an attr…

---

## [How to tile text watermark with RMagick?](https://www.ruby-forum.com/t/how-to-tile-text-watermark-with-rmagick/144469)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/how-to-tile-text-watermark-with-rmagick/144469 "2008-07-31T13:04:31Z")

</div>

Hi, I know how to add a simple text watermark to a picture with RMagick. But I’d like to tile that watermark around the picture so it appears in many places. Anyone knows how to do that? I can’t seem to get it workin…

---

## [Insert dynamic values into a hash](https://www.ruby-forum.com/t/insert-dynamic-values-into-a-hash/144552)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 31, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/insert-dynamic-values-into-a-hash/144552 "2008-07-31T12:47:01Z")

</div>

I have a loop that I am trying to put key values pairs into a hash from. There are 6 rows of data, when I do a outputHash.inspect all I get is the last value. Where do the other values go or what I am I doing wrong? …

---

## [Mass mailing through ar\_mailer - error](https://www.ruby-forum.com/t/mass-mailing-through-ar-mailer-error/129100)

<div class="topic-metadata">

**Author:** [@priyasaini](https://www.ruby-forum.com/u/priyasaini)\
**Replies:** 1\
**Last updated:** [July 31, 2008, 11:55am UTC](https://www.ruby-forum.com/t/mass-mailing-through-ar-mailer-error/129100 "2008-07-31T11:55:29Z")

</div>

Hi: I am trying to use ar\_mailer for sending mass mail. The model file looks like class Email \< ActionMailer::ARMailer def testmail recipients “…” from “…” subject “TEST MAIL SUBJECT” body “ TEST MAIL MESSAGE” c…

---

## [Good OSS Project for REST / Resource Examples](https://www.ruby-forum.com/t/good-oss-project-for-rest-resource-examples/144599)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [July 31, 2008, 11:34am UTC](https://www.ruby-forum.com/t/good-oss-project-for-rest-resource-examples/144599 "2008-07-31T11:34:56Z")

</div>

Hi, I’m pretty new to rails, though not to web development generally. I love the simplicity of the RESTful controller design approach - many small classes with less responsibilities sounds good to me - but I’m strugg…

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

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