# Rails

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

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

---

## [Plugin](https://www.ruby-forum.com/t/plugin/90565)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/plugin/90565 "2007-03-29T23:05:06Z")

</div>

Hi, I have this code in a plugin: module ActionController module Routing def default\_controller ActionController::Routing::Routes.routes\[0\].requirements\[:controller\] end def default\_action ActionController::Routi…

---

## [Date Integrity and Form Security](https://www.ruby-forum.com/t/date-integrity-and-form-security/90563)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/date-integrity-and-form-security/90563 "2007-03-29T22:59:05Z")

</div>

I’m new to rails, and am used to technology that takes care of the following issue for you: When using forms in rails, all your data paths lay exposed to the user. It’s easy for them to hack the HTML so that when the…

---

## [Has\_many :through with :order?](https://www.ruby-forum.com/t/has-many-through-with-order/90538)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/has-many-through-with-order/90538 "2007-03-29T22:41:02Z")

</div>

Let’s say I have class Student \< ActiveRecord::Base has\_many :classes\_students has\_many :classes, :through =\> :classes\_students end I want the list of classes for each student to be sorted by the class title. I co…

---

## [Getting the default route](https://www.ruby-forum.com/t/getting-the-default-route/90465)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/getting-the-default-route/90465 "2007-03-29T22:37:01Z")

</div>

Hi, I’m using this plugin to get the default controller / action: module ActionController module Routing def get\_default\_controller ActionController::Routing::Routes.routes\[0\].requirements\[:controller\] end def get…

---

## [Rmagick - Incorporating dynamic images](https://www.ruby-forum.com/t/rmagick-incorporating-dynamic-images/90533)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/rmagick-incorporating-dynamic-images/90533 "2007-03-29T22:27:00Z")

</div>

