# Rails

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

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

---

## [Delete rows not updated](https://www.ruby-forum.com/t/delete-rows-not-updated/156960)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [January 6, 2009, 12:23am UTC](https://www.ruby-forum.com/t/delete-rows-not-updated/156960 "2009-01-06T00:23:59Z")

</div>

Is there an easy way to delete all rows not updated when done updating a db?

---

## [ROXML versus simple to\_xml](https://www.ruby-forum.com/t/roxml-versus-simple-to-xml/156959)

<div class="topic-metadata">

**Author:** [@tlianza](https://www.ruby-forum.com/u/tlianza)\
**Replies:** 5\
**Last updated:** [January 5, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/roxml-versus-simple-to-xml/156959 "2009-01-05T22:19:43Z")

</div>

How they differ? Does the to\_xml method of the classes array/hash/object is based on ROXML lib? As I see in http://roxml.rubyforge.org/#quickstart, roxml needs we define the class (class Book in the guide) before to …

---

## [Self-referential joins with :through raises TypeError](https://www.ruby-forum.com/t/self-referential-joins-with-through-raises-typeerror/156775)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 8\
**Last updated:** [January 5, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/self-referential-joins-with-through-raises-typeerror/156775 "2009-01-05T22:00:57Z")

</div>

I have a simple referral system composed of Users and Referrals. The users table has an id value, of course. The referrals table has referer\_id and referee\_id. The relationships are set up as follows: class User \< A…

---

## [Checking booleans while maintaining database compatibility](https://www.ruby-forum.com/t/checking-booleans-while-maintaining-database-compatibility/156954)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 4\
**Last updated:** [January 5, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/checking-booleans-while-maintaining-database-compatibility/156954 "2009-01-05T20:39:26Z")

</div>

Users have many invitations and Invitations belongs\_to a User. In the user model: has\_many :open\_invitations, :class\_name =\> ‘Invitation’, :conditions =\> “completed\_at IS NULL AND is\_closed = ‘f’” This works for S…

---

## [Undefined Method 'views'](https://www.ruby-forum.com/t/undefined-method-views/129527)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/undefined-method-views/129527 "2009-01-05T19:28:34Z")

</div>

Hi, I have installed rails\_sql\_views-0.1.0.gem in jruby\\bin directory. I referred this link http://activewarehouse.rubyforge.org/rails\_sql\_views/ to create a database view Code to create a view class CreateViews \< …

---

## [Ruby/RoR problem, openssl.so, undefined symbol, update ruby 1.8.7-\>1.9.1](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874)

<div class="topic-metadata">

**Author:** [@jukkai\_fi](https://www.ruby-forum.com/u/jukkai_fi)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874 "2009-01-05T18:53:58Z")

</div>

Env: SUSE LINUX 10.1 (X86-64) with Ruby 1.8.7-p72, RoR I can get welcome screen, but after that always get Memory Fault Then I installed current stable ruby 1.8.7 (2008-12-29 revision 0) \[x86\_64-linux\] ruby: symbol…

---

## [Success stories on JRails](https://www.ruby-forum.com/t/success-stories-on-jrails/156808)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 6:52pm UTC](https://www.ruby-forum.com/t/success-stories-on-jrails/156808 "2009-01-05T18:52:47Z")

</div>

Hi All, I am new to wonderful Rails, I am starting a project in Rails. Searching for the best UI widgets and plugins that I can used in Rails. Found 2 best 1) ExtJS and 2) JQuery. As I saw ExtJS, it is very large in …

---

## [\[ADV\] Rails Studio Discount Ends Today](https://www.ruby-forum.com/t/adv-rails-studio-discount-ends-today/156952)

<div class="topic-metadata">

