# Rails

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

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

---

## [File\_column / blank input field when editing](https://www.ruby-forum.com/t/file-column-blank-input-field-when-editing/115138)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 2\
**Last updated:** [September 21, 2007, 2:05am UTC](https://www.ruby-forum.com/t/file-column-blank-input-field-when-editing/115138 "2007-09-21T02:05:13Z")

</div>

I have an issue when editing an entry in my project that is using file-column. The problem is that while in the edit mode the input field is completely blank even though i have previously uploaded a file for that item…

---

## [Plugin that will expire\_page across multiple servers?](https://www.ruby-forum.com/t/plugin-that-will-expire-page-across-multiple-servers/115149)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 2:02am UTC](https://www.ruby-forum.com/t/plugin-that-will-expire-page-across-multiple-servers/115149 "2007-09-21T02:02:10Z")

</div>

Hi all - I was wondering if there’s a plugin out there that will make expire\_page work across multiple servers? That is, I’ve got two servers A and B behind a load balancer. If I cache a page eventually it will be c…

---

## [WYSIWYG editor plugin for rails](https://www.ruby-forum.com/t/wysiwyg-editor-plugin-for-rails/114258)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 7\
**Last updated:** [September 21, 2007, 1:53am UTC](https://www.ruby-forum.com/t/wysiwyg-editor-plugin-for-rails/114258 "2007-09-21T01:53:09Z")

</div>

Hi, Is there a plugin or some kind of interface for WYMeditor (http:// Elad on Rails: WYMeditor - Standards driven WYSIWYG editor) like there is for TinyMce?

---

## [Custom logging](https://www.ruby-forum.com/t/custom-logging/115148)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 1:45am UTC](https://www.ruby-forum.com/t/custom-logging/115148 "2007-09-21T01:45:08Z")

</div>

Hello, I’m trying to create a custom logger for specific parts of my application. I created a logger in one on my classes is the lib directory and it works great for that class, but I would also like other parts of …

---

## [Multilingual Site](https://www.ruby-forum.com/t/multilingual-site/115104)

<div class="topic-metadata">

**Author:** [@jonbaty](https://www.ruby-forum.com/u/jonbaty)\
**Replies:** 4\
**Last updated:** [September 20, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/multilingual-site/115104 "2007-09-20T23:54:58Z")

</div>

I am starting a new project and I am somewhat new to Rails. One of the requirements for the new site is it going to have to handle multiple languages. Currently around 14 languages. I will be creating the English vers…

---

## [Rendering a partial from within that partial](https://www.ruby-forum.com/t/rendering-a-partial-from-within-that-partial/115139)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 11:46pm UTC](https://www.ruby-forum.com/t/rendering-a-partial-from-within-that-partial/115139 "2007-09-20T23:46:24Z")

</div>

I am having trouble rendering a partial called ‘names’ through a submit tag located within that partial. The form data is saving with my current code. However, the existing data is not loading into the form and the pa…

---

## [Links outside rails application](https://www.ruby-forum.com/t/links-outside-rails-application/114952)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/links-outside-rails-application/114952 "2007-09-20T23:35:56Z")

</div>

I have a rails application I am developing and there’s basically a minor thing I would like to do that makes my development a little bit of a pain. I’m currently doing my local development using ruby’s webrick. I’m …

---

## [Embedding Question Marks in Query Strings](https://www.ruby-forum.com/t/embedding-question-marks-in-query-strings/115129)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/embedding-question-marks-in-query-strings/115129 "2007-09-20T23:13:53Z")

</div>

I have an Ajax updater using observe\_field: \<%= text\_area\_tag('ubb', nil, :size =\> '60x40') %\> \<%= observe\_field(:ubb, :url =\> {:action =\> 'render\_preview'}, :frequency =\> 0.5, :update =\> 'preview', :with =\> …

---

## [Constants for HTTP status codes](https://www.ruby-forum.com/t/constants-for-http-status-codes/115114)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 3\
**Last updated:** [September 20, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/constants-for-http-status-codes/115114 "2007-09-20T23:00:51Z")

</div>

I noticed by chance that script/console in my machine understands HTTP::Status::BAD\_REQUEST but can’t for the life of me find where’s that defined. A grep in the Ruby source tree for “BAD\_REQUEST” gives cgi.rb (which …

---

## [Help with attachment\_fu, why this error?](https://www.ruby-forum.com/t/help-with-attachment-fu-why-this-error/115132)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 0\
**Last updated:** [September 20, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/help-with-attachment-fu-why-this-error/115132 "2007-09-20T22:51:22Z")

</div>

hi, i’m trying to play with attachment\_fu using imagescience, and…it works, partially… when i send the form the image is uploaded and it’s resized and the thumb made, and inserted in the db. But after this an error i…

---

## [Running many rails application on single port](https://www.ruby-forum.com/t/running-many-rails-application-on-single-port/115084)

<div class="topic-metadata">

**Author:** [@vikasbatra](https://www.ruby-forum.com/u/vikasbatra)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/running-many-rails-application-on-single-port/115084 "2007-09-20T22:40:48Z")

</div>

Hello friends, Is it possible to run many rails application or more than one rails application on single port, currently for more than one application we r using here different port for each application. Is there any…

---

## [Page rendering inside div](https://www.ruby-forum.com/t/page-rendering-inside-div/115130)

<div class="topic-metadata">

**Author:** [@Glen](https://www.ruby-forum.com/u/Glen)\
**Replies:** 1\
**Last updated:** [September 20, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/page-rendering-inside-div/115130 "2007-09-20T22:36:47Z")

</div>

For a reason I can’t figure out, no matter what I try. I have a page that refreshes inside a div on that page, recursively forever. At this point I’m sure it’s something super obvious since I have tried everything an…

---

## [Helper method for models, controllers and views?](https://www.ruby-forum.com/t/helper-method-for-models-controllers-and-views/115089)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 16\
**Last updated:** [September 20, 2007, 10:02pm UTC](https://www.ruby-forum.com/t/helper-method-for-models-controllers-and-views/115089 "2007-09-20T22:02:37Z")

</div>

Does anyone know where i can put a helper method so it can be accessed from ANYWHERE? ie from a model, a controller or a view? Currently i’ve got model helper methods in lib/model\_extensions.rb, controller helper met…

---

## [Get updated model values in Controller](https://www.ruby-forum.com/t/get-updated-model-values-in-controller/115075)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 6\
**Last updated:** [September 20, 2007, 9:37pm UTC](https://www.ruby-forum.com/t/get-updated-model-values-in-controller/115075 "2007-09-20T21:37:51Z")

</div>

Hi All, I have a model instance M1 , which has a dynamically changing instance variable say V. I want to access the value of V in my view through controller C using AJAX requests. The problem is that for every new AJ…

---

## [Text\_field\_with\_auto\_complete and safari](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-safari/115128)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [September 20, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-safari/115128 "2007-09-20T21:30:24Z")

</div>

I have created a project and have used text\_field\_with\_auto\_complete and was messing around with and discovered that the field does work well in safari - I can’t get the field to auto complete. If someone want to take …

---

## [Sanity check needed for "include?" - help please](https://www.ruby-forum.com/t/sanity-check-needed-for-include-help-please/115099)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 6\
**Last updated:** [September 20, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/sanity-check-needed-for-include-help-please/115099 "2007-09-20T20:56:17Z")

</div>

I’ve got two objects, @original\_article and @article, both are instances of Article. Both have a list of ‘links’, where links are other articles. I want to test if @original\_article has @article in its links already…

---

## [Enviar formulario a mi mismo](https://www.ruby-forum.com/t/enviar-formulario-a-mi-mismo/115120)

<div class="topic-metadata">

**Author:** [@zaid](https://www.ruby-forum.com/u/zaid)\
**Replies:** 0\
**Last updated:** [September 20, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/enviar-formulario-a-mi-mismo/115120 "2007-09-20T19:59:03Z")

</div>

Hoooola Tengo un formulario con una lista y un botÃ³n. Al pulsar el botÃ³n se tiene q enviar el formulario y mostar una imagen en la capa “layerEjemplo”. Tengo este cÃ³digo. Pero no se como recargar de nuevo el rhmtl…

---

## [Ruby Newby, Delphi oldby -- how snappy is "the Roob"?](https://www.ruby-forum.com/t/ruby-newby-delphi-oldby-how-snappy-is-the-roob/115106)

<div class="topic-metadata">

**Author:** [@Clay\_Shannon](https://www.ruby-forum.com/u/Clay_Shannon)\
**Replies:** 5\
**Last updated:** [September 20, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/ruby-newby-delphi-oldby-how-snappy-is-the-roob/115106 "2007-09-20T19:58:49Z")

</div>

I’ve been a \[Borland, Inprise, CodeGear\] Delphi programmer for a baker’s dozen years. I’m looking into 3rdRail (Borland/CodeGear’s new RoR IDE) as a possible “replacement” for Delpi 2006 in a warehouse project I’m wo…

---

## [Passing an instance of one object to another](https://www.ruby-forum.com/t/passing-an-instance-of-one-object-to-another/115037)

<div class="topic-metadata">

**Author:** [@skoppy](https://www.ruby-forum.com/u/skoppy)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/passing-an-instance-of-one-object-to-another/115037 "2007-09-20T19:44:13Z")

</div>

Hello, I’m working on my first Rails app. It’s a redesign for a magazine site. I have a class for the articles and a class for issues. I’ve set up a has\_many/belongs\_to relationship between the two so that every a…

---

## [Re: gem install problem on os x](https://www.ruby-forum.com/t/re-gem-install-problem-on-os-x/115076)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/re-gem-install-problem-on-os-x/115076 "2007-09-20T19:36:12Z")

</div>

This was on the list recently - you need to install the dev-tools I think, look back in the archives. HTH Clive

---

## [Executing code when the user hits the X button on the browse](https://www.ruby-forum.com/t/executing-code-when-the-user-hits-the-x-button-on-the-browse/115107)

<div class="topic-metadata">

**Author:** [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/executing-code-when-the-user-hits-the-x-button-on-the-browse/115107 "2007-09-20T19:25:08Z")

</div>

I am writting an app that is going to record login times, logout times and the session data of a user of the system. This will work if the user manually logs out, but I would like it to record when the user quits if …

---

## [Rake db:migrate will not migrate](https://www.ruby-forum.com/t/rake-db-migrate-will-not-migrate/115110)

<div class="topic-metadata">

**Author:** [@Konoha](https://www.ruby-forum.com/u/Konoha)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-will-not-migrate/115110 "2007-09-20T19:11:01Z")

</div>

This has always worked previously. I have not changed anything with my database config. I am able to use the credentials in the database.yml file when using mysql -u… Here is the problem: $ rake db:migrate (in /User…

---

## [Redirect STDOUT for Rake?](https://www.ruby-forum.com/t/redirect-stdout-for-rake/115112)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [September 20, 2007, 6:51pm UTC](https://www.ruby-forum.com/t/redirect-stdout-for-rake/115112 "2007-09-20T18:51:58Z")

</div>

Hi, I’m trying to capture the output of my rake tasks/tests and can’t seem to get this working. At the top of my Rake file I’ve got: $stdout = StringIO.new I also put it after loading ‘rake/testtask’ but I get the sa…

---

## [Errno::EACCES - Permission denied while delete a file](https://www.ruby-forum.com/t/errno-eacces-permission-denied-while-delete-a-file/114876)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 1\
**Last updated:** [September 20, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/errno-eacces-permission-denied-while-delete-a-file/114876 "2007-09-20T17:41:50Z")

</div>

hi, i got the error\[Errno::EACCES - Permission denied\] , while deleting my file, for that while searching i came to know i have to set chmod, but i don’t know how to set chmod in my file, if any one knows, how to set …

---

## [Protecting actions from user](https://www.ruby-forum.com/t/protecting-actions-from-user/114602)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 11\
**Last updated:** [September 20, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/protecting-actions-from-user/114602 "2007-09-20T17:33:49Z")

</div>

I have an action in controller called ‘create’ that takes values from ‘new’ form and saves into database. The problem is that user can type …/post/create and it sends blank values to action that then manipulates them …

---

## [Relationship Proxies?](https://www.ruby-forum.com/t/relationship-proxies/115102)

<div class="topic-metadata">

**Author:** [@Geoffrey\_W](https://www.ruby-forum.com/u/Geoffrey_W)\
**Replies:** 1\
**Last updated:** [September 20, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/relationship-proxies/115102 "2007-09-20T17:22:26Z")

</div>

I’m trying to understand these results in irb, which implies that there’s some kind of proxy at play: aaron = User.find\_by\_login ‘aaron’ =\> #\<User:0xb7109cdc @attributes={“salt”=\>“7e3041ebc2fc05a40c60028e2c4901a810…

---

## [Passing objects between actions/controllers](https://www.ruby-forum.com/t/passing-objects-between-actions-controllers/115103)

<div class="topic-metadata">

**Author:** [@mindmage](https://www.ruby-forum.com/u/mindmage)\
**Replies:** 3\
**Last updated:** [September 20, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/passing-objects-between-actions-controllers/115103 "2007-09-20T17:16:15Z")

</div>

Hello! I’ve just started with RoR a few days ago, so please excuse my lack of knowledge :slight\_smile: I have this situation: customer sends search request to DB, gets a list of matching items back. Each item has a l…

---

## [RMagick loading EPS files, trouble with Ghostscript?](https://www.ruby-forum.com/t/rmagick-loading-eps-files-trouble-with-ghostscript/115101)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [September 20, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/rmagick-loading-eps-files-trouble-with-ghostscript/115101 "2007-09-20T16:29:39Z")

</div>

Hi, I have GraphicsMagick and RMagick installed on OS X along with ghostscript to act as the postscript delegate for GM. All latest versions. If I run… im = Magick::Image::read("/testbarcode.eps").first within scri…

---

## [Validating that end\_date doesn't come before start\_date](https://www.ruby-forum.com/t/validating-that-end-date-doesnt-come-before-start-date/115048)

<div class="topic-metadata">

**Author:** [@knb](https://www.ruby-forum.com/u/knb)\
**Replies:** 3\
**Last updated:** [September 20, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/validating-that-end-date-doesnt-come-before-start-date/115048 "2007-09-20T16:23:38Z")

</div>

A user enters two dates. On before\_save, I’m trying to validate that the second date does not come before the first. Assume that start\_date and end\_date are Datetime objects. If I call the following method from the …

---

## [Remote function](https://www.ruby-forum.com/t/remote-function/115003)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 2\
**Last updated:** [September 20, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/remote-function/115003 "2007-09-20T16:23:38Z")

</div>

I have a form to edit a page, with its nice save button. Since it’s in textile I’m writing a preview button which renders the content to html and put it in a div. But, how can I pass to the remote function the current…

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

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