# Rails

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

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

---

## [Turn of a single validation](https://www.ruby-forum.com/t/turn-of-a-single-validation/184175)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [February 27, 2010, 11:56am UTC](https://www.ruby-forum.com/t/turn-of-a-single-validation/184175 "2010-02-27T11:56:26Z")

</div>

During migration I would like to turn off a single validation. That is, I don’t want to turn off all validations for a single record, I want to turn of a single validation (of several) for all records.

---

## [How do you allow users make custom shopping lists?](https://www.ruby-forum.com/t/how-do-you-allow-users-make-custom-shopping-lists/184252)

<div class="topic-metadata">

**Author:** [@The\_programmer](https://www.ruby-forum.com/u/The_programmer)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 9:37am UTC](https://www.ruby-forum.com/t/how-do-you-allow-users-make-custom-shopping-lists/184252 "2010-02-27T09:37:44Z")

</div>

Hi, I asked Ryan bates, the owner of railscasts.com if he knew of any documentation that would explain what code to use to allow users make their own lists in RoR. He referred me to here. I’m trying to make it so use…

---

## [Plugin naming conventions](https://www.ruby-forum.com/t/plugin-naming-conventions/184244)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 3:17am UTC](https://www.ruby-forum.com/t/plugin-naming-conventions/184244 "2010-02-27T03:17:03Z")

</div>

Is there a discussion anywhere regarding the naming conventions for plugins? I have just recently forayed into plugin development and, as a neophyte, blindly started naming everything acts\_as\_ something-or-other. Afte…

---

## [Nested form polymorphic](https://www.ruby-forum.com/t/nested-form-polymorphic/184243)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 2:34am UTC](https://www.ruby-forum.com/t/nested-form-polymorphic/184243 "2010-02-27T02:34:03Z")

</div>

3 models - User, Images, Interests. Everything looks ok but nothing gets inserted into child models:( Model code excerpt User model =\> has\_many :interests, :as =\> :interestible, :dependent =\> :destroy accepts\_neste…

---

## [Replacing an xxx.png with a xxx.jpg in public/images OK?](https://www.ruby-forum.com/t/replacing-an-xxx-png-with-a-xxx-jpg-in-public-images-ok/184239)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [February 27, 2010, 2:14am UTC](https://www.ruby-forum.com/t/replacing-an-xxx-png-with-a-xxx-jpg-in-public-images-ok/184239 "2010-02-27T02:14:09Z")

</div>

Hi ALL, I’m building a Rails app using the app provided in Ruby On Rails Cookbook. The book’s app works “out of the box” after appropriate tweaks: adding a “log” directory, adding a root password in database.yml and…

---

## [Text Output Display in Rails is OUT OF CONTROL!](https://www.ruby-forum.com/t/text-output-display-in-rails-is-out-of-control/184211)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 5\
**Last updated:** [February 26, 2010, 11:54pm UTC](https://www.ruby-forum.com/t/text-output-display-in-rails-is-out-of-control/184211 "2010-02-26T23:54:59Z")

</div>

I have a shell command statement in my controller that runs a ruby script and puts this text output into my instance variable which I call in my view. Controller Code: @data = /usr/bin/ruby\_script.rb View Code: …

---

## [Rake db:migrate tries to use sqlite :-/](https://www.ruby-forum.com/t/rake-db-migrate-tries-to-use-sqlite/184231)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-tries-to-use-sqlite/184231 "2010-02-26T23:41:07Z")

</div>

Hi I’m setting up Instiki on a webserver (VPS, linux.) Here’s my error: \[instiki-0.17\]$ rake db:migrate (in /home/peter/pehrlich.com/html/instiki-0.17) rake aborted! no such file to load – sqlite3 /home/peter/pehr…

---

## [Ruby script/cucumber -tags producing a gem error](https://www.ruby-forum.com/t/ruby-script-cucumber-tags-producing-a-gem-error/184229)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/ruby-script-cucumber-tags-producing-a-gem-error/184229 "2010-02-26T23:12:41Z")

</div>

When I do “ruby script/cucumber” the tests run no issues. When I do the same thing but -tags tag\_name I get a gem version error: Where is it coming from and why?? Using the default profile… RubyGem version error: r…

---

## [Breaking into the debugger](https://www.ruby-forum.com/t/breaking-into-the-debugger/184213)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 8:22pm UTC](https://www.ruby-forum.com/t/breaking-into-the-debugger/184213 "2010-02-26T20:22:23Z")

</div>

OK, so rails has detected an error (e.g. “can’t convert Symbol into String”) Is there a way to break into the debugger without having to either (a) insert a debugger statement into the source and rerunning the page? …

---

## [Routing Error using Paperclip](https://www.ruby-forum.com/t/routing-error-using-paperclip/184200)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 2\
**Last updated:** [February 26, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/routing-error-using-paperclip/184200 "2010-02-26T17:33:48Z")

</div>

For some reason I can’t figure out why I am getting a routing error when I add Paperclip support. I have another test app when similar code is working. I created a new test app first without Paperclip support and it w…

---

## [Rails deployment error](https://www.ruby-forum.com/t/rails-deployment-error/184187)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/rails-deployment-error/184187 "2010-02-26T17:33:48Z")

</div>

Hello guys, i have a production server with Ruby in it. I go to Software/Services- Ruby on Rails, i create a new application, i run it, i create a rewrite but when i go to the URL link i get the rails screen but whe…

---

## [CVS from Excel Encoding issue](https://www.ruby-forum.com/t/cvs-from-excel-encoding-issue/184066)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 5:29pm UTC](https://www.ruby-forum.com/t/cvs-from-excel-encoding-issue/184066 "2010-02-26T17:29:01Z")

</div>

Sorry for the cross post but no takers in the Ruby forum: Using Ruby 1.8 (for Rails 2.3.5) I have a cvs file that was exported from an Excel file. Some of the text contains characters like â€œTest in quotesâ€ (I thin…

---

## [Formhelper & label produces incorrect output?](https://www.ruby-forum.com/t/formhelper-label-produces-incorrect-output/184182)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 5:22pm UTC](https://www.ruby-forum.com/t/formhelper-label-produces-incorrect-output/184182 "2010-02-26T17:22:06Z")

</div>

I’m looking at \\InstantRails-2.0-win\\ruby\\lib\\ruby\\gems\\1.8\\gems\\actionpack-2.3.5\\lib\\action\_view\\helpers\\form\_helper.rb at line 509. The comment reads: # label(:post, :title, "A short title") # # =\> \<label f…

---

## [Naming model attributes using \_id](https://www.ruby-forum.com/t/naming-model-attributes-using-id/184169)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 2\
**Last updated:** [February 26, 2010, 5:02pm UTC](https://www.ruby-forum.com/t/naming-model-attributes-using-id/184169 "2010-02-26T17:02:11Z")

</div>

Is it a good idea to name some model attributes (and table columns) by prefixing \_id to it? For example, an application will collect some transaction ID. transaction\_id would be a good name for it, but it will not be …

---

## [Crummy Breadcrumbs](https://www.ruby-forum.com/t/crummy-breadcrumbs/184199)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/crummy-breadcrumbs/184199 "2010-02-26T16:22:59Z")

</div>

I’m using the latest crummy breadcrumb plugin and I like it but I can’t figure out how to add values (:id for example) to the URL. Plain URLs are obviously no problem. I’ve looked at the crummy.rb code and read the d…

---

## [How to install rmagick on fedora Regards,](https://www.ruby-forum.com/t/how-to-install-rmagick-on-fedora-regards/184184)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 4:03pm UTC](https://www.ruby-forum.com/t/how-to-install-rmagick-on-fedora-regards/184184 "2010-02-26T16:03:39Z")

</div>

hi all i want to run project at local system …see this i m getting some error http://pastie.org/843746 and when i run server http://pastie.org/843748 plz tell me how to install rmagick on fedora Regards, Shyam +91…

---

## [Running tests in a different environment](https://www.ruby-forum.com/t/running-tests-in-a-different-environment/184154)

<div class="topic-metadata">

**Author:** [@byron\_appelt](https://www.ruby-forum.com/u/byron_appelt)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 3:51pm UTC](https://www.ruby-forum.com/t/running-tests-in-a-different-environment/184154 "2010-02-26T15:51:57Z")

</div>

Hi, We have a continuous integration server setup for our rails projects. I would like to set-up a different rails environment for running the tests on the build server so that I don’t have to force all the developer…

---

## [Need something like erb.css](https://www.ruby-forum.com/t/need-something-like-erb-css/184099)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 4\
**Last updated:** [February 26, 2010, 2:27pm UTC](https://www.ruby-forum.com/t/need-something-like-erb-css/184099 "2010-02-26T14:27:05Z")

</div>

Hi! We make Facebook-Apps. We need something to parse css-Files. The matter on Facebook-Apps is, that they want full paths for images. So we have to use image\_path as css attribute. For the moment I put relevant sel…

---

## [:action not working in replace\_html](https://www.ruby-forum.com/t/action-not-working-in-replace-html/184191)

<div class="topic-metadata">

**Author:** [@loganathanbk](https://www.ruby-forum.com/u/loganathanbk)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/action-not-working-in-replace-html/184191 "2010-02-26T13:28:42Z")

</div>

Hi friend, I had used the below line in my Rjs file: page.replace\_html("main",:action =\> "checkout") I have a action called “checkout” but when I use it there is no response. The response is null. I read th…

---

## [Strange class\_eval behavior](https://www.ruby-forum.com/t/strange-class-eval-behavior/184157)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 2\
**Last updated:** [February 26, 2010, 1:03pm UTC](https://www.ruby-forum.com/t/strange-class-eval-behavior/184157 "2010-02-26T13:03:32Z")

</div>

hi again, all. I have the following plugin included in my active record model. What i’d like to do, is define a method inside class\_eval which returns the options has that was passed into it via the acts\_as\_item :foo=\>…

---

## [You have a nil object when you didn't expect it! Error!](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it-error/183715)

<div class="topic-metadata">

**Author:** [@sam](https://www.ruby-forum.com/u/sam)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 11:58am UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it-error/183715 "2010-02-26T11:58:27Z")

</div>

Hi, I’ve created a business form and an address form using scaffolding and I am trying to get the business form to display some information from the address form, but I keep getting an “You have a nil object when you …

---

## [Unable to access log file](https://www.ruby-forum.com/t/unable-to-access-log-file/184188)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 11:01am UTC](https://www.ruby-forum.com/t/unable-to-access-log-file/184188 "2010-02-26T11:01:06Z")

</div>

Hi all ruby script/server =\> Booting Mongrel =\> Rails 2.3.2 application starting on http://0.0.0.0:3000 Rails Error: Unable to access log file. Please ensure that /home/imedsoft/shyam/trunk/log/development.log exist…

---

## [Fwd: how to install rmagick on fedora please help urgent](https://www.ruby-forum.com/t/fwd-how-to-install-rmagick-on-fedora-please-help-urgent/197026)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 2\
**Last updated:** [February 26, 2010, 10:40am UTC](https://www.ruby-forum.com/t/fwd-how-to-install-rmagick-on-fedora-please-help-urgent/197026 "2010-02-26T10:40:36Z")

</div>

hi all i want to run project at local system …see this i m getting some error http://pastie.org/843746 and when i run server http://pastie.org/843748 plz tell me how to install rmagick on fedora Regards, Shyam +91…

---

## [Placing database.yml to svn](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 3\
**Last updated:** [February 26, 2010, 10:12am UTC](https://www.ruby-forum.com/t/placing-database-yml-to-svn/184185 "2010-02-26T10:12:30Z")

</div>

Hi I would like to know is there any serious problem if committing database.yml file to svn? What I am currently doing is committing database.yml.sample file to svn. So an extra step needed in each production setup(l…

---

## [Problem w restful\_authentication](https://www.ruby-forum.com/t/problem-w-restful-authentication/184180)

<div class="topic-metadata">

**Author:** [@angel](https://www.ruby-forum.com/u/angel)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 6:13am UTC](https://www.ruby-forum.com/t/problem-w-restful-authentication/184180 "2010-02-26T06:13:17Z")

</div>

Hi…I’m trying use restf… I installed it, run generate authenticated user account and run good but when I try realize the migration appear: \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Execu…

---

## [Get the path within a template (as in Rails template, not view template)](https://www.ruby-forum.com/t/get-the-path-within-a-template-as-in-rails-template-not-view-template/184174)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 2\
**Last updated:** [February 26, 2010, 6:05am UTC](https://www.ruby-forum.com/t/get-the-path-within-a-template-as-in-rails-template-not-view-template/184174 "2010-02-26T06:05:33Z")

</div>

Hi guys. In one of my Rails templates (the type of template that you pass to “rails -m template.rb”), I’m trying to determine the path of the template. I’ve checked for instance variables from within the template, but…

---

## [Save has-many associations](https://www.ruby-forum.com/t/save-has-many-associations/184178)

<div class="topic-metadata">

**Author:** [@ash34](https://www.ruby-forum.com/u/ash34)\
**Replies:** 0\
**Last updated:** [February 26, 2010, 5:31am UTC](https://www.ruby-forum.com/t/save-has-many-associations/184178 "2010-02-26T05:31:38Z")

</div>

I have the following association class Document \< ActiveRecord::Base has\_many :sections has\_many :items, :through =\> :sections end class Section \< ActiveRecord::Base belongs\_to :document has\_many :items end clas…

---

## [Basic Rails questions](https://www.ruby-forum.com/t/basic-rails-questions/184126)

<div class="topic-metadata">

**Author:** [@Hussein\_B](https://www.ruby-forum.com/u/Hussein_B)\
**Replies:** 5\
**Last updated:** [February 26, 2010, 3:01am UTC](https://www.ruby-forum.com/t/basic-rails-questions/184126 "2010-02-26T03:01:07Z")

</div>

Hey, I’m doing a little research regarding Rails, so please forgive my questions. Prototype is bundled with Rails, is it possible to employ jQuery instead of Prototype? If yes, how much it is hard to do so? does it …

---

## [Why doesn't "config.time\_zone = 'location'" ensure Time.now gives the time back in this time zone?](https://www.ruby-forum.com/t/why-doesnt-config-time-zone-location-ensure-time-now-gives-the-time-back-in-this-time-zone/184171)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 1\
**Last updated:** [February 26, 2010, 2:05am UTC](https://www.ruby-forum.com/t/why-doesnt-config-time-zone-location-ensure-time-now-gives-the-time-back-in-this-time-zone/184171 "2010-02-26T02:05:02Z")

</div>

Hi, I’m after a way of ensuring all my Time work (e.g. using Time.now) uses the time zone I define as default. To do this I’ve set the following line in config/environment.rb: config.time\_zone = ‘Brisbane’ But even…

---

## [Searchlogic form question](https://www.ruby-forum.com/t/searchlogic-form-question/184166)

<div class="topic-metadata">

**Author:** [@sagebrushsoul](https://www.ruby-forum.com/u/sagebrushsoul)\
**Replies:** 0\
**Last updated:** [February 25, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/searchlogic-form-question/184166 "2010-02-25T23:11:46Z")

</div>

Hello, I am a newbie so bear with me:) I have created an app at http://grants.firelightfoundation.org where users can search for grants by certain criteria. I need help on a few things. When I bring up the index, …

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

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