**Author:** [@clarkware](https://www.ruby-forum.com/u/clarkware)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/adv-rails-studio-discount-ends-today/156952 "2009-01-05T18:31:34Z")

</div>

Hi Folks, Just a quick reminder that the early-bird discount for the next Rails Studio ends today at midnight. Don’t miss an opportunity to save $300 and kick off your new year by learning Rails directly from Dave T. …

---

## [Foreign key re-assignment does not work in :belongs\_to](https://www.ruby-forum.com/t/foreign-key-re-assignment-does-not-work-in-belongs-to/156947)

<div class="topic-metadata">

**Author:** [@himdel](https://www.ruby-forum.com/u/himdel)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/foreign-key-re-assignment-does-not-work-in-belongs-to/156947 "2009-01-05T18:05:36Z")

</div>

I have a MS SQL database that I am accessing through ODBC. The tables do not conform to Rails defaults so I am having to re-assign the primary keys and foreign keys. I have the following: class DimPlayer \< ActiveReco…

---

## [Determining whether yields have content](https://www.ruby-forum.com/t/determining-whether-yields-have-content/156903)

<div class="topic-metadata">

**Author:** [@chero](https://www.ruby-forum.com/u/chero)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/determining-whether-yields-have-content/156903 "2009-01-05T17:53:17Z")

</div>

Hey All, I would like some logic that would help me determine whether a yield has any content to it. For example: \<%= yield :submenu %\> I only want to display the div around the yield if the yield will have c…

---

## [Advanced authenticated system](https://www.ruby-forum.com/t/advanced-authenticated-system/156918)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 3\
**Last updated:** [January 5, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/advanced-authenticated-system/156918 "2009-01-05T17:22:13Z")

</div>

Hello! I’m looking for an authenticated system with namespaces and subdomains support. I want to make: admin.site.com, manager.site.com, etc Every admin can have different roles, f.i. admin\_a can list users, admin\_b…

---

## [How to render more than one partial?](https://www.ruby-forum.com/t/how-to-render-more-than-one-partial/156637)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 13\
**Last updated:** [January 5, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/how-to-render-more-than-one-partial/156637 "2009-01-05T17:03:22Z")

</div>

I want to render more than one partial in this code: render :partial =\> ‘project\_version’ how can I do this?

---

## [AJAX replace\_html error](https://www.ruby-forum.com/t/ajax-replace-html-error/156941)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 4:27pm UTC](https://www.ruby-forum.com/t/ajax-replace-html-error/156941 "2009-01-05T16:27:31Z")

</div>

I have a query form that performs a complex SQL query based on form params and then creates a bunch of @user\_x collections for display purposes. However, AJAX is bombing out with what seems to be a simple error. Whe…

---

## [REE installed & working, but rubygems load error persists in cmdline](https://www.ruby-forum.com/t/ree-installed-working-but-rubygems-load-error-persists-in-cmdline/156940)

<div class="topic-metadata">

**Author:** [@Sazima](https://www.ruby-forum.com/u/Sazima)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 4:22pm UTC](https://www.ruby-forum.com/t/ree-installed-working-but-rubygems-load-error-persists-in-cmdline/156940 "2009-01-05T16:22:13Z")

</div>

Gents, After a LOT of struggling, I managed to install REE + Passenger on Solaris and everything seems to work when Passenger serves the applications. But there’s one annoying details still pending: when I invoke rai…

---

## [Text\_field\_with\_auto\_complete and Chrome](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-chrome/156939)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-chrome/156939 "2009-01-05T16:18:54Z")

</div>

My auto complete field does not work in Chrome and just wondering if anyone else has had this issue and have you gotten it fixed? My view code: Type in closest home airport: \<%= text\_field\_with\_auto\_complete :airpor…

---

## [Automatically sending a PayPal payment with Ruby](https://www.ruby-forum.com/t/automatically-sending-a-paypal-payment-with-ruby/156937)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 3:54pm UTC](https://www.ruby-forum.com/t/automatically-sending-a-paypal-payment-with-ruby/156937 "2009-01-05T15:54:36Z")

</div>

Hello, I found that Chang Sau S.'s ruby-paypal library can use Mass Payment ( http://ruby-paypal.rubyforge.org/) to automatically send money to any PayPal recipient. What’s confusing is that the RDoc on the site is …

---

## [Polymorphic and has\_one associations](https://www.ruby-forum.com/t/polymorphic-and-has-one-associations/156936)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/polymorphic-and-has-one-associations/156936 "2009-01-05T15:49:54Z")

</div>

I am trying to implement a simple acts\_as\_addressable plugin (using Rails 2.2.2) it’s up and running, but I would like also to give the possibility to define specifics business/billing/private addresses for a defined …

---

## [Create ActiveRecord from Javascript object via JSON](https://www.ruby-forum.com/t/create-activerecord-from-javascript-object-via-json/156929)

<div class="topic-metadata">

**Author:** [@reactorman](https://www.ruby-forum.com/u/reactorman)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/create-activerecord-from-javascript-object-via-json/156929 "2009-01-05T13:37:51Z")

</div>

HI All, I am trying to create an ActiveRecord object from a javascript object via JSON. However the controller fails to set the variables passed within the ActiveRecord object. As an example, a person object has two …

---

## [Sending a form helper data into database](https://www.ruby-forum.com/t/sending-a-form-helper-data-into-database/156926)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/sending-a-form-helper-data-into-database/156926 "2009-01-05T12:41:58Z")

</div>

hi guys i have one model with some attributes in that like{x,y,z…} and i want two form helpers they are selectbox and text\_field for one database field.whenever user tries to select any item in the select box or he c…

---

## [Acts\_as\_ferret ActsAsFerret::IndexNotDefined](https://www.ruby-forum.com/t/acts-as-ferret-actsasferret-indexnotdefined/156916)

<div class="topic-metadata">

**Author:** [@mihserf](https://www.ruby-forum.com/u/mihserf)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-actsasferret-indexnotdefined/156916 "2009-01-05T12:22:10Z")

</div>

Hello! I use acts\_as\_ferret at first. I have several models with acts\_as\_ferret. When I do search in the models User,Article,Therm it works fine. But when I try search in Addition model or in Page model I got followi…

---

## [Rake Task Selecting Text in a Field](https://www.ruby-forum.com/t/rake-task-selecting-text-in-a-field/156925)

<div class="topic-metadata">

**Author:** [@rakenewuser](https://www.ruby-forum.com/u/rakenewuser)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 12:02pm UTC](https://www.ruby-forum.com/t/rake-task-selecting-text-in-a-field/156925 "2009-01-05T12:02:40Z")

</div>

Hi, Everyone can help me on how to select a text in one Field, see the list below; table : tablename1 field : field1 data : {:updated=\>“2009-01-02”, :created=\>“2009-01-01”, :price=\>100.00} inside may task: tablen…

---

## [Rails 2.2.2 and Interlock plugin](https://www.ruby-forum.com/t/rails-2-2-2-and-interlock-plugin/156921)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 11:34am UTC](https://www.ruby-forum.com/t/rails-2-2-2-and-interlock-plugin/156921 "2009-01-05T11:34:26Z")

</div>

Hi there, Does anyone use the Interlock plugin and got it to work with Rails 2.2.2. I am currently upgrading our app to Rails 2.2.2 and its been a pretty nice transition so far until I kept getting the ‘can’t update …

---

## [Rake/cap auto complete for bash](https://www.ruby-forum.com/t/rake-cap-auto-complete-for-bash/156920)

<div class="topic-metadata">

**Author:** [@seb](https://www.ruby-forum.com/u/seb)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 11:32am UTC](https://www.ruby-forum.com/t/rake-cap-auto-complete-for-bash/156920 "2009-01-05T11:32:40Z")

</div>

Hi After reading codes and searching on google, I have developed my own little script to add auto complete for rake/cap to display available tasks.It’s only for bash shell. I will add capistrano-ext for cap completio…

---

## [With\_options](https://www.ruby-forum.com/t/with-options/156906)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 11:09am UTC](https://www.ruby-forum.com/t/with-options/156906 "2009-01-05T11:09:45Z")

</div>

Hi why is this used in routes.rb I have code like below But I did not understand what it means Could anybody please clarify this? map.with\_options(:controller =\> “companies”) do |companies\_map| companies\_map.companie…

---

## [Apache Mongrel Proxying problem](https://www.ruby-forum.com/t/apache-mongrel-proxying-problem/156911)

<div class="topic-metadata">

**Author:** [@eabhvee](https://www.ruby-forum.com/u/eabhvee)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 7:52am UTC](https://www.ruby-forum.com/t/apache-mongrel-proxying-problem/156911 "2009-01-05T07:52:07Z")

</div>

Hi, I have a small rails application I need to deploy in our corporate network. I am using a Windows Vista (i dont have any other option on this part) to host the application. I am using InstantRails and the rails a…

---

## [Errno::ENXIO in Login#index](https://www.ruby-forum.com/t/errno-enxio-in-login-index/156902)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 0\
**Last updated:** [January 5, 2009, 5:34am UTC](https://www.ruby-forum.com/t/errno-enxio-in-login-index/156902 "2009-01-05T05:34:45Z")

</div>

Hi ROR riders’ I’ve some apps working with rails and I got the following error when I tried to log-in. Errno::ENXIO in Login#index Device not configured The app works, but I cannot make a Login. I’ve re-started the …

---

## [How to apply a patch to core rails using git?](https://www.ruby-forum.com/t/how-to-apply-a-patch-to-core-rails-using-git/156730)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 5\
**Last updated:** [January 5, 2009, 5:22am UTC](https://www.ruby-forum.com/t/how-to-apply-a-patch-to-core-rails-using-git/156730 "2009-01-05T05:22:22Z")

</div>

There is a patch for using the :selected option with collection\_select here - #1037 :selected option is ignored for collection\_select - Ruby on Rails - rails. Can someone tell me how to apply it? I have git 1.6.0.1 on…

---

## [How do booleans work?](https://www.ruby-forum.com/t/how-do-booleans-work/156893)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 2\
**Last updated:** [January 5, 2009, 4:15am UTC](https://www.ruby-forum.com/t/how-do-booleans-work/156893 "2009-01-05T04:15:09Z")

</div>

I’m a little confused as to how booleans work in Rails. Which is better in the database? boolean or int(1)? True == 1 and False == 0, right? Using SQLite, I tried to set a value to true inside the database but it gave…

---

## [How to declare a member for a restful resource when it has a nested resource](https://www.ruby-forum.com/t/how-to-declare-a-member-for-a-restful-resource-when-it-has-a-nested-resource/156900)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [January 5, 2009, 4:08am UTC](https://www.ruby-forum.com/t/how-to-declare-a-member-for-a-restful-resource-when-it-has-a-nested-resource/156900 "2009-01-05T04:08:07Z")

</div>

Currently my routes.rb looks like this. map.resources :cities do |cities| cities.resources :venues, :collection =\> {:transfer =\> :any} end Now I have a need to declare something like map.resources :cities, :…

---

## [Rendering partials from outside of Rails](https://www.ruby-forum.com/t/rendering-partials-from-outside-of-rails/156724)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 4\
**Last updated:** [January 5, 2009, 3:28am UTC](https://www.ruby-forum.com/t/rendering-partials-from-outside-of-rails/156724 "2009-01-05T03:28:51Z")

</div>

I have a client Rails project, and I’d like to create a folder outside of the Rails app completely. The client could create vanilla HTML files and drop them into the folder. I’d then like to render those HTML files as…

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

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