# Rails

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

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

---

## [Ruby script/plugin install not working](https://www.ruby-forum.com/t/ruby-script-plugin-install-not-working/189599)

<div class="topic-metadata">

**Author:** [@pedrito\_rod](https://www.ruby-forum.com/u/pedrito_rod)\
**Replies:** 1\
**Last updated:** [June 9, 2010, 5:16am UTC](https://www.ruby-forum.com/t/ruby-script-plugin-install-not-working/189599 "2010-06-09T05:16:25Z")

</div>

I have mingGW32 , and cygdrive … I made a git clone … perfect… I intent to use git… $ ./script/plugin install git://… it did not work, PLUGIN NOT FOUND… I used in the console C:\\ …

---

## [Authenticity\_token shows up in the url when page reloads](https://www.ruby-forum.com/t/authenticity-token-shows-up-in-the-url-when-page-reloads/189750)

<div class="topic-metadata">

**Author:** [@albino\_squirrel](https://www.ruby-forum.com/u/albino_squirrel)\
**Replies:** 3\
**Last updated:** [June 9, 2010, 4:21am UTC](https://www.ruby-forum.com/t/authenticity-token-shows-up-in-the-url-when-page-reloads/189750 "2010-06-09T04:21:21Z")

</div>

I’m pretty new to Ruby On Rails (and somewhat self-taught), so bear with me if I’m asking something stupid. So whenever I push my download button (which just uses send\_file, if that’s any help) it reloads the page, wi…

---

## [Rails 3 queries](https://www.ruby-forum.com/t/rails-3-queries/189704)

<div class="topic-metadata">

**Author:** [@bryan-ash](https://www.ruby-forum.com/u/bryan-ash)\
**Replies:** 2\
**Last updated:** [June 9, 2010, 3:56am UTC](https://www.ruby-forum.com/t/rails-3-queries/189704 "2010-06-09T03:56:14Z")

</div>

I have the following models: class Recipe \< ActiveRecord::Base has\_many :ingredient\_amounts has\_many :ingredients, :through =\> :ingredient\_amounts end class Ingredient \< ActiveRecord::Base def self.named\_like(name) …

---

## [\[JOB\] Rails Developer, NYC | 12+ month contract](https://www.ruby-forum.com/t/job-rails-developer-nyc-12-month-contract/189862)

<div class="topic-metadata">

**Author:** [@OSS](https://www.ruby-forum.com/u/OSS)\
**Replies:** 0\
**Last updated:** [June 9, 2010, 3:17am UTC](https://www.ruby-forum.com/t/job-rails-developer-nyc-12-month-contract/189862 "2010-06-09T03:17:01Z")

</div>

This is a full time, on-site, contract/hourly gig that lasts at least 12 months in New York City. No telecommuting allowed. A well funded start up is urgently looking for 2-3 talented developers with expert knowledge…

---

## [Launch error](https://www.ruby-forum.com/t/launch-error/189730)

<div class="topic-metadata">

**Author:** [@mperham](https://www.ruby-forum.com/u/mperham)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 11:34pm UTC](https://www.ruby-forum.com/t/launch-error/189730 "2010-06-08T23:34:01Z")

</div>

Hey all, I am just getting started with RoR and am having trouble launching the localhost:3000 page. Here is the error message I am getting in my command prompt: C:\\Users\\Michael\\rubydev\\ch04\\first\>ruby script/server …

---

## [Jndi access issue when using threads in rails application deployed in websphere (WAS)](https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853)

<div class="topic-metadata">

**Author:** [@rakmoh](https://www.ruby-forum.com/u/rakmoh)\
**Replies:** 1\
**Last updated:** [June 8, 2010, 11:15pm UTC](https://www.ruby-forum.com/t/jndi-access-issue-when-using-threads-in-rails-application-deployed-in-websphere-was/189853 "2010-06-08T23:15:12Z")

</div>

I need to deploy my application to Websphere (WAS) 6.1. Application uses threads for some back-groud work. When I deploy the war in WAS, I am getting the following error: \[5/3/10 15:56:57:616 EDT\] 0000008f SystemErr R…

---

## [Open Source Contribution - Getting Started: i18n background generating rake?](https://www.ruby-forum.com/t/open-source-contribution-getting-started-i18n-background-generating-rake/189846)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 5\
**Last updated:** [June 8, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/open-source-contribution-getting-started-i18n-background-generating-rake/189846 "2010-06-08T22:41:55Z")

</div>

Hello i18n community of rails. I’ve been programming RoR for a few years now, and want to test my chops contributing to some open source projects, I have a special interest in i18n and have an Idea, though i wanted to…

---

## [Rails crashes when running more than 1 instance](https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 1\
**Last updated:** [June 8, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/rails-crashes-when-running-more-than-1-instance/189827 "2010-06-08T21:37:24Z")

</div>

Hello everyone, I’m new here, and I wasn’t sure where to put this question. So forgive me if this is the wrong place. The problem I have is that when I open a second, different, rails app on one server, the ruby proc…

---

## [Params from form & condition in request](https://www.ruby-forum.com/t/params-from-form-condition-in-request/189848)

<div class="topic-metadata">

**Author:** [@stanislavua](https://www.ruby-forum.com/u/stanislavua)\
**Replies:** 1\
**Last updated:** [June 8, 2010, 9:18pm UTC](https://www.ruby-forum.com/t/params-from-form-condition-in-request/189848 "2010-06-08T21:18:42Z")

</div>

Hi I have a form on View and I have to construct condition for query depending fields which user filled in form. I should write something like: cond if params\[par1\] cond = " par1 = #{par1} " if params\[par2\] cond …

---

## [Paperclip/ImageMagick issue](https://www.ruby-forum.com/t/paperclip-imagemagick-issue/189845)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [June 8, 2010, 9:06pm UTC](https://www.ruby-forum.com/t/paperclip-imagemagick-issue/189845 "2010-06-08T21:06:14Z")

</div>

I’m using paperclip for uploading images, and I’m running into a weird error: 2 errors prohibited this billboard from being saved There were problems with the following fields: \* Image /var/folders/bh/bh5FVAlvF5C38o…

---

## [\[Rails Heroku\] Problem with saving object (on heroku hosting)](https://www.ruby-forum.com/t/rails-heroku-problem-with-saving-object-on-heroku-hosting/189812)

<div class="topic-metadata">

**Author:** [@fell](https://www.ruby-forum.com/u/fell)\
**Replies:** 9\
**Last updated:** [June 8, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/rails-heroku-problem-with-saving-object-on-heroku-hosting/189812 "2010-06-08T19:14:05Z")

</div>

Hi All, I have some strange problem which appears only on heroku hosting 2.3.5 default stack (not on my local computer) I have some models. Here they are: class Contact \< ActiveRecord::Base belongs\_to :user belongs…

---

## [Rails, ajax, json, and script](https://www.ruby-forum.com/t/rails-ajax-json-and-script/189834)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 8\
**Last updated:** [June 8, 2010, 6:02pm UTC](https://www.ruby-forum.com/t/rails-ajax-json-and-script/189834 "2010-06-08T18:02:38Z")

</div>

Could someone please demonstrate the code to send both json (or xml) AND javascript (to be executed) in a single Ajax request? Is this even possible?

---

## [Need help Inplace editor text area size](https://www.ruby-forum.com/t/need-help-inplace-editor-text-area-size/189842)

<div class="topic-metadata">

**Author:** [@vidyasagar](https://www.ruby-forum.com/u/vidyasagar)\
**Replies:** 0\
**Last updated:** [June 8, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/need-help-inplace-editor-text-area-size/189842 "2010-06-08T17:44:06Z")

</div>

I am trying to rename a bundle name I got a textarea box with row size 3 column size 40 but I need a small text box Please help me \<%= in\_place\_editor(‘edit\_title\_bundle’+bundle.id.to\_s, :url =\> update\_field\_newsfee…

---

## [Validate in controller or use Rails validations?](https://www.ruby-forum.com/t/validate-in-controller-or-use-rails-validations/189808)

<div class="topic-metadata">

**Author:** [@markb](https://www.ruby-forum.com/u/markb)\
**Replies:** 5\
**Last updated:** [June 8, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/validate-in-controller-or-use-rails-validations/189808 "2010-06-08T17:23:25Z")

</div>

As I prepare to add validations to my application, I am trying to decide if it would be better to write validation logic in the update/ create controller methods or use Rails’ validation methods. In the former case, …

---

## [Problems using Globalize 2 crud with rails 2.3 nested attributes](https://www.ruby-forum.com/t/problems-using-globalize-2-crud-with-rails-2-3-nested-attributes/163254)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/problems-using-globalize-2-crud-with-rails-2-3-nested-attributes/163254 "2010-06-08T17:11:46Z")

</div>

Hi to all ! Seems that none can help me on ruby-i18n group…, I hope someone can help me… :frowning: I’ve try to make a crud sample application using Globalize2 and Rails 2.3.2 nested attributes. All works great for …

---

## [Update Realtion](https://www.ruby-forum.com/t/update-realtion/189822)

<div class="topic-metadata">

**Author:** [@mrwellmann](https://www.ruby-forum.com/u/mrwellmann)\
**Replies:** 7\
**Last updated:** [June 8, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/update-realtion/189822 "2010-06-08T16:32:41Z")

</div>

Hi I want to assign continents to my products with a drop down box. I managed to get everyting runing but now i have a probably quite easy to solve problem. I don’t get the update running. What want to do is basicall…

---

## [Render an action if coming from ajax request](https://www.ruby-forum.com/t/render-an-action-if-coming-from-ajax-request/189814)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 8\
**Last updated:** [June 8, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/render-an-action-if-coming-from-ajax-request/189814 "2010-06-08T16:21:13Z")

</div>

Hi, I have a Rails web app working, and I am now working on a mobile app using Phonegap. Phonegap works only with javascript/html, so I make Ajax request to my web app and render things if the request is make from Aj…

---

## [Accessing a class's variables from an included module](https://www.ruby-forum.com/t/accessing-a-classs-variables-from-an-included-module/189790)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 5\
**Last updated:** [June 8, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/accessing-a-classs-variables-from-an-included-module/189790 "2010-06-08T15:44:23Z")

</div>

I created a mixin module called BaseProduct. This module has an initialize method in it. I am trying to use some meta-programming to set variables in initialize from the class that the module is in included in… I pa…

---

## [Advise wanted on Ror software development and project management + my own github server?](https://www.ruby-forum.com/t/advise-wanted-on-ror-software-development-and-project-management-my-own-github-server/189349)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 22\
**Last updated:** [June 8, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/advise-wanted-on-ror-software-development-and-project-management-my-own-github-server/189349 "2010-06-08T15:43:04Z")

</div>

As a 1 man ruby on rails developer I have several ideas / concepts for (near) future project and 1 active project im working on now. I found myself in the need of a nice good looking and simple project management to k…

---

## [Can i eager-load associations onto an already-loaded object?](https://www.ruby-forum.com/t/can-i-eager-load-associations-onto-an-already-loaded-object/189820)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 9\
**Last updated:** [June 8, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/can-i-eager-load-associations-onto-an-already-loaded-object/189820 "2010-06-08T15:35:20Z")

</div>

Let’s say that i have a User object in @user, already loaded. I want to constantly refer to @user.role on a particular page (where User belongs\_to :role), so i want to ‘eager load’ the role association. For the sake…

---

## [String attributes not showing up in view](https://www.ruby-forum.com/t/string-attributes-not-showing-up-in-view/189806)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 8\
**Last updated:** [June 8, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/string-attributes-not-showing-up-in-view/189806 "2010-06-08T15:27:26Z")

</div>

Hi, I have a user model with attributes first\_name, last\_name and email. In the view I’m looping though all the users and for each user printing out the email add the full\_name (full\_name is a function in the user mo…

---

## [ActiveRecord.find - Association Not Found Error When Using Custom Joins](https://www.ruby-forum.com/t/activerecord-find-association-not-found-error-when-using-custom-joins/189783)

<div class="topic-metadata">

**Author:** [@neufelni](https://www.ruby-forum.com/u/neufelni)\
**Replies:** 3\
**Last updated:** [June 8, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/activerecord-find-association-not-found-error-when-using-custom-joins/189783 "2010-06-08T15:07:30Z")

</div>

Hello, When calling the find method on one of my models, I am joining to several other table using the :joins parameter. Currently, the :joins parameter is being populated with an array of several associations. Howev…

---

## [Gem install mysql giving error on linux](https://www.ruby-forum.com/t/gem-install-mysql-giving-error-on-linux/189818)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/gem-install-mysql-giving-error-on-linux/189818 "2010-06-08T14:29:01Z")

</div>

Hi, I have mysql installed on linux. Whenever I am trying t “gem install mysql – --with-mysql-dir=/usr/bin/mysql” I am getting following error:- Building native extensions. This could take a while… ERROR: Error in…

---

## [nb-NO.yml: Ã¥ turns into ï¿½](https://www.ruby-forum.com/t/nb-no-yml-a-turns-into-i/189821)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/nb-no-yml-a-turns-into-i/189821 "2010-06-08T13:40:15Z")

</div>

Hello, is there any way I can use letters like Ã¦, Ã¸ and Ã¥ in my yml without changing them to æ ø and å in order to avoid them showing up as ï¿½ and so on? Maybe there are some helpers out there or something? Much…

---

## [\[Rails 3\] How to refer to birthday(1i) in a AR](https://www.ruby-forum.com/t/rails-3-how-to-refer-to-birthday-1i-in-a-ar/189675)

<div class="topic-metadata">

**Author:** [@ShellScripter](https://www.ruby-forum.com/u/ShellScripter)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/rails-3-how-to-refer-to-birthday-1i-in-a-ar/189675 "2010-06-08T13:27:22Z")

</div>

Hi , there , first of all i wanna to express my regard to the Rails 3 dev. team’s effort , the work is really amazing ! Really speed up a lot the performance !! Well , i still a rookie guy and have a question for ask …

---

## [Rails (and MySQL) on Linux - gem install mysql](https://www.ruby-forum.com/t/rails-and-mysql-on-linux-gem-install-mysql/119954)

<div class="topic-metadata">

**Author:** [@Onno\_van\_der\_Straat](https://www.ruby-forum.com/u/Onno_van_der_Straat)\
**Replies:** 7\
**Last updated:** [June 8, 2010, 12:29pm UTC](https://www.ruby-forum.com/t/rails-and-mysql-on-linux-gem-install-mysql/119954 "2010-06-08T12:29:40Z")

</div>

Hi, I could use some suggestions on how to get Rails running properly on a Linux vserver running SuSE Linux Enterprise Server 10. The application is not working as expected, on certain requests the server dies. In th…

---

## [It just won't load](https://www.ruby-forum.com/t/it-just-wont-load/189793)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 4\
**Last updated:** [June 8, 2010, 12:11pm UTC](https://www.ruby-forum.com/t/it-just-wont-load/189793 "2010-06-08T12:11:15Z")

</div>

Hey, im trying desperately to load my norwegian translation file here… I’ve set config.i18n.default\_locale = :nb\_NO which should load config/ locales/nb\_NO.yml yeah? it just loads config/locales/en\_US.yml. both local…

---

## [How to add dynamic routes to routes.rb. Worked in rails2 doesn't work in rails3](https://www.ruby-forum.com/t/how-to-add-dynamic-routes-to-routes-rb-worked-in-rails2-doesnt-work-in-rails3/189791)

<div class="topic-metadata">

**Author:** [@db-S](https://www.ruby-forum.com/u/db-S)\
**Replies:** 3\
**Last updated:** [June 8, 2010, 11:47am UTC](https://www.ruby-forum.com/t/how-to-add-dynamic-routes-to-routes-rb-worked-in-rails2-doesnt-work-in-rails3/189791 "2010-06-08T11:47:49Z")

</div>

I’ve the following solution for this in rails2 In config/routes.rb Page.all.each do |page| map.connect page.url, :controller =\> p.controller, :action =\> p.action get page.url + ’ =\> ’ + p.controller+’#’+p.action end …

---

## [/bin/sh: ./miniruby: No such file or directory errror](https://www.ruby-forum.com/t/bin-sh-miniruby-no-such-file-or-directory-errror/189809)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [June 8, 2010, 8:00am UTC](https://www.ruby-forum.com/t/bin-sh-miniruby-no-such-file-or-directory-errror/189809 "2010-06-08T08:00:05Z")

</div>

Hi, I am installing ruby 1.8.6 on feodra linux. I have download the ruby-1.8.7.tar file. But whenever I am doing “make” it is giving an error "make\[1\]: \*\*\* \[ossl\_ssl.o\] Error 1 make\[1\]: Leaving directory \`/home/rai…

---

## [Install acts\_as\_textiled](https://www.ruby-forum.com/t/install-acts-as-textiled/189711)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 2\
**Last updated:** [June 8, 2010, 2:50am UTC](https://www.ruby-forum.com/t/install-acts-as-textiled/189711 "2010-06-08T02:50:29Z")

</div>

I have git installed on my windows machine. Am typing ruby script/plugin install git://github.com/defunkt/acts\_as\_textiled.git In my vendor/plugins directory it shows acts\_as\_textiled. However, there are no files in …

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

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