# Rails

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

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

---

## [Help with net/ssh](https://www.ruby-forum.com/t/help-with-net-ssh/110465)

<div class="topic-metadata">

**Author:** [@bloc](https://www.ruby-forum.com/u/bloc)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/help-with-net-ssh/110465 "2007-07-26T16:39:35Z")

</div>

hey guys, I’m new to Ruby and Rails. My setup is Locomotive on Mac OS X. When I try to run the below code, I get the below error. What do you guys think? Code: require ‘net/ssh’ session = Net::SSH.start( ‘clipper.…

---

## [Transaction doesn't work](https://www.ruby-forum.com/t/transaction-doesnt-work/110460)

<div class="topic-metadata">

**Author:** [@bioform](https://www.ruby-forum.com/u/bioform)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/transaction-doesnt-work/110460 "2007-07-26T15:45:42Z")

</div>

Here is peace of code: User.transaction do User.destroy\_all “id = #{params\[:id\]}” @user.update\_attributes!(params\[:user\]) raise end User class objects are removed from DB, and @user object attributes are updating,…

---

## [Validate problem](https://www.ruby-forum.com/t/validate-problem/110458)

<div class="topic-metadata">

**Author:** [@wholeblackberry](https://www.ruby-forum.com/u/wholeblackberry)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/validate-problem/110458 "2007-07-26T15:44:56Z")

</div>

Seems the validation can’t work good! I have 2 models: user and profile. a user is with a profile, there are stored in different tables in database,(user is in users(user\_id,email,password,…),profile is profiles(fir…

---

## [Action::Mail](https://www.ruby-forum.com/t/action-mail/110455)

<div class="topic-metadata">

**Author:** [@rornb](https://www.ruby-forum.com/u/rornb)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/action-mail/110455 "2007-07-26T15:38:41Z")

</div>

Hi Everyone I am learning RoR from a book and I am the part where I am using the Action Mailer. And I am about to configuer the e-mail so that I can recive and send from a form. But I am stuck on what to replace th…

---

## [Rake task database to XML export](https://www.ruby-forum.com/t/rake-task-database-to-xml-export/110457)

<div class="topic-metadata">

**Author:** [@chandoo](https://www.ruby-forum.com/u/chandoo)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/rake-task-database-to-xml-export/110457 "2007-07-26T15:34:51Z")

</div>

Hi all… I am a new bie of ruby rails. i was working with some task to get a database table to be exported in to an XMLFile. I need to write a raketask for that. Can some one please help me with some good stuff havi…

---

## [Nginx: Multiple apps, one domain](https://www.ruby-forum.com/t/nginx-multiple-apps-one-domain/110276)

<div class="topic-metadata">

**Author:** [@nadav](https://www.ruby-forum.com/u/nadav)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/nginx-multiple-apps-one-domain/110276 "2007-07-26T15:31:36Z")

</div>

Hi all. I guess I am not the first to encounter this… I want to deploy some rails apps, using only one domain (www.mydomain.com), so that www.mydomain.com/app1/… will be mapped to the app1 directory, www.mydomain.co…

---

## [Overriding get, post, etc. in functional tests (i.e. Test::U](https://www.ruby-forum.com/t/overriding-get-post-etc-in-functional-tests-i-e-test-u/110359)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/overriding-get-post-etc-in-functional-tests-i-e-test-u/110359 "2007-07-26T14:33:18Z")

</div>

Hey guys, Can someone point me in the right direction here? I’m sure others have had similar scenarios. Basically, I have login-protected areas of my application (e.g. an admin section). I store a session value to …

---

## [Making a new join in a habtm relationship](https://www.ruby-forum.com/t/making-a-new-join-in-a-habtm-relationship/110453)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/making-a-new-join-in-a-habtm-relationship/110453 "2007-07-26T14:04:50Z")

</div>

I have a class (Article) that has a habtm relationship with ‘links’, where links are also Articles. I’ve got a join table called articles\_links, and have set up the relationship so that it understands what’s going on…

---

## [Dreamhost problem](https://www.ruby-forum.com/t/dreamhost-problem/110365)

<div class="topic-metadata">

**Author:** [@sunny\_beach](https://www.ruby-forum.com/u/sunny_beach)\
**Replies:** 6\
**Last updated:** [July 26, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/dreamhost-problem/110365 "2007-07-26T13:45:43Z")

</div>

This is my first post here and I am somewhat of a rookie but I have been practcing… I recently started having problems with a Dreamhost rails site that was working fine up until a weeks ago. I created a test site and …

---

## [Repopulating form after validation error](https://www.ruby-forum.com/t/repopulating-form-after-validation-error/110322)

<div class="topic-metadata">

**Author:** [@tomzoo](https://www.ruby-forum.com/u/tomzoo)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 1:34pm UTC](https://www.ruby-forum.com/t/repopulating-form-after-validation-error/110322 "2007-07-26T13:34:14Z")

</div>

Hi, I have a contact form, if a user enters an invalid email I redirect them back to the form to correct it. I didn’t want users to have to re-enter all the data so I want to repopulate the valid fields for them. Th…

---

## [Finally we release the Ruby on Rails 5-day course](https://www.ruby-forum.com/t/finally-we-release-the-ruby-on-rails-5-day-course/109945)

<div class="topic-metadata">

**Author:** [@Andreas\_Kviby](https://www.ruby-forum.com/u/Andreas_Kviby)\
**Replies:** 5\
**Last updated:** [July 26, 2007, 12:30pm UTC](https://www.ruby-forum.com/t/finally-we-release-the-ruby-on-rails-5-day-course/109945 "2007-07-26T12:30:23Z")

</div>

Hello everyone! We held a 5-days Ruby on Rails course in june here in Sweden. The course content, samples, applications and other stuff is all written in English. We agreed on selling this content to raise some small…

---

## [Mongrel cluster stop working after long idle time](https://www.ruby-forum.com/t/mongrel-cluster-stop-working-after-long-idle-time/110445)

<div class="topic-metadata">

**Author:** [@ajayagrawal](https://www.ruby-forum.com/u/ajayagrawal)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-stop-working-after-long-idle-time/110445 "2007-07-26T12:06:48Z")

</div>

Hi, I have a ruby on rails website. Server configuration is: Nginx 4 mongrel clusters running on different ports. After a long idle time few of the mongrel clusters stops responding. I have set “ActiveRecord::Base.v…

---

## [Saving the image](https://www.ruby-forum.com/t/saving-the-image/110427)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 11:46am UTC](https://www.ruby-forum.com/t/saving-the-image/110427 "2007-07-26T11:46:13Z")

</div>

Hello, I try to prepare a upload page and here’s my controller: def new if request.post? begin @file = params\[:img\] if @file.original\_filename.length \> 0 filename = “/images/userimg/” + @file.original\_filename Fi…

---

## [\[newbie\]Form differs from db-table](https://www.ruby-forum.com/t/newbie-form-differs-from-db-table/110437)

<div class="topic-metadata">

**Author:** [@xantip](https://www.ruby-forum.com/u/xantip)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 11:02am UTC](https://www.ruby-forum.com/t/newbie-form-differs-from-db-table/110437 "2007-07-26T11:02:08Z")

</div>

Hello everyone I’m learning Ruby on rails for a school project but I keep bumping in to problems (probably because i’m used to java, c++, c# and php). I have a simple table in my database and I have a simple form wich …

---

## [If number of records = zero, display 'no records found'](https://www.ruby-forum.com/t/if-number-of-records-zero-display-no-records-found/109320)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 6\
**Last updated:** [July 26, 2007, 10:26am UTC](https://www.ruby-forum.com/t/if-number-of-records-zero-display-no-records-found/109320 "2007-07-26T10:26:28Z")

</div>

\[I’ve no idea how this got into the ‘test’ section so sorry for the duplicate!\] I have a list of scripts, that when one is clicked on displays a new page with relating runs for that script. I would like to include an …

---

## [RMagick resize gives images with grey lines!](https://www.ruby-forum.com/t/rmagick-resize-gives-images-with-grey-lines/110304)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 9\
**Last updated:** [July 26, 2007, 9:58am UTC](https://www.ruby-forum.com/t/rmagick-resize-gives-images-with-grey-lines/110304 "2007-07-26T09:58:43Z")

</div>

I’m using RMagick’s img.change\_geometry() method to resize some uploaded images and save to the file system. I’ve got all of that stuff figured out. The weird thing is that the resized images have grey starting at som…

---

## [Editing multiple models in one form](https://www.ruby-forum.com/t/editing-multiple-models-in-one-form/225958)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 9:39am UTC](https://www.ruby-forum.com/t/editing-multiple-models-in-one-form/225958 "2007-07-26T09:39:42Z")

</div>

Very new to this but would appreciate a hand as this is driving me mad, I’m trying to update both degree and assigned from a single form, the degree section updates fine but assigned just retains the same values, any …

---

## [Dating how to videos](https://www.ruby-forum.com/t/dating-how-to-videos/110430)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 9:36am UTC](https://www.ruby-forum.com/t/dating-how-to-videos/110430 "2007-07-26T09:36:41Z")

</div>

Dating how to videos

---

## [Strange Capistrano deploy error - executing environment.rb?](https://www.ruby-forum.com/t/strange-capistrano-deploy-error-executing-environment-rb/86091)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 8:28am UTC](https://www.ruby-forum.com/t/strange-capistrano-deploy-error-executing-environment-rb/86091 "2007-07-26T08:28:27Z")

</div>

Capistrano 1.4 Source system: Win XP Target system: Red Hat 10.x BACKGROUND: I recently added the following to my environment.rb file in order to use the Ruby-Java bridge (RJB): require ‘rjb’ gem ‘rjb’, ‘\>= 1.0.3’ …

---

## [Experiences with Joyent Accelerator?](https://www.ruby-forum.com/t/experiences-with-joyent-accelerator/104861)

<div class="topic-metadata">

**Author:** [@morten](https://www.ruby-forum.com/u/morten)\
**Replies:** 13\
**Last updated:** [July 26, 2007, 8:00am UTC](https://www.ruby-forum.com/t/experiences-with-joyent-accelerator/104861 "2007-07-26T08:00:57Z")

</div>

Hi. Anyone have experience to share about deploying production environment with Joyent? TextDrive had a lot of instability problems I recollect (possibly only with shared plans?). Thanks for any input. Morten

---

## [Converting ActiveRecord objects to json](https://www.ruby-forum.com/t/converting-activerecord-objects-to-json/110423)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 7:29am UTC](https://www.ruby-forum.com/t/converting-activerecord-objects-to-json/110423 "2007-07-26T07:29:55Z")

</div>

I have an ActiveRecord model with a boolean attribute. If I call to\_json on an instance of this model, a get something like the following: “{attributes : { my\_boolean : "0" } }” or “{attributes : { my\_boolean : "1"…

---

## [Creating instance variables while looping over a hash](https://www.ruby-forum.com/t/creating-instance-variables-while-looping-over-a-hash/110314)

<div class="topic-metadata">

**Author:** [@blaine](https://www.ruby-forum.com/u/blaine)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 7:15am UTC](https://www.ruby-forum.com/t/creating-instance-variables-while-looping-over-a-hash/110314 "2007-07-26T07:15:54Z")

</div>

I"m reading in a YAML file using the yaml library in Ruby. My YAML looks something like this: config: value1: Something here value2: Something else As I loop from the YAML like: config\[“config”\].each { |key, value…

---

## [One Controller, many viewing platforms](https://www.ruby-forum.com/t/one-controller-many-viewing-platforms/110407)

<div class="topic-metadata">

**Author:** [@cidol](https://www.ruby-forum.com/u/cidol)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 6:38am UTC](https://www.ruby-forum.com/t/one-controller-many-viewing-platforms/110407 "2007-07-26T06:38:51Z")

</div>

At our office we’re building an app with some CMS-like qualities. We have the requirement of serving to multiple platforms. We can strip enough information out of the Headers to determine which platform a request come…

---

## [Using system() to execute a script outside of Rails but in a](https://www.ruby-forum.com/t/using-system-to-execute-a-script-outside-of-rails-but-in-a/110404)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 6:14am UTC](https://www.ruby-forum.com/t/using-system-to-execute-a-script-outside-of-rails-but-in-a/110404 "2007-07-26T06:14:49Z")

</div>

I’m trying to hack around a previously mentioned RMagick problem, confirmed to exist inside of Rails but not outside. Thus, I’d like to call a Ruby script from with in a Rails controller. Like so: system("#{RAILS\_ROO…

---

## [Reg api](https://www.ruby-forum.com/t/reg-api/110418)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 6:02am UTC](https://www.ruby-forum.com/t/reg-api/110418 "2007-07-26T06:02:47Z")

</div>

Hi all, For my project i want to create an api,but i dont have knowledege abt api and how to start,if anyone knows pls help me with regards, shiva

---

## [Newbie question regarding where to put logic for UI elements](https://www.ruby-forum.com/t/newbie-question-regarding-where-to-put-logic-for-ui-elements/110412)

<div class="topic-metadata">

**Author:** [@Astorian](https://www.ruby-forum.com/u/Astorian)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 5:41am UTC](https://www.ruby-forum.com/t/newbie-question-regarding-where-to-put-logic-for-ui-elements/110412 "2007-07-26T05:41:47Z")

</div>

Hello folks. I am building a site that let’s users track their progress on 30 day challenges. To record their progress, users make a Post for each day of the challenge. The Post object has a “complete” attribute to re…

---

## [How to refresh the entire page from link\_to\_remote (RJS)?](https://www.ruby-forum.com/t/how-to-refresh-the-entire-page-from-link-to-remote-rjs/110413)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 5:35am UTC](https://www.ruby-forum.com/t/how-to-refresh-the-entire-page-from-link-to-remote-rjs/110413 "2007-07-26T05:35:47Z")

</div>

I have some RJS functionality for user login. If successful I want to refresh the entire page to reflect the new situation, but if I use redirect\_to only the target (small) div get replaced with the entire page, not e…

---

## [Geocoding addresses with ym4r google maps](https://www.ruby-forum.com/t/geocoding-addresses-with-ym4r-google-maps/110201)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 5:11am UTC](https://www.ruby-forum.com/t/geocoding-addresses-with-ym4r-google-maps/110201 "2007-07-26T05:11:45Z")

</div>

Does anyone know how to geocode addresses using the YM4R Google Map plug-in?

---

## [Partial problem](https://www.ruby-forum.com/t/partial-problem/110049)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 7\
**Last updated:** [July 26, 2007, 5:09am UTC](https://www.ruby-forum.com/t/partial-problem/110049 "2007-07-26T05:09:00Z")

</div>

I created a partial for my login form and I have it in my my login view folder (‘login/\_login.rhtml’), When I call the partial for my login page login.rhtml it works fine. I have it on a layout for all pages that aren…

---

## [How to make attachment\_fu work?](https://www.ruby-forum.com/t/how-to-make-attachment-fu-work/110414)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 4:51am UTC](https://www.ruby-forum.com/t/how-to-make-attachment-fu-work/110414 "2007-07-26T04:51:45Z")

</div>

Hi all, I downloaded and installed attachment\_fu, also i followed mike clark’s tutorial from here http://www.clarkware.com/cgi/blosxom/2007/02/24 but when i tried to upload a file, there are these error msgs: 5 error…

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

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