# Rails

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

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

---

## [Newby question: The command "script" cannot be found](https://www.ruby-forum.com/t/newby-question-the-command-script-cannot-be-found/145447)

<div class="topic-metadata">

**Author:** [@tobias](https://www.ruby-forum.com/u/tobias)\
**Replies:** 2\
**Last updated:** [August 9, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/newby-question-the-command-script-cannot-be-found/145447 "2008-08-09T18:00:49Z")

</div>

Hi I have just installed Ruby on rails and IÂ´m trying to run the following starting example: http://rfacebook.wordpress.com/2007/12/28/quickstart/ The console does not recognize the command script: c:\\ruby\\myapp\>sc…

---

## [Really, and I mean really easy question](https://www.ruby-forum.com/t/really-and-i-mean-really-easy-question/144963)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 13\
**Last updated:** [August 9, 2008, 5:54pm UTC](https://www.ruby-forum.com/t/really-and-i-mean-really-easy-question/144963 "2008-08-09T17:54:29Z")

</div>

Hello everybody, Quick question. Let’s say I have model Person and has a belong\_to relationship to model Award through award\_id. As you can imagine a person may have no award. If I just say in the template: \<%= @pers…

---

## [User and Account models](https://www.ruby-forum.com/t/user-and-account-models/145438)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 3\
**Last updated:** [August 9, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/user-and-account-models/145438 "2008-08-09T14:54:15Z")

</div>

This has probably been asked a few times before but I can’t find a definite answer to my angle: The app has a User model which only keeps the account-esque information about the user, e.g. email and password, and noth…

---

## [Plugin development as part of MSc project](https://www.ruby-forum.com/t/plugin-development-as-part-of-msc-project/145439)

<div class="topic-metadata">

**Author:** [@plugin\_dev](https://www.ruby-forum.com/u/plugin_dev)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/plugin-development-as-part-of-msc-project/145439 "2008-08-09T14:49:13Z")

</div>

Hello, I am new to this group. I love Ruby on Rails. I am planning to develop a rails plugin as part of my MSc project (which needs to be finished by the end of October). Initially I thought of developing a plugin wh…

---

## [Directory structure of rubytree](https://www.ruby-forum.com/t/directory-structure-of-rubytree/142572)

<div class="topic-metadata">

**Author:** [@rutuja](https://www.ruby-forum.com/u/rutuja)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/directory-structure-of-rubytree/142572 "2008-08-09T12:03:23Z")

</div>

Hi, I am working on a project in which if we click on to the browse button then it should show only the directories,which is possible using the rubytree that is a gem.I have require that gem too but i am not getting t…

---

## [Directory structure to xml - display in flex tree](https://www.ruby-forum.com/t/directory-structure-to-xml-display-in-flex-tree/145440)

<div class="topic-metadata">

**Author:** [@shailendra-kamath](https://www.ruby-forum.com/u/shailendra-kamath)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 11:59am UTC](https://www.ruby-forum.com/t/directory-structure-to-xml-display-in-flex-tree/145440 "2008-08-09T11:59:59Z")

</div>

Below code can be used to convert directory structure in xml. require ‘rubygems’ require ‘rexml/document’ class DirectoryStructure @@excludes = \["…","."\] @@doc = REXML::Document.new %{ \<?xml version="1.0" encoding="…

---

## [Restful routing help](https://www.ruby-forum.com/t/restful-routing-help/145393)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 9:18am UTC](https://www.ruby-forum.com/t/restful-routing-help/145393 "2008-08-09T09:18:28Z")

</div>

Ok so I am making a directory, the flow of the directory should be category to state to county to city to zip. I cant get it to work so that when you click on a certain category it links to you all the states it has. …

---

## [Last question!](https://www.ruby-forum.com/t/last-question/145428)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 6:52am UTC](https://www.ruby-forum.com/t/last-question/145428 "2008-08-09T06:52:58Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I notes you guys are making it “public” wondering if we all need to or just that you guys feel like it? Angela and I have not finish out application, I mean we want to co…

---

## [Onclick problem](https://www.ruby-forum.com/t/onclick-problem/145404)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [August 9, 2008, 1:26am UTC](https://www.ruby-forum.com/t/onclick-problem/145404 "2008-08-09T01:26:28Z")

</div>

onclick=“document.forms\[‘search\_form’\].search\_title.value=’\<%= u\[0\] %\>’;” When u\[0\] = blah’blah (with a single quote), i get the error in firebug: missing ; before statement \[Break on this error\] document.forms\[‘sea…

---

## [ImageScience on DreamHost or other shared hosting?](https://www.ruby-forum.com/t/imagescience-on-dreamhost-or-other-shared-hosting/145422)

<div class="topic-metadata">

**Author:** [@roundabout](https://www.ruby-forum.com/u/roundabout)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 12:53am UTC](https://www.ruby-forum.com/t/imagescience-on-dreamhost-or-other-shared-hosting/145422 "2008-08-09T00:53:29Z")

</div>

Anyone gotten ImageScience to work on DreamHost or shared hosting? I think I’m having a problem because I cannot install FreeImage and image\_science is going bellyup when it tries to find FreeImage.h. Here’s the error…

---

## [Http://www.myrevelle.com/1 MASSIVE RUSSIAN INVASION](https://www.ruby-forum.com/t/http-www-myrevelle-com-1-massive-russian-invasion/145423)

<div class="topic-metadata">

**Author:** [@WisKid](https://www.ruby-forum.com/u/WisKid)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 12:45am UTC](https://www.ruby-forum.com/t/http-www-myrevelle-com-1-massive-russian-invasion/145423 "2008-08-09T00:45:18Z")

</div>

http://www.myrevelle.com/1 MASSIVE RUSSIAN INVASION http://www.myrevelle.com/1 WORLD WAR THREE IS STARTING http://www.myrevelle.com/1

---

## [Ruby Opportunities!](https://www.ruby-forum.com/t/ruby-opportunities/145420)

<div class="topic-metadata">

**Author:** [@Justin\_Glaser](https://www.ruby-forum.com/u/Justin_Glaser)\
**Replies:** 0\
**Last updated:** [August 9, 2008, 12:35am UTC](https://www.ruby-forum.com/t/ruby-opportunities/145420 "2008-08-09T00:35:57Z")

</div>

Hello! My name is Justin Glaser and I am a Professional Recruiter for Apex Systems in Bellevue. We are currently hiring for an SDET, a Sr. SDET, and a Sr. SDE with Ruby and/or Ruby on Rails. If you are interested or k…

---

## [Before\_destroy and protecting some records](https://www.ruby-forum.com/t/before-destroy-and-protecting-some-records/145419)

<div class="topic-metadata">

**Author:** [@vineire77](https://www.ruby-forum.com/u/vineire77)\
**Replies:** 1\
**Last updated:** [August 9, 2008, 12:34am UTC](https://www.ruby-forum.com/t/before-destroy-and-protecting-some-records/145419 "2008-08-09T00:34:47Z")

</div>

I want to delete some "Accounts’ that have dependent “Users”, however I want to skip users tagged is\_power. I want to do this by resetting the users to a master account id. In my User model I have the following code: …

---

## [Debugging ActiveRecord.save failure](https://www.ruby-forum.com/t/debugging-activerecord-save-failure/145328)

<div class="topic-metadata">

**Author:** [@Aaron\_T](https://www.ruby-forum.com/u/Aaron_T)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/debugging-activerecord-save-failure/145328 "2008-08-08T23:03:31Z")

</div>

Trying to debug a ActiveRecord problem with creating new records: a = Appliance.new(:serial =\> ‘0105-0000-0000-aaaa’) =\> #\<Appliance id: nil, serial: “0105-0000-0000-aaaa”, kickstart\_times: 0, first\_kickstart\_date: …

---

## [\[scalability, performance, DoS\] To or not to process images at runtime](https://www.ruby-forum.com/t/scalability-performance-dos-to-or-not-to-process-images-at-runtime/145265)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 6\
**Last updated:** [August 8, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/scalability-performance-dos-to-or-not-to-process-images-at-runtime/145265 "2008-08-08T22:45:58Z")

</div>

Hello, My next project will be a kind of online photo viewer. All of these photos will need to have watermark applied to them. The problem is that, depending on the picture, different watermarks need to be applied, …

---

## [Rspec returns nil find\_all\_by](https://www.ruby-forum.com/t/rspec-returns-nil-find-all-by/196775)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/rspec-returns-nil-find-all-by/196775 "2008-08-08T22:27:28Z")

</div>

The statement products = find\_all\_by\_category\_id(category\_id) in the Product model is returning nil with rspec. I am expecting it to to return the stub that I provided it with. It does not also work with fixtures. P…

---

## [RJS inside an iframe?](https://www.ruby-forum.com/t/rjs-inside-an-iframe/145408)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/rjs-inside-an-iframe/145408 "2008-08-08T22:11:19Z")

</div>

Is this possible? I might be able to see a problem with it updating something on the page but what about just storing a value in the database and not updating anything? I tried the following in the iframe: \<% call =…

---

## [Case sensitive find\_by](https://www.ruby-forum.com/t/case-sensitive-find-by/145402)

<div class="topic-metadata">

**Author:** [@mostafa\_badawi](https://www.ruby-forum.com/u/mostafa_badawi)\
**Replies:** 1\
**Last updated:** [August 8, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/case-sensitive-find-by/145402 "2008-08-08T21:29:49Z")

</div>

Hi all, Do any one knows how to make find\_by method case sensitive? Thanks in advance, Mostafa Badawi

---

## [Conditions on Has\_many :Through](https://www.ruby-forum.com/t/conditions-on-has-many-through/145308)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/conditions-on-has-many-through/145308 "2008-08-08T21:18:43Z")

</div>

so i have a bunch of users this bit of code gets all the schedules for a particular user. i’m wondering if there’s a way for me to get only a range of schedules based on the time field for the user without having to …

---

## [Link\_to\_unless\_current doesnt work with resources?](https://www.ruby-forum.com/t/link-to-unless-current-doesnt-work-with-resources/145384)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/link-to-unless-current-doesnt-work-with-resources/145384 "2008-08-08T20:01:24Z")

</div>

in my routes.rb i have map.resources :reviews then when i do link\_to\_unless\_current(“reviews”, reviews\_path) i get a link unless im at “/reviews” my understanding was that link\_to\_unless\_current should not display a …

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/145399)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 7:38pm UTC](https://www.ruby-forum.com/t/collection-select/145399 "2008-08-08T19:38:07Z")

</div>

\<%= collection\_select(:category, :id, @categories, :id, :name, options ={:prompt =\> “-Select categories-”, :multiple=\>“multiple”}, :class=\>“category\_dropdown\_list”, :id=\>“collect\_select”) %\> I’m using a link\_to\_remote…

---

## [Analogue to has\_many :through](https://www.ruby-forum.com/t/analogue-to-has-many-through/145374)

<div class="topic-metadata">

**Author:** [@andrius\_c](https://www.ruby-forum.com/u/andrius_c)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 7:25pm UTC](https://www.ruby-forum.com/t/analogue-to-has-many-through/145374 "2008-08-08T19:25:40Z")

</div>

Let’s say i have three models: user, message, picture. User has many messages and pictures, picture belongs to user, message belongs to user. Now if i want to get pictures of author of specific message i call message.…

---

## [Ruby on Rails Resource](https://www.ruby-forum.com/t/ruby-on-rails-resource/145398)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-resource/145398 "2008-08-08T19:09:17Z")

</div>

This tool is built on Ruby on Rails, to help with the process of learning programming languages. We’ve just rolled out a lot of changes to YoYoBrain, so feedback is much appreciated. http://www.yoyobrain.com/cardboxes…

---

## [Routes with params](https://www.ruby-forum.com/t/routes-with-params/145379)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/routes-with-params/145379 "2008-08-08T18:58:10Z")

</div>

Hey all, my code looks like: \<%= link\_to ‘add’, :controller =\> ‘item’, :action =\> ‘add\_me’, :title =\> posts.title, :description =\> posts.description %\> I already added map.connect ‘:controller/:action’ to my routes…

---

## [HTTP post - SocketError](https://www.ruby-forum.com/t/http-post-socketerror/145389)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/http-post-socketerror/145389 "2008-08-08T17:46:09Z")

</div>

I can’t figure this one out! Here is my code: def test\_post query = { :formid =\> “5”, :type =\> “CustomFormWeb”, :Contact0Email =\> “removed\_email\_address@domain.invalid”, :Contact0FirstName =\> “Testertilla”, :Contact0…

---

## [Production Migrations Failing](https://www.ruby-forum.com/t/production-migrations-failing/145386)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 3\
**Last updated:** [August 8, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/production-migrations-failing/145386 "2008-08-08T17:45:33Z")

</div>

I obviously have no idea what I’m doing. My app is running fine locally. I just finished setting up my vps with mod\_rails, and it can run a simple app. Then, I use git to checkout my app, and try to run the migratio…

---

## [Using Ajax in Rails 2.1](https://www.ruby-forum.com/t/using-ajax-in-rails-2-1/145356)

<div class="topic-metadata">

**Author:** [@chrgra](https://www.ruby-forum.com/u/chrgra)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/using-ajax-in-rails-2-1/145356 "2008-08-08T17:39:41Z")

</div>

I hate to ask, but can some one help me out on this one? I’ve made a small app in which users login, and once logged in they type their names in to a textbox, submit it, and once submitted it says "Hello and Welcome "…

---

## [Switching from acts\_as\_bewildered\_newbie to acts\_as\_newbie\_making\_progress - plugin suggestions](https://www.ruby-forum.com/t/switching-from-acts-as-bewildered-newbie-to-acts-as-newbie-making-progress-plugin-suggestions/145377)

<div class="topic-metadata">

**Author:** [@dokpm0](https://www.ruby-forum.com/u/dokpm0)\
**Replies:** 2\
**Last updated:** [August 8, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/switching-from-acts-as-bewildered-newbie-to-acts-as-newbie-making-progress-plugin-suggestions/145377 "2008-08-08T17:37:21Z")

</div>

Rails Fans, Forgive me if I ramble a bit. First, let me give a little history on my sites. Feel free to skip past it. Further down I’ll be detailing what I’m wanting to do and will be looking for suggestions on the…

---

## [Strange class loading problem in production environment](https://www.ruby-forum.com/t/strange-class-loading-problem-in-production-environment/145381)

<div class="topic-metadata">

**Author:** [@ara\_vartanian](https://www.ruby-forum.com/u/ara_vartanian)\
**Replies:** 0\
**Last updated:** [August 8, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/strange-class-loading-problem-in-production-environment/145381 "2008-08-08T16:28:14Z")

</div>

I have an extremely strange bug that I’ve only been able to reproduce in the context of active-messaging. But, stepping through the code, the problem appears to be at the level of dependencies.rb, so I will post also …

---

## [Problems after scaffold](https://www.ruby-forum.com/t/problems-after-scaffold/145350)

<div class="topic-metadata">

**Author:** [@pipex](https://www.ruby-forum.com/u/pipex)\
**Replies:** 4\
**Last updated:** [August 8, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/problems-after-scaffold/145350 "2008-08-08T15:46:33Z")

</div>

Please some help!!! I made a scaffold the search, then i added a new method called printimages in the search controller and a view for the same but then i want to access throw the browser to this method searchs/prin…

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

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