# Rails

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

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

---

## [Include contents of a file in a view](https://www.ruby-forum.com/t/include-contents-of-a-file-in-a-view/108738)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 4\
**Last updated:** [July 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/include-contents-of-a-file-in-a-view/108738 "2007-07-06T19:06:19Z")

</div>

Guys, I have an application and part of its function is to display html marked up text files to the users, inlined in the current page layout. I have the files stored outside the Rails app directories, and not in th…

---

## [Modify home\_path](https://www.ruby-forum.com/t/modify-home-path/108621)

<div class="topic-metadata">

**Author:** [@bashar](https://www.ruby-forum.com/u/bashar)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/modify-home-path/108621 "2007-07-06T18:50:15Z")

</div>

Hello guys, Can any body help me with this small problem: I put restriction on some pages of my application if a person wants to enter a restricted page he would be forwarded to the list page with access denied messa…

---

## [Scalable European VPS-hosting for Rails](https://www.ruby-forum.com/t/scalable-european-vps-hosting-for-rails/108710)

<div class="topic-metadata">

**Author:** [@Gvstav](https://www.ruby-forum.com/u/Gvstav)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/scalable-european-vps-hosting-for-rails/108710 "2007-07-06T18:24:11Z")

</div>

Is there anyone that have any experience from high-end European (pref. Nordic) VPS-providers with propositions similar to Joyent Accelerator, Railsmachine etc. (Rails installed out of the box). We’re deploying a Rails…

---

## [Virtual controller](https://www.ruby-forum.com/t/virtual-controller/108752)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/virtual-controller/108752 "2007-07-06T18:19:10Z")

</div>

anyone have thoughts on how a library could mount an action to a route without messing with routes.rb or generating an actual controller? something along the lines of class ActionController::Base def global() render…

---

## [Overriding Date.today for a Rails app](https://www.ruby-forum.com/t/overriding-date-today-for-a-rails-app/108547)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 5\
**Last updated:** [July 6, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/overriding-date-today-for-a-rails-app/108547 "2007-07-06T17:03:59Z")

</div>

Hey guys, I have a time-sensitive application…not in the sense that its completion is urgent (although like all projects, it is), but rather in the sense that much of the functionality is determined by the actual tim…

---

## [Problems width Globalize "Something %s string"](https://www.ruby-forum.com/t/problems-width-globalize-something-s-string/108749)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/problems-width-globalize-something-s-string/108749 "2007-07-06T16:42:54Z")

</div>

Hi there. Im having problems with the Globalize, my problem is that i have a string, called “controller.email.email %s”.t(email) which translates to danish as “Email: removed\_email\_address@domain.invalid”. Why doesn’…

---

## [Validating associated objects](https://www.ruby-forum.com/t/validating-associated-objects/108424)

<div class="topic-metadata">

**Author:** [@RSElliott\_M](https://www.ruby-forum.com/u/RSElliott_M)\
**Replies:** 8\
**Last updated:** [July 6, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/validating-associated-objects/108424 "2007-07-06T16:37:55Z")

</div>

I am having a weird problem class Post has\_many :uploads end class Upload belongs\_to :post end In the form in my view the user can upload multiple files at once. In my model there are multiple validations for a…

---

## [Problem to create thumbnails with Attachment FU + ImageScien](https://www.ruby-forum.com/t/problem-to-create-thumbnails-with-attachment-fu-imagescien/108747)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/problem-to-create-thumbnails-with-attachment-fu-imagescien/108747 "2007-07-06T16:10:43Z")

</div>

Hello I have a problem in the creation of a thumbnail for an uploaded image (with Attachment Fu) For resizing images, i’ve installed ImageScience, following steps of this article (on Mac 10.4.0 : freeimage installed …

---

## [Assert\_equal - problems returning value from controller](https://www.ruby-forum.com/t/assert-equal-problems-returning-value-from-controller/108722)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/assert-equal-problems-returning-value-from-controller/108722 "2007-07-06T16:07:57Z")

</div>

Hi, I have the following assert\_equal that is returning false. @q seems to be returning niil, but is set in the controller, how can I get hold of this value in my tests? assert\_equal ‘derby’, @q Thanks Mark

---

## [Re: Error writing blob to sqlserver](https://www.ruby-forum.com/t/re-error-writing-blob-to-sqlserver/86625)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/re-error-writing-blob-to-sqlserver/86625 "2007-07-06T15:59:41Z")

</div>

It’s entirely possible I spoke too soon. I’ve patched sqlserver adapter to apparently write blobs properly without needing ADODB.Stream mediation, thanks to some instructions kindly provided by Patrick Spence. The rel…

---

## [Mixin's for modules](https://www.ruby-forum.com/t/mixins-for-modules/108250)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 12\
**Last updated:** [July 6, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/mixins-for-modules/108250 "2007-07-06T15:59:41Z")

</div>

I want to have a module that I mixin to more than one model. What would be the most “rails like” way to do this?

---

## [Testing concurrent accesses](https://www.ruby-forum.com/t/testing-concurrent-accesses/108746)

<div class="topic-metadata">

**Author:** [@Lionel\_B](https://www.ruby-forum.com/u/Lionel_B)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/testing-concurrent-accesses/108746 "2007-07-06T15:55:38Z")

</div>

Hi, I’ve recently come across a bug in one of my applications where destroying a model can occur while it’s locked in another place for processing. Just for the record: the destroy correctly aborts because of this bu…

---

## [Problem with through](https://www.ruby-forum.com/t/problem-with-through/108635)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/problem-with-through/108635 "2007-07-06T15:23:34Z")

</div>

Has anyone ever had problems with :through relationship? I have set it properly, according to the book, but getting response from the browser “Could not find the association :line\_items in model Product” and the rela…

---

## [Problem with discovering available controllers through refle](https://www.ruby-forum.com/t/problem-with-discovering-available-controllers-through-refle/108691)

<div class="topic-metadata">

**Author:** [@elegant](https://www.ruby-forum.com/u/elegant)\
**Replies:** 5\
**Last updated:** [July 6, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/problem-with-discovering-available-controllers-through-refle/108691 "2007-07-06T14:58:31Z")

</div>

This code works under webrick to load and identify every controller in a rails app. However, it fails under mongrel. Instead it only identifies the controller that actually called the method. Does anyone understand…

---

## [RJS in a callback](https://www.ruby-forum.com/t/rjs-in-a-callback/108734)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 1:04pm UTC](https://www.ruby-forum.com/t/rjs-in-a-callback/108734 "2007-07-06T13:04:55Z")

</div>

I’m trying to use RJS to construct javascript for an :onDrop callback. Here’s the code. Fun stuff is the RJS after the :onDrop. \<%= drop\_receiving\_element :dropAccept, :accept =\> ‘dragclass’ , :onDrop =\> update\_page {…

---

## [BlindDown/BlindUp /w MouseOver/MouseOut on a Div](https://www.ruby-forum.com/t/blinddown-blindup-w-mouseover-mouseout-on-a-div/108727)

<div class="topic-metadata">

**Author:** [@kriber](https://www.ruby-forum.com/u/kriber)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 11:55am UTC](https://www.ruby-forum.com/t/blinddown-blindup-w-mouseover-mouseout-on-a-div/108727 "2007-07-06T11:55:46Z")

</div>

Hi, I not sure if this is the right place to post in, I am new in this community. I just downloaded the prototype.js and spactaculus-pack. Know I tried something like this: XCreative.net …

---

## [Environment.rb usage? use of "Rails::Initializer.run" sectio](https://www.ruby-forum.com/t/environment-rb-usage-use-of-rails-initializer-run-sectio/108294)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 9:39am UTC](https://www.ruby-forum.com/t/environment-rb-usage-use-of-rails-initializer-run-sectio/108294 "2007-07-06T09:39:32Z")

</div>

Hi, Can anyone explain the intended usage within “environment.rb” of the areas (a) within the "Rails::Initializer.run do |config| " block section and (b) the area after this block. For example when/what do I includ…

---

## [Validating user inputs in the controller](https://www.ruby-forum.com/t/validating-user-inputs-in-the-controller/108716)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 9:38am UTC](https://www.ruby-forum.com/t/validating-user-inputs-in-the-controller/108716 "2007-07-06T09:38:32Z")

</div>

Is there any way that I can validate user inputs \[ forms field values \] in the controller instead of model? Or which is the best way for validation. Please suggest

---

## [Moo.fx / RJS / Rails](https://www.ruby-forum.com/t/moo-fx-rjs-rails/108501)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [July 6, 2007, 7:34am UTC](https://www.ruby-forum.com/t/moo-fx-rjs-rails/108501 "2007-07-06T07:34:08Z")

</div>

Is there any available way to integrate tightly with moo.fx instead of Scriptalicous? I would like to try and keep the JS light and the moo.fxstuff looks a little nicer IMHO. My issue is getting all the nice integr…

---

## [\[ANN\] BrainBuster 0.7.2 released - logic captcha goodness](https://www.ruby-forum.com/t/ann-brainbuster-0-7-2-released-logic-captcha-goodness/108714)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 7:20am UTC](https://www.ruby-forum.com/t/ann-brainbuster-0-7-2-released-logic-captcha-goodness/108714 "2007-07-06T07:20:07Z")

</div>

Quick update to yesterday’s release… CHANGES rename the main module from BrainBusterFilters to BrainBusterSystem it does more then just provide filters set a default salt to make installation easier - you should overr…

---

## [Digital Clock](https://www.ruby-forum.com/t/digital-clock/89397)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 8\
**Last updated:** [July 6, 2007, 7:08am UTC](https://www.ruby-forum.com/t/digital-clock/89397 "2007-07-06T07:08:02Z")

</div>

Hello Group. I got my first page up and running and now I’m trying to make it look a bit nicer. I was thinking about putting a clock on the page, can anyone point me to a tutorial or have a routine already done? I’m…

---

## [Red box is not working](https://www.ruby-forum.com/t/red-box-is-not-working/108531)

<div class="topic-metadata">

**Author:** [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 6:50am UTC](https://www.ruby-forum.com/t/red-box-is-not-working/108531 "2007-07-06T06:50:43Z")

</div>

following my code for redbox… but its not working …do anyone know why \<%= javascript\_include\_tag “prototype” %\> \<%= stylesheet\_link\_tag ‘redbox’ %\> \<%= javascript\_include\_tag :defaults %\> \<%= javascript\_include\_tag…

---

## [How To Delegate to the Join Model?](https://www.ruby-forum.com/t/how-to-delegate-to-the-join-model/108704)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 6:21am UTC](https://www.ruby-forum.com/t/how-to-delegate-to-the-join-model/108704 "2007-07-06T06:21:04Z")

</div>

Hi, I’m wondering if someone can help me with this. I have a situation where I need to store information in the join model of a has\_many :through to assist with genearting views. But I can’t think of an elegant an…

---

## [Infragistics-like controls for rails apps?](https://www.ruby-forum.com/t/infragistics-like-controls-for-rails-apps/108702)

<div class="topic-metadata">

**Author:** [@lrojas](https://www.ruby-forum.com/u/lrojas)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 6:11am UTC](https://www.ruby-forum.com/t/infragistics-like-controls-for-rails-apps/108702 "2007-07-06T06:11:02Z")

</div>

Hi all, I am looking for a few tools that can give me the aproximated functionality of the Infragistics Controls, only for rails. Anybody has worked with such a library/toolset? Thanks in advance, Luis R. Rojas

---

## [Working with :before / :loading](https://www.ruby-forum.com/t/working-with-before-loading/108699)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 5:23am UTC](https://www.ruby-forum.com/t/working-with-before-loading/108699 "2007-07-06T05:23:44Z")

</div>

Simple question… Within my view I have the following: \<%= observe\_form ‘interest’, :frequency =\> 0.25, :update =\> ‘search\_target’, :url =\> { :controller =\> ‘desk’, :action =\> ‘results’ }, :before =\> “Effect.Fade(‘…

---

## [Referencing REST resources with something other than ids](https://www.ruby-forum.com/t/referencing-rest-resources-with-something-other-than-ids/108657)

<div class="topic-metadata">

**Author:** [@AurSSSSlien\_Malisar](https://www.ruby-forum.com/u/AurSSSSlien_Malisar)\
**Replies:** 8\
**Last updated:** [July 6, 2007, 2:47am UTC](https://www.ruby-forum.com/t/referencing-rest-resources-with-something-other-than-ids/108657 "2007-07-06T02:47:49Z")

</div>

Hello. I got a REST URL personalization issue… Here is an example to explain: If have two nested resources set like this in “routes.rb”: map.resources :teams do |teams| teams.resources :players end So, some teams …

---

## [Loading progress screen](https://www.ruby-forum.com/t/loading-progress-screen/108690)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 0\
**Last updated:** [July 6, 2007, 2:42am UTC](https://www.ruby-forum.com/t/loading-progress-screen/108690 "2007-07-06T02:42:48Z")

</div>

Any one have a good recommendation for doing a loading progress screen? i.e. when a page is being loaded, a ‘loading in progress’ is displayed (like a modal overlay) then it is removed once the page is loaded. (I al…

---

## [Rake test fails on MySQL error](https://www.ruby-forum.com/t/rake-test-fails-on-mysql-error/108681)

<div class="topic-metadata">

**Author:** [@elyod\_72](https://www.ruby-forum.com/u/elyod_72)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 2:39am UTC](https://www.ruby-forum.com/t/rake-test-fails-on-mysql-error/108681 "2007-07-06T02:39:48Z")

</div>

I am a VERY newbie, so please forgive me. I created a project from a tutorial availible online, and when I ran the rake test, it came up with the following error: 218 % rake test\_units (in /rubydev/devblog) rake ab…

---

## [Layouts being cached?](https://www.ruby-forum.com/t/layouts-being-cached/108678)

<div class="topic-metadata">

**Author:** [@aaron](https://www.ruby-forum.com/u/aaron)\
**Replies:** 2\
**Last updated:** [July 6, 2007, 2:39am UTC](https://www.ruby-forum.com/t/layouts-being-cached/108678 "2007-07-06T02:39:48Z")

</div>

I’m working on my spin of the age old shopping cart app. To help customers focus on checking out it seems reasonable enough to give them a simpler layout while they’re doing so. I added the following code to my app.…

---

## [Deploying multiple apps](https://www.ruby-forum.com/t/deploying-multiple-apps/108598)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 2:36am UTC](https://www.ruby-forum.com/t/deploying-multiple-apps/108598 "2007-07-06T02:36:48Z")

</div>

I have the following scenario: Apache -\> RoR app on mongrel cluster : all working fine. Now, I want to add a second app to this scenario. Does anyone have info on how? i.e what does the http.conf looks like? I suspec…

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

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