# Rails

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

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

---

## [Safariwatir - clicking a dialog box](https://www.ruby-forum.com/t/safariwatir-clicking-a-dialog-box/193418)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 0\
**Last updated:** [August 17, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/safariwatir-clicking-a-dialog-box/193418 "2010-08-17T13:08:07Z")

</div>

Not hopeful that anyone else is doing this but I thought I’d try. safariwatir is a pretty fun way to test an app by remote controlling the browser. Seems to work well. Useful. One thing though (and I think this horse …

---

## [Can't able to debug my application](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 5\
**Last updated:** [August 17, 2010, 1:02pm UTC](https://www.ruby-forum.com/t/cant-able-to-debug-my-application/193414 "2010-08-17T13:02:29Z")

</div>

Hi, I am not able to debug my \*.html.erb file in ruby. The breakpoints leaves when debugging?. Can anybody help me why i can’t do? Regards, Periyasamy.R

---

## [Filter help when attribute changes to call procedure](https://www.ruby-forum.com/t/filter-help-when-attribute-changes-to-call-procedure/193371)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 2\
**Last updated:** [August 17, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/filter-help-when-attribute-changes-to-call-procedure/193371 "2010-08-17T12:10:58Z")

</div>

I have nested models: Assessments has\_many Questions has\_many Answers. I have plans on turning this into an engine where it can be used by other models. There are several fields in both Questions and Answers that, if …

---

## [How to use local javascript library for development and externally hosted for production?](https://www.ruby-forum.com/t/how-to-use-local-javascript-library-for-development-and-externally-hosted-for-production/193409)

<div class="topic-metadata">

**Author:** [@lexer](https://www.ruby-forum.com/u/lexer)\
**Replies:** 5\
**Last updated:** [August 17, 2010, 11:11am UTC](https://www.ruby-forum.com/t/how-to-use-local-javascript-library-for-development-and-externally-hosted-for-production/193409 "2010-08-17T11:11:14Z")

</div>

Hi guys, I want to set up my RoR project to use local javascript library for development and externally hosted for production (for example jquery from google). How it could be achieved? Regards, Alexey Zakharov

---

## [Rails 3.0.0.rc Hosting](https://www.ruby-forum.com/t/rails-3-0-0-rc-hosting/193292)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 4\
**Last updated:** [August 17, 2010, 10:37am UTC](https://www.ruby-forum.com/t/rails-3-0-0-rc-hosting/193292 "2010-08-17T10:37:16Z")

</div>

Hi I’m currently with nativespace.co.uk (good rails and general hosting so far - well for me!). I’ve developed something in Rails 3.0.0.rc and now need to host it … rather than convert back to Rails 2.3.whatever. Nat…

---

## [Dose custom rake task ignore observer?](https://www.ruby-forum.com/t/dose-custom-rake-task-ignore-observer/193410)

<div class="topic-metadata">

**Author:** [@boblu](https://www.ruby-forum.com/u/boblu)\
**Replies:** 0\
**Last updated:** [August 17, 2010, 9:35am UTC](https://www.ruby-forum.com/t/dose-custom-rake-task-ignore-observer/193410 "2010-08-17T09:35:13Z")

</div>

I have an observer which will do some tidy up work around Model A. But when I create or destroy A’s instance inside a custom rake task, the observer seems not get called at all? Can some one explain this?

---

## [Parse XML post as parameters hash](https://www.ruby-forum.com/t/parse-xml-post-as-parameters-hash/193330)

<div class="topic-metadata">

**Author:** [@markb](https://www.ruby-forum.com/u/markb)\
**Replies:** 2\
**Last updated:** [August 17, 2010, 7:25am UTC](https://www.ruby-forum.com/t/parse-xml-post-as-parameters-hash/193330 "2010-08-17T07:25:16Z")

</div>

I am trying to add a controller method that will take an XML post with a schema not related to an existing model and parse it as a hash of parameters. I create apis\_controller.rb: class ApisController \< ApplicationCo…

---

## [How to get plugins to load](https://www.ruby-forum.com/t/how-to-get-plugins-to-load/193407)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 1\
**Last updated:** [August 17, 2010, 6:55am UTC](https://www.ruby-forum.com/t/how-to-get-plugins-to-load/193407 "2010-08-17T06:55:00Z")

</div>

I un-commented the following in my environments.rb file config.plugins = \[ :all, :exception\_notification, :ssl\_requirement\] but I get the following errors: in ensure\_all\_registered\_plugins\_are\_loaded!': Could not loca…

---

## [Using includes in rails models](https://www.ruby-forum.com/t/using-includes-in-rails-models/193255)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 12\
**Last updated:** [August 17, 2010, 5:33am UTC](https://www.ruby-forum.com/t/using-includes-in-rails-models/193255 "2010-08-17T05:33:13Z")

</div>

Hi, I’m trying to use the amatch gem (http://flori.github.com/amatch/) to help with some validations. In the documentation examples (http://flori.github.com/amatch/doc/index.html ), after the require ‘amatch’, there’…

---

## [Is it possible to set default value in a migration based upon another field's value?](https://www.ruby-forum.com/t/is-it-possible-to-set-default-value-in-a-migration-based-upon-another-fields-value/193390)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 2\
**Last updated:** [August 17, 2010, 4:54am UTC](https://www.ruby-forum.com/t/is-it-possible-to-set-default-value-in-a-migration-based-upon-another-fields-value/193390 "2010-08-17T04:54:16Z")

</div>

I’m familiar with setting a field’s default in the create\_table within a migration via :default =\> some value. However, what I’m looking for is to be able to set the default value based upon the value from a differen…

---

## [How to use form\_tag with a model?](https://www.ruby-forum.com/t/how-to-use-form-tag-with-a-model/193369)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 5\
**Last updated:** [August 16, 2010, 10:04pm UTC](https://www.ruby-forum.com/t/how-to-use-form-tag-with-a-model/193369 "2010-08-16T22:04:23Z")

</div>

Editing records of my model requires an intermediate layer of software, so I cannot use form\_for for data aqusition. My edit action calls the form. But submitting the data always ends with a “Unknown action” response: …

---

## [Paperclip -background process](https://www.ruby-forum.com/t/paperclip-background-process/193375)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 3\
**Last updated:** [August 16, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/paperclip-background-process/193375 "2010-08-16T21:28:39Z")

</div>

I have found that it takes about 40-50 seconds from my home computer to upload a file to my website. I have been looking around at various blogs, regarding background processing with paperclip, but it seems all of th…

---

## [Rails Wiki Down](https://www.ruby-forum.com/t/rails-wiki-down/193381)

<div class="topic-metadata">

**Author:** [@xagyg](https://www.ruby-forum.com/u/xagyg)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/rails-wiki-down/193381 "2010-08-16T21:19:21Z")

</div>

The Rails wiki has been down for a number of days now (I think we’re talking a week). I found this thread on the rubyonrails-wiki group: http://groups.google.com/group/rubyonrails-wiki/browse\_thread/thread/fc88ddafd62a…

---

## [Bundler issue](https://www.ruby-forum.com/t/bundler-issue/193378)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/bundler-issue/193378 "2010-08-16T20:58:43Z")

</div>

Hello, When I run bundle install I get the following error message below. Can someone please give me some assistance. Thanks ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/…

---

## [Assert\_redirected\_to partial assertion does not work?](https://www.ruby-forum.com/t/assert-redirected-to-partial-assertion-does-not-work/193377)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/assert-redirected-to-partial-assertion-does-not-work/193377 "2010-08-16T20:54:06Z")

</div>

Hi, From the docs I see: http://api.rubyonrails.org/classes/ActionController/Assertions/ResponseAssertions.html This match can be partial, such that assert\_redirected\_to(:controller =\> “weblog”) will also match the r…

---

## [What's the best way to solve this?](https://www.ruby-forum.com/t/whats-the-best-way-to-solve-this/193336)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 8\
**Last updated:** [August 16, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-solve-this/193336 "2010-08-16T20:29:22Z")

</div>

Hi, Here’s a situation: A product belongs to multiple categories and the categories are top menus of a site. I want to highlight the category of a product when the product detail page is loaded. If there’s some con…

---

## [Is there a better way to do this search?](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-search/193372)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 1\
**Last updated:** [August 16, 2010, 8:27pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-search/193372 "2010-08-16T20:27:50Z")

</div>

Here’s the situation… :customer has\_many :billing\_windows :billing\_window belongs\_to :customer A billing\_window can either be open or closed (it is considered open until its closed\_on attribute is set to a datetime).…

---

## [Rails3: Should nested ActiveModel be treated like nested ActiveRecord](https://www.ruby-forum.com/t/rails3-should-nested-activemodel-be-treated-like-nested-activerecord/193244)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 1\
**Last updated:** [August 16, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/rails3-should-nested-activemodel-be-treated-like-nested-activerecord/193244 "2010-08-16T20:04:59Z")

</div>

I have an User model (ActiveRecord). It has many Addresses (ActiveRecord) and one CreditCard (ActiveModel) When I submit my nested form the CreditCard validations did not fire. So… in my User model I added this so t…

---

## [Form validation and processing w/o model (no Db/ActiveRecord)](https://www.ruby-forum.com/t/form-validation-and-processing-w-o-model-no-db-activerecord/193370)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 2\
**Last updated:** [August 16, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/form-validation-and-processing-w-o-model-no-db-activerecord/193370 "2010-08-16T19:35:43Z")

</div>

All - Trying not to fight rails on this, basically have a form and all the same as would be with an ActiveRecord model except that there is no table. I started out using this article: …which is kind of a hack by …

---

## [Default rendered error file and hash to nice string how to](https://www.ruby-forum.com/t/default-rendered-error-file-and-hash-to-nice-string-how-to/192250)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [August 16, 2010, 6:01pm UTC](https://www.ruby-forum.com/t/default-rendered-error-file-and-hash-to-nice-string-how-to/192250 "2010-08-16T18:01:02Z")

</div>

Hi, When rails raises an exception which file (view?) gets rendered and outputs in the browser the backtrace, request, parameters, etc. I’m asking that because I’d like to know if Rails provides an easy way to conver…

---

## [Multi-steps forms aka wizards](https://www.ruby-forum.com/t/multi-steps-forms-aka-wizards/122672)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 12\
**Last updated:** [August 16, 2010, 5:56pm UTC](https://www.ruby-forum.com/t/multi-steps-forms-aka-wizards/122672 "2010-08-16T17:56:12Z")

</div>

As of now, what is the best approach to create multi-step creation/edition forms (wizards)? Googling does not provide a clear answer.

---

## [Rails\_best\_practices gem 0.4.0 released](https://www.ruby-forum.com/t/rails-best-practices-gem-0-4-0-released/193365)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/rails-best-practices-gem-0-4-0-released/193365 "2010-08-16T17:40:21Z")

</div>

Hi, I have released rails\_best\_practices 0.4.0, rails\_best\_practices is a code metric tool for rails codes, from 0.4.0, it can check the rails3 codes better. The project repository is here: In addition, if you wan…

---

## [Using match with namespace](https://www.ruby-forum.com/t/using-match-with-namespace/193363)

<div class="topic-metadata">

**Author:** [@Oksana\_Utyasheva](https://www.ruby-forum.com/u/Oksana_Utyasheva)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/using-match-with-namespace/193363 "2010-08-16T17:26:52Z")

</div>

I have namespace “admin” and controller “Accounts” with namespace “Admin”. And Controller Accounts has method change\_password. I want have route admin/accounts/change\_password. For this I try using member namespace …

---

## [Trying to use AJAX to delete a new record](https://www.ruby-forum.com/t/trying-to-use-ajax-to-delete-a-new-record/193302)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [August 16, 2010, 5:12pm UTC](https://www.ruby-forum.com/t/trying-to-use-ajax-to-delete-a-new-record/193302 "2010-08-16T17:12:14Z")

</div>

I have some AJAX in my app which works fine to add new people to a list shown on-screen. The problem comes if I try to delete one of the new people. Once saved, there is no problem, as there is an id to delete with. T…

---

## [Best way to render partial](https://www.ruby-forum.com/t/best-way-to-render-partial/193328)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 4\
**Last updated:** [August 16, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/best-way-to-render-partial/193328 "2010-08-16T16:27:43Z")

</div>

Hi, I wonder which is better between \[1\] and \[2\]. \[1\] ------layouts/application.html.erb-------- … \<%= yield %\> ... -------some\_action.html.erb-------- … Page title Some contents... ... \[2\] ------layouts/app…

---

## [What is "line\_items"?](https://www.ruby-forum.com/t/what-is-line-items/193342)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 3\
**Last updated:** [August 16, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/what-is-line-items/193342 "2010-08-16T16:21:52Z")

</div>

hi guys, I am looking at #141 PayPal Basics - RailsCasts and I am trying to figure out what’s line\_items? Is it a reserved keyword representing a row of a multi row form or is it just a variable that’s called line\_it…

---

## [Convert complex SQL to ActiveRecord and Arel](https://www.ruby-forum.com/t/convert-complex-sql-to-activerecord-and-arel/193086)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 3\
**Last updated:** [August 16, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/convert-complex-sql-to-activerecord-and-arel/193086 "2010-08-16T14:56:23Z")

</div>

Hi, I have a fairly complex SQL statement I’d like to convert to AREL SELECT count(matches.id), players.\* FROM clubs INNER JOIN players ON players.club\_id = clubs.id INNER JOIN rankings ON rankings.player\_id = playe…

---

## [\[RE\]\[RE\]\[RE\] i am getting errors when run these commands](https://www.ruby-forum.com/t/re-re-re-i-am-getting-errors-when-run-these-commands/193358)

<div class="topic-metadata">

**Author:** [@Muhammad\_Ifzaal](https://www.ruby-forum.com/u/Muhammad_Ifzaal)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 2:51pm UTC](https://www.ruby-forum.com/t/re-re-re-i-am-getting-errors-when-run-these-commands/193358 "2010-08-16T14:51:06Z")

</div>

I am using ubuntu 10.04.1 … I want to run my coupa application all required gems FOR COUPA-1.5 are gem install rails â€“v 1.2.3 ------------------------------ But i have installed gem install rails (2.3.8) gem inst…

---

## [Restoring blob fileds in Mysql](https://www.ruby-forum.com/t/restoring-blob-fileds-in-mysql/193327)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 0\
**Last updated:** [August 16, 2010, 6:01am UTC](https://www.ruby-forum.com/t/restoring-blob-fileds-in-mysql/193327 "2010-08-16T06:01:23Z")

</div>

Not really a rails question but someone on here may be able to help… I have been backing up a MySQL database for a Rails app for several years with the command: mysqldump myDatabaseName -u root \> myBackupFile.sql The…

---

## [Simple File Upload to a Blob column in a SQLite DB](https://www.ruby-forum.com/t/simple-file-upload-to-a-blob-column-in-a-sqlite-db/192945)

<div class="topic-metadata">

**Author:** [@Xenio](https://www.ruby-forum.com/u/Xenio)\
**Replies:** 9\
**Last updated:** [August 16, 2010, 2:53am UTC](https://www.ruby-forum.com/t/simple-file-upload-to-a-blob-column-in-a-sqlite-db/192945 "2010-08-16T02:53:30Z")

</div>

I have a DB that is already populated with data. There is a table called clubs that has an logo\_big field set up as a blob. I have successfully used send\_data to display the jpg pictures as I need them in the views. I…

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

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