# Rails

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

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

---

## [Showing textarea in correct format](https://www.ruby-forum.com/t/showing-textarea-in-correct-format/88442)

<div class="topic-metadata">

**Author:** [@new\_rails\_user](https://www.ruby-forum.com/u/new_rails_user)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 3:53am UTC](https://www.ruby-forum.com/t/showing-textarea-in-correct-format/88442 "2007-03-11T03:53:26Z")

</div>

I used tinyMCE to let my users enter text at a textarea and store those texts into database. it is working. but I have no idea to show them, each time I show them as html code, like some texts Another text can I sho…

---

## [Postgresql utilities](https://www.ruby-forum.com/t/postgresql-utilities/88244)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 9\
**Last updated:** [March 11, 2007, 2:41am UTC](https://www.ruby-forum.com/t/postgresql-utilities/88244 "2007-03-11T02:41:43Z")

</div>

I’m thinking that it would be very attractive to have some methods in place that would do things like pg\_dump on a per table basis and do things like vacuum but I would want standard out directed to the screen so I co…

---

## [Action Controller: Getting syntax error](https://www.ruby-forum.com/t/action-controller-getting-syntax-error/88436)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 2\
**Last updated:** [March 11, 2007, 2:40am UTC](https://www.ruby-forum.com/t/action-controller-getting-syntax-error/88436 "2007-03-11T02:40:35Z")

</div>

Hi– I’m working my way through the book, Build Your Own Ruby on Rails Web Applications (Sitepoint). I have run into a problem in Chapter 6; I can’t get the ActionController (story.controller.rb) to run correctly. I k…

---

## [Automatic update with has\_and\_belongs\_to\_many (:through)](https://www.ruby-forum.com/t/automatic-update-with-has-and-belongs-to-many-through/88441)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 2:33am UTC](https://www.ruby-forum.com/t/automatic-update-with-has-and-belongs-to-many-through/88441 "2007-03-11T02:33:42Z")

</div>

Hi, I have an application with a relation (many to many) via a :through. I want this to be automatically updated just like with a regular many\_to\_many. Just like I read here: http://wiki.rubyonrails.com/rails/pages/C…

---

## [RadRail and Aptana](https://www.ruby-forum.com/t/radrail-and-aptana/88393)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 4\
**Last updated:** [March 11, 2007, 2:30am UTC](https://www.ruby-forum.com/t/radrail-and-aptana/88393 "2007-03-11T02:30:42Z")

</div>

I read that RadRais is going to be moved to Aptana. What is Apatana exactly? who is using it?

---

## [Eager loading with acts\_as\_tree](https://www.ruby-forum.com/t/eager-loading-with-acts-as-tree/88439)

<div class="topic-metadata">

**Author:** [@RSElliott\_M](https://www.ruby-forum.com/u/RSElliott_M)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 2:29am UTC](https://www.ruby-forum.com/t/eager-loading-with-acts-as-tree/88439 "2007-03-11T02:29:53Z")

</div>

Sigh, I have a new problem every day. Okay I have a model that acts\_as\_tree, so I am trying to eager load the objects + all of their children, plus their children’s children, and so on. However, :include =\> :children…

---

## [Returning values from javascript within a controller](https://www.ruby-forum.com/t/returning-values-from-javascript-within-a-controller/88133)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://www.ruby-forum.com/u/Nathaniel)\
**Replies:** 2\
**Last updated:** [March 11, 2007, 2:26am UTC](https://www.ruby-forum.com/t/returning-values-from-javascript-within-a-controller/88133 "2007-03-11T02:26:55Z")

</div>

Is there a way that I can get hold of the result of a javascript function call from within a controller? There are a few instances where I want to do this. For example, suppose I would like to know if the page to be r…

---

## [Session](https://www.ruby-forum.com/t/session/88386)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 8\
**Last updated:** [March 11, 2007, 2:22am UTC](https://www.ruby-forum.com/t/session/88386 "2007-03-11T02:22:37Z")

</div>

Hello ! I have bought book Agile web development with Ruby on Rails and i have come to the section: sessions. I am having some problems figuring out what does each line of code do. So i would be gratefull if somoeone…

---

## [Best multi level login plugin/engine/gem](https://www.ruby-forum.com/t/best-multi-level-login-plugin-engine-gem/88429)

<div class="topic-metadata">

**Author:** [@Clayton\_C](https://www.ruby-forum.com/u/Clayton_C)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/best-multi-level-login-plugin-engine-gem/88429 "2007-03-10T23:48:23Z")

</div>

Hey all Lots of various login scenarios as im sure most of you know Im looking for one that is mature enough to support both admins and users Can anyone point me in the right direction? I want something that is work…

---

## [Rails 1.1.6 and 1.2.2 comparison?](https://www.ruby-forum.com/t/rails-1-1-6-and-1-2-2-comparison/88395)

<div class="topic-metadata">

**Author:** [@dweinand](https://www.ruby-forum.com/u/dweinand)\
**Replies:** 3\
**Last updated:** [March 10, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/rails-1-1-6-and-1-2-2-comparison/88395 "2007-03-10T23:43:22Z")

</div>

is there a comparison between both versions? what has changed? what’s better? what’s deprecated? and so on. whats to attend migrating an app to 1.2.2? any infos? thank you

---

## [ActiveResources 0.1.0 Released](https://www.ruby-forum.com/t/activeresources-0-1-0-released/88368)

<div class="topic-metadata">

**Author:** [@Lone\_Star\_S](https://www.ruby-forum.com/u/Lone_Star_S)\
**Replies:** 7\
**Last updated:** [March 10, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/activeresources-0-1-0-released/88368 "2007-03-10T23:14:11Z")

</div>

See the blog post at http://blog.lonestarsoftware.net/2007/03/09/active\_resources-010-released/ Reading through the rails blogosphere last week, I read a post (which I can not find again) that suggested a completely d…

---

## [RadRails picked up by Aptana](https://www.ruby-forum.com/t/radrails-picked-up-by-aptana/88185)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 9:13pm UTC](https://www.ruby-forum.com/t/radrails-picked-up-by-aptana/88185 "2007-03-10T21:13:43Z")

</div>

Just saw this on the Ruby On Rails blog: http://www.rubyonrailsblog.com/articles/2007/03/07/radrails-moves-to-aptana Exciting news. b

---

## [Rake Migrate e MySql: access denied?](https://www.ruby-forum.com/t/rake-migrate-e-mysql-access-denied/88114)

<div class="topic-metadata">

**Author:** [@kena](https://www.ruby-forum.com/u/kena)\
**Replies:** 4\
**Last updated:** [March 10, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/rake-migrate-e-mysql-access-denied/88114 "2007-03-10T19:01:00Z")

</div>

Hello. I have set a rails app, set the database.yml file, generated a simple model, created the migration class file for this model and then iÂ´m trying to run the cmd: rake migrate, but i receive the following msg: …

---

## [Plugin to read binary data and render it to browser as .png,](https://www.ruby-forum.com/t/plugin-to-read-binary-data-and-render-it-to-browser-as-png/88407)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 4:53pm UTC](https://www.ruby-forum.com/t/plugin-to-read-binary-data-and-render-it-to-browser-as-png/88407 "2007-03-10T16:53:04Z")

</div>

Hi, I have images stored in a table as binary (decoded/encoded base64) and wish to render them in a browser as varying image formats (jpg, png etc etc etc). I have tried Fleximage but am having absolutely no joy wit…

---

## [(German) Rails Expert for scientific questioning needed](https://www.ruby-forum.com/t/german-rails-expert-for-scientific-questioning-needed/88398)

<div class="topic-metadata">

**Author:** [@Bernd\_Goldschmidt](https://www.ruby-forum.com/u/Bernd_Goldschmidt)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/german-rails-expert-for-scientific-questioning-needed/88398 "2007-03-10T15:21:54Z")

</div>

Hi there. (german version below) I’m looking for a german Ruby on Rails expert for a short interview (aprox. 1 hour) for my thesis, preferably via instant messaging. Participant must have used rails for some time and…

---

## [Flash](https://www.ruby-forum.com/t/flash/88392)

<div class="topic-metadata">

**Author:** [@rupesh\_shelar](https://www.ruby-forum.com/u/rupesh_shelar)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/flash/88392 "2007-03-10T14:40:42Z")

</div>

Hi Need to know how to implement flash movies in rails. Tried once by -\> storing movie in /public/Vendor( created manually) -\>some code in application controlle but was unsuccessful in it.

---

## [I use ImageMagick killed the WebServer of my BOSS :(](https://www.ruby-forum.com/t/i-use-imagemagick-killed-the-webserver-of-my-boss/88394)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/i-use-imagemagick-killed-the-webserver-of-my-boss/88394 "2007-03-10T14:10:38Z")

</div>

after I installed ImageMagick in windows 2003 server,and reboot server to let ruby find some dll,then,things happened, after server reboot for a few second,I start the InstantRails,then the server died, I use windows …

---

## [Accessing session attributes from an integration test](https://www.ruby-forum.com/t/accessing-session-attributes-from-an-integration-test/88360)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 12:58pm UTC](https://www.ruby-forum.com/t/accessing-session-attributes-from-an-integration-test/88360 "2007-03-10T12:58:32Z")

</div>

I have a very simple integration test based off of an example and Agile Web D. with Rails but I can’t seem to get it to work. I’m simply setting a user id in the session via the get method in the test but then can’t a…

---

## [How are error\_messages\_for sorted?](https://www.ruby-forum.com/t/how-are-error-messages-for-sorted/88354)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/how-are-error-messages-for-sorted/88354 "2007-03-10T12:40:31Z")

</div>

This problem is driving me crazy… I’ve implemented the Ruby Cookbook method of user accounts. I’ve got the following code in my user model… validates\_presence\_of :username, :message =\> “can’t be blank” validates\_uni…

---

## [Problem concerning CSV Mime Type](https://www.ruby-forum.com/t/problem-concerning-csv-mime-type/86909)

<div class="topic-metadata">

**Author:** [@ralph](https://www.ruby-forum.com/u/ralph)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 11:01am UTC](https://www.ruby-forum.com/t/problem-concerning-csv-mime-type/86909 "2007-03-10T11:01:06Z")

</div>

Hello, I have an application that should be able to export a list of users as CSV. So I put Mime::Type.register “text/csv”, :csv into my environment.rb, and added this code to my UserController’s index action: f…

---

## [Help! Why is my ActionCaching that slow?](https://www.ruby-forum.com/t/help-why-is-my-actioncaching-that-slow/88146)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 19\
**Last updated:** [March 10, 2007, 10:06am UTC](https://www.ruby-forum.com/t/help-why-is-my-actioncaching-that-slow/88146 "2007-03-10T10:06:40Z")

</div>

I’ve just did some performance-testing with httperf on a virtual server (with a max. of 10 customers per machine) like: httperf --server www.myHOST.com --port 80 --uri /mycontroller/68 –num-conns 400 --rate 45 When a…

---

## [Sessions Problems](https://www.ruby-forum.com/t/sessions-problems/58985)

<div class="topic-metadata">

**Author:** [@kumar](https://www.ruby-forum.com/u/kumar)\
**Replies:** 4\
**Last updated:** [March 10, 2007, 9:51am UTC](https://www.ruby-forum.com/t/sessions-problems/58985 "2007-03-10T09:51:12Z")

</div>

Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. …

---

## [Blank fields getting validated](https://www.ruby-forum.com/t/blank-fields-getting-validated/88301)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 8:07am UTC](https://www.ruby-forum.com/t/blank-fields-getting-validated/88301 "2007-03-10T08:07:11Z")

</div>

Hi, I am not sure if this is already answered in this list. I couldn’t find an answer. So I am posting the question. I have multiple validations for a field. For example: validates\_presence\_of :contact\_email validat…

---

## [\[ANN\] Dojo Toolbocks - v1.0.0](https://www.ruby-forum.com/t/ann-dojo-toolbocks-v1-0-0/88377)

<div class="topic-metadata">

**Author:** [@nshb](https://www.ruby-forum.com/u/nshb)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 7:58am UTC](https://www.ruby-forum.com/t/ann-dojo-toolbocks-v1-0-0/88377 "2007-03-10T07:58:05Z")

</div>

= Dojo\_Toolbocks The Dojo Toolbocks is a superstar plugin (engine) that provides the functionality to include any of the Dojo Toolkit libraries into your Ruby on Rails application. ==Dependencies The dependencies ar…

---

## [Page redirect](https://www.ruby-forum.com/t/page-redirect/87968)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 2\
**Last updated:** [March 10, 2007, 7:10am UTC](https://www.ruby-forum.com/t/page-redirect/87968 "2007-03-10T07:10:02Z")

</div>

i have a small query for all of you i have a report problem link in a view and after reporting the problem sucessfully the page should redirect to the previous page prior to clicking the report problem link

---

## [How do you add/install Ruby classes?](https://www.ruby-forum.com/t/how-do-you-add-install-ruby-classes/88372)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 3\
**Last updated:** [March 10, 2007, 5:45am UTC](https://www.ruby-forum.com/t/how-do-you-add-install-ruby-classes/88372 "2007-03-10T05:45:57Z")

</div>

Hi everyone, I wanted to add this class here for handling passwords: http://www.caliban.org/ruby/ruby-password.shtml But I don’t know how to. There’s nothing on that page. I searched in Google too but found nothing…

---

## [Need help: error\_messages\_for not working](https://www.ruby-forum.com/t/need-help-error-messages-for-not-working/88375)

<div class="topic-metadata">

**Author:** [@askme](https://www.ruby-forum.com/u/askme)\
**Replies:** 1\
**Last updated:** [March 10, 2007, 5:36am UTC](https://www.ruby-forum.com/t/need-help-error-messages-for-not-working/88375 "2007-03-10T05:36:55Z")

</div>

Hi, I’m a newbie to ruby on rails. While I am writing a new application, I bumped into the following issue. My model is as follows: class UserRequest \< ActiveRecord::Base Name can’t contain fewer than 4 chars / more…

---

## [Is mysql\_compression supported?](https://www.ruby-forum.com/t/is-mysql-compression-supported/88374)

<div class="topic-metadata">

**Author:** [@fedot](https://www.ruby-forum.com/u/fedot)\
**Replies:** 0\
**Last updated:** [March 10, 2007, 5:02am UTC](https://www.ruby-forum.com/t/is-mysql-compression-supported/88374 "2007-03-10T05:02:53Z")

</div>

I came across the fact that Ruby DBI MySQL module supports a mysql\_compression option. Is there a way to turn it on via an option in database.yml? Or any other way, for that matter? Thank you, Fyodor Golos

---

## [Unicode not working under Mongrel](https://www.ruby-forum.com/t/unicode-not-working-under-mongrel/88280)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 3\
**Last updated:** [March 10, 2007, 4:10am UTC](https://www.ruby-forum.com/t/unicode-not-working-under-mongrel/88280 "2007-03-10T04:10:49Z")

</div>

hi! I started my app in mongrel and everything works fine, except that it doesn’t show the unicode chars right. it worked under WEBrick… where should I start tackling the problem? thank you! david

---

## [Passing rails data to javascript](https://www.ruby-forum.com/t/passing-rails-data-to-javascript/88255)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 4\
**Last updated:** [March 10, 2007, 4:09am UTC](https://www.ruby-forum.com/t/passing-rails-data-to-javascript/88255 "2007-03-10T04:09:48Z")

</div>

Hi there how do I pass rails data to a JS array? like arr\[0\] = @user.name arr\[1\] = @user.location something like that I’ve been trying differente approaches but no luck so far thanks in advance

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

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