# Rails

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

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

---

## [Accesing post array](https://www.ruby-forum.com/t/accesing-post-array/175499)

<div class="topic-metadata">

**Author:** [@jask](https://www.ruby-forum.com/u/jask)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/accesing-post-array/175499 "2009-09-14T23:14:24Z")

</div>

I’ve been following the “Agile Web D. with Rails” book shopping cart tutorial, and I’ve been trying to modify the checkout so it lets me modify the quantity of items on checkout, so far I’ve added a new action on the …

---

## [How to protect editing objects with individual passwords?](https://www.ruby-forum.com/t/how-to-protect-editing-objects-with-individual-passwords/175490)

<div class="topic-metadata">

**Author:** [@Adrian\_D](https://www.ruby-forum.com/u/Adrian_D)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/how-to-protect-editing-objects-with-individual-passwords/175490 "2009-09-14T22:50:33Z")

</div>

Hi, I have a model which has objects which should have always their own password. If I want to edit object1 I will need password a. If I want to edit object2 I will need password b. What is the best way to implement…

---

## [Best way to search - alternatives to full text (thinking sphinx)?](https://www.ruby-forum.com/t/best-way-to-search-alternatives-to-full-text-thinking-sphinx/175438)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/best-way-to-search-alternatives-to-full-text-thinking-sphinx/175438 "2009-09-14T22:48:18Z")

</div>

Currently I am using thinking\_sphinx, but to my dismay, a lot of hosts do not have sphinx installed and are unwilling to install it “because of security reasons”. This leaves me with a very limited option of hosting a…

---

## [Speed in production mode](https://www.ruby-forum.com/t/speed-in-production-mode/175383)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 8\
**Last updated:** [September 14, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/speed-in-production-mode/175383 "2009-09-14T21:27:51Z")

</div>

Hi, I’ve recently been working on a social networking site developed in Rails. Even though it wasn’t very well developed (I only had to do some minor modifications and most of the code was written back in 2006), I no…

---

## [STI, has many, and Controllers](https://www.ruby-forum.com/t/sti-has-many-and-controllers/175481)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/sti-has-many-and-controllers/175481 "2009-09-14T21:12:17Z")

</div>

Hi, I’m trying to change an app I have that right now has this relationship: Team has many Matches I also have the appropriate Team and Match controllers, and routes: map.resources :matches map.resources :teams, …

---

## [Rails Authors](https://www.ruby-forum.com/t/rails-authors/175497)

<div class="topic-metadata">

**Author:** [@rich](https://www.ruby-forum.com/u/rich)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 8:42pm UTC](https://www.ruby-forum.com/t/rails-authors/175497 "2009-09-14T20:42:47Z")

</div>

WDVL.com is looking for authors to cover Ruby on Rails. This a new area for us and we don’t have a lot of coverage in this area. We are looking for short concise tutorials on all aspects of RoR, ranging from beginner …

---

## [Dynamically call object instances](https://www.ruby-forum.com/t/dynamically-call-object-instances/175367)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/dynamically-call-object-instances/175367 "2009-09-14T20:15:02Z")

</div>

Hi again, I have these functions - about five of them - and they are all the exact same code except for which object instances they are referencing. For example, if I have a user object and each user can modify one of…

---

## [Expecting field value and getting record](https://www.ruby-forum.com/t/expecting-field-value-and-getting-record/175446)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/expecting-field-value-and-getting-record/175446 "2009-09-14T19:47:09Z")

</div>

The following short console session illustrates the problem: Loading development environment (Rails 2.3.2) topic=BlogTopic.find(4) =\> #\<BlogTopic id: 4, parent: 2, topic: “Topic Four”, created\_at: “2009-07-13 21:31…

---

## [Challenge for object\_id, Garbage Value](https://www.ruby-forum.com/t/challenge-for-object-id-garbage-value/173633)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 7:41pm UTC](https://www.ruby-forum.com/t/challenge-for-object-id-garbage-value/173633 "2009-09-14T19:41:17Z")

</div>

I am facing strange problem. I have an object @part=MainPart.find(:all) @part.each\_with\_index do |mainpart,index| \<%= mainpart.object\_id%\> end Here problem is that object\_id is reserved for rails. Here o…

---

## [Sessions and subdomains](https://www.ruby-forum.com/t/sessions-and-subdomains/175452)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/sessions-and-subdomains/175452 "2009-09-14T19:26:04Z")

</div>

Hello, I’m currently developing an application in which accounts are managed by subdomains (foo.example.com,bar.example.com…). I was wondering which is the best way to enable users to navigate through different accou…

---

## [Image resizing](https://www.ruby-forum.com/t/image-resizing/175480)

<div class="topic-metadata">

**Author:** [@seenu](https://www.ruby-forum.com/u/seenu)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/image-resizing/175480 "2009-09-14T18:33:22Z")

</div>

Hi, Please let me know wats the best way to resize the images. I have been working on this since many days but failing to install plugins and son on. I am using 2.3 rails version. Thanks in advance. Srinivas.

---

## [Error\_messages\_for question](https://www.ruby-forum.com/t/error-messages-for-question/175486)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/error-messages-for-question/175486 "2009-09-14T16:56:30Z")

</div>

a question about error\_messages\_for: when i retrieve the error messages the error\_messages\_for display a list errors with the name of input followed the customizable string error. But if i want to change the name of …

---

## [Selecting line items](https://www.ruby-forum.com/t/selecting-line-items/175451)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/selecting-line-items/175451 "2009-09-14T16:55:01Z")

</div>

I’m using check\_box but I’m not married to it, probably because I don’t understand it. Basically, I am presenting a list of upcoming payments and I want to select which items are to be paid… \<% form\_for :supptrans, @s…

---

## [\[Newbie\] System Profiler](https://www.ruby-forum.com/t/newbie-system-profiler/175359)

<div class="topic-metadata">

**Author:** [@JBKC85](https://www.ruby-forum.com/u/JBKC85)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/newbie-system-profiler/175359 "2009-09-14T15:49:27Z")

</div>

Hi; I am fairly new to Rails, and I have been wanting to make a System Profiler, one in which is used in a containerized server. (Not Virtualization, but one that uses Jails; FreeBSD). However, I am getting stumped…

---

## [Testing](https://www.ruby-forum.com/t/testing/175474)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/testing/175474 "2009-09-14T15:16:39Z")

</div>

I’d like to be one of the cool kids who does “testing”. Yes, I know it’s essential. Where do I start. I’d just like to start with a/some simple test. My app users authlogic and i have an User.admin boolean flag. I’d …

---

## [Transaction blocks and rollbacks](https://www.ruby-forum.com/t/transaction-blocks-and-rollbacks/175429)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/transaction-blocks-and-rollbacks/175429 "2009-09-14T13:33:49Z")

</div>

Hello, I’m beginning to test a payment method, here is an abbreviated form. How can I rollback and redo the transaction if any of the save calls fail? def process\_payment! # class Payment transaction do success = …

---

## [Controller/view in div](https://www.ruby-forum.com/t/controller-view-in-div/175472)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/controller-view-in-div/175472 "2009-09-14T13:13:10Z")

</div>

I have a page which is invoked and displays its view. However, I wish to put up a lightbox/redbox wherein I want a solitary record’s form displayed for editing, a form that corresponds to a different table than the on…

---

## [Need help on Many to Many Relationships](https://www.ruby-forum.com/t/need-help-on-many-to-many-relationships/175407)

<div class="topic-metadata">

**Author:** [@MS999](https://www.ruby-forum.com/u/MS999)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 1:02pm UTC](https://www.ruby-forum.com/t/need-help-on-many-to-many-relationships/175407 "2009-09-14T13:02:31Z")

</div>

Hi, Does anyone know where I can find a full step by step tutorial on Many to Many Relationships with Rails or can describe the steps in inserting data into the join tables, displaying the connections, etc… I don’t …

---

## [Web site synch/publishing/via proxy tool - any ideas?](https://www.ruby-forum.com/t/web-site-synch-publishing-via-proxy-tool-any-ideas/196999)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 1:00pm UTC](https://www.ruby-forum.com/t/web-site-synch-publishing-via-proxy-tool-any-ideas/196999 "2009-09-14T13:00:52Z")

</div>

Hi, Question - Anyone know of a ruby tool that does this? (or something close to it)…or else http/web libraries that might be a good start to building this if nothing exists? (or even a non-ruby tool if you know of …

---

## [Howto: Add my own functionality to a plugin?](https://www.ruby-forum.com/t/howto-add-my-own-functionality-to-a-plugin/175464)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 11:33am UTC](https://www.ruby-forum.com/t/howto-add-my-own-functionality-to-a-plugin/175464 "2009-09-14T11:33:37Z")

</div>

The plugin in this case is acts\_as\_taggable\_on\_steroid, which has classes Tag, Tagging and TagList, and a module ActiveRecord::Acts::Taggable which adds the acts\_as\_taggable method to all classes (so that when the cal…

---

## [Defaults, on-site-text, other static data in rails](https://www.ruby-forum.com/t/defaults-on-site-text-other-static-data-in-rails/175463)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 11:00am UTC](https://www.ruby-forum.com/t/defaults-on-site-text-other-static-data-in-rails/175463 "2009-09-14T11:00:44Z")

</div>

Rails theory question: What is the best way to store “static” values? I.e., the default preferences for new users, or strings found throughout a site (all text displayed to the end user is in a DB so that languages a…

---

## [Using barcode-generator's 'barcode' method in the model](https://www.ruby-forum.com/t/using-barcode-generators-barcode-method-in-the-model/175462)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:46am UTC](https://www.ruby-forum.com/t/using-barcode-generators-barcode-method-in-the-model/175462 "2009-09-14T10:46:14Z")

</div>

Hi, I am using matisimitsu’s barcode-generator for barcodes in PDFs with Prawn and Prawnto. GitHub - matsimitsu/barcode-generator: Rails plugin to generate/display barcode in your views. I want to use the barcode met…

---

## [Problem configuring database with rubyonrails](https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460)

<div class="topic-metadata">

**Author:** [@YevlempySHarsh\_Verm](https://www.ruby-forum.com/u/YevlempySHarsh_Verm)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:21am UTC](https://www.ruby-forum.com/t/problem-configuring-database-with-rubyonrails/175460 "2009-09-14T10:21:38Z")

</div>

Hi, I was trying to configure sqlite3 as a backend to work with rubyonrails. First i did yum install sqlite and got the package installed. Then i did .I got an error message: Building native extensions. This c…

---

## [Backgroundrb: No such worker](https://www.ruby-forum.com/t/backgroundrb-no-such-worker/175391)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 10:10am UTC](https://www.ruby-forum.com/t/backgroundrb-no-such-worker/175391 "2009-09-14T10:10:31Z")

</div>

Hi, I’m trying to get backgroundrb working for one of my apps. I’ve installed it as a plugin, got a problem with not being able to find packet\_finder\_runner out of the way, generated a worker, restarted backgroundrb …

---

## [Generated scaffold code giving an error](https://www.ruby-forum.com/t/generated-scaffold-code-giving-an-error/175458)

<div class="topic-metadata">

**Author:** [@bradleylandis](https://www.ruby-forum.com/u/bradleylandis)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:08am UTC](https://www.ruby-forum.com/t/generated-scaffold-code-giving-an-error/175458 "2009-09-14T10:08:45Z")

</div>

I am running ruby 1.9.1p243 and rails 2.3.4. after generating scaffold code via: ruby script/generate scaffold Product I go to the products page and click on “new product” and I get the following error: NoMethodErro…

---

## [Load xml data local infile 'person.xml' into table person](https://www.ruby-forum.com/t/load-xml-data-local-infile-person-xml-into-table-person/175459)

<div class="topic-metadata">

**Author:** [@zubair](https://www.ruby-forum.com/u/zubair)\
**Replies:** 1\
**Last updated:** [September 14, 2009, 10:05am UTC](https://www.ruby-forum.com/t/load-xml-data-local-infile-person-xml-into-table-person/175459 "2009-09-14T10:05:49Z")

</div>

Hi This is zubair working in cleartrip on mysql. when trying to load xml file into mysql table … load xml data local infile ‘person.xml’ into table person ERROR: ERROR 1064 (42000): You have an error in your SQL s…

---

## [Quote\_ident](https://www.ruby-forum.com/t/quote-ident/172766)

<div class="topic-metadata">

**Author:** [@rrg1970](https://www.ruby-forum.com/u/rrg1970)\
**Replies:** 5\
**Last updated:** [September 14, 2009, 10:02am UTC](https://www.ruby-forum.com/t/quote-ident/172766 "2009-09-14T10:02:18Z")

</div>

We have updated the rails version from 2.1.1 to 2.3.3 and we get the folowing error message: undefined method \`quote\_ident’ for PGconn:Class Any idea about it? Thanks in advance.

---

## [Cleaning up code, eliminating repetition](https://www.ruby-forum.com/t/cleaning-up-code-eliminating-repetition/175382)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 3\
**Last updated:** [September 14, 2009, 10:01am UTC](https://www.ruby-forum.com/t/cleaning-up-code-eliminating-repetition/175382 "2009-09-14T10:01:43Z")

</div>

Hi guys, I am currently trying to clean up my views. As you can see in the example below, I’m having a new link to create a new resource dynamically. The controller is given by the params\[:controller\]. This way I cre…

---

## [Favorite Testing Frameworks](https://www.ruby-forum.com/t/favorite-testing-frameworks/175455)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [September 14, 2009, 9:26am UTC](https://www.ruby-forum.com/t/favorite-testing-frameworks/175455 "2009-09-14T09:26:00Z")

</div>

Hey everyone, With my recent run in with fixtures in the testing suite I was looking into others. From what I can gather the all start line up is: rspec -\> model and controller testing cucumber w/ webrat - \> integra…

---

## [RMagick Installation woes](https://www.ruby-forum.com/t/rmagick-installation-woes/175453)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [September 14, 2009, 9:17am UTC](https://www.ruby-forum.com/t/rmagick-installation-woes/175453 "2009-09-14T09:17:13Z")

</div>

Hi, I need to install Rmagick to get re-sizing working with Paperclip. My dev machine is on Mac OSX Leopard and the server is on Ubuntu Intrepid 8.1 I dint have Macports or wget at first. I was following this article…

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

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