Hi – I have imagemagick and rmagick installed so that I can produce images from code to a file. Can anyone direct me to where I can find guidance on how to have those images included on a web page (e.g., \<img src=“m…

---

## [Parse excel file](https://www.ruby-forum.com/t/parse-excel-file/90551)

<div class="topic-metadata">

**Author:** [@kbkbkb](https://www.ruby-forum.com/u/kbkbkb)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/parse-excel-file/90551 "2007-03-29T22:09:48Z")

</div>

is there a way to nativley read from and write to an excel (.xls) file with Ruby. I want users to be able to upload data from Excel into a MySQL database.

---

## [Can after\_filter contain redirect\_to?](https://www.ruby-forum.com/t/can-after-filter-contain-redirect-to/90483)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 6\
**Last updated:** [March 29, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/can-after-filter-contain-redirect-to/90483 "2007-03-29T21:54:41Z")

</div>

I want to occasionally render a certain page after an action (other than the default rendering). I was thinking that an after\_filter would be the ticket. However, my initial attempts at including redirect\_to in an a…

---

## [Some products have 0, 1, 2 or 3 images. How to display- bas](https://www.ruby-forum.com/t/some-products-have-0-1-2-or-3-images-how-to-display-bas/90547)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 9:49pm UTC](https://www.ruby-forum.com/t/some-products-have-0-1-2-or-3-images-how-to-display-bas/90547 "2007-03-29T21:49:41Z")

</div>

So this is the bassic html w/ eRB: But what if the database has a pic2\_url and a pic3\_url (some will have 1 picture, some 2, and some 3)? Obviously it shouldn’t display pic2\_url and pic3\_url if they aren’t there. A…

---

## [Url rewriting problem with rails 1.2.3](https://www.ruby-forum.com/t/url-rewriting-problem-with-rails-1-2-3/90544)

<div class="topic-metadata">

**Author:** [@hansdons](https://www.ruby-forum.com/u/hansdons)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/url-rewriting-problem-with-rails-1-2-3/90544 "2007-03-29T21:26:35Z")

</div>

Very frustrated. I recently upgraded from earlier Rails version to new one (1.2.3). On the new version Rails (or webrick, not sure) messes up or rewrites incorrecly a url provided by javascript: I have a simple piece …

---

## [Instantly Turn your Computer into a Super TV](https://www.ruby-forum.com/t/instantly-turn-your-computer-into-a-super-tv/90546)

<div class="topic-metadata">

**Author:** [@maniSSSS](https://www.ruby-forum.com/u/maniSSSS)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/instantly-turn-your-computer-into-a-super-tv/90546 "2007-03-29T21:21:34Z")

</div>

Instantly Turn your Computer into a Super TV - http://surl.in/HLSTV238206SVRAKSX-google

---

## [Bad email address on subscription list](https://www.ruby-forum.com/t/bad-email-address-on-subscription-list/90427)

<div class="topic-metadata">

**Author:** [@Russell\_N](https://www.ruby-forum.com/u/Russell_N)\
**Replies:** 5\
**Last updated:** [March 29, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/bad-email-address-on-subscription-list/90427 "2007-03-29T20:56:17Z")

</div>

Every time I post a reply, I get back a couple of these errors about my mail to “removed\_email\_address@domain.invalid” bouncing. I presume I’m not the only one. Can something be done about this? RSL

---

## [Broken path from Mac to Windows](https://www.ruby-forum.com/t/broken-path-from-mac-to-windows/90541)

<div class="topic-metadata">

**Author:** [@William\_Fawcett](https://www.ruby-forum.com/u/William_Fawcett)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/broken-path-from-mac-to-windows/90541 "2007-03-29T20:55:16Z")

</div>

I’ll start with the obvious, I am a RoR noob, but I have an issue that I need a more experienced pair of eyes to look at. I am working with an application that was originally developed in a Mac OS X environment that i…

---

## [1px Apple Safari bug](https://www.ruby-forum.com/t/1px-apple-safari-bug/90510)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/1px-apple-safari-bug/90510 "2007-03-29T20:26:06Z")

</div>

Try rendering this html in safari and you’ll see what I mean. It does not show up in Firefox. asdf asdf

---

## [How to work on database view](https://www.ruby-forum.com/t/how-to-work-on-database-view/90493)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/how-to-work-on-database-view/90493 "2007-03-29T20:26:06Z")

</div>

if i want to work on view of a table how can i do that. Ruby on rails will support for that

---

## [Howto populate database with model data?](https://www.ruby-forum.com/t/howto-populate-database-with-model-data/90520)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [March 29, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/howto-populate-database-with-model-data/90520 "2007-03-29T20:24:02Z")

</div>

is there a rails way? my brute force thinking is just put a while loop and a case statement in the index function like this num = 0 typenum = 0 while num \< 200 when typenum case 1 @something = Model.new @somethi…

---

## [Textile Editor Plugin Live Demo](https://www.ruby-forum.com/t/textile-editor-plugin-live-demo/90459)

<div class="topic-metadata">

**Author:** [@Dave\_O](https://www.ruby-forum.com/u/Dave_O)\
**Replies:** 6\
**Last updated:** [March 29, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/textile-editor-plugin-live-demo/90459 "2007-03-29T19:53:49Z")

</div>

All- We’ve had requests for a live demo of the Textile Editor Helper plugin. It’s now available at: http://slateinfo.blogs.wvu.edu/plugins/textile\_editor\_helper/demo We’ve also made some changes/fixes: Chris W. su…

---

## [HOWTO: Textile Editor Helper & acts\_as\_textiled](https://www.ruby-forum.com/t/howto-textile-editor-helper-acts-as-textiled/90536)

<div class="topic-metadata">

**Author:** [@mohits](https://www.ruby-forum.com/u/mohits)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/howto-textile-editor-helper-acts-as-textiled/90536 "2007-03-29T18:05:32Z")

</div>

Hi Dave, Chris, et al. Thanks for all your help in getting the Textile Editor Helper working for me. While I can’t explain why one download worked without including prototype.js and the other requires it, I have put …

---

## [Improving on: truncate(..) + rendered text?](https://www.ruby-forum.com/t/improving-on-truncate-rendered-text/90495)

<div class="topic-metadata">

**Author:** [@aravet](https://www.ruby-forum.com/u/aravet)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 5:46pm UTC](https://www.ruby-forum.com/t/improving-on-truncate-rendered-text/90495 "2007-03-29T17:46:26Z")

</div>

Hello all, In a summary page I need to show the 1st 100 chars of textilized messages. Problem: truncate(…) would often cut in the middle of html tags =\> random result. My first idea was to “repair” the broken text w…

---

## [Help with arrays in forms(getting value from http request pa](https://www.ruby-forum.com/t/help-with-arrays-in-forms-getting-value-from-http-request-pa/90490)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 4\
**Last updated:** [March 29, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/help-with-arrays-in-forms-getting-value-from-http-request-pa/90490 "2007-03-29T17:45:25Z")

</div>

Hi all, I’m having some trouble getting form data from params, and I could use some help. A contact can have an unlimited number of phone numbers, so I want the ability to add more phone text boxes (via AJAX) as the…

---

## [Revision control plan](https://www.ruby-forum.com/t/revision-control-plan/90231)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 5:43pm UTC](https://www.ruby-forum.com/t/revision-control-plan/90231 "2007-03-29T17:43:01Z")

</div>

Hi, I want to start using svn for my projects. I’m a one person company. I want to use it for revision control, archiving/backup, as well as deployment (eventually). And from time to time, I work with subcontractors …

---

## [\[ANN\] New Rails Live Music Site](https://www.ruby-forum.com/t/ann-new-rails-live-music-site/90532)

<div class="topic-metadata">

**Author:** [@Lindsay](https://www.ruby-forum.com/u/Lindsay)\
**Replies:** 0\
**Last updated:** [March 29, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/ann-new-rails-live-music-site/90532 "2007-03-29T17:40:28Z")

</div>

Hi, Just a quick announcement about a new Rails site: neugig.com. The basic idea is to allow bands to sell live recordings, fans to discuss past and future shows, and venues to promote upcoming gigs. Oh, and there’s …

---

## [Could not determine latest\_revision](https://www.ruby-forum.com/t/could-not-determine-latest-revision/90525)

<div class="topic-metadata">

**Author:** [@hailandkill](https://www.ruby-forum.com/u/hailandkill)\
**Replies:** 7\
**Last updated:** [March 29, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/could-not-determine-latest-revision/90525 "2007-03-29T17:33:24Z")

</div>

Hi there. I’ve been trying to deploy a rails app to one of my web servers with little success. I’ve only been following the instructions from Agile Web Development. Everything seemed to go well until I got to # rake…

---

## [ActiveRecord find](https://www.ruby-forum.com/t/activerecord-find/90517)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 12\
**Last updated:** [March 29, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/activerecord-find/90517 "2007-03-29T17:27:16Z")

</div>

Hey guys, The find below works just fine: @companies = Company.find(:all, :conditions =\> \[‘name = :input’, {:input =\> input}\], :include =\> \[:application\]) I was wondering, is there a…

---

## [Engines, Rails 1.2, ActiveRbac](https://www.ruby-forum.com/t/engines-rails-1-2-activerbac/82904)

<div class="topic-metadata">

**Author:** [@Hendy\_I](https://www.ruby-forum.com/u/Hendy_I)\
**Replies:** 3\
**Last updated:** [March 29, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/engines-rails-1-2-activerbac/82904 "2007-03-29T17:13:49Z")

</div>

Hi, Dr. Adam, is there still any “known issues” with Engines “latest stable” (or maybe trunk) and Rails 1.2? And to ActiveRbac developers… I would want to know what’s the current situation (uggh, so militaristic) reg…

---

## [Iconv does not work with french characters](https://www.ruby-forum.com/t/iconv-does-not-work-with-french-characters/90440)

<div class="topic-metadata">

**Author:** [@jjanauskas](https://www.ruby-forum.com/u/jjanauskas)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/iconv-does-not-work-with-french-characters/90440 "2007-03-29T17:07:17Z")

</div>

Hello, I am trying to convert french characters into latin ones using inconv but I face some problems. Here is what I am doing in ruby console: $KCODE = ‘u’ =\> “u” @x = ‘x Ã©Ã¨Ã§Ã x’ =\> “x Ã©Ã¨Ã§Ã x” Icon…

---

## [Rails Logic](https://www.ruby-forum.com/t/rails-logic/90512)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 3\
**Last updated:** [March 29, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/rails-logic/90512 "2007-03-29T15:52:16Z")

</div>

I want to write a function that takes a date in the future and returns how many days are left until that date. However, I am not sure where it should go - the model seems to be purely for database interactions, and th…

---

## [Looking for a minimalist blog](https://www.ruby-forum.com/t/looking-for-a-minimalist-blog/90476)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 2\
**Last updated:** [March 29, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/looking-for-a-minimalist-blog/90476 "2007-03-29T15:44:15Z")

</div>

hey all, I’m looking for a minimalist blog that I could embed into an existing application, it’s only for one user and doesn’t need to be fancy. thanx in advance Pat

---

## [Plugin update management - can someone explain please?/](https://www.ruby-forum.com/t/plugin-update-management-can-someone-explain-please/90485)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/plugin-update-management-can-someone-explain-please/90485 "2007-03-29T15:24:13Z")

</div>

Hi guys, I’m just after clarification regarding how plugins can be managed (updated, frozen etc). Like: a) Once installed what are the options for updating a plugin? b) Are there global “update” methods available t…

---

## [Is AR thread safe or not?](https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 1\
**Last updated:** [March 29, 2007, 3:06pm UTC](https://www.ruby-forum.com/t/is-ar-thread-safe-or-not/90507 "2007-03-29T15:06:08Z")

</div>

I’ve seen a variety of claims that ActiveRecord isn’t thread safe, but no actual evidence. Has anyone actually experienced threading problems in ActiveRecord in the current Rails release? Jon

---

## [Routing URL?](https://www.ruby-forum.com/t/routing-url/90285)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 15\
**Last updated:** [March 29, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/routing-url/90285 "2007-03-29T14:37:03Z")

</div>

Hello, I’m trying to do develop some modules so I can reuse all my codes in different projects. I need to put routing in different files, and in route.rb include the files which have my routing code, but I don’t know…

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

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