# Rails

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

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

---

## [Looking for Easy Rails hosting](https://www.ruby-forum.com/t/looking-for-easy-rails-hosting/188797)

<div class="topic-metadata">

**Author:** [@mohammed\_a](https://www.ruby-forum.com/u/mohammed_a)\
**Replies:** 11\
**Last updated:** [May 25, 2010, 2:58am UTC](https://www.ruby-forum.com/t/looking-for-easy-rails-hosting/188797 "2010-05-25T02:58:38Z")

</div>

Hi I have registered for some paid rails hosting system that uses cpanel to deploy the rails apps. I could not deploy my app/ I tried several times with no success. Does any one know a good hosting company that prov…

---

## [Rspec unit test fails sometimes (validation race condition)](https://www.ruby-forum.com/t/rspec-unit-test-fails-sometimes-validation-race-condition/189117)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 3\
**Last updated:** [May 25, 2010, 1:16am UTC](https://www.ruby-forum.com/t/rspec-unit-test-fails-sometimes-validation-race-condition/189117 "2010-05-25T01:16:17Z")

</div>

I have code similar to this: class Post has\_many :comments end class Comment belongs\_to :post validate :must\_not\_exceed\_ten def must\_not\_exceed\_ten errors.add\_to\_base(‘Too many comments’) unless post.comments.len…

---

## [XMLHttpRequest and Rails](https://www.ruby-forum.com/t/xmlhttprequest-and-rails/189022)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 11\
**Last updated:** [May 24, 2010, 9:38pm UTC](https://www.ruby-forum.com/t/xmlhttprequest-and-rails/189022 "2010-05-24T21:38:59Z")

</div>

Is there a simple example of me issuing an XMLHttpRequest and a rails app responding … without all the Prototype overhead. All I want to do is send an XHR and have the Rails app deliver an XML document back. I have s…

---

## [Adding to a sortable\_element](https://www.ruby-forum.com/t/adding-to-a-sortable-element/189118)

<div class="topic-metadata">

**Author:** [@tiny\_clanger](https://www.ruby-forum.com/u/tiny_clanger)\
**Replies:** 0\
**Last updated:** [May 24, 2010, 9:36pm UTC](https://www.ruby-forum.com/t/adding-to-a-sortable-element/189118 "2010-05-24T21:36:37Z")

</div>

Am adding to a sortable list using Ajax, and to get the Scriptaculous effects to kick in after the add, the only way I have found is by re-executing sortable\_element. Can anyone suggest a better way of doing this, as …

---

## [Problem Installing Rails 3](https://www.ruby-forum.com/t/problem-installing-rails-3/189101)

<div class="topic-metadata">

**Author:** [@robert](https://www.ruby-forum.com/u/robert)\
**Replies:** 6\
**Last updated:** [May 24, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/problem-installing-rails-3/189101 "2010-05-24T21:23:45Z")

</div>

I’m trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I’m wondering if I’ve hosed myself. So far, I’ve run these commands: $ gem update --system $ gem install …

---

## [Rails + fastcgi... not working :/](https://www.ruby-forum.com/t/rails-fastcgi-not-working/186885)

<div class="topic-metadata">

**Author:** [@sebastien-p](https://www.ruby-forum.com/u/sebastien-p)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/rails-fastcgi-not-working/186885 "2010-05-24T21:04:28Z")

</div>

Hello, I have plesk 9.3 and I am trying to make it go along with rails. So I installed ruby, rails, ruby-gems, fastcgi, etc. (I had tried Passenger, but it didn’t work with my distro due to dependencies… so I preferre…

---

## [Authenticated SSL communication between two rails apps](https://www.ruby-forum.com/t/authenticated-ssl-communication-between-two-rails-apps/189103)

<div class="topic-metadata">

**Author:** [@Julien\_Cornuwel](https://www.ruby-forum.com/u/Julien_Cornuwel)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/authenticated-ssl-communication-between-two-rails-apps/189103 "2010-05-24T21:04:26Z")

</div>

Hi, I’ve been gooogling around for quite some time now and I didn’t find a solution. If I missed it, feel free to RTFM me (with a link, please) :wink: I want to make two rails apps (on different servers) able to com…

---

## [Cannot start Rails 2.3.4 app with Passenger](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099 "2010-05-24T21:02:15Z")

</div>

I’m having a heck of a time trying to get my app to start. What is odd is that I had a Rails 2.0.2 app running on the same server. I upgraded everything and the app works great in development with Rails 2.3.5. I’m g…

---

## [Running .exe External File in Ruby](https://www.ruby-forum.com/t/running-exe-external-file-in-ruby/189111)

<div class="topic-metadata">

**Author:** [@anon\_comp](https://www.ruby-forum.com/u/anon_comp)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/running-exe-external-file-in-ruby/189111 "2010-05-24T20:59:09Z")

</div>

Just need some help on how to run an .exe file in Ruby. I tried the code: f = IO.popen(“C:\\analog 6.0\\analog.exe”) puts f.readlines Which I had a bit of suspicion that it didn’t work, and it didn’t. Help please, tha…

---

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

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 7\
**Last updated:** [May 24, 2010, 8:57pm UTC](https://www.ruby-forum.com/t/question-on-layouts/189046 "2010-05-24T20:57:59Z")

</div>

Hey all, Does any have suggestions to whether I should create a controller for every web page on my site or just create an action for every web page in same controller if those actions will never require database call…

---

## [Get System Variable](https://www.ruby-forum.com/t/get-system-variable/189114)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [May 24, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/get-system-variable/189114 "2010-05-24T20:43:56Z")

</div>

Does anyone know how I can get a system variable like JAVA\_HOME or JBOSS\_HOME from within Rails/Ruby? – Joshua S. Martin

---

## [Active Directory in Ruby on rails](https://www.ruby-forum.com/t/active-directory-in-ruby-on-rails/189104)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 1\
**Last updated:** [May 24, 2010, 6:26pm UTC](https://www.ruby-forum.com/t/active-directory-in-ruby-on-rails/189104 "2010-05-24T18:26:57Z")

</div>

Hi All, What is Active Directory authentication?. How to use in Ruby on rails?. Regards, Periyasamy.R

---

## [Getting js variable value or form field value in js.rjs file](https://www.ruby-forum.com/t/getting-js-variable-value-or-form-field-value-in-js-rjs-file/189086)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/getting-js-variable-value-or-form-field-value-in-js-rjs-file/189086 "2010-05-24T16:33:41Z")

</div>

Hi all I have a file “index.js.rjs” where i only want to run the code in it (which updates the contents of a div in typical ajax style) if a variable i have from params is the same as a value of one of the form field…

---

## [Attachment\_fu and paperclip comparison needed](https://www.ruby-forum.com/t/attachment-fu-and-paperclip-comparison-needed/188582)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-paperclip-comparison-needed/188582 "2010-05-24T16:18:25Z")

</div>

Hi Could anybody please give a comparison on which of these to use? For example in attachment\_fu documentation I saw files can be stored finally 4 ways like File system Database file Amazon S3 Rackspace (Mosso) Cl…

---

## [Select\_tag taking input from database](https://www.ruby-forum.com/t/select-tag-taking-input-from-database/189100)

<div class="topic-metadata">

**Author:** [@slippy](https://www.ruby-forum.com/u/slippy)\
**Replies:** 1\
**Last updated:** [May 24, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/select-tag-taking-input-from-database/189100 "2010-05-24T16:09:22Z")

</div>

hey, its my first day developing with ruby and i am having some trouble getting data from a find and then putting it in a select drop down. here is my code, IN MY CONTROLLER @foundCode = Code.find(:all) IN MY VIEW …

---

## [Can RoR handle AJAX Response by Static Javascript code?](https://www.ruby-forum.com/t/can-ror-handle-ajax-response-by-static-javascript-code/189094)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/can-ror-handle-ajax-response-by-static-javascript-code/189094 "2010-05-24T15:09:28Z")

</div>

So it looks like on RoR, when Ajax (using form\_remote\_tag) returns a success code, Javascript is also returned to handle the visual effects. using Fiddler, I do see the following response: try { Element.update("vote\_s…

---

## [One model with two controller?](https://www.ruby-forum.com/t/one-model-with-two-controller/189082)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/one-model-with-two-controller/189082 "2010-05-24T15:08:30Z")

</div>

i have a comment Model. it has already “belongs\_to :poem” entry. is there any way to use this model to another controller (eg:- belongs\_to :post) . if it is possible then how do i do the migration and other stuffs ple…

---

## [Questionairee's questions - how to show all user's answers? How to update database with ALL user's](https://www.ruby-forum.com/t/questionairees-questions-how-to-show-all-users-answers-how-to-update-database-with-all-users/189067)

<div class="topic-metadata">

**Author:** [@Smoq](https://www.ruby-forum.com/u/Smoq)\
**Replies:** 5\
**Last updated:** [May 24, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/questionairees-questions-how-to-show-all-users-answers-how-to-update-database-with-all-users/189067 "2010-05-24T14:53:16Z")

</div>

I am using RoR 2.3.5. I would like to have list of questions with three possible answers. After having copleted a test I would like to update the database with user’s answers. At the bottom of the page I would also li…

---

## [Passing values from controller to partial](https://www.ruby-forum.com/t/passing-values-from-controller-to-partial/189089)

<div class="topic-metadata">

**Author:** [@drk](https://www.ruby-forum.com/u/drk)\
**Replies:** 1\
**Last updated:** [May 24, 2010, 2:15pm UTC](https://www.ruby-forum.com/t/passing-values-from-controller-to-partial/189089 "2010-05-24T14:15:30Z")

</div>

Hii How can i pass array of values from the controller to partial. def dispfriends @myfriend=\[\] @myfriendlogin = \[\] @myusers=\[\] i=0 @currentgroup = Group.find\_by\_id(params\[:groupid\]) puts @currentgroup.id @curre…

---

## [Private methods in rails](https://www.ruby-forum.com/t/private-methods-in-rails/189090)

<div class="topic-metadata">

**Author:** [@johndel](https://www.ruby-forum.com/u/johndel)\
**Replies:** 3\
**Last updated:** [May 24, 2010, 1:55pm UTC](https://www.ruby-forum.com/t/private-methods-in-rails/189090 "2010-05-24T13:55:20Z")

</div>

Hello I was reviewing some rails code lately and I see that in some cases they use private methods (especially in application controller methods). I understand that it is considered a good practice since the methods …

---

## [Installing merb - connection reset, retrying, connection reset, retrying](https://www.ruby-forum.com/t/installing-merb-connection-reset-retrying-connection-reset-retrying/189080)

<div class="topic-metadata">

**Author:** [@sso](https://www.ruby-forum.com/u/sso)\
**Replies:** 1\
**Last updated:** [May 24, 2010, 7:27am UTC](https://www.ruby-forum.com/t/installing-merb-connection-reset-retrying-connection-reset-retrying/189080 "2010-05-24T07:27:51Z")

</div>

This is my output. I don’t know what to do to make this work. I have installed other gems without any problems. Suggestions? debian:/home/kevin# gem source -a http://www.rubygems.org http://www.rubygems.org added t…

---

## [Would you recommend some books about Ruby on Rails?](https://www.ruby-forum.com/t/would-you-recommend-some-books-about-ruby-on-rails/189041)

<div class="topic-metadata">

**Author:** [@goodchoi](https://www.ruby-forum.com/u/goodchoi)\
**Replies:** 4\
**Last updated:** [May 24, 2010, 4:30am UTC](https://www.ruby-forum.com/t/would-you-recommend-some-books-about-ruby-on-rails/189041 "2010-05-24T04:30:03Z")

</div>

Hi everybody~ Vey nice to meet you on this group. I’m a only web service planner operating a site " http://topics.co.kr/categories?q=iphone " developed by Ruby-on-Rails engineers through payment. But I’m trying to d…

---

## [Derived model associates with a model that base associates with in a different way](https://www.ruby-forum.com/t/derived-model-associates-with-a-model-that-base-associates-with-in-a-different-way/189076)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 0\
**Last updated:** [May 24, 2010, 4:18am UTC](https://www.ruby-forum.com/t/derived-model-associates-with-a-model-that-base-associates-with-in-a-different-way/189076 "2010-05-24T04:18:48Z")

</div>

Hello, So I have an Attribute model with lists the attributes of an object. The attributes can be of different types so I have derived classes as well, in this case I have a derived SubjectiveAttribute. The problem I…

---

## [Rendering in csv file](https://www.ruby-forum.com/t/rendering-in-csv-file/189011)

<div class="topic-metadata">

**Author:** [@chewmanfoo](https://www.ruby-forum.com/u/chewmanfoo)\
**Replies:** 2\
**Last updated:** [May 24, 2010, 3:16am UTC](https://www.ruby-forum.com/t/rendering-in-csv-file/189011 "2010-05-24T03:16:09Z")

</div>

I have an index page showing a table of network hosts with IP addresses, roles, hostname etc. Is it trivial to render that page to the browser as a csv file instead of html and link to that rendering on the index pag…

---

## [Rails/JavaScript issue](https://www.ruby-forum.com/t/rails-javascript-issue/189070)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [May 24, 2010, 12:38am UTC](https://www.ruby-forum.com/t/rails-javascript-issue/189070 "2010-05-24T00:38:07Z")

</div>

Hey all, I have an application.js file in my javascripts folder of my Ruby on Rails application. The javascript is just a typical hide/show tabs effect, so when the user clicks on one link, the corresponding div is r…

---

## [\[Rails 3\] Trouble with named routes and form\_for](https://www.ruby-forum.com/t/rails-3-trouble-with-named-routes-and-form-for/189056)

<div class="topic-metadata">

**Author:** [@bluetrust](https://www.ruby-forum.com/u/bluetrust)\
**Replies:** 1\
**Last updated:** [May 23, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/rails-3-trouble-with-named-routes-and-form-for/189056 "2010-05-23T23:39:35Z")

</div>

Hi guys, I’m having trouble getting named routes and form\_for to play nicely in quite the way I would expect. Here’s a quick summary of what I’ve got going on: Named route: resources :thread, :class\_name =\> “forum\_…

---

## [Server side programming, using the Ruby on Rails (RoR) framework help please](https://www.ruby-forum.com/t/server-side-programming-using-the-ruby-on-rails-ror-framework-help-please/189068)

<div class="topic-metadata">

**Author:** [@mustafacmpe](https://www.ruby-forum.com/u/mustafacmpe)\
**Replies:** 1\
**Last updated:** [May 23, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/server-side-programming-using-the-ruby-on-rails-ror-framework-help-please/189068 "2010-05-23T22:49:15Z")

</div>

Hello , I have a home work shown below i did most of the things , i wrote rthml and database in netbeans but i cant run Homework and code i wrote are below what is missing here i dont know please help . I cant run i…

---

## [Introducing ResourceAwareness 0.1.0](https://www.ruby-forum.com/t/introducing-resourceawareness-0-1-0/197044)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 0\
**Last updated:** [May 23, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/introducing-resourceawareness-0-1-0/197044 "2010-05-23T21:54:14Z")

</div>

Hi all, I want to invite you to check out ResourceAwareness, a small gem that makes available information about a Rails application’s resources (as defined by the ‘resource/s’ routing DSL methods) at Rails.applicatio…

---

## [Introducing ResourceAwareness](https://www.ruby-forum.com/t/introducing-resourceawareness/189069)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 0\
**Last updated:** [May 23, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/introducing-resourceawareness/189069 "2010-05-23T21:50:08Z")

</div>

Hi all, I want to invite you to check out ResourceAwareness, a small gem that makes available information about a Rails application’s resources (as defined by the ‘resource/s’ routing DSL methods) at Rails.applicatio…

---

## [Remote\_function return No action responded error](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 3\
**Last updated:** [May 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051 "2010-05-23T18:03:02Z")

</div>

here i given my codes when i execute this remote\_function rails give me this error ActionController::UnknownAction (No action responded to report\_poem. Actions: create, destroy, edit, index, new, show, update): in my…

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

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