# Rails

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

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

---

## ['script' is not recognized as an internal or external comman](https://www.ruby-forum.com/t/script-is-not-recognized-as-an-internal-or-external-comman/109479)

<div class="topic-metadata">

**Author:** [@jazzybuddy](https://www.ruby-forum.com/u/jazzybuddy)\
**Replies:** 4\
**Last updated:** [July 15, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/script-is-not-recognized-as-an-internal-or-external-comman/109479 "2007-07-15T19:33:04Z")

</div>

Hi, I am trying t install a plugin and itz throwing the error “‘script’ is not recognized as an internal or external command, operable program or batch file.” I am using windows… E:\\WorkSpace1\\Test\\vendor\>script/plu…

---

## [Rounding up a floating point number to the nearest integer](https://www.ruby-forum.com/t/rounding-up-a-floating-point-number-to-the-nearest-integer/109307)

<div class="topic-metadata">

**Author:** [@dodgyboz](https://www.ruby-forum.com/u/dodgyboz)\
**Replies:** 4\
**Last updated:** [July 15, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/rounding-up-a-floating-point-number-to-the-nearest-integer/109307 "2007-07-15T17:47:55Z")

</div>

I need to round up a floating point number to the nearest integer. So 2.3 would become 3 instead of 2 which is what happens if i use 2.3.round. does anyone know of a simple way to do this? if not could you please poi…

---

## [Rails Capistrano Joyent deployment...failure at the last sec](https://www.ruby-forum.com/t/rails-capistrano-joyent-deployment-failure-at-the-last-sec/109485)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/rails-capistrano-joyent-deployment-failure-at-the-last-sec/109485 "2007-07-15T17:41:53Z")

</div>

Help! Problems at the last second! After some toiling, I managed to get everything installed on a Joyent Accelerator; “mongrel\_rails” installed in the “/opt/csw/bin/” directory, so I had to modify my “deploy.rb” file …

---

## [Attachement\_fu , protected files and displaying images](https://www.ruby-forum.com/t/attachement-fu-protected-files-and-displaying-images/109478)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/attachement-fu-protected-files-and-displaying-images/109478 "2007-07-15T16:37:48Z")

</div>

I use attachement\_fu to store files above the public folder so that I can protect them. Only authenticated users are able to download the files. Anything works as expected. But I still have a problem: If the uploaded…

---

## [How to get coordinate from a google map and put the lat/long](https://www.ruby-forum.com/t/how-to-get-coordinate-from-a-google-map-and-put-the-lat-long/109477)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-get-coordinate-from-a-google-map-and-put-the-lat-long/109477 "2007-07-15T16:23:47Z")

</div>

Hi all, Just like the one from http://www.43places.com/, users can click on the google map and save the location to the database. the examples google gives are about how to display, it seem not to cover what i want. …

---

## [Best way to upload an image and make a thumbnail](https://www.ruby-forum.com/t/best-way-to-upload-an-image-and-make-a-thumbnail/109142)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 7\
**Last updated:** [July 15, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/best-way-to-upload-an-image-and-make-a-thumbnail/109142 "2007-07-15T12:59:41Z")

</div>

Hi, which is the best way to upload an image, keep that and also make a thumbnail? The images should not be stored in the database, but as normal image files in a specific directory. I think that for the thumbnail i …

---

## [Symbols are puzzling me and not only symbols](https://www.ruby-forum.com/t/symbols-are-puzzling-me-and-not-only-symbols/109413)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 7\
**Last updated:** [July 15, 2007, 11:46am UTC](https://www.ruby-forum.com/t/symbols-are-puzzling-me-and-not-only-symbols/109413 "2007-07-15T11:46:27Z")

</div>

Dear all, I’ve got two burning questions. Both regard the manipulation of the params hash. Imagine: params = {“commit”=\>“Add comment”, “comment”=\>{“message”=\>“foo”, “name”=\>“bar”, “answer”=\>“2”, “email”=\>“foo@bar”}} …

---

## [In\_place\_field\_editor: Must you have an instance variable?](https://www.ruby-forum.com/t/in-place-field-editor-must-you-have-an-instance-variable/109461)

<div class="topic-metadata">

**Author:** [@lee](https://www.ruby-forum.com/u/lee)\
**Replies:** 1\
**Last updated:** [July 15, 2007, 11:30am UTC](https://www.ruby-forum.com/t/in-place-field-editor-must-you-have-an-instance-variable/109461 "2007-07-15T11:30:36Z")

</div>

Hi, I am trying to implement in\_place\_field\_editor into my UI in a limited but useful way. I want to use in\_place\_field\_editor within a partial that is called from a view as shown here: \<%= render :partial =\> "share…

---

## [Debugging a routing error](https://www.ruby-forum.com/t/debugging-a-routing-error/109432)

<div class="topic-metadata">

**Author:** [@ming](https://www.ruby-forum.com/u/ming)\
**Replies:** 6\
**Last updated:** [July 15, 2007, 10:48am UTC](https://www.ruby-forum.com/t/debugging-a-routing-error/109432 "2007-07-15T10:48:17Z")

</div>

How do I debug a routing error? I’ve been running examples from the Agile Rails book just fine to the end of Chapter 8, cart creation. Then the next morning my installation stopped working. “no route found to match “…

---

## [Users/Groups Managment](https://www.ruby-forum.com/t/users-groups-managment/109447)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 1\
**Last updated:** [July 15, 2007, 9:01am UTC](https://www.ruby-forum.com/t/users-groups-managment/109447 "2007-07-15T09:01:09Z")

</div>

Is there an effective way to use the non-privileged users on a system account to use as authentication? For instance I want to build a internal web application that uses the information from the passwd and shadow file…

---

## [Using Helpers inside a Controller](https://www.ruby-forum.com/t/using-helpers-inside-a-controller/109439)

<div class="topic-metadata">

**Author:** [@sorenson](https://www.ruby-forum.com/u/sorenson)\
**Replies:** 2\
**Last updated:** [July 15, 2007, 8:48am UTC](https://www.ruby-forum.com/t/using-helpers-inside-a-controller/109439 "2007-07-15T08:48:23Z")

</div>

I want to use helpers inside a controller method for an AJAX application. After the page is loaded and displayed, there will be an asynchronous javascript request to load additional resources such as html forms and o…

---

## [Account\_location and domain forwarding](https://www.ruby-forum.com/t/account-location-and-domain-forwarding/109459)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 7:14am UTC](https://www.ruby-forum.com/t/account-location-and-domain-forwarding/109459 "2007-07-15T07:14:02Z")

</div>

i’m playing around with an idea i had for using a rails app with multiple domains. i used the account\_location plugin which works great. however, eventually i would like to do something similar to shopify where they …

---

## [Test database does not have constraints](https://www.ruby-forum.com/t/test-database-does-not-have-constraints/109448)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 2\
**Last updated:** [July 15, 2007, 6:40am UTC](https://www.ruby-forum.com/t/test-database-does-not-have-constraints/109448 "2007-07-15T06:40:59Z")

</div>

I added some db specific constraints. I wanted to test them and tweak them. So, I have unit tests. But, I was amazed to see all of the pass the first time. So, I looked and the test database does not have any const…

---

## [Question abouyt layouts](https://www.ruby-forum.com/t/question-abouyt-layouts/109453)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 2\
**Last updated:** [July 15, 2007, 3:53am UTC](https://www.ruby-forum.com/t/question-abouyt-layouts/109453 "2007-07-15T03:53:03Z")

</div>

Hi How do I create 1 layout file for the while site and have all controllers use that? I’d rather avoid copy/pasting for every controller I have. Thanks.

---

## [Initializing dynamically generated Multiple check boxes (AJA](https://www.ruby-forum.com/t/initializing-dynamically-generated-multiple-check-boxes-aja/109454)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 3:35am UTC](https://www.ruby-forum.com/t/initializing-dynamically-generated-multiple-check-boxes-aja/109454 "2007-07-15T03:35:48Z")

</div>

I am able to read the values of dynamically generated check boxes when the user selects or deselects the checkbox. But it is not clear from Rails documentation on how to populate the check boxes when it is displayed f…

---

## [Dyld: NSLinkModule() error](https://www.ruby-forum.com/t/dyld-nslinkmodule-error/109452)

<div class="topic-metadata">

**Author:** [@mreid](https://www.ruby-forum.com/u/mreid)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 2:56am UTC](https://www.ruby-forum.com/t/dyld-nslinkmodule-error/109452 "2007-07-15T02:56:22Z")

</div>

I am fairly new and just installed the following: I am running on OSX 10.4. 10 I followed Hivelogic versions and installed ruby 1.8.6 (2007-03-13 patchlevel 0) \[powerpc-darwin8.10.0\] rails 1.2.3 mysql Server version…

---

## [\[ANN\] July Phoenix Rails Users Group](https://www.ruby-forum.com/t/ann-july-phoenix-rails-users-group/109450)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 2:28am UTC](https://www.ruby-forum.com/t/ann-july-phoenix-rails-users-group/109450 "2007-07-15T02:28:45Z")

</div>

What: July Phoenix Rails Users Group When: Tuesday, July 17th, 6:30 pm - 9pm Where: Office of Integrum Technologies 290 East El Prado Court, Chandler, AZ (north-east of Arizona and Warner) Topic: Introduction t…

---

## [Gem Problem with mongrel\_cluster?](https://www.ruby-forum.com/t/gem-problem-with-mongrel-cluster/109363)

<div class="topic-metadata">

**Author:** [@Pete\_Bekisz](https://www.ruby-forum.com/u/Pete_Bekisz)\
**Replies:** 2\
**Last updated:** [July 15, 2007, 1:50am UTC](https://www.ruby-forum.com/t/gem-problem-with-mongrel-cluster/109363 "2007-07-15T01:50:42Z")

</div>

Hi, folks – I’m trying to deploy my first rails app, but I’m having a problem on my local machine … everytime I try to install mongrel\_cluster, this is what happens: its\_str\_sm\_1bt:~/sites/rails/currents Pete$ sudo …

---

## [www.OutpatientSurgicare.com/video/](https://www.ruby-forum.com/t/www-outpatientsurgicare-com-video/109445)

<div class="topic-metadata">

**Author:** [@dvd\_km](https://www.ruby-forum.com/u/dvd_km)\
**Replies:** 0\
**Last updated:** [July 15, 2007, 1:40am UTC](https://www.ruby-forum.com/t/www-outpatientsurgicare-com-video/109445 "2007-07-15T01:40:41Z")

</div>

www.OutpatientSurgicare.com/video/ Outpatient Doctors Surgery Center is committed to offering the healthcare the community needs. We offer patients a meaningful alternative to traditional surgery. This state-of-the-ar…

---

## [Backgroundrb concurrent client access, results services](https://www.ruby-forum.com/t/backgroundrb-concurrent-client-access-results-services/109441)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 1\
**Last updated:** [July 15, 2007, 1:00am UTC](https://www.ruby-forum.com/t/backgroundrb-concurrent-client-access-results-services/109441 "2007-07-15T01:00:39Z")

</div>

First thank to backgroundrb, it sure makes distribute computing a lot easier. A couple of questions: I don’t fully understand the reason for Results services, can I just create instance vars, methods within the Wor…

---

## [Attachment\_fu mp3s](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 4\
**Last updated:** [July 15, 2007, 12:53am UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438 "2007-07-15T00:53:38Z")

</div>

I’m trying to implement mp3 uploads but the validation engine keeps flagging me every time i try to upload an mp3, “Content type is not listed.” I’m currently using ‘application/mp3’ as the content type. I’d appreciat…

---

## [\[Rails\]\[Newb\] How Rescue DB constraint violation?](https://www.ruby-forum.com/t/rails-newb-how-rescue-db-constraint-violation/109398)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 1\
**Last updated:** [July 14, 2007, 9:47pm UTC](https://www.ruby-forum.com/t/rails-newb-how-rescue-db-constraint-violation/109398 "2007-07-14T21:47:27Z")

</div>

Hello People, I’m looking for a short demo of rescuing a DB constraint violation. This is a newby question; my ruby skills are weak. validation in the model is cool but I want to have the safety-net of DB constraints …

---

## [One-to-many and acts\_as\_tree troubles](https://www.ruby-forum.com/t/one-to-many-and-acts-as-tree-troubles/109288)

<div class="topic-metadata">

**Author:** [@spacesquirrel](https://www.ruby-forum.com/u/spacesquirrel)\
**Replies:** 6\
**Last updated:** [July 14, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/one-to-many-and-acts-as-tree-troubles/109288 "2007-07-14T19:44:34Z")

</div>

ok. so iâ€™ve got two models, Photo and Place: class Photo \< ActiveRecord::Base belongs\_to :place, :counter\_cache =\> true class Place \< ActiveRecord::Base acts\_as\_tree :order =\> "name" has\_many :photo the places d…

---

## [Best practice question: ActiveMailer](https://www.ruby-forum.com/t/best-practice-question-activemailer/109427)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 0\
**Last updated:** [July 14, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/best-practice-question-activemailer/109427 "2007-07-14T19:34:18Z")

</div>

I’m new to Rails but not MVC programming (very familiar with Struts for instance.) I’m currently modifying an existing Rails app but I have some questions about the design decisions that were made in their code. The…

---

## [Basic Intertable managment question](https://www.ruby-forum.com/t/basic-intertable-managment-question/109423)

<div class="topic-metadata">

**Author:** [@frew](https://www.ruby-forum.com/u/frew)\
**Replies:** 0\
**Last updated:** [July 14, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/basic-intertable-managment-question/109423 "2007-07-14T18:25:34Z")

</div>

Hi all. I’m fairly new with rails and I just finished the walkthrough in the Agile book and I am trying to make a simple application to manage my school’s senators. First off, is there a simple way that I can include …

---

## [REST API Auth Question](https://www.ruby-forum.com/t/rest-api-auth-question/109419)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 0\
**Last updated:** [July 14, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/rest-api-auth-question/109419 "2007-07-14T18:23:14Z")

</div>

Just wanted to get some opinions and we’re about to implement a REST based API. We want to implement a basic API similar to Highrise or the new API released by Wasabi. Is there a benefit to using a long random API ke…

---

## [Rails and Scaffold question](https://www.ruby-forum.com/t/rails-and-scaffold-question/109362)

<div class="topic-metadata">

**Author:** [@Onslauth](https://www.ruby-forum.com/u/Onslauth)\
**Replies:** 1\
**Last updated:** [July 14, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/rails-and-scaffold-question/109362 "2007-07-14T18:18:43Z")

</div>

Hi. Ive run into a problem when trying to create scaffold code and using database tables that have the underscore character in them. I have 2 tables, my\_users and my\_privileges. my\_user has a foreign key that links i…

---

## [Button\_to with "GET" and extra parameters](https://www.ruby-forum.com/t/button-to-with-get-and-extra-parameters/109422)

<div class="topic-metadata">

**Author:** [@sjf\_control](https://www.ruby-forum.com/u/sjf_control)\
**Replies:** 0\
**Last updated:** [July 14, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/button-to-with-get-and-extra-parameters/109422 "2007-07-14T18:18:14Z")

</div>

I have the following in one of my views: \<%= button\_to 'Edit', {:action =\> 'edit\_mbr\_cit', :id =\> @member, :extra =\> @citation}, :method =\> ‘get’%\> This generates resaonable HTML as follows: However, when clicked, …

---

## [WEBrick vs fcgi](https://www.ruby-forum.com/t/webrick-vs-fcgi/109416)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 14, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/webrick-vs-fcgi/109416 "2007-07-14T18:01:06Z")

</div>

Hi All, I’m new to RoR apps this week, just installed redMine, and have a couple of questions. Should I be running this with WEBrick, or something else? I read somewhere that WEBrick should only be a temporary soluti…

---

## [Newbi: Save console commands as script (e.g. rake task?)](https://www.ruby-forum.com/t/newbi-save-console-commands-as-script-e-g-rake-task/109417)

<div class="topic-metadata">

**Author:** [@thomasmaas](https://www.ruby-forum.com/u/thomasmaas)\
**Replies:** 0\
**Last updated:** [July 14, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/newbi-save-console-commands-as-script-e-g-rake-task/109417 "2007-07-14T16:02:06Z")

</div>

Hello, I am new to ruby but I am already with love with the console. What I am looking for is a way, to write a parser that reads a text file and creates database entries from it. Something like: for line in lines …

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

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