# Rails

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

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

---

## [Functional testing with restful authentication](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/145562)

<div class="topic-metadata">

**Author:** [@dark-omen](https://www.ruby-forum.com/u/dark-omen)\
**Replies:** 5\
**Last updated:** [August 14, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/functional-testing-with-restful-authentication/145562 "2008-08-14T15:32:28Z")

</div>

I am having trouble getting functional tests to working with restful authentication. I have tried this: require File.dirname(FILE) + ‘/…/test\_helper’ require ‘users\_controller’ class UsersControllerTest \< ActionCont…

---

## [Need help with join / edit](https://www.ruby-forum.com/t/need-help-with-join-edit/145797)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [August 14, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/need-help-with-join-edit/145797 "2008-08-14T15:11:00Z")

</div>

Hi i have a issue here: Model: COMPANY Model: USER JOIN-MODEL: user\_company in the index view of the user i would like to have a second row per each user to insert a index / vire partial from the User-Company-Join …

---

## [Submit AJAX form with select onchange](https://www.ruby-forum.com/t/submit-ajax-form-with-select-onchange/145843)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [August 14, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/submit-ajax-form-with-select-onchange/145843 "2008-08-14T14:57:18Z")

</div>

Hey all, I’m trying to submit the following ajax form using the onchange on a rails select. \<% form\_remote\_tag(:url =\> { :action =\> :add\_facilitator }, :html =\> {:id =\> ‘add\_facilitator’}) do %\> \<%= select :facilita…

---

## [Find encoding (charset) of an uploaded file](https://www.ruby-forum.com/t/find-encoding-charset-of-an-uploaded-file/145837)

<div class="topic-metadata">

**Author:** [@deegee](https://www.ruby-forum.com/u/deegee)\
**Replies:** 4\
**Last updated:** [August 14, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/find-encoding-charset-of-an-uploaded-file/145837 "2008-08-14T14:38:33Z")

</div>

Hi, I’m having users upload CSV files, but find a problem with files having different encodings. My default is UTF-8, so when users upload a ISO-8859-1 encoded file, some characters get munged. I have a standard file…

---

## [How pagination works in rails](https://www.ruby-forum.com/t/how-pagination-works-in-rails/145840)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [August 14, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/how-pagination-works-in-rails/145840 "2008-08-14T14:38:33Z")

</div>

Hi, I am using the Paginator API for pagination. I have to show 16 objects per page. For finding objects I am quering on database and finding all objects. After that I am pagination that objects by using the Paginator…

---

## [RoR and client-side MVC](https://www.ruby-forum.com/t/ror-and-client-side-mvc/145842)

<div class="topic-metadata">

**Author:** [@sohdubom](https://www.ruby-forum.com/u/sohdubom)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/ror-and-client-side-mvc/145842 "2008-08-14T13:49:37Z")

</div>

Hi. RoR does a great job with MVC pattern in the server-side, plus itÂ´s integrated with great javascript libraries: scriptaculous and prototype, but these libraries are not mvc frwrks. (not that this is a problem) It…

---

## [Using Order on Related Tables](https://www.ruby-forum.com/t/using-order-on-related-tables/145839)

<div class="topic-metadata">

**Author:** [@MJohnH](https://www.ruby-forum.com/u/MJohnH)\
**Replies:** 5\
**Last updated:** [August 14, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/using-order-on-related-tables/145839 "2008-08-14T13:27:36Z")

</div>

I have tables related as below: class Partner \< ActiveRecord::Base :org\_name, :string amongst other things has\_many :partner\_contacts end class PartnerContact \< ActiveRecord::Base :partner…

---

## [Muthythreading in ruby](https://www.ruby-forum.com/t/muthythreading-in-ruby/197221)

<div class="topic-metadata">

**Author:** [@kajamohaideen\_2003](https://www.ruby-forum.com/u/kajamohaideen_2003)\
**Replies:** 1\
**Last updated:** [August 14, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/muthythreading-in-ruby/197221 "2008-08-14T13:06:30Z")

</div>

we people are new team for ruby. we trying to put multithreading in our code. how is it possible? we want to read a message from queue and process that message parellaly and finally insert the message to the DB. Can y…

---

## [Problem with ActionMailer#template\_root in Rails 2.1](https://www.ruby-forum.com/t/problem-with-actionmailer-template-root-in-rails-2-1/145833)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 1\
**Last updated:** [August 14, 2008, 11:00am UTC](https://www.ruby-forum.com/t/problem-with-actionmailer-template-root-in-rails-2-1/145833 "2008-08-14T11:00:26Z")

</div>

Hi, I’m using sms\_fu plugin and after upgrading Rails to 2.1 it breaks. There’s ActionMailer (in vendor/plugins/sms\_fu/lib) that has template\_root method defined: def template\_root “#{File.dirname(FILE)}/…/views” e…

---

## [Web app for implementation footprint of web apps (!)](https://www.ruby-forum.com/t/web-app-for-implementation-footprint-of-web-apps/145828)

<div class="topic-metadata">

**Author:** [@kleas](https://www.ruby-forum.com/u/kleas)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 10:25am UTC](https://www.ruby-forum.com/t/web-app-for-implementation-footprint-of-web-apps/145828 "2008-08-14T10:25:15Z")

</div>

aloha, I was wondering (http://inormalized.com/2008/8/13/web-app- implementation-footprint) if there is any sort of web app out there which holds information about tools used on other web apps. Like eg nubyonrails.co…

---

## [Test the value of an XML node](https://www.ruby-forum.com/t/test-the-value-of-an-xml-node/145824)

<div class="topic-metadata">

**Author:** [@iga](https://www.ruby-forum.com/u/iga)\
**Replies:** 1\
**Last updated:** [August 14, 2008, 10:13am UTC](https://www.ruby-forum.com/t/test-the-value-of-an-xml-node/145824 "2008-08-14T10:13:33Z")

</div>

I’m accessing a log in scheme from a web service and I want to be able to check the returned values in order provide some form of validation and error checking. For example, when I submit the log in request, the servi…

---

## [Photobucket library?](https://www.ruby-forum.com/t/photobucket-library/145826)

<div class="topic-metadata">

**Author:** [@acampos](https://www.ruby-forum.com/u/acampos)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 9:57am UTC](https://www.ruby-forum.com/t/photobucket-library/145826 "2008-08-14T09:57:44Z")

</div>

I’ve searched a bit and haven’t turned anything up, but I was wondering if anyone was aware of a Ruby/Rails library that provides an interface to the Photobucket API. Thought it was worth asking before I rolled my ow…

---

## [RoR Developers](https://www.ruby-forum.com/t/ror-developers/145820)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 9:41am UTC](https://www.ruby-forum.com/t/ror-developers/145820 "2008-08-14T09:41:19Z")

</div>

We need RoR developers for a client headquartered in Chicago. Key skills are proficiency in Ruby developing web applications, strong Unix/Linux experience, SQL and solid experience with Javascript, CSS as well as AJAX…

---

## [Indexing of association](https://www.ruby-forum.com/t/indexing-of-association/145347)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 3\
**Last updated:** [August 14, 2008, 9:04am UTC](https://www.ruby-forum.com/t/indexing-of-association/145347 "2008-08-14T09:04:58Z")

</div>

Dear Which table do we index when we have many\_to\_many relations on rails? since the foreign key is not in any of the main tables; when I query, i use eager loading. However, the performance is kind of slow, because …

---

## [Validate has\_many relationship with conditions?](https://www.ruby-forum.com/t/validate-has-many-relationship-with-conditions/145792)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 2\
**Last updated:** [August 14, 2008, 8:54am UTC](https://www.ruby-forum.com/t/validate-has-many-relationship-with-conditions/145792 "2008-08-14T08:54:41Z")

</div>

I need to validate that I have at least one relationship with a certain condition. My code so far: class User \< ActiveRecord::Base belongs\_to :user\_type end class UserType \< ActiveRecord::Base has\_many :users has…

---

## [Last Chance: RailsConf Europe 2008 Pass For Sale](https://www.ruby-forum.com/t/last-chance-railsconf-europe-2008-pass-for-sale/145813)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 8:37am UTC](https://www.ruby-forum.com/t/last-chance-railsconf-europe-2008-pass-for-sale/145813 "2008-08-14T08:37:33Z")

</div>

I have one full conference and tutorials pass for RailsConf Europe 2008 for sale. The conference is being held in Berlin and runs from 2-4 September. Unfortunately I’m not now able to attend so can offer the pass for …

---

## [Overriding attribute getters in ActiveRecord models](https://www.ruby-forum.com/t/overriding-attribute-getters-in-activerecord-models/145714)

<div class="topic-metadata">

**Author:** [@daniel304](https://www.ruby-forum.com/u/daniel304)\
**Replies:** 5\
**Last updated:** [August 14, 2008, 8:12am UTC](https://www.ruby-forum.com/t/overriding-attribute-getters-in-activerecord-models/145714 "2008-08-14T08:12:14Z")

</div>

I’m trying to do subj, but getting wrong results. Let’s consider a model Person with one attrubute “full\_name”. I wrote the following code to compose full name of first name and last name: class Person \< ActiveRecord:…

---

## [Model/View communication](https://www.ruby-forum.com/t/model-view-communication/145778)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 14, 2008, 4:35am UTC](https://www.ruby-forum.com/t/model-view-communication/145778 "2008-08-14T04:35:17Z")

</div>

Is there a way other than the DB to get messaging to the view while in a method in the model? I have an ajax routing that does some testing on some eqpt and I would like to provide some feedback in the view as to wha…

---

## [Daemons ... this should be simple](https://www.ruby-forum.com/t/daemons-this-should-be-simple/145790)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [August 14, 2008, 2:36am UTC](https://www.ruby-forum.com/t/daemons-this-should-be-simple/145790 "2008-08-14T02:36:28Z")

</div>

Hey everyone, I have a very (hopefully) dumb question about running daemons with the daemons gem. This is my set up (using strictly the code from the daemons API page): myserver.rb loop do sleep(5) end myserver\_co…

---

## [Month, Day etc. names in other languages other than English](https://www.ruby-forum.com/t/month-day-etc-names-in-other-languages-other-than-english/145799)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 2:20am UTC](https://www.ruby-forum.com/t/month-day-etc-names-in-other-languages-other-than-english/145799 "2008-08-14T02:20:06Z")

</div>

Hi all, I was wondering if it was possible to internationalize the constant month and day names, used by DateTime class (for example), in to something other than English? Using gettext I am able to internationalize m…

---

## [ThinkingSphinx Indexing Problem](https://www.ruby-forum.com/t/thinkingsphinx-indexing-problem/145798)

<div class="topic-metadata">

**Author:** [@Avishai](https://www.ruby-forum.com/u/Avishai)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 2:12am UTC](https://www.ruby-forum.com/t/thinkingsphinx-indexing-problem/145798 "2008-08-14T02:12:30Z")

</div>

Hi, I’ve just installed Thinking Sphinx per the Railscasts instructions, and everything seems to have installed fine, but I can’t seem to get the indexer task to run: I have a model called Place: define\_index do ind…

---

## [\[ANN\] REST with Rails: A Rails Workshop for Beginners](https://www.ruby-forum.com/t/ann-rest-with-rails-a-rails-workshop-for-beginners/145793)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 0\
**Last updated:** [August 14, 2008, 12:03am UTC](https://www.ruby-forum.com/t/ann-rest-with-rails-a-rails-workshop-for-beginners/145793 "2008-08-14T00:03:09Z")

</div>

Announcing “REST with Rails,” a fun, one-day workshop for those new to developing RESTful applications in Rails. Saturday, October 4, 2008, 8:30am - 5:00pm Austin, Texas (downtown) $295 per person Geared for those w…

---

## [Announcing a newly developed database adapter for MonetDB](https://www.ruby-forum.com/t/announcing-a-newly-developed-database-adapter-for-monetdb/145504)

<div class="topic-metadata">

**Author:** [@Michalis\_P](https://www.ruby-forum.com/u/Michalis_P)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/announcing-a-newly-developed-database-adapter-for-monetdb/145504 "2008-08-13T23:49:06Z")

</div>

Hello, I’ve developed an ActiveRecord adapter for MonetDB, and I would be glad if you people give it a try and give me some feedback and possibly join the project as developers/maintainers. MonetDB is an open source …

---

## [Rake gems install with local .gem files](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/196780)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/rake-gems-install-with-local-gem-files/196780 "2008-08-13T23:28:35Z")

</div>

Hi All, I’d like to take advantage of Rails 2.1 config.gem and rake gems install when deploying (with Capistrano). Unfortunately, outgoing HTTP is blocked in our production environment. I’m considering keeping a dire…

---

## [After\_initialize isn't being called on AR object](https://www.ruby-forum.com/t/after-initialize-isnt-being-called-on-ar-object/145786)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [August 13, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/after-initialize-isnt-being-called-on-ar-object/145786 "2008-08-13T23:16:19Z")

</div>

All, I have the following AR object: class UploadedFile \< ActiveRecord::Base protected def after\_initialize self.path = ‘abc’ end end When I call UploadedFile.new and pass it a value for the “name” attribute, I …

---

## [Backgroundrb](https://www.ruby-forum.com/t/backgroundrb/145686)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 7\
**Last updated:** [August 13, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/backgroundrb/145686 "2008-08-13T22:43:29Z")

</div>

Backgroundrb is driving me crazy. I am trying to schedule a simple job - extremely simple so that I can understand how it thinks. I have gone through the the Tutorial/Notes/Examples at: http://backgroundrb.rubyforge…

---

## [Database.yml and sqlite3 errors](https://www.ruby-forum.com/t/database-yml-and-sqlite3-errors/121066)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 8\
**Last updated:** [August 13, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/database-yml-and-sqlite3-errors/121066 "2008-08-13T22:20:57Z")

</div>

I’m going by the tutorial at \<http://www.sitepoint.com/article/ruby-on- rails\> but am having problems with the database.yml file, I believe. This may be due to my using a different platform than the author. I’ve trie…

---

## [Local .gem files and rake gems install](https://www.ruby-forum.com/t/local-gem-files-and-rake-gems-install/145782)

<div class="topic-metadata">

**Author:** [@gsterndale](https://www.ruby-forum.com/u/gsterndale)\
**Replies:** 0\
**Last updated:** [August 13, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/local-gem-files-and-rake-gems-install/145782 "2008-08-13T22:12:25Z")

</div>

I’d like to take advantage of Rails 2.1 config.gem and rake gems install when deploying (with Capistrano). Unfortunately, outgoing HTTP is blocked in our production environment. I’m considering keeping a directory of …

---

## [Asset Host Authentication](https://www.ruby-forum.com/t/asset-host-authentication/145587)

<div class="topic-metadata">

**Author:** [@iplat](https://www.ruby-forum.com/u/iplat)\
**Replies:** 4\
**Last updated:** [August 13, 2008, 9:35pm UTC](https://www.ruby-forum.com/t/asset-host-authentication/145587 "2008-08-13T21:35:30Z")

</div>

I’m having a problem using assets generated by actions that require authentication. For each asset server i must authenticate with the server. Is there a way to automate the authentication process? Or even authenticat…

---

## [How do I tell an object it is invalid?](https://www.ruby-forum.com/t/how-do-i-tell-an-object-it-is-invalid/145750)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 13, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/how-do-i-tell-an-object-it-is-invalid/145750 "2008-08-13T21:24:56Z")

</div>

Hi, How do I tell an object that it is not valid? My model is class EcOrder \< ActiveRecord::Base has\_many :ec\_line\_items validates\_associated :ec\_line\_items … end and in addition to the above, I want the model to…

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

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