# Rails

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

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

---

## [Skill levels and training joint venture](https://www.ruby-forum.com/t/skill-levels-and-training-joint-venture/132424)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 2\
**Last updated:** [March 20, 2008, 1:19am UTC](https://www.ruby-forum.com/t/skill-levels-and-training-joint-venture/132424 "2008-03-20T01:19:33Z")

</div>

Is there anyone on this group who thinks they are a Ruby programmer and learned Ruby as their first computer language? I can pick up a book on any language and follow it except Ruby. And most Ruby tutorials or book…

---

## [Environment : development](https://www.ruby-forum.com/t/environment-development/132426)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 20, 2008, 1:17am UTC](https://www.ruby-forum.com/t/environment-development/132426 "2008-03-20T01:17:12Z")

</div>

I changed the varible on my enviroment file to use production… and is using it… I can tell by the mysql logs … but when I do an about at rails it still says development… why? ./script/about About your application’s e…

---

## [Having trouble with a remote-crop-then-resize using attachment fu =(](https://www.ruby-forum.com/t/having-trouble-with-a-remote-crop-then-resize-using-attachment-fu/132425)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 20, 2008, 1:13am UTC](https://www.ruby-forum.com/t/having-trouble-with-a-remote-crop-then-resize-using-attachment-fu/132425 "2008-03-20T01:13:06Z")

</div>

Basically, I’m trying to crop multiple images out of a remote/original scene… Think flickr ‘tagging’, only, the pixs in the tagged boxes become their own unique images… by way of simulating an upload from the controll…

---

## [Newbie question:partial refresh of page after onchange event](https://www.ruby-forum.com/t/newbie-question-partial-refresh-of-page-after-onchange-event/126225)

<div class="topic-metadata">

**Author:** [@egon](https://www.ruby-forum.com/u/egon)\
**Replies:** 6\
**Last updated:** [March 20, 2008, 12:48am UTC](https://www.ruby-forum.com/t/newbie-question-partial-refresh-of-page-after-onchange-event/126225 "2008-03-20T00:48:46Z")

</div>

I want to use a dropdown box to select sales orders (by ordernumber). After selection of an order number, the screen must be partially refreshed and show the details of the sales order. I know that I have to use the c…

---

## [Find with conditions problem](https://www.ruby-forum.com/t/find-with-conditions-problem/132419)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/find-with-conditions-problem/132419 "2008-03-19T23:59:05Z")

</div>

Hi. I have tables for users and items. I’m trying to make a query that will find all of the items belonging to the current user. I have a testuser with id = 1 and this user has 4 items. If I use the line: @items = …

---

## [Routes? how do I make it so I don't have a path](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/routes-how-do-i-make-it-so-i-dont-have-a-path/132347 "2008-03-19T22:36:05Z")

</div>

ok so I have a website for example: www.mywebsite.com as of now with no routing(if thisi s what you have to use) to get to my app I have to go to: www.mywebsite.com/my\_controller/blablabla I will like to make it so …

---

## [Combining different Rails apps into one](https://www.ruby-forum.com/t/combining-different-rails-apps-into-one/132232)

<div class="topic-metadata">

**Author:** [@SSKyrre\_NygSSSSrdSS](https://www.ruby-forum.com/u/SSKyrre_NygSSSSrdSS)\
**Replies:** 5\
**Last updated:** [March 19, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/combining-different-rails-apps-into-one/132232 "2008-03-19T22:22:01Z")

</div>

Hello! I’m trying to join two Rails apps, namely Beast and Simplelog. Is it just to copy the code from one app into the other, and manually merge conflicting files and folders? Can anybody offer me some tips and tric…

---

## [RESTful request with parameters?](https://www.ruby-forum.com/t/restful-request-with-parameters/132369)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 10:21pm UTC](https://www.ruby-forum.com/t/restful-request-with-parameters/132369 "2008-03-19T22:21:39Z")

</div>

Hi, I’ve implemented a restful app where I can post comments. If I use http://127.0.0.1:3000/programs/1/comments I get all the comments for program 1 In the main page of the programs I can see all the programs and th…

---

## [Condition using "OR"](https://www.ruby-forum.com/t/condition-using-or/132405)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 3\
**Last updated:** [March 19, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/condition-using-or/132405 "2008-03-19T22:17:21Z")

</div>

Hi there, how do I correctly write a condition using an “OR” operator (if I don’t want to use SQL). I’d need something like this (see the 3rd condition): :conditions =\> { condition1, condition2, :status =\> ‘sent’ OR …

---

## [Changing password is not working right](https://www.ruby-forum.com/t/changing-password-is-not-working-right/132293)

<div class="topic-metadata">

**Author:** [@ReK2](https://www.ruby-forum.com/u/ReK2)\
**Replies:** 16\
**Last updated:** [March 19, 2008, 10:07pm UTC](https://www.ruby-forum.com/t/changing-password-is-not-working-right/132293 "2008-03-19T22:07:54Z")

</div>

Hi I am trying to change a password from my DB, adding a new user works… login in as the new user also works… to change the user password does not works right… I basically using a bit of the login code with the new us…

---

## [Validates\_uniqueness\_of on massaged contents of column](https://www.ruby-forum.com/t/validates-uniqueness-of-on-massaged-contents-of-column/132291)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [March 19, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/validates-uniqueness-of-on-massaged-contents-of-column/132291 "2008-03-19T19:15:08Z")

</div>

I am trying to check the uniqueness of a column updated from a form. In my model I have this: class Entity \< ActiveRecord::Base has\_one :client, :dependent =\> :destroy has\_many :sites, :through =\> :loc…

---

## [Using a combo box for a ajax search](https://www.ruby-forum.com/t/using-a-combo-box-for-a-ajax-search/132402)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/using-a-combo-box-for-a-ajax-search/132402 "2008-03-19T18:58:27Z")

</div>

I have a ajax search set up that works very well but I can only search one thing. code im using Search: \<%= observe\_field ‘search\_form’, :frequency =\> 0.5, :update =\> ‘results’, :url =\> {:controller…

---

## [Firebird id\_session as sessions promary key](https://www.ruby-forum.com/t/firebird-id-session-as-sessions-promary-key/132393)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/firebird-id-session-as-sessions-promary-key/132393 "2008-03-19T17:49:25Z")

</div>

Hello, At the end of the environment.rb I have: CGI::Session::ActiveRecordStore::Session.set\_primary\_key ‘ID\_SESSION’ puts CGI::Session::ActiveRecordStore::Session.primary\_key CGI::Session::ActiveRecordStore::Sessi…

---

## [Re: ActionMailer 2.0.2 NameError](https://www.ruby-forum.com/t/re-actionmailer-2-0-2-nameerror/132388)

<div class="topic-metadata">

**Author:** [@Ziggah](https://www.ruby-forum.com/u/Ziggah)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/re-actionmailer-2-0-2-nameerror/132388 "2008-03-19T17:04:32Z")

</div>

Jonathon Davis-2 wrote: :address =\> "my.server.address.com", C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/ from C:/InstantRails/rails\_apps/rails\_space/config/ from C:/ruby/lib/ruby/site\_ruby…

---

## [How to try examples given in the documentation](https://www.ruby-forum.com/t/how-to-try-examples-given-in-the-documentation/132386)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/how-to-try-examples-given-in-the-documentation/132386 "2008-03-19T16:55:00Z")

</div>

When I read through the online documentation, for example, for “form\_tag”, I see a number of examples shown as: form\_tag(’/posts’) =\> form\_tag(’/posts/1’, :method =\> :put) =\> form\_tag(’/upload’, :multipart =\> true) …

---

## [\[ANN\] GateKeeper 0.2 - Model Level Permissions Management](https://www.ruby-forum.com/t/ann-gatekeeper-0-2-model-level-permissions-management/132382)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/ann-gatekeeper-0-2-model-level-permissions-management/132382 "2008-03-19T16:35:24Z")

</div>

GateKeeper 0.2 is now available. GateKeeper is a Ruby on Rails plugin providing natural language commands to intuitively manage complex access/security permissions on ActiveRecord models. Permissions may be based on …

---

## [RMagick on Mac OS X - weird error](https://www.ruby-forum.com/t/rmagick-on-mac-os-x-weird-error/132266)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 11\
**Last updated:** [March 19, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/rmagick-on-mac-os-x-weird-error/132266 "2008-03-19T16:14:27Z")

</div>

Hey, I’m trying to install RMagick on Leopard, and I’ve already installed ImageMagick. Here’s the version I have: $ convert -version Version: ImageMagick 6.3.9 03/17/08 Q8 http://www.imagemagick.org Copyright: Copy…

---

## [Week\_view helper](https://www.ruby-forum.com/t/week-view-helper/132379)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/week-view-helper/132379 "2008-03-19T16:05:37Z")

</div>

Hi people, I’m using the week\_view helper ( http://snippets.dzone.com/posts/show/5206 ) I added the module in the lib directory but still having an “undefined method \`week\_view’” error in my view. Does anybody how …

---

## [Where is Rails Validations Value Hash Initialization?](https://www.ruby-forum.com/t/where-is-rails-validations-value-hash-initialization/132373)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/where-is-rails-validations-value-hash-initialization/132373 "2008-03-19T16:02:46Z")

</div>

I have run into a problem with Rails “validates\_uniqueness\_of”. The evidence indicates that this method does not get attribute values set in the model but rather uses raw data passed from the view. I have traced thr…

---

## [Attachment\_fu :uploaded\_data](https://www.ruby-forum.com/t/attachment-fu-uploaded-data/132374)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/attachment-fu-uploaded-data/132374 "2008-03-19T15:18:31Z")

</div>

Hi. In my Model DesignThumbnail I use Attachment\_fu. ----------------- Model ------------------------------- class DesignThumbnail \< ActiveRecord::Base has\_attachment :content\_type =\> :image, :storage =\> :file\_syst…

---

## [Error while uploading images using attachment\_fu on windows](https://www.ruby-forum.com/t/error-while-uploading-images-using-attachment-fu-on-windows/132315)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/error-while-uploading-images-using-attachment-fu-on-windows/132315 "2008-03-19T15:01:11Z")

</div>

I am a newbie to Rails and i am trying the attachment\_fu plugin. I am referring to the post from the url http://clarkware.com/cgi/blosxom/2007/02/24 When i try to upload an image i am getting the below error. I am usi…

---

## [Loupe - Rails+Flickr application](https://www.ruby-forum.com/t/loupe-rails-flickr-application/131702)

<div class="topic-metadata">

**Author:** [@enygmatic](https://www.ruby-forum.com/u/enygmatic)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/loupe-rails-flickr-application/131702 "2008-03-19T14:39:47Z")

</div>

Hi, Loupe is an image gallery application that syncs with your flickr photostream. So far you can display tags, sets and your photostream via this application. It also supports tag based search of your photostream. T…

---

## [Has\_many :through, restful routes design when creating on the join table](https://www.ruby-forum.com/t/has-many-through-restful-routes-design-when-creating-on-the-join-table/132318)

<div class="topic-metadata">

**Author:** [@dusty](https://www.ruby-forum.com/u/dusty)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/has-many-through-restful-routes-design-when-creating-on-the-join-table/132318 "2008-03-19T14:21:09Z")

</div>

Here is a design related question to those out there that are using restful routing with rails. What I’m trying to figure out a good way to design my URLs for creating objects on the join table. For example, take the…

---

## [Spec::rails plugin](https://www.ruby-forum.com/t/spec-rails-plugin/132332)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/spec-rails-plugin/132332 "2008-03-19T13:42:03Z")

</div>

Is there any step-by-step tutorial to create the user stories using spec::rails?

---

## [DateTime validation and testing](https://www.ruby-forum.com/t/datetime-validation-and-testing/132364)

<div class="topic-metadata">

**Author:** [@fcano](https://www.ruby-forum.com/u/fcano)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/datetime-validation-and-testing/132364 "2008-03-19T13:31:27Z")

</div>

Hi! I have this test: def test\_invalid\_date\_format project = Project.new(:name =\> “Terminar pÃ¡gina web”, :user\_id =\> “1”, :deadline =\> “fsafasdfa”) assert !project.valid? assert\_equal “Deadline has invalid syntax…

---

## [Don't miss the Income opportunity (Mobile Income with special offer)](https://www.ruby-forum.com/t/dont-miss-the-income-opportunity-mobile-income-with-special-offer/132362)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [March 19, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/dont-miss-the-income-opportunity-mobile-income-with-special-offer/132362 "2008-03-19T13:05:46Z")

</div>

Hello, I found few genuine sites for earning through your mobile. http://www.sms2india.co.in/?user=patrapb Offer : Rs.3/- for each referral (member) under your network and Rs.20/- bonus for each 10 members except o…

---

## [BDD and Rspec](https://www.ruby-forum.com/t/bdd-and-rspec/132335)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [March 19, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/bdd-and-rspec/132335 "2008-03-19T12:54:48Z")

</div>

In the traditional development method like waterfal approach, we create the requirement and design document. The code will be done after requirement and design. Unit test will be written to test the existing code bloc…

---

## [Best Production Server to Use](https://www.ruby-forum.com/t/best-production-server-to-use/132184)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 22\
**Last updated:** [March 19, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/best-production-server-to-use/132184 "2008-03-19T12:52:52Z")

</div>

I’m sure this question is very subjective, but I’m looking for input and advice. I just purchased a shiny new dedicated server from gate.com and I’m trying to decide what I should use to serve up my rails app: Mongre…

---

## [Writing from stdout to the browser?](https://www.ruby-forum.com/t/writing-from-stdout-to-the-browser/131763)

<div class="topic-metadata">

**Author:** [@brownerthanu](https://www.ruby-forum.com/u/brownerthanu)\
**Replies:** 5\
**Last updated:** [March 19, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/writing-from-stdout-to-the-browser/131763 "2008-03-19T12:34:39Z")

</div>

hi all, i’m working on a rails app that calls a ruby script which writes to $stdout. i’d like somehow intercept that text and write it in realtime (usuing ajax?) to the web browser. does anyone have general (or spe…

---

## [Preventing fieldWithErrors from automatically being inserted](https://www.ruby-forum.com/t/preventing-fieldwitherrors-from-automatically-being-inserted/130259)

<div class="topic-metadata">

**Author:** [@knb](https://www.ruby-forum.com/u/knb)\
**Replies:** 2\
**Last updated:** [March 19, 2008, 11:44am UTC](https://www.ruby-forum.com/t/preventing-fieldwitherrors-from-automatically-being-inserted/130259 "2008-03-19T11:44:59Z")

</div>

How do I prevent the fieldWithErrors div from automatically being inserted into my html? I’d still like to use the error\_messages\_for method. Thanks kb

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

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