# Rails

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

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

---

## [Scriptaculous Droppables Draggables problem](https://www.ruby-forum.com/t/scriptaculous-droppables-draggables-problem/169970)

<div class="topic-metadata">

**Author:** [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/scriptaculous-droppables-draggables-problem/169970 "2009-06-10T19:47:29Z")

</div>

I’m working on a 3 column grid of draggable objects. Draggables are Droppable on any other Draggable, where they are placed just above after a successful ajax call. I have all logic and ajax stuff in place. Its kinda …

---

## [Passenger no such file to load -- fastthread](https://www.ruby-forum.com/t/passenger-no-such-file-to-load-fastthread/169964)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/passenger-no-such-file-to-load-fastthread/169964 "2009-06-10T19:42:30Z")

</div>

Hi, Passenger does not see fastthread gem even though irb sees it. Any help appreciated. root@mymachine:/home/user1# tail /var/log/apache2/error.log \[Wed Jun 10 19:12:29 2009\] \[notice\] Apache/2.2.11 (Ubuntu) DAV/2 S…

---

## [Question about using layout template in controller](https://www.ruby-forum.com/t/question-about-using-layout-template-in-controller/169963)

<div class="topic-metadata">

**Author:** [@grasshopper](https://www.ruby-forum.com/u/grasshopper)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 7:32pm UTC](https://www.ruby-forum.com/t/question-about-using-layout-template-in-controller/169963 "2009-06-10T19:32:41Z")

</div>

Hello all, I’d like to use " layout ‘template\_name’ " in a controller. However, I’d also like to have an action on this controller not be rendered within this layout template rather just render the action’s correspon…

---

## [Inner Join help](https://www.ruby-forum.com/t/inner-join-help/169737)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/inner-join-help/169737 "2009-06-10T19:31:13Z")

</div>

Hello! I want to limit my model to just show companies from the current users account: user.account.companies I have this in my model which seems to be working: def self.find(\*args) args \<\< {:conditions =\> XXXXX"} …

---

## [The main index.html](https://www.ruby-forum.com/t/the-main-index-html/169955)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [June 10, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/the-main-index-html/169955 "2009-06-10T19:15:39Z")

</div>

So if I want to grab info from various Models and put it on the main Index page how does that work? Since there’s no main index view or controller?.. or is there?..

---

## [Content type is not included in the list](https://www.ruby-forum.com/t/content-type-is-not-included-in-the-list/169866)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/content-type-is-not-included-in-the-list/169866 "2009-06-10T19:09:03Z")

</div>

Hi , i am uploading files using attachment\_fu ,i can upload files with extension .txt, .xls, .doc but when i am going to upload .pdf extension file i gives Validation failed: Content type is not included in the list…

---

## [Osx/cocoa \<-\> rails incompatibility](https://www.ruby-forum.com/t/osx-cocoa-rails-incompatibility/169879)

<div class="topic-metadata">

**Author:** [@djconcepcion](https://www.ruby-forum.com/u/djconcepcion)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/osx-cocoa-rails-incompatibility/169879 "2009-06-10T17:49:26Z")

</div>

Does anyone know how to fix or even debug the following: ActiveRecord is failing @ base.rb, line 2189: Thread.current\[:"#{self}\_scoped\_methods"\] ||= self.default\_scoping.dup with: “can’t dup NilClass” why default\_sc…

---

## [Uninitialized constant ActiveSupport::Cache (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-cache-nameerror/169953)

<div class="topic-metadata">

**Author:** [@javinto](https://www.ruby-forum.com/u/javinto)\
**Replies:** 5\
**Last updated:** [June 10, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-activesupport-cache-nameerror/169953 "2009-06-10T17:47:39Z")

</div>

Hi After having updated some GEMS I get \`load\_missing\_constant’: uninitialized constant ActiveSupport::Cache (NameError) on starting the server of a freshly generated rails project. Before, I already had Rails 2.3.2 …

---

## [Action Web Service Rails 2.3.2](https://www.ruby-forum.com/t/action-web-service-rails-2-3-2/169947)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/action-web-service-rails-2-3-2/169947 "2009-06-10T17:47:03Z")

</div>

Hey Everyone, I’ve been forced to handle php for the last year and am returning to rails just now but i am stuck on simple web services. I think AWS has been removed from rails 2.3.2. Then, how do you develop a web…

---

## [Actionamailer](https://www.ruby-forum.com/t/actionamailer/169945)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/actionamailer/169945 "2009-06-10T17:20:34Z")

</div>

I am using Rails 2.3, and trying to get ActionMailer to work. I have it configured properly, have followed a very feeble example I have found ( ) but I’m kind of stumped on a few things (for one, what is request.xhr…

---

## [Form\_for - resource-oriented style question](https://www.ruby-forum.com/t/form-for-resource-oriented-style-question/169950)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/form-for-resource-oriented-style-question/169950 "2009-06-10T16:51:51Z")

</div>

in my routes I have a route new\_program\_registration GET /programs/:program\_id/ registrations/new(.:format) {:action=\>“new”, :controller=\>“registrations”} to register a user in a training program I preset th…

---

## [Display Tree Structure Using rails](https://www.ruby-forum.com/t/display-tree-structure-using-rails/169946)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 3\
**Last updated:** [June 10, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/display-tree-structure-using-rails/169946 "2009-06-10T16:40:59Z")

</div>

Hi All, I want to Display a Tree using Rails. earlier i diplay tree using rails & Dojo which works fine but as it takes too much time to load. Now i want to create a Tree using pure rails or Rails and Javascript libra…

---

## [Caching Warning](https://www.ruby-forum.com/t/caching-warning/169872)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 4\
**Last updated:** [June 10, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/caching-warning/169872 "2009-06-10T14:58:44Z")

</div>

This might be considered a bug… but I thought I’d at least warn folks. I’m using fragment caching and the host name is in the key of the fragment. The problem is that this is the host name used in the URL. So, if you…

---

## [How about using hashes as helpers?](https://www.ruby-forum.com/t/how-about-using-hashes-as-helpers/169941)

<div class="topic-metadata">

**Author:** [@night\_stalker](https://www.ruby-forum.com/u/night_stalker)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/how-about-using-hashes-as-helpers/169941 "2009-06-10T14:46:20Z")

</div>

i had a simple idea. first, think about: p = proc{|x| x\*2} we can call the proc with ‘\[\]’: p\[3\] # =\> 6 there’s another way, which caches the result: p = Hash.new{|h, x| h\[x\] = x\*2} we have the same interface as a …

---

## [Two aplications one database](https://www.ruby-forum.com/t/two-aplications-one-database/169919)

<div class="topic-metadata">

**Author:** [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/two-aplications-one-database/169919 "2009-06-10T14:16:37Z")

</div>

How works Rails if I want to do 2 aplications thath use the same database, I don’t know how to manage the migrations.

---

## [Complex Relations / Avoid deletion of join model objects?](https://www.ruby-forum.com/t/complex-relations-avoid-deletion-of-join-model-objects/169933)

<div class="topic-metadata">

**Author:** [@Felix\_SchSSS\_fer](https://www.ruby-forum.com/u/Felix_SchSSS_fer)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/complex-relations-avoid-deletion-of-join-model-objects/169933 "2009-06-10T14:15:05Z")

</div>

Hello, I have two models Host and Check connected through a join model CheckConfig with has\_many :through relations both ways. I now have a third model Result, objects of which I’d like to attach to a give check of a…

---

## [Taxonomization with dynamic taxon types](https://www.ruby-forum.com/t/taxonomization-with-dynamic-taxon-types/169938)

<div class="topic-metadata">

**Author:** [@groogy](https://www.ruby-forum.com/u/groogy)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 1:53pm UTC](https://www.ruby-forum.com/t/taxonomization-with-dynamic-taxon-types/169938 "2009-06-10T13:53:17Z")

</div>

(Oops, I posted this to -core first. Sorry about that) Hello, I am making an e-commerce site where the merchant should be able to taxonomize (categorize) using dynamic types of taxons. If the merchant wants to create…

---

## [Install pb(solved) : http://gems.rubyforge.org/ does not appear to be a repository](https://www.ruby-forum.com/t/install-pb-solved-http-gems-rubyforge-org-does-not-appear-to-be-a-repository/169936)

<div class="topic-metadata">

**Author:** [@GuyK](https://www.ruby-forum.com/u/GuyK)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/install-pb-solved-http-gems-rubyforge-org-does-not-appear-to-be-a-repository/169936 "2009-06-10T13:01:42Z")

</div>

I’m installing ruby on rails on my local windows laptop, piece of cake, ruby is adult now, so I thought… http://rubyonrails.org/download is clear : install ruby with windows installer, ok download gems, unzip and “…

---

## [Accepts\_nested\_attributes\_for has\_one issue](https://www.ruby-forum.com/t/accepts-nested-attributes-for-has-one-issue/168511)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 10\
**Last updated:** [June 10, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-has-one-issue/168511 "2009-06-10T12:53:45Z")

</div>

Hi, Im having an issue with accepts\_nested\_attributes\_for for a has\_one relationship. I have posted the code below and the parameters sent to the create but this is not saving the user\_detail association record. Ive…

---

## [Storing search value in database](https://www.ruby-forum.com/t/storing-search-value-in-database/169837)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/storing-search-value-in-database/169837 "2009-06-10T12:52:55Z")

</div>

Hi, We got a search form (with autocomplete) for airlinetickets. The idea is that we want to store the search query of all our visitors in our database. The objective is to add this info to our management info. Someo…

---

## [Rails with Jquery/running into a problem](https://www.ruby-forum.com/t/rails-with-jquery-running-into-a-problem/169916)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 12:39pm UTC](https://www.ruby-forum.com/t/rails-with-jquery-running-into-a-problem/169916 "2009-06-10T12:39:27Z")

</div>

I’m going through some beginner tutorials for Jquery, and Im running into an issue. The whole purpose of the tutorial is to get a red box to fade out when clicking on the click me link, this does not work for me Coul…

---

## [Foreign Key (Mysql/Rails)](https://www.ruby-forum.com/t/foreign-key-mysql-rails/169868)

<div class="topic-metadata">

**Author:** [@semyou](https://www.ruby-forum.com/u/semyou)\
**Replies:** 3\
**Last updated:** [June 10, 2009, 9:25am UTC](https://www.ruby-forum.com/t/foreign-key-mysql-rails/169868 "2009-06-10T09:25:27Z")

</div>

Hi, I am using a Mysql table products which has a foreign key category\_id on the categories table the foreign key constraint is defined (Innodb engine). I noticed that when I run EXPLAIN SELECT \* from products where …

---

## [Scaffold.. random error](https://www.ruby-forum.com/t/scaffold-random-error/169910)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 8:46am UTC](https://www.ruby-forum.com/t/scaffold-random-error/169910 "2009-06-10T08:46:34Z")

</div>

Did this: script/generate scaffold file name:string description:text file\_url:string online\_status:boolean position:integer Plus: rake db:migrate And the model gives me an error. It can’t call any functions like, T…

---

## [Upload file and insert on a database](https://www.ruby-forum.com/t/upload-file-and-insert-on-a-database/169918)

<div class="topic-metadata">

**Author:** [@bakkhoz](https://www.ruby-forum.com/u/bakkhoz)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 8:30am UTC](https://www.ruby-forum.com/t/upload-file-and-insert-on-a-database/169918 "2009-06-10T08:30:59Z")

</div>

Hi I miss something I don’t understand what? i have form: ho calls def contacts\_mailer mail = Notifier.create\_contact\_request(params\[:contact\]) Notifier.deliver(mail) @contact = Contact.new @contact.…

---

## [JOBS- Senior Developer, Sabre Holdings, Southlake, TX (Contract to hire)](https://www.ruby-forum.com/t/jobs-senior-developer-sabre-holdings-southlake-tx-contract-to-hire/169908)

<div class="topic-metadata">

**Author:** [@Cindy\_R](https://www.ruby-forum.com/u/Cindy_R)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 5:09am UTC](https://www.ruby-forum.com/t/jobs-senior-developer-sabre-holdings-southlake-tx-contract-to-hire/169908 "2009-06-10T05:09:16Z")

</div>

Sabre Holdings connects people with the world’s greatest travel possibilities by retailing travel products and providing distribution and technology solutions for the travel industry through our three companies: Trave…

---

## [JOB- Mobile Software Engineer- Contract to hire (Sabre Holdings, Southlake, TX)](https://www.ruby-forum.com/t/job-mobile-software-engineer-contract-to-hire-sabre-holdings-southlake-tx/169907)

<div class="topic-metadata">

**Author:** [@Cindy\_R](https://www.ruby-forum.com/u/Cindy_R)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 5:07am UTC](https://www.ruby-forum.com/t/job-mobile-software-engineer-contract-to-hire-sabre-holdings-southlake-tx/169907 "2009-06-10T05:07:31Z")

</div>

Sabre Holdings connects people with the world’s greatest travel possibilities by retailing travel products and providing distribution and technology solutions for the travel industry through our three companies: Trave…

---

## [Consolidating Controllers and Models](https://www.ruby-forum.com/t/consolidating-controllers-and-models/169898)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 0\
**Last updated:** [June 10, 2009, 3:14am UTC](https://www.ruby-forum.com/t/consolidating-controllers-and-models/169898 "2009-06-10T03:14:05Z")

</div>

I have created a sample blog following the guidance provided in the related Rails screencast. As a standalone application, it works great. However, for integrating with other things I really don’t like having 2 cont…

---

## [Render mutates locals hash?](https://www.ruby-forum.com/t/render-mutates-locals-hash/169886)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 2:50am UTC](https://www.ruby-forum.com/t/render-mutates-locals-hash/169886 "2009-06-10T02:50:42Z")

</div>

If you pass a locals hash into render() … why would Rails mutate that hash, adding things to it? This seems awfully odd to me. Could have something to do with calling partials inside partials, which I am doing. Does t…

---

## [Strange scaffolding bug for Rails 2.3.2](https://www.ruby-forum.com/t/strange-scaffolding-bug-for-rails-2-3-2/169890)

<div class="topic-metadata">

**Author:** [@ThomasJ](https://www.ruby-forum.com/u/ThomasJ)\
**Replies:** 2\
**Last updated:** [June 10, 2009, 2:05am UTC](https://www.ruby-forum.com/t/strange-scaffolding-bug-for-rails-2-3-2/169890 "2009-06-10T02:05:41Z")

</div>

Hello! This is my first post, so plz be patient :slight\_smile: I discovered a strange bug in Rails 2.3.2: Tested with various DB-Configs (SQLite 3 & MySQL) Just create a new & fresh rails app and generate a scaffold …

---

## [Daemonize/daemons causing IOError. Help?](https://www.ruby-forum.com/t/daemonize-daemons-causing-ioerror-help/169808)

<div class="topic-metadata">

**Author:** [@cpher](https://www.ruby-forum.com/u/cpher)\
**Replies:** 1\
**Last updated:** [June 10, 2009, 12:41am UTC](https://www.ruby-forum.com/t/daemonize-daemons-causing-ioerror-help/169808 "2009-06-10T00:41:48Z")

</div>

Anyone have any idea why this error is occuring? http://pastie.org/505297 I am creating a plugin that provides a configurable logger. When I set the logger to be Logger.new(STDOUT), things work fine. When I set it t…

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

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