# Rails

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

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

---

## [Nested forms, extreme weirdness](https://www.ruby-forum.com/t/nested-forms-extreme-weirdness/169433)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/nested-forms-extreme-weirdness/169433 "2009-06-03T19:09:21Z")

</div>

I took a look at nested forms a few weeks ago, played with it a bit and it all seemed fine. Now I need to actually use it and it’s blown up in my face. I’ve got in my account.rb has\_many :subscriptions and accepts\_…

---

## [Polymorphism question](https://www.ruby-forum.com/t/polymorphism-question/169420)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/polymorphism-question/169420 "2009-06-03T18:22:51Z")

</div>

I am setting up a tagging system using polymorphism and it works about half the way I would expect it to. One thing in my app that can be tagged is blogs. I am able to tag them and it works as I expect when I save t…

---

## [The error occurred while evaluating nil.chop](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-chop/169395)

<div class="topic-metadata">

**Author:** [@yasir](https://www.ruby-forum.com/u/yasir)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-chop/169395 "2009-06-03T17:45:54Z")

</div>

Hi, I am new to Ruby, while running a project I get the following errors: C:\\cairns\\cairns\\cairns\\script\>ruby server =\> Booting WEBrick… server: No such file or directory - uname C:/cairns/cairns/cairns/app/models/n…

---

## [RE: datetime\_select causing 1 error(s) on assignment of multiparameter attributes](https://www.ruby-forum.com/t/re-datetime-select-causing-1-error-s-on-assignment-of-multiparameter-attributes/169398)

<div class="topic-metadata">

**Author:** [@Gregg\_Turnbull](https://www.ruby-forum.com/u/Gregg_Turnbull)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/re-datetime-select-causing-1-error-s-on-assignment-of-multiparameter-attributes/169398 "2009-06-03T16:58:15Z")

</div>

I have recently updated to rails gem: 2.2.2 and am getting an error when datetime\_select or a plugin using datetime\_select (unobtrusive\_datetime\_picker - GitHub - brianjlandau/unobtrusive\_date\_picker: NO LONGER MAINTA…

---

## [TINY MCE Jrails media upload](https://www.ruby-forum.com/t/tiny-mce-jrails-media-upload/169426)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/tiny-mce-jrails-media-upload/169426 "2009-06-03T16:38:15Z")

</div>

Hi Can anybody give me idea to do media upload in rails using tiny\_mce and jrails ? Thanks ! – Ruby on Rails Developer

---

## [Implementing an atomic wizard with new objects](https://www.ruby-forum.com/t/implementing-an-atomic-wizard-with-new-objects/169421)

<div class="topic-metadata">

**Author:** [@charan](https://www.ruby-forum.com/u/charan)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/implementing-an-atomic-wizard-with-new-objects/169421 "2009-06-03T16:11:41Z")

</div>

Hello after having searched the forums I couldn’t find any soution to this problem: I want to implement a multi step form across models. Step 1: Enter requested username/ password - User model Step 2: Enter Profile i…

---

## [Idiom for Class variables](https://www.ruby-forum.com/t/idiom-for-class-variables/169370)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 3\
**Last updated:** [June 3, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/idiom-for-class-variables/169370 "2009-06-03T16:03:54Z")

</div>

I want do do something like this class MyClass def default self.default end def self.default return @@default if @@default self.default = ‘this’ end def self.default=(value) @@default = value end end a = MyC…

---

## [Ja\_tiny\_mce Help Needed](https://www.ruby-forum.com/t/ja-tiny-mce-help-needed/169415)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/ja-tiny-mce-help-needed/169415 "2009-06-03T14:06:00Z")

</div>

Hi I have jrails plugin installed. I am using ja\_tiny\_mce plugin and it works like charm for me. Image upload works fine. I wanted to do media upload also, so i what i did downloaded advmedia plugin and putted it in…

---

## [Blackbook::BadCredentialsError: Must be authenticated to access contacts](https://www.ruby-forum.com/t/blackbook-must-be-authenticated-to-access-contacts/169409)

<div class="topic-metadata">

**Author:** [@hemanth](https://www.ruby-forum.com/u/hemanth)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 11:57am UTC](https://www.ruby-forum.com/t/blackbook-must-be-authenticated-to-access-contacts/169409 "2009-06-03T11:57:34Z")

</div>

Hi, i get Blackbook::BadCredentialsError: Must be authenticated to access contacts. from /home/hemanth/5latest/2\_0\_branch/vendor/plugins/cheald-blackbook/ lib/blackbook/importer/gmail.rb:58:in scrape\_contacts' from …

---

## [Anyone knows how to do left join as well as inner join in same query](https://www.ruby-forum.com/t/anyone-knows-how-to-do-left-join-as-well-as-inner-join-in-same-query/169402)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 11:38am UTC](https://www.ruby-forum.com/t/anyone-knows-how-to-do-left-join-as-well-as-inner-join-in-same-query/169402 "2009-06-03T11:38:43Z")

</div>

Hello All, Is rails supporting left and inner joins in same query ?? I dont wanted to do it using find\_by\_sql. I have model having belongs\_to and has\_one associations. I wanted to something like… Model.find ( :all, …

---

## [Ruby mysql error](https://www.ruby-forum.com/t/ruby-mysql-error/169252)

<div class="topic-metadata">

**Author:** [@gourav](https://www.ruby-forum.com/u/gourav)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 10:56am UTC](https://www.ruby-forum.com/t/ruby-mysql-error/169252 "2009-06-03T10:56:57Z")

</div>

Hi, I am getting a mysql error while running a ruby file on my system (Windows): D:/ruby/lib/ruby/1.8/mysql.rb:453:in read': Client does not support authentication protocol requested by server; consider upgrading MySQ…

---

## [Migrating from sql\_session\_store to mem\_cache\_store](https://www.ruby-forum.com/t/migrating-from-sql-session-store-to-mem-cache-store/169399)

<div class="topic-metadata">

**Author:** [@Giridhar](https://www.ruby-forum.com/u/Giridhar)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 10:02am UTC](https://www.ruby-forum.com/t/migrating-from-sql-session-store-to-mem-cache-store/169399 "2009-06-03T10:02:32Z")

</div>

Hi , We are planning to move from sql\_session\_store to mem\_cache\_store is there a way we can migrate the existing sessions in the db to memcached ? ~Giridhar

---

## [No such file to load -- openssl (RuntimeError)](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344)

<div class="topic-metadata">

**Author:** [@cabaret](https://www.ruby-forum.com/u/cabaret)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 9:45am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344 "2009-06-03T09:45:29Z")

</div>

Hi. I have been trying all day to set up RoR; I got Ruby, Rails, Rubygems. Everything is installed (they all react to --version). However, when I try to run the webserver, I get the following message (terminal output …

---

## [Table less model](https://www.ruby-forum.com/t/table-less-model/169310)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [June 3, 2009, 9:07am UTC](https://www.ruby-forum.com/t/table-less-model/169310 "2009-06-03T09:07:49Z")

</div>

I want to have a simple model without a table for ACL purposes because there aren’t going to be many methods at all. How could I have a Model like… ControllerMethod securitylevel users\_list 8 reports\_ar …

---

## [\[JOBS\] Seeking developer in Los Angeles Area](https://www.ruby-forum.com/t/jobs-seeking-developer-in-los-angeles-area/169396)

<div class="topic-metadata">

**Author:** [@SeeksLAdeveloper](https://www.ruby-forum.com/u/SeeksLAdeveloper)\
**Replies:** 0\
**Last updated:** [June 3, 2009, 9:04am UTC](https://www.ruby-forum.com/t/jobs-seeking-developer-in-los-angeles-area/169396 "2009-06-03T09:04:17Z")

</div>

I am currently looking for an experienced Ruby on Rails developer who lives in 50 mile radius of Los A… We have a small web application that needs to be coded in short amount of time. Developer will have to do both f…

---

## [406 Not Acceptable response](https://www.ruby-forum.com/t/406-not-acceptable-response/169373)

<div class="topic-metadata">

**Author:** [@Flavio\_M](https://www.ruby-forum.com/u/Flavio_M)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 8:39am UTC](https://www.ruby-forum.com/t/406-not-acceptable-response/169373 "2009-06-03T08:39:37Z")

</div>

I want to send a response in a content type that is not listed in the request Accept header. When I try to do this in Rails a response of status code 406 Not Acceptable is sent. I would like to know how to do this. P…

---

## [Show all routes paths with command](https://www.ruby-forum.com/t/show-all-routes-paths-with-command/169392)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 8:37am UTC](https://www.ruby-forum.com/t/show-all-routes-paths-with-command/169392 "2009-06-03T08:37:15Z")

</div>

Hi, i forgot what the command is for showing the available routes in my app. Can someone help me… remco

---

## [Update fails Rollback?](https://www.ruby-forum.com/t/update-fails-rollback/169380)

<div class="topic-metadata">

**Author:** [@morgan](https://www.ruby-forum.com/u/morgan)\
**Replies:** 1\
**Last updated:** [June 3, 2009, 3:34am UTC](https://www.ruby-forum.com/t/update-fails-rollback/169380 "2009-06-03T03:34:07Z")

</div>

this is my code def usermod User.update(10, :user\_level =\> 3) end this is what shows in the console Processing UserController#usermod (for 127.0.0.1 at 2009-06-02 20:28:38) \[GET\] SQL (0.1ms) SET SQL\_AUTO\_IS\_NULL…

---

## [Conditions for Multiple Columns?](https://www.ruby-forum.com/t/conditions-for-multiple-columns/169302)

<div class="topic-metadata">

**Author:** [@jayco](https://www.ruby-forum.com/u/jayco)\
**Replies:** 5\
**Last updated:** [June 3, 2009, 12:52am UTC](https://www.ruby-forum.com/t/conditions-for-multiple-columns/169302 "2009-06-03T00:52:43Z")

</div>

Hello, I have a table called “Itemlist” and have multiple columns in it such as “item1”, “item2”, “item3”, “item4”. These columns often have repetitious data between them and I’m trying to count it. The only working c…

---

## [Can I create models from a preexisiting database?](https://www.ruby-forum.com/t/can-i-create-models-from-a-preexisiting-database/169369)

<div class="topic-metadata">

**Author:** [@user\_zero](https://www.ruby-forum.com/u/user_zero)\
**Replies:** 2\
**Last updated:** [June 3, 2009, 12:26am UTC](https://www.ruby-forum.com/t/can-i-create-models-from-a-preexisiting-database/169369 "2009-06-03T00:26:22Z")

</div>

Hello All this is my first post here, I have been trying to learn rails and kept hitting dead ends because of outdated tutorials then I went through the official one and what do you know it works! :wink: . I’m sure th…

---

## [Attribute Accessors for Phone Number in Form](https://www.ruby-forum.com/t/attribute-accessors-for-phone-number-in-form/169352)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 3\
**Last updated:** [June 2, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/attribute-accessors-for-phone-number-in-form/169352 "2009-06-02T23:29:05Z")

</div>

hello, I have a field in the DB called phone\_number , string 10 chars. In my form i want to make these 3 text boxes (phone1, phone2, phone3). I am trying to figure out how to assemble this to create the phone numbe…

---

## [Send e-mail with charset iso-8859-1](https://www.ruby-forum.com/t/send-e-mail-with-charset-iso-8859-1/128408)

<div class="topic-metadata">

**Author:** [@Umulium](https://www.ruby-forum.com/u/Umulium)\
**Replies:** 3\
**Last updated:** [June 2, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/send-e-mail-with-charset-iso-8859-1/128408 "2009-06-02T22:37:26Z")

</div>

I have a rails application that sends e-mails. The e-mails currently use the utf-8 charset, but I have to change this to iso-8859-1 since it doesn’t play well with Outlook. (Norwegian characters such as ÆØÅ are not di…

---

## [Polymorphic join query with conditions on both ends](https://www.ruby-forum.com/t/polymorphic-join-query-with-conditions-on-both-ends/169365)

<div class="topic-metadata">

**Author:** [@Erik\_Dahlstrand](https://www.ruby-forum.com/u/Erik_Dahlstrand)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/polymorphic-join-query-with-conditions-on-both-ends/169365 "2009-06-02T22:20:38Z")

</div>

Hi, I have a polymorphic association between Company and Address. class Address \< ActiveRecord::Base belongs\_to :addressable, :polymorphic =\> true end class Company \< ActiveRecord::Base has\_many :addresses, :as =\> …

---

## [Question about Rails-formatted query params in URL](https://www.ruby-forum.com/t/question-about-rails-formatted-query-params-in-url/169111)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 3\
**Last updated:** [June 2, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/question-about-rails-formatted-query-params-in-url/169111 "2009-06-02T21:25:04Z")

</div>

Hi all, I am seeing a behavior for which I can’t find documentation. I am posting a form to a url with query params formatted in the Rails manner: /controller/action?foo\[bar\]=3 # Of course, the brackets are properly …

---

## [Security Flaw With acts\_as\_xapian](https://www.ruby-forum.com/t/security-flaw-with-acts-as-xapian/169363)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 0\
**Last updated:** [June 2, 2009, 9:16pm UTC](https://www.ruby-forum.com/t/security-flaw-with-acts-as-xapian/169363 "2009-06-02T21:16:33Z")

</div>

I’ve found a secuirty issue with the proxy implementation of find\_with\_xapian in the acts\_as\_xapian plugin. I’ve documented it over at the acts\_as\_xapian Google Group (http://groups.google.com/group/ acts\_as\_xapian/br…

---

## [Model Name Conflict](https://www.ruby-forum.com/t/model-name-conflict/169284)

<div class="topic-metadata">

**Author:** [@satynos](https://www.ruby-forum.com/u/satynos)\
**Replies:** 6\
**Last updated:** [June 2, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/model-name-conflict/169284 "2009-06-02T20:55:42Z")

</div>

I have a model by the name Filter but due to the changes in reorganizing the filters from 2.0.3, it is conflicting with the ActionController::Filters::Filter (class) In my filters\_controller.rb when I try to find the …

---

## [Something to pretty up my terminal](https://www.ruby-forum.com/t/something-to-pretty-up-my-terminal/169356)

<div class="topic-metadata">

**Author:** [@ziggles](https://www.ruby-forum.com/u/ziggles)\
**Replies:** 3\
**Last updated:** [June 2, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/something-to-pretty-up-my-terminal/169356 "2009-06-02T20:25:19Z")

</div>

Was wondering if there is anything out there that i can use to pretty up my terminal’s output? (linux) Stuff like migrations and most rake tasks output as just white text on black. thanks!

---

## [What's a smart way](https://www.ruby-forum.com/t/whats-a-smart-way/169341)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 5\
**Last updated:** [June 2, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/whats-a-smart-way/169341 "2009-06-02T18:45:25Z")

</div>

To do the following… Suppose I have a list of links in a div of my main template, application.html.erb. One of those links, the “administrator” link, needs to be able to change all the other links, so that a new set …

---

## [Days of the Week and Models](https://www.ruby-forum.com/t/days-of-the-week-and-models/169315)

<div class="topic-metadata">

**Author:** [@ziggles](https://www.ruby-forum.com/u/ziggles)\
**Replies:** 9\
**Last updated:** [June 2, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/days-of-the-week-and-models/169315 "2009-06-02T18:22:12Z")

</div>

Hi All, Would love to hear your input on this: I have a model called Demonstration. A Demonstration can take place on any, some or all of the days in a given week. i.e. Monday, Tuesday and Friday How should I setup…

---

## [Solid, serious tutorials?](https://www.ruby-forum.com/t/solid-serious-tutorials/169343)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 2\
**Last updated:** [June 2, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/solid-serious-tutorials/169343 "2009-06-02T18:16:19Z")

</div>

Guys I am looking for a solid Rails tutorial to sort of refresh and jump start me back into rails development. I was doing it for a while (small stuff) and then got away for a while. I would love a fairly comprehen…

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

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