# Rails

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

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

---

## [How Does Locking Work?](https://www.ruby-forum.com/t/how-does-locking-work/177361)

<div class="topic-metadata">

**Author:** [@gers4302](https://www.ruby-forum.com/u/gers4302)\
**Replies:** 1\
**Last updated:** [October 15, 2009, 4:00pm UTC](https://www.ruby-forum.com/t/how-does-locking-work/177361 "2009-10-15T16:00:10Z")

</div>

I’ve been reading about locking for ActiveRecord, but it seems a little vague to me. My situation is this: I have a controller that assigns jobs to people who are logged in. The basic code is: j = Job.find :first, :…

---

## [Edit a model and its has\_many children at once?](https://www.ruby-forum.com/t/edit-a-model-and-its-has-many-children-at-once/177303)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 2\
**Last updated:** [October 15, 2009, 3:43pm UTC](https://www.ruby-forum.com/t/edit-a-model-and-its-has-many-children-at-once/177303 "2009-10-15T15:43:46Z")

</div>

I know there has to be a way to do this. Is there any way to edit a model, and its has\_many children in a single view? Example: class Metadata has\_many :metadata\_entries end If both Metadata and MetadataEntries ha…

---

## [Rails 2.3.x and production mode](https://www.ruby-forum.com/t/rails-2-3-x-and-production-mode/177354)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [October 15, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/rails-2-3-x-and-production-mode/177354 "2009-10-15T15:38:51Z")

</div>

Is it necessary to add ENV\[‘RAILS\_ENV’\] ||= ‘production’ in rails 2.3.x environment.rb? It’s not there by default anymore.

---

## [Curb gem not getting installed](https://www.ruby-forum.com/t/curb-gem-not-getting-installed/177353)

<div class="topic-metadata">

**Author:** [@Nirav\_Parekh](https://www.ruby-forum.com/u/Nirav_Parekh)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/curb-gem-not-getting-installed/177353 "2009-10-15T14:49:20Z")

</div>

Hi, I am trying to install curb on my windows machine. I went through a few web pages directing to install it. I installed curl-7.19.6 binary and provided the path in the environment variables. I can now use the cur…

---

## [Label Reference of Fixtures](https://www.ruby-forum.com/t/label-reference-of-fixtures/177265)

<div class="topic-metadata">

**Author:** [@Stallion](https://www.ruby-forum.com/u/Stallion)\
**Replies:** 3\
**Last updated:** [October 15, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/label-reference-of-fixtures/177265 "2009-10-15T14:41:08Z")

</div>

Hi,… I am having trouble with label reference in fixtures… I have two fixtures like this : cars.yml one: name: Ferari two: name: Volvo drivers.yml one: name: Stall car: Ferari ‘Drivers’ table have a ‘belongs\_to…

---

## [Model.Save causing nil object error](https://www.ruby-forum.com/t/model-save-causing-nil-object-error/177333)

<div class="topic-metadata">

**Author:** [@notmatt](https://www.ruby-forum.com/u/notmatt)\
**Replies:** 2\
**Last updated:** [October 15, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/model-save-causing-nil-object-error/177333 "2009-10-15T14:38:04Z")

</div>

Hello all. Newbie to rails here and I am having a bit of an issue. I have the following models: class Topic \< ActiveRecord::Base validates\_presence\_of :name validates\_length\_of :name, :minimum =\> 3 has\_many :relat…

---

## [LDAP and password protection](https://www.ruby-forum.com/t/ldap-and-password-protection/177350)

<div class="topic-metadata">

**Author:** [@michbukana](https://www.ruby-forum.com/u/michbukana)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 2:28pm UTC](https://www.ruby-forum.com/t/ldap-and-password-protection/177350 "2009-10-15T14:28:29Z")

</div>

Hello, I’m implementing LDAP user authentication as in Enterprise Recipes With Ruby and Rails (http://pragprog.com/titles/msenr/enterprise-recipes-with-ruby-and-rails) and, according to the book, it is pretty simple,…

---

## [Getting the object in fields\_for](https://www.ruby-forum.com/t/getting-the-object-in-fields-for/177344)

<div class="topic-metadata">

**Author:** [@stuart.coyle](https://www.ruby-forum.com/u/stuart.coyle)\
**Replies:** 4\
**Last updated:** [October 15, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/getting-the-object-in-fields-for/177344 "2009-10-15T13:32:39Z")

</div>

I’m using the fields\_for helper with accepts\_nested\_attributes\_for The System model has\_many children. If I do this in my haml template: -form\_for @system do |s| =s.text\_field :name -s.fields\_for :children do |child…

---

## [Download Avira 2010 an key 2014](https://www.ruby-forum.com/t/download-avira-2010-an-key-2014/177346)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 12:46pm UTC](https://www.ruby-forum.com/t/download-avira-2010-an-key-2014/177346 "2009-10-15T12:46:24Z")

</div>

Download Avira 2010 an key 2014 http://bit.ly/2dWFN5 http://bit.ly/2dWFN5 Download Avira 2010 an key 2014 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed…

---

## [Gauge implimentation](https://www.ruby-forum.com/t/gauge-implimentation/177347)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 12:39pm UTC](https://www.ruby-forum.com/t/gauge-implimentation/177347 "2009-10-15T12:39:23Z")

</div>

Hi all, I want to implement gauge in my application to shoe the real time data change effects. So anyone please help me how to implement this in ruby on rails.

---

## [Really need some help with production environment installation](https://www.ruby-forum.com/t/really-need-some-help-with-production-environment-installation/177270)

<div class="topic-metadata">

**Author:** [@jez](https://www.ruby-forum.com/u/jez)\
**Replies:** 16\
**Last updated:** [October 15, 2009, 11:01am UTC](https://www.ruby-forum.com/t/really-need-some-help-with-production-environment-installation/177270 "2009-10-15T11:01:02Z")

</div>

Hi All. Ive heard so much about RoR now Iand i would really like to get my hands dirty. Only trouble is i just cant seem to get it up and running: Ive followed the hivelogic instructions several times on two differen…

---

## [PLZ HELP - ROR on Redhat Linux :: Problem with backgroundrb](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328)

<div class="topic-metadata">

**Author:** [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Replies:** 7\
**Last updated:** [October 15, 2009, 9:30am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328 "2009-10-15T09:30:19Z")

</div>

Hi, I have successfully crossed all the hurdles to install Ruby on rails on a redhat 5 Linux based system. But the last and the biggest hurdle i am facing at this moment is installing backgrounrb :frowning: I follow…

---

## [How can I handle a java bean in rails?](https://www.ruby-forum.com/t/how-can-i-handle-a-java-bean-in-rails/177149)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [October 15, 2009, 9:30am UTC](https://www.ruby-forum.com/t/how-can-i-handle-a-java-bean-in-rails/177149 "2009-10-15T09:30:04Z")

</div>

Hi, I have to interface (using SOAP) with an external system. Most of the methods respond with a java bean. Look like it was done expecting java on the client side always. My question is, how can I interface with tha…

---

## [Re: Ruby on Rails Developer position in San Diego, CA](https://www.ruby-forum.com/t/re-ruby-on-rails-developer-position-in-san-diego-ca/177341)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 9:25am UTC](https://www.ruby-forum.com/t/re-ruby-on-rails-developer-position-in-san-diego-ca/177341 "2009-10-15T09:25:37Z")

</div>

Hello Folks, This is Mita Desai, I am Technical Recruiter with eTouch Systems Corp, Currently we have an opening & I wanted to check on this group if I can get any help. I am finding it very difficult to source for th…

---

## [Simple HTTPS usage](https://www.ruby-forum.com/t/simple-https-usage/176572)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [October 15, 2009, 9:25am UTC](https://www.ruby-forum.com/t/simple-https-usage/176572 "2009-10-15T09:25:06Z")

</div>

Hi, I have to connect via HTTPS to a SOAP service. I have a crt file from the SOAP service server so I can execute the HTTPS requests. Based on the the SOAP service docs I need to import that key (.crt file) using k…

---

## [Announcement: new sanitization plugin acts\_as\_sanitiled](https://www.ruby-forum.com/t/announcement-new-sanitization-plugin-acts-as-sanitiled/177338)

<div class="topic-metadata">

**Author:** [@dasil003](https://www.ruby-forum.com/u/dasil003)\
**Replies:** 0\
**Last updated:** [October 15, 2009, 8:15am UTC](https://www.ruby-forum.com/t/announcement-new-sanitization-plugin-acts-as-sanitiled/177338 "2009-10-15T08:15:57Z")

</div>

I just finished cooking up a version of acts\_as\_textiled that will sanitize after the RedCloth operation to guarantee well-formedness and XSS safety. I chose this approach over input-filtering like xss\_terminate does…

---

## [Attr\_accessor :password](https://www.ruby-forum.com/t/attr-accessor-password/177269)

<div class="topic-metadata">

**Author:** [@ralu](https://www.ruby-forum.com/u/ralu)\
**Replies:** 6\
**Last updated:** [October 15, 2009, 6:25am UTC](https://www.ruby-forum.com/t/attr-accessor-password/177269 "2009-10-15T06:25:43Z")

</div>

attr\_accessor :password dis is small bit of code i have seen in a tutorial . in that example there is no field called password in the database, so how can rails understand its the password field of my database. in my …

---

## [Fields\_for weirdness](https://www.ruby-forum.com/t/fields-for-weirdness/177334)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 15, 2009, 6:21am UTC](https://www.ruby-forum.com/t/fields-for-weirdness/177334 "2009-10-15T06:21:48Z")

</div>

I just did a large upgrade to to Rails 2.3.4 and I am trying to make use of the more modern view features. I have a Newsletter object. Newsletter has many Sections. I also have: accepts\_nested\_attributes\_for :sectio…

---

## [Saving and updating multiple objects](https://www.ruby-forum.com/t/saving-and-updating-multiple-objects/177323)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 4\
**Last updated:** [October 15, 2009, 2:29am UTC](https://www.ruby-forum.com/t/saving-and-updating-multiple-objects/177323 "2009-10-15T02:29:00Z")

</div>

Hi All. First to start, please bare with me as I’m really confused on all this and have been stuck for about a day now, so I’m not sure if I will even be asking the right questions or not, but here goes. I’m trying to…

---

## [Plugin or web service for printing UPS shipping labels](https://www.ruby-forum.com/t/plugin-or-web-service-for-printing-ups-shipping-labels/173026)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 5\
**Last updated:** [October 15, 2009, 12:08am UTC](https://www.ruby-forum.com/t/plugin-or-web-service-for-printing-ups-shipping-labels/173026 "2009-10-15T00:08:22Z")

</div>

Anyone know of a Rails plugin or web service that offers printing of UPS labels? Thanks, Andy

---

## [Conditional layout - show](https://www.ruby-forum.com/t/conditional-layout-show/177304)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [October 14, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/conditional-layout-show/177304 "2009-10-14T22:35:17Z")

</div>

Hello all, I’m learning Ruby on Rails and still kind of new at this. I have two different layouts (standard page and dialog box) for a view (show). How do I set each layout in the controller to show the different lay…

---

## [Tags or Full text tagging?](https://www.ruby-forum.com/t/tags-or-full-text-tagging/177321)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 1\
**Last updated:** [October 14, 2009, 10:28pm UTC](https://www.ruby-forum.com/t/tags-or-full-text-tagging/177321 "2009-10-14T22:28:51Z")

</div>

Hi everyone, I am developing a web apps, and I have to chose which method is better (for me): Tags or Full text tagging ? Usually when a user inserts a certain text content, he have to tags it, so other users can re…

---

## [Will the sky fall down if I install Ruby on Rails?](https://www.ruby-forum.com/t/will-the-sky-fall-down-if-i-install-ruby-on-rails/177263)

<div class="topic-metadata">

**Author:** [@omar.m](https://www.ruby-forum.com/u/omar.m)\
**Replies:** 3\
**Last updated:** [October 14, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/will-the-sky-fall-down-if-i-install-ruby-on-rails/177263 "2009-10-14T22:20:04Z")

</div>

Warning: this is a dumb question I have a Linux server I’ve heard enough about ROR and want to try out and learn What will happen if I install ROR? Will it effect anything else on my server? Like the OS or databases …

---

## [ActiveRecord failing with a default field value of blank](https://www.ruby-forum.com/t/activerecord-failing-with-a-default-field-value-of-blank/177234)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 4\
**Last updated:** [October 14, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/activerecord-failing-with-a-default-field-value-of-blank/177234 "2009-10-14T22:16:33Z")

</div>

I have a bug in my code that’s caught me completely off guard, and I’m hoping that maybe my IT folks updated a gem somewhere that changed something I didn’t know about. I’ve got a field, mq\_unsubscribe, in my mail\_que…

---

## [Active Record associations performance](https://www.ruby-forum.com/t/active-record-associations-performance/177315)

<div class="topic-metadata">

**Author:** [@S\_ai\_S](https://www.ruby-forum.com/u/S_ai_S)\
**Replies:** 1\
**Last updated:** [October 14, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/active-record-associations-performance/177315 "2009-10-14T20:52:13Z")

</div>

Hi, I’m running into a memory performance issue with Active Record associations. I’m tinkering with Redmine, a rails-based project management application. The central model in the application is ‘Project’ which ass…

---

## [Mini\_magick](https://www.ruby-forum.com/t/mini-magick/177317)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/mini-magick/177317 "2009-10-14T20:23:35Z")

</div>

I have setup ImageMagick and mini\_magick. Generally speaking, I’m impressed. The problem seems to be that, unless I’ve missed something, there is not a lot of documentation detailing the use of mini\_magick. I’ve fi…

---

## [Test rails model with Cucumber?](https://www.ruby-forum.com/t/test-rails-model-with-cucumber/177217)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 4\
**Last updated:** [October 14, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/test-rails-model-with-cucumber/177217 "2009-10-14T18:45:46Z")

</div>

Hi all, Can I test my rails model with cucumber? Or is this not what cucumber is used for? If it is, can anyone lead me to documentation on how to use cuke to test Rails model please. I have read the cuke wiki rails …

---

## [A question about submitting parameters using Ajax.Updater](https://www.ruby-forum.com/t/a-question-about-submitting-parameters-using-ajax-updater/177299)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/a-question-about-submitting-parameters-using-ajax-updater/177299 "2009-10-14T17:08:35Z")

</div>

Hi, How can I use Ajax.Updater to send parameters from HTML - param1 and param2 the values of which are not in a form as such using Ajax.Updater in a manner such that on the server side, I use the model’s update\_attr…

---

## [Render partial with nested attributes in different model](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-different-model/197104)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-different-model/197104 "2009-10-14T17:00:23Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

---

## [Render partial with nested attributes in another model](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-another-model/177296)

<div class="topic-metadata">

**Author:** [@Ryan\_Tinsley](https://www.ruby-forum.com/u/Ryan_Tinsley)\
**Replies:** 0\
**Last updated:** [October 14, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/render-partial-with-nested-attributes-in-another-model/177296 "2009-10-14T16:58:02Z")

</div>

Hi everyone, My previous question was posted herehttp://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/dddaeb075789d4b5. I’m starting a new topic as the problems have shifted. I have a rails applicatio…

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

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