# Rails

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

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

---

## [Hash\_for\_\*\_path and hash\_for\_\*\_url arguments](https://www.ruby-forum.com/t/hash-for-path-and-hash-for-url-arguments/181520)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 0\
**Last updated:** [January 13, 2010, 4:45am UTC](https://www.ruby-forum.com/t/hash-for-path-and-hash-for-url-arguments/181520 "2010-01-13T04:45:46Z")

</div>

I’ve been looking for some documentation on the hash\_for\_\* helper methods that are generated from the resource routing, but can’t find much. What are the expected parameters, etc?

---

## [Updating user status](https://www.ruby-forum.com/t/updating-user-status/181377)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [January 13, 2010, 4:35am UTC](https://www.ruby-forum.com/t/updating-user-status/181377 "2010-01-13T04:35:17Z")

</div>

Hi I have the models User belongs\_to user\_status and UserStatus user\_statuses is a master table having values id name 1 Pending 2 Approved 3 Deleted Now when ever a user is created for the first time his us…

---

## [Mysql 5.1 and Rails 2.3.5 error on Windows](https://www.ruby-forum.com/t/mysql-5-1-and-rails-2-3-5-error-on-windows/181500)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 3:59am UTC](https://www.ruby-forum.com/t/mysql-5-1-and-rails-2-3-5-error-on-windows/181500 "2010-01-13T03:59:31Z")

</div>

I installed Rails 2.3.5. Installed mysql 5.1 developer version. Then I did gem install mysql. I did myapp -d mysql I did rake db:create:all Get error “The application has failed to start because LIBMYSQL.dll was not…

---

## [Install RoR on Vista problem](https://www.ruby-forum.com/t/install-ror-on-vista-problem/181401)

<div class="topic-metadata">

**Author:** [@rpd](https://www.ruby-forum.com/u/rpd)\
**Replies:** 1\
**Last updated:** [January 13, 2010, 3:05am UTC](https://www.ruby-forum.com/t/install-ror-on-vista-problem/181401 "2010-01-13T03:05:05Z")

</div>

Hi I have tried to install RoR on my Vista machine but with no success yet. First I followed the tutorial getting started at RoR website & everything worked up to the home page not showing in http://localhost:3000 …

---

## [Action mailer](https://www.ruby-forum.com/t/action-mailer/181107)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 5\
**Last updated:** [January 13, 2010, 2:28am UTC](https://www.ruby-forum.com/t/action-mailer/181107 "2010-01-13T02:28:12Z")

</div>

hi i am new on rails any one can tell me about a simple how to send a simple email on gmail i followed tutorial point.com but all in vain error 530 or many about actionmailer\_tls i resolved but could not make a simpl…

---

## [NOOB Question on Instance Variable](https://www.ruby-forum.com/t/noob-question-on-instance-variable/197119)

<div class="topic-metadata">

**Author:** [@bluehandtalking](https://www.ruby-forum.com/u/bluehandtalking)\
**Replies:** 2\
**Last updated:** [January 12, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/noob-question-on-instance-variable/197119 "2010-01-12T21:45:29Z")

</div>

I have a class photo. It belongs\_to a project. In my ProjectsController I am creating 2 instance variables: @displayphoto = Photo.find\_by\_project\_id(params\[:id\]) …and also @photo = @project.build\_photo The @displayp…

---

## [Need help reading a yaml file on upload with form](https://www.ruby-forum.com/t/need-help-reading-a-yaml-file-on-upload-with-form/181492)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 9:30pm UTC](https://www.ruby-forum.com/t/need-help-reading-a-yaml-file-on-upload-with-form/181492 "2010-01-12T21:30:06Z")

</div>

Here is the current basic information: new (views/file\_uploads/new.html.erb) \<% form\_for( @file\_upload, :html =\> { :multipart =\> true } ) do |f| %\> \<%= f.error\_messages -%\> \<%= f.label :upload, 'File' -%\> \<%…

---

## [How to handle Profile Informations with :has\_many\_through?](https://www.ruby-forum.com/t/how-to-handle-profile-informations-with-has-many-through/181477)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 7\
**Last updated:** [January 12, 2010, 9:12pm UTC](https://www.ruby-forum.com/t/how-to-handle-profile-informations-with-has-many-through/181477 "2010-01-12T21:12:27Z")

</div>

Hi, i try to implement a Profile System for the users into my Rails App. i want to implement it with these models: class Profile \< ActiveRecord::Base has\_many :Profileships has\_many :users, :through =\> :Profileships …

---

## [Rails V 2.3.5 aThe applicaiotn has failed to stMnd MySql 5.1](https://www.ruby-forum.com/t/rails-v-2-3-5-athe-applicaiotn-has-failed-to-stmnd-mysql-5-1/181499)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 1\
**Last updated:** [January 12, 2010, 8:49pm UTC](https://www.ruby-forum.com/t/rails-v-2-3-5-athe-applicaiotn-has-failed-to-stmnd-mysql-5-1/181499 "2010-01-12T20:49:50Z")

</div>

I have isntalled Ruby on Rails v 2.3.5 and mySQL windows Developer Edition 5.1 I did gem install mysql. Then when I say: rake db:create:all I get the error:

---

## [Polymorphic URL's and Uncountable Resources](https://www.ruby-forum.com/t/polymorphic-urls-and-uncountable-resources/163426)

<div class="topic-metadata">

**Author:** [@spike](https://www.ruby-forum.com/u/spike)\
**Replies:** 1\
**Last updated:** [January 12, 2010, 8:20pm UTC](https://www.ruby-forum.com/t/polymorphic-urls-and-uncountable-resources/163426 "2010-01-12T20:20:35Z")

</div>

Hi everyone, I’ve noticed an inconsistency in the way rails deals with uncountable resources and restful routes. Basically if you map an uncountable resource rails will append ‘\_index’ to the end of some routes to avo…

---

## [Pluralization question](https://www.ruby-forum.com/t/pluralization-question/181481)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 5\
**Last updated:** [January 12, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/pluralization-question/181481 "2010-01-12T18:05:22Z")

</div>

Is there a way to pluralize the have/has section of a sentence easily?

---

## [Weird POST/PUT behavior](https://www.ruby-forum.com/t/weird-post-put-behavior/181438)

<div class="topic-metadata">

**Author:** [@Curtis\_C](https://www.ruby-forum.com/u/Curtis_C)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/weird-post-put-behavior/181438 "2010-01-12T18:03:37Z")

</div>

I used the “Cleaning Up Controllers with Postback Actions” recipe from Rails Recipes. Basically you replace all the edit/new/update/create methods with one method that looks like: def edit @recipe = Recipe.find\_by\_id…

---

## [Integration testing](https://www.ruby-forum.com/t/integration-testing/181469)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [January 12, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/integration-testing/181469 "2010-01-12T17:44:57Z")

</div>

Hi Champs, Actually i am writing integration tests for my application. I am working on the test environment. I am checking out that - Are all the pages accessible to admin by creating a session ? The same way are the…

---

## [Question on Render :file =\> file](https://www.ruby-forum.com/t/question-on-render-file-file/181448)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [January 12, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/question-on-render-file-file/181448 "2010-01-12T17:05:04Z")

</div>

Dear Friends, I use render :file method to display html file which has images in it . The render file method not displays a HTML file with images that’s exists inside public folder. Both my HTML files and images refe…

---

## [Best practices for Rails API testing?](https://www.ruby-forum.com/t/best-practices-for-rails-api-testing/181479)

<div class="topic-metadata">

**Author:** [@camilleroux](https://www.ruby-forum.com/u/camilleroux)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 4:33pm UTC](https://www.ruby-forum.com/t/best-practices-for-rails-api-testing/181479 "2010-01-12T16:33:33Z")

</div>

Hello, I’m developing an API in XML and JSON and I’d to know how you do to test it. I thought to create ActiveRessource classes and use them in Cucumber. By the way, I’ve a problem with that, I don’t know on which po…

---

## [How to create portable rails app?](https://www.ruby-forum.com/t/how-to-create-portable-rails-app/181450)

<div class="topic-metadata">

**Author:** [@ralu](https://www.ruby-forum.com/u/ralu)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/how-to-create-portable-rails-app/181450 "2010-01-12T15:26:08Z")

</div>

Hi, i have a rails app which is done with instant rails, now i need to take the app to other computer and use it without migrating , that is plug and play use of that application, can anyone help with that??? plz!

---

## [Problem with Sessions](https://www.ruby-forum.com/t/problem-with-sessions/181322)

<div class="topic-metadata">

**Author:** [@MattWim](https://www.ruby-forum.com/u/MattWim)\
**Replies:** 9\
**Last updated:** [January 12, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/problem-with-sessions/181322 "2010-01-12T15:19:22Z")

</div>

Hi, Using Netbeans 6.7.1, Rails Gem Version 2.3.2 MySQL Server 5.1 I am currently doing the depot application from the pragmatic programmer book (agile web development with rails) everything has been fine up until …

---

## [Autotest - Can make an-install work](https://www.ruby-forum.com/t/autotest-can-make-an-install-work/181371)

<div class="topic-metadata">

**Author:** [@rorra](https://www.ruby-forum.com/u/rorra)\
**Replies:** 4\
**Last updated:** [January 12, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/autotest-can-make-an-install-work/181371 "2010-01-12T14:20:00Z")

</div>

Hey there, I’m trying to install the autotest. After installing all the pre-requisites, I installed the sudo gem install autotest-notification It tells me to execute an-install which gives me, command not found. A…

---

## [501 and 405 slightly inaccurate?](https://www.ruby-forum.com/t/501-and-405-slightly-inaccurate/181437)

<div class="topic-metadata">

**Author:** [@AJ\_ONeal](https://www.ruby-forum.com/u/AJ_ONeal)\
**Replies:** 1\
**Last updated:** [January 12, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/501-and-405-slightly-inaccurate/181437 "2010-01-12T13:05:41Z")

</div>

Since Rails routes know which methods are implemented per controller, why does “Allows” always contain these items? Allows =\> “POST, GET, PUT, DELETE” Shouldn’t the list be built by polling a method? Something like: …

---

## [Capistrano deploy without irs\_process\_scripts](https://www.ruby-forum.com/t/capistrano-deploy-without-irs-process-scripts/181395)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/capistrano-deploy-without-irs-process-scripts/181395 "2010-01-12T13:02:10Z")

</div>

Hi, I am reading docs to understand how to deploy with Capistrano my ROR webapps. In Ruby on Rails 2.3 Release Notes — Ruby on Rails Guides is written: “If youâ€™re one of the (fairly rare) Rails developers who deplo…

---

## [Store objects with a custom attribute](https://www.ruby-forum.com/t/store-objects-with-a-custom-attribute/181461)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 11:32am UTC](https://www.ruby-forum.com/t/store-objects-with-a-custom-attribute/181461 "2010-01-12T11:32:37Z")

</div>

Hi, i try to store objects which differ through a complicated relationship. So e.g. i want to store the moderators, the user … of another object. Currently i create an array for each relationship where i store the …

---

## [How to map outside the rails directory](https://www.ruby-forum.com/t/how-to-map-outside-the-rails-directory/181447)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 10\
**Last updated:** [January 12, 2010, 11:13am UTC](https://www.ruby-forum.com/t/how-to-map-outside-the-rails-directory/181447 "2010-01-12T11:13:53Z")

</div>

Wishes to all, Is there any method to display the HTML file with images outside the rails folder. Kindly let me know your views on my above question! Thanks for any helps.

---

## [Help on render file method](https://www.ruby-forum.com/t/help-on-render-file-method/181442)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 1\
**Last updated:** [January 12, 2010, 10:52am UTC](https://www.ruby-forum.com/t/help-on-render-file-method/181442 "2010-01-12T10:52:14Z")

</div>

Dear all, kindly look at the below code \<%= link\_to image\_tag(“backup\_configure.png”,:title =\> “view chat”),{:action =\> “open\_live\_file”,:file\_path =\> @file\_path},{:target =\> ‘\_new’} %\> def open\_live\_file #--------…

---

## [Need help regarding Ajax and REST](https://www.ruby-forum.com/t/need-help-regarding-ajax-and-rest/181456)

<div class="topic-metadata">

**Author:** [@rajaramyadhav](https://www.ruby-forum.com/u/rajaramyadhav)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 10:20am UTC](https://www.ruby-forum.com/t/need-help-regarding-ajax-and-rest/181456 "2010-01-12T10:20:37Z")

</div>

Hi all, I am a newbie to Ruby on Rails. I need some help from you guys. I need to create a page with Ajax stuff. Now for this should the methods in controllers be non-REST type? I went through the “Agile Web Developm…

---

## [Workling not working on linux](https://www.ruby-forum.com/t/workling-not-working-on-linux/181455)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 7:23am UTC](https://www.ruby-forum.com/t/workling-not-working-on-linux/181455 "2010-01-12T07:23:53Z")

</div>

hi, i could get workling to work on windows where it uses spawnrunner (workling-starling doesn’ work on windows from what i understand). but when i try to do the same things on my linux environment nothing works. fi…

---

## [Render view outside of a controller/view](https://www.ruby-forum.com/t/render-view-outside-of-a-controller-view/181441)

<div class="topic-metadata">

**Author:** [@jeff\_wigal](https://www.ruby-forum.com/u/jeff_wigal)\
**Replies:** 5\
**Last updated:** [January 12, 2010, 5:38am UTC](https://www.ruby-forum.com/t/render-view-outside-of-a-controller-view/181441 "2010-01-12T05:38:29Z")

</div>

We’re putting together a searchable online help site in Rails, and I’m using FastRI to full-text index some existing Rails view pages to do it. I don’t want to use Sphinx or some other solution, just because it’s way…

---

## [\[JOB} Ruby on Rails Programmer - Junior](https://www.ruby-forum.com/t/job-ruby-on-rails-programmer-junior/181439)

<div class="topic-metadata">

**Author:** [@amwfllc](https://www.ruby-forum.com/u/amwfllc)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 3:46am UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-programmer-junior/181439 "2010-01-12T03:46:43Z")

</div>

Ruby on Rails Programmer - Junior Our client, based in Austin, TX, is looking for a Ruby on Rails Programmer to join their dynamic team of experienced programmers. As a Ruby on Rails Programmer, you will perform a cri…

---

## [How to change a rails app to INstant rails app?](https://www.ruby-forum.com/t/how-to-change-a-rails-app-to-instant-rails-app/181262)

<div class="topic-metadata">

**Author:** [@ralu](https://www.ruby-forum.com/u/ralu)\
**Replies:** 4\
**Last updated:** [January 12, 2010, 2:03am UTC](https://www.ruby-forum.com/t/how-to-change-a-rails-app-to-instant-rails-app/181262 "2010-01-12T02:03:43Z")

</div>

i have a rails app , i need to change that app to instant rails app. i have been using Net beans as IDE is der an easy step to do that??? rather creating a new one by copy paste?

---

## [Deployment Infrastructure Stack](https://www.ruby-forum.com/t/deployment-infrastructure-stack/181433)

<div class="topic-metadata">

**Author:** [@rorra](https://www.ruby-forum.com/u/rorra)\
**Replies:** 3\
**Last updated:** [January 12, 2010, 1:20am UTC](https://www.ruby-forum.com/t/deployment-infrastructure-stack/181433 "2010-01-12T01:20:23Z")

</div>

Hello Railers, Getting on application servers, what do you guys use as your infrastructure backend? I’ve read a lot about it, seems like apache + passanger is the easiest to go, right now. What about nginx + passe…

---

## [FAILSAFE error when attempting custom POST - How do I fault find for this?](https://www.ruby-forum.com/t/failsafe-error-when-attempting-custom-post-how-do-i-fault-find-for-this/181435)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 0\
**Last updated:** [January 12, 2010, 12:21am UTC](https://www.ruby-forum.com/t/failsafe-error-when-attempting-custom-post-how-do-i-fault-find-for-this/181435 "2010-01-12T00:21:16Z")

</div>

Hi, I’m creating the file upload code in a C# web form to upload to my Rails app. When I start the upload I get the following error on my Rails server? Any ideas how I can fault find here? It could be the case the…

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

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