# Rails

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

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

---

## [Uninitialized constant Logging](https://www.ruby-forum.com/t/uninitialized-constant-logging/182264)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-logging/182264 "2010-01-25T18:58:20Z")

</div>

I am trying to figure out a problem I am having getting Rails working on my local osx machine. I have spent a few hours today working out a ruby conflict issue, and just been reinstalling a load of gems. My issue atm …

---

## [Cart relationated with id](https://www.ruby-forum.com/t/cart-relationated-with-id/182260)

<div class="topic-metadata">

**Author:** [@nexon](https://www.ruby-forum.com/u/nexon)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 6:44pm UTC](https://www.ruby-forum.com/t/cart-relationated-with-id/182260 "2010-01-25T18:44:28Z")

</div>

Hi, I want to make a cart that actually I initialize with my session. It works right and one user has one cart but… If I want to make differents carts for differents controllers? I have the plugin acts\_as\_tree and I h…

---

## [\[Jobs\] Seeking Senior RoR Developers/Leads/Architects](https://www.ruby-forum.com/t/jobs-seeking-senior-ror-developers-leads-architects/182257)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 6:28pm UTC](https://www.ruby-forum.com/t/jobs-seeking-senior-ror-developers-leads-architects/182257 "2010-01-25T18:28:05Z")

</div>

iBloom Technologies is an early stage startup founded with the objective of blooming several futuristic technology ideas. We are proud to have been invited for incubating our first idea development at IIM-Ahmedabad. W…

---

## [Ensure single session per user at a time](https://www.ruby-forum.com/t/ensure-single-session-per-user-at-a-time/182249)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/ensure-single-session-per-user-at-a-time/182249 "2010-01-25T17:32:04Z")

</div>

Thank you in advance to anyone that can help me solve this one! I would like to ensure that each user authenticated with restful-auth. has only a single session at a time. If a user has a session open on computer A, …

---

## [Skinny Controllers, fat models with REST?](https://www.ruby-forum.com/t/skinny-controllers-fat-models-with-rest/182233)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 9\
**Last updated:** [January 25, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/skinny-controllers-fat-models-with-rest/182233 "2010-01-25T17:30:41Z")

</div>

Hi, I’m really new to rails, so i programmed some stuff and today i read some things about skinny Controllers, fat models. My Controllers are really fat now. So i’m asking myself how can i shrink my controllers and m…

---

## [Can only get RMagick to work writing with 777](https://www.ruby-forum.com/t/can-only-get-rmagick-to-work-writing-with-777/182247)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/can-only-get-rmagick-to-work-writing-with-777/182247 "2010-01-25T17:17:48Z")

</div>

Hi - I am at a loss with chmod. The only way I can get RMagick to work properly writing to a file is if I set the dir to 777 permissions, but I feel like this is a huge security risk. Can someone give me a push in …

---

## [Displaying already stored images from the database in rails](https://www.ruby-forum.com/t/displaying-already-stored-images-from-the-database-in-rails/182237)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 1\
**Last updated:** [January 25, 2010, 4:29pm UTC](https://www.ruby-forum.com/t/displaying-already-stored-images-from-the-database-in-rails/182237 "2010-01-25T16:29:27Z")

</div>

Hello, Can anyone tell me how to display images which are already stored in database? I have a table in which one column stores the url of the image like usrimg/xxx.gif. How to display this images in view? Thanks in…

---

## [Partial refresh help](https://www.ruby-forum.com/t/partial-refresh-help/197020)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/partial-refresh-help/197020 "2010-01-25T15:43:52Z")

</div>

Hi everybody!!! I want to refresh automatically alements from my web page, but I donÂ´t know what Ihave to do. Here is my view Hello world/h1\> \<%= link\_to "My blog", posts\_path %\> The img tag are the elements I wa…

---

## [Counter for complex forms](https://www.ruby-forum.com/t/counter-for-complex-forms/182231)

<div class="topic-metadata">

**Author:** [@RoRoRo](https://www.ruby-forum.com/u/RoRoRo)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/counter-for-complex-forms/182231 "2010-01-25T14:20:25Z")

</div>

Hi, I’m developing a daily report module for a school work that utilizes complex forms, however I’ve run into some problems. On each rendered partial, I have two collection\_select; the first (project) updates the cont…

---

## [Inline\_attachment problem](https://www.ruby-forum.com/t/inline-attachment-problem/182230)

<div class="topic-metadata">

**Author:** [@Kavin\_preethi\_N](https://www.ruby-forum.com/u/Kavin_preethi_N)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 2:04pm UTC](https://www.ruby-forum.com/t/inline-attachment-problem/182230 "2010-01-25T14:04:01Z")

</div>

Hi all, I have tried using the inline attachment plugin for sending emails with inline images. I am stuck at a place where in, only the image i am trying to insert is sent in the mail with no other text. I have exac…

---

## [Collection select options](https://www.ruby-forum.com/t/collection-select-options/182219)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 4\
**Last updated:** [January 25, 2010, 1:19pm UTC](https://www.ruby-forum.com/t/collection-select-options/182219 "2010-01-25T13:19:03Z")

</div>

I want to set a default on a collection select. There must be a way to do this, but how? :default =\> “kdjng” (?)

---

## [ExceptionNotifier in development mode](https://www.ruby-forum.com/t/exceptionnotifier-in-development-mode/182178)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [January 25, 2010, 1:06pm UTC](https://www.ruby-forum.com/t/exceptionnotifier-in-development-mode/182178 "2010-01-25T13:06:39Z")

</div>

I don’t seem to be happening here… config/environments/development.rb set… config.action\_controller.consider\_all\_requests\_local = false application\_controller.rb has… include ExceptionNotifiable and in script/consol…

---

## [Multidatabase transactions](https://www.ruby-forum.com/t/multidatabase-transactions/182224)

<div class="topic-metadata">

**Author:** [@deepak](https://www.ruby-forum.com/u/deepak)\
**Replies:** 0\
**Last updated:** [January 25, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/multidatabase-transactions/182224 "2010-01-25T12:46:10Z")

</div>

hi, i wanted to implement multidatabase transactions, in a project of mine. The AWDR book by DHH and Sam Ruby, says that rails does not support easily the usecase where we are updating multiple databases concurrentl…

---

## [Symbol pointing to a method idiom in ror model](https://www.ruby-forum.com/t/symbol-pointing-to-a-method-idiom-in-ror-model/182095)

<div class="topic-metadata">

**Author:** [@chisa](https://www.ruby-forum.com/u/chisa)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 9:28am UTC](https://www.ruby-forum.com/t/symbol-pointing-to-a-method-idiom-in-ror-model/182095 "2010-01-25T09:28:53Z")

</div>

IN NEED OF EXPLANATION: class Comment \< ActiveRecord::Base validate :must\_be\_friends def must\_be\_friends errors.add\_to\_base("Must be friends to leave a comment") unless commenter.friend\_of?(commentee) e…

---

## [Is there a beta plugin that requires a beta code to allow access?](https://www.ruby-forum.com/t/is-there-a-beta-plugin-that-requires-a-beta-code-to-allow-access/182199)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [January 25, 2010, 6:08am UTC](https://www.ruby-forum.com/t/is-there-a-beta-plugin-that-requires-a-beta-code-to-allow-access/182199 "2010-01-25T06:08:08Z")

</div>

hi - i want to do some testing with live users, as many people have done before me. has someone encapsulated this in a simple plugin that requires a beta password? thanks, dino

---

## [What should e relationship etween these models](https://www.ruby-forum.com/t/what-should-e-relationship-etween-these-models/182064)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 5\
**Last updated:** [January 25, 2010, 4:28am UTC](https://www.ruby-forum.com/t/what-should-e-relationship-etween-these-models/182064 "2010-01-25T04:28:42Z")

</div>

Hi I have a organizations table and employess table. From the employee one employee will e administering the whole organizations That means creating other staff and what ever the activities etc. My question is how ca…

---

## [JSON render problem](https://www.ruby-forum.com/t/json-render-problem/182200)

<div class="topic-metadata">

**Author:** [@ang89](https://www.ruby-forum.com/u/ang89)\
**Replies:** 3\
**Last updated:** [January 25, 2010, 4:10am UTC](https://www.ruby-forum.com/t/json-render-problem/182200 "2010-01-25T04:10:49Z")

</div>

Hi all, In my controller, I have an action to render JSON string containing current user’s account information, except for his ID and hashed password. This is the snippet: Fetch the account information of the current…

---

## [Finding out where a variable is defined](https://www.ruby-forum.com/t/finding-out-where-a-variable-is-defined/182106)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 11\
**Last updated:** [January 25, 2010, 12:28am UTC](https://www.ruby-forum.com/t/finding-out-where-a-variable-is-defined/182106 "2010-01-25T00:28:43Z")

</div>

I’m looking at code in a project. I have no clue what is being passed into the resource parameter: def read\_authorized?(resource) if resource.respond\_to? :user\_read\_authorized? resource.user\_read\_authorized? curr…

---

## [Nothing shows up under fields\_for when referring to a valid association](https://www.ruby-forum.com/t/nothing-shows-up-under-fields-for-when-referring-to-a-valid-association/182195)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 1\
**Last updated:** [January 24, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/nothing-shows-up-under-fields-for-when-referring-to-a-valid-association/182195 "2010-01-24T23:50:05Z")

</div>

Hi, I have something like this: class Group \< ActiveRecord::Base has\_many :members accepts\_nested\_attributes\_for :members end class Member \< ActiveRecord::Base belongs\_to :group end -form\_for @group do |form| …

---

## [Acts as ferret issue (in Production)](https://www.ruby-forum.com/t/acts-as-ferret-issue-in-production/182163)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [January 24, 2010, 9:26pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-issue-in-production/182163 "2010-01-24T21:26:43Z")

</div>

Hi there - i’m looking for anyone who 's experienced inconsistent behaviour in ferret: The search engine is somewhat temperamental, some words are returned, and some result in a 500 server error… the error in the log…

---

## [Add onchange attribute to collection\_select](https://www.ruby-forum.com/t/add-onchange-attribute-to-collection-select/182183)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 1\
**Last updated:** [January 24, 2010, 8:31pm UTC](https://www.ruby-forum.com/t/add-onchange-attribute-to-collection-select/182183 "2010-01-24T20:31:07Z")

</div>

Hi, I am creating a dropdown list with the follwoing code which work perfectly \<%= f.collection\_select (:building\_id, @buildings, :id , :build\_title , :prompt =\> “select”) %\> but i want to use ONCHANGE attribute to…

---

## [Initializers](https://www.ruby-forum.com/t/initializers/182160)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [January 24, 2010, 7:41pm UTC](https://www.ruby-forum.com/t/initializers/182160 "2010-01-24T19:41:21Z")

</div>

Have a bit of a conundrum that I need to solve I would like to put this into environment.rb… config.action\_mailer.default\_url\_options = { :host =\> Setting\[:website\_url\] } but it obviously can’t read from the database…

---

## [How to build a welcome page?](https://www.ruby-forum.com/t/how-to-build-a-welcome-page/182189)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 1\
**Last updated:** [January 24, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-build-a-welcome-page/182189 "2010-01-24T19:03:53Z")

</div>

I am describing what I am trying to accomplish: I want to create a main welcome page. So I ran script/generate admin/welcome. This created welcome controller Then I wanted to attach this welcome controller to the main …

---

## [OrderedHash Rails 2.3.2](https://www.ruby-forum.com/t/orderedhash-rails-2-3-2/182176)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 2\
**Last updated:** [January 24, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/orderedhash-rails-2-3-2/182176 "2010-01-24T18:24:40Z")

</div>

I understand that ActiveSupport::OrderedHash.new \[\[1,2\]\] does not work beginning with Rails 2.3. I am running Rails 2.3.2. One commentator suggested simply creating the instance without arguments and then sequenti…

---

## [Rails server error when rails starts](https://www.ruby-forum.com/t/rails-server-error-when-rails-starts/182181)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 2\
**Last updated:** [January 24, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/rails-server-error-when-rails-starts/182181 "2010-01-24T18:09:33Z")

</div>

Hi guys, i am having a little problem. I have installed ruby 1.9.1 and rails 2.3.5. Ruby is working just fine. The rails applications is being created fine. But when i run the command ruby script/server i get an erro…

---

## [Link\_to helper (or some other method) on an entire table row?](https://www.ruby-forum.com/t/link-to-helper-or-some-other-method-on-an-entire-table-row/182173)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [January 24, 2010, 8:21am UTC](https://www.ruby-forum.com/t/link-to-helper-or-some-other-method-on-an-entire-table-row/182173 "2010-01-24T08:21:18Z")

</div>

I’m trying to implement a design handed to me where an entire row of a table is a link to view details about the obj shown in that row. The html handed to me looks like this: Person's Name Home:Person's Em…

---

## [Layout not coming in tests](https://www.ruby-forum.com/t/layout-not-coming-in-tests/182073)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [January 24, 2010, 7:06am UTC](https://www.ruby-forum.com/t/layout-not-coming-in-tests/182073 "2010-01-24T07:06:37Z")

</div>

Hi Champs, I am not able to see the layout page code in test.log? I have design like this: TOP LEFT Layout RIGHT I am rendering this left panel and right panel both as well as based on conditions rendering La…

---

## [Help for beginners? Nested resources, Authentication, and Authorization](https://www.ruby-forum.com/t/help-for-beginners-nested-resources-authentication-and-authorization/182172)

<div class="topic-metadata">

**Author:** [@acreadinglist](https://www.ruby-forum.com/u/acreadinglist)\
**Replies:** 0\
**Last updated:** [January 24, 2010, 1:33am UTC](https://www.ruby-forum.com/t/help-for-beginners-nested-resources-authentication-and-authorization/182172 "2010-01-24T01:33:27Z")

</div>

In this thread, I hope to gather explanations from more experienced Rails users than I on how to approach the topics of nested resources, authentication, and authorization, areas that in my own experience as a Rails n…

---

## [Suggestions for a non tech guy to teach himself Ruby on Rails](https://www.ruby-forum.com/t/suggestions-for-a-non-tech-guy-to-teach-himself-ruby-on-rails/182168)

<div class="topic-metadata">

**Author:** [@Jrdn](https://www.ruby-forum.com/u/Jrdn)\
**Replies:** 5\
**Last updated:** [January 24, 2010, 1:05am UTC](https://www.ruby-forum.com/t/suggestions-for-a-non-tech-guy-to-teach-himself-ruby-on-rails/182168 "2010-01-24T01:05:48Z")

</div>

Hello everyone, I am not a tech guy by any means. I run a small web app business out of NH and would like to teach myself how to create my own apps with ruby on rails. I took a basic HTML class in college (Graduated i…

---

## [Problems with :onchange for radio\_button\_tag](https://www.ruby-forum.com/t/problems-with-onchange-for-radio-button-tag/182166)

<div class="topic-metadata">

**Author:** [@kuramonni](https://www.ruby-forum.com/u/kuramonni)\
**Replies:** 0\
**Last updated:** [January 23, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/problems-with-onchange-for-radio-button-tag/182166 "2010-01-23T19:40:08Z")

</div>

Greetings, I’ve been hitting my head to the wall over this for quite a while now and don’t seem to be able to wrap my forementioned head around it. Basically I have a list of users in a selection box and I have two ra…

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

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