# Rails

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

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

---

## [\[ANN\] New plugin - Text Formatter](https://www.ruby-forum.com/t/ann-new-plugin-text-formatter/114296)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 1\
**Last updated:** [September 12, 2007, 4:48am UTC](https://www.ruby-forum.com/t/ann-new-plugin-text-formatter/114296 "2007-09-12T04:48:00Z")

</div>

TextFormatter plugin allows you filter user input, use the syntax gem, before it is saved to the database. If anyone has any suggestions or constructive feedback on these new plugins, please send them over. http://ww…

---

## [The Law of Attraction - Mind Movie](https://www.ruby-forum.com/t/the-law-of-attraction-mind-movie/114385)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [September 12, 2007, 1:46am UTC](https://www.ruby-forum.com/t/the-law-of-attraction-mind-movie/114385 "2007-09-12T01:46:44Z")

</div>

Check out this blog http://mindmovie.blogspot.com/

---

## [Determining an association type](https://www.ruby-forum.com/t/determining-an-association-type/114381)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 1:28am UTC](https://www.ruby-forum.com/t/determining-an-association-type/114381 "2007-09-12T01:28:44Z")

</div>

I’d like to know if an association is a has\_many, belongs\_to, or has\_one. I was hoping I could do something like this: company.sites.is\_a? ActiveRecord::Associations::HasManyAssociation however that doesn’t work, it …

---

## ["deprecate" a column](https://www.ruby-forum.com/t/deprecate-a-column/114378)

<div class="topic-metadata">

**Author:** [@chillexistence](https://www.ruby-forum.com/u/chillexistence)\
**Replies:** 3\
**Last updated:** [September 12, 2007, 1:22am UTC](https://www.ruby-forum.com/t/deprecate-a-column/114378 "2007-09-12T01:22:49Z")

</div>

Does anyone know of a plugin to “deprecate” a column so active record won’t try and save the column back to the DB? This would allow the old column to eventually be dropped without having to take down your site or st…

---

## [Custom 500 error handler still displaying default error text](https://www.ruby-forum.com/t/custom-500-error-handler-still-displaying-default-error-text/65732)

<div class="topic-metadata">

**Author:** [@folke](https://www.ruby-forum.com/u/folke)\
**Replies:** 2\
**Last updated:** [September 12, 2007, 12:03am UTC](https://www.ruby-forum.com/t/custom-500-error-handler-still-displaying-default-error-text/65732 "2007-09-12T00:03:17Z")

</div>

I’ve overridden the default error handling mechanism with a custom error handler library that’s included in environment.rb: class ActionController::Base def rescue\_action\_in\_public(exception) case exception when A…

---

## [\[ANN\] Vancouver Ruby/Rails Meetup Today Sep/12 @ 7:00pm](https://www.ruby-forum.com/t/ann-vancouver-ruby-rails-meetup-today-sep-12-7-00pm/114377)

<div class="topic-metadata">

**Author:** [@gerald\_b](https://www.ruby-forum.com/u/gerald_b)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/ann-vancouver-ruby-rails-meetup-today-sep-12-7-00pm/114377 "2007-09-11T23:57:36Z")

</div>

Hello, Please join us at today’s Vancouver Ruby/Rails Meetup as Scott Patten talks about creating a DSL in Ruby for Ploticus and Paul Prescod and Vince Hodges talk about developing Facebook Apps using Ruby on Rails a…

---

## [Activerecord not working](https://www.ruby-forum.com/t/activerecord-not-working/114327)

<div class="topic-metadata">

**Author:** [@dodgyboz](https://www.ruby-forum.com/u/dodgyboz)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/activerecord-not-working/114327 "2007-09-11T23:04:31Z")

</div>

Hi all, I have a table like the one below called key\_value\_pairs id spec val 1 size small 2 size medium 3 size small In my controller i have def edit @pair = KeyValuePair.find(pa…

---

## [Capistrano2 svn tag support](https://www.ruby-forum.com/t/capistrano2-svn-tag-support/114366)

<div class="topic-metadata">

**Author:** [@skwp](https://www.ruby-forum.com/u/skwp)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/capistrano2-svn-tag-support/114366 "2007-09-11T21:45:45Z")

</div>

I’ve released a (what I think is) very clean implementation of tag support for cap2. It’s only about ten lines of code. Looking for someone to help turn it into a proper library because right now you have to paste it …

---

## [\[ANN\] Milwaukee RUG meeting tomorrow 9/12/07 @ 5:30pm](https://www.ruby-forum.com/t/ann-milwaukee-rug-meeting-tomorrow-9-12-07-5-30pm/114365)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/ann-milwaukee-rug-meeting-tomorrow-9-12-07-5-30pm/114365 "2007-09-11T21:44:45Z")

</div>

Please join us as Simon Twigger talks to us about “Writing software for biomedical research using Ruby and Rails” as always we will be meeting at Stark Investments Development Center 1000 North Water St. 11th Floor …

---

## [Executing a Java jar file from my Rails app](https://www.ruby-forum.com/t/executing-a-java-jar-file-from-my-rails-app/114338)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 1\
**Last updated:** [September 11, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/executing-a-java-jar-file-from-my-rails-app/114338 "2007-09-11T21:43:44Z")

</div>

Using the following as a reference: http://wiki.rubyonrails.org/rails/pages/HowtoGenerateJFreeCharts I’m trying to build some charts and I need to call a .jar file from within my controller. Here’s my code: pipe = I…

---

## [Postgres nonstandard use of \\\\ in a string literal](https://www.ruby-forum.com/t/postgres-nonstandard-use-of-in-a-string-literal/114344)

<div class="topic-metadata">

**Author:** [@jacob\_a](https://www.ruby-forum.com/u/jacob_a)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/postgres-nonstandard-use-of-in-a-string-literal/114344 "2007-09-11T21:33:42Z")

</div>

Hi list, I have recently noticed the following warning in various places in regards to Rails and YAML serialized data: WARNING: nonstandard use of \\ in a string literal LINE 1: …ed\_at" = ‘2007-09-11 14:51:31’, “seri…

---

## [Anybody trying God (a monit like Ruby process monitor)](https://www.ruby-forum.com/t/anybody-trying-god-a-monit-like-ruby-process-monitor/112081)

<div class="topic-metadata">

**Author:** [@AnSSS\_bal\_Rojas](https://www.ruby-forum.com/u/AnSSS_bal_Rojas)\
**Replies:** 7\
**Last updated:** [September 11, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/anybody-trying-god-a-monit-like-ruby-process-monitor/112081 "2007-09-11T21:32:41Z")

</div>

Hello, I found God (http://god.rubyforge.org/) it looks cool, I am considering to give it a try. Anybody using it? – Aníbal Rojas

---

## [Newbie with setup questions](https://www.ruby-forum.com/t/newbie-with-setup-questions/114362)

<div class="topic-metadata">

**Author:** [@makki](https://www.ruby-forum.com/u/makki)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/newbie-with-setup-questions/114362 "2007-09-11T20:58:51Z")

</div>

I’ve been reading a lot, getting myself prepared to write my first application and need some advice on a development environment. The application is simple enough, just mainly going to be a record keeper, time sheet …

---

## [Showing related table data in show.rhtml](https://www.ruby-forum.com/t/showing-related-table-data-in-show-rhtml/113944)

<div class="topic-metadata">

**Author:** [@Stoop](https://www.ruby-forum.com/u/Stoop)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/showing-related-table-data-in-show-rhtml/113944 "2007-09-11T20:50:35Z")

</div>

I have been following a few Rails Beginner tutorials and have been able to get a good simple app up where I have a bunch of servers and I am tracking the number of users on those servers every week. I have been able t…

---

## [Building a relationship between an image and a listing](https://www.ruby-forum.com/t/building-a-relationship-between-an-image-and-a-listing/225967)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/building-a-relationship-between-an-image-and-a-listing/225967 "2007-09-11T19:22:13Z")

</div>

http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment\_fu-and-responds\_to\_parent I followed this tutorial, and would like to implement it into my restaurant listing creation form. I am havi…

---

## [Accessing a Hash from the form Params](https://www.ruby-forum.com/t/accessing-a-hash-from-the-form-params/114330)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/accessing-a-hash-from-the-form-params/114330 "2007-09-11T19:21:57Z")

</div>

I have a form that is passing back the following parameters to my controller Parameters: {“umpire”=\>{“1”=\>“Smith”, “2”=\>“Jones”, “3”=\>""} In my Controller I would then like to loop through these new values updating m…

---

## [Existing Oracle schema with its own sequence](https://www.ruby-forum.com/t/existing-oracle-schema-with-its-own-sequence/111930)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 6\
**Last updated:** [September 11, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/existing-oracle-schema-with-its-own-sequence/111930 "2007-09-11T19:02:20Z")

</div>

I’m mapping a new RoR application onto an existing Oracle schema. The tables usually have a primary key named id, but the sequences that assign new id values don’t have Rails-convention names. Is there a way to tell R…

---

## [What do you think of this vps?](https://www.ruby-forum.com/t/what-do-you-think-of-this-vps/88695)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 16\
**Last updated:** [September 11, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/what-do-you-think-of-this-vps/88695 "2007-09-11T17:54:10Z")

</div>

Hi, i’ve to choose a good vps and i’ve found this: http://www.adiungo.com/hosting/ what do you think (XHP) ? And about centos with rails and postgres what do you think? the problem maybe is that i don’t know centos, …

---

## [Using a helper method in a model](https://www.ruby-forum.com/t/using-a-helper-method-in-a-model/114346)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 1\
**Last updated:** [September 11, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/using-a-helper-method-in-a-model/114346 "2007-09-11T17:42:55Z")

</div>

I know this is officially a bad design but I need to use the link\_to method in a model and cannot seem to call the method correctly, can anyone point me in the right direction?

---

## [Creating users for Recipes authentication method](https://www.ruby-forum.com/t/creating-users-for-recipes-authentication-method/114335)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/creating-users-for-recipes-authentication-method/114335 "2007-09-11T17:26:22Z")

</div>

If using recipe 31 in Mr. Fowler’s book, one ought really to add a form for user creation. Something like this (within user\_controller.rb), perhaps: def register @user = User.create if request.post? @user.attribute…

---

## [From\_xml not working](https://www.ruby-forum.com/t/from-xml-not-working/114343)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/from-xml-not-working/114343 "2007-09-11T16:28:53Z")

</div>

I’m having trouble using Hash.from\_xml, so I dropped into script/ console to see what was happening. t = Trackable.find(1) =\> #\<Activity:0xb707e5b0 @attributes={“visibility”=\>“0”, “code”=\>“K”, “type”=\>“Activity”, “…

---

## [Debug in ROR](https://www.ruby-forum.com/t/debug-in-ror/114320)

<div class="topic-metadata">

**Author:** [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/debug-in-ror/114320 "2007-09-11T16:26:53Z")

</div>

How to debug in ruby on rails.Can anyone tell?? Any help will be appreciate

---

## [Specify alternate project name when creating new rails proj?](https://www.ruby-forum.com/t/specify-alternate-project-name-when-creating-new-rails-proj/114340)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/specify-alternate-project-name-when-creating-new-rails-proj/114340 "2007-09-11T15:52:58Z")

</div>

I was just looking over the help file for the rails executable (rails –help), but I didn’t see a way to specify a specific project name. I usually keep all of my projects in a Projects folder, then sub folders based o…

---

## [Password validation](https://www.ruby-forum.com/t/password-validation/86250)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/password-validation/86250 "2007-09-11T15:46:36Z")

</div>

i’m using the authentication chapter in the rails recipes book to help me out, but i ran into a snag… it uses password\_hash and password\_salt as the fields for storing the database info. but in the model, there is a p…

---

## [Problem with ajax validation tutorial](https://www.ruby-forum.com/t/problem-with-ajax-validation-tutorial/114339)

<div class="topic-metadata">

**Author:** [@reyntjensw](https://www.ruby-forum.com/u/reyntjensw)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/problem-with-ajax-validation-tutorial/114339 "2007-09-11T15:39:30Z")

</div>

Hi, I’d like to make an ajax form validation, like this : http://www.davidjrice.co.uk/files/ajax\_validation.mov But the problem is that there is a tutorial that isn’t working fine (at al:s) : http://www.davidjrice.co…

---

## [How to debug a varible/collection/array](https://www.ruby-forum.com/t/how-to-debug-a-varible-collection-array/114331)

<div class="topic-metadata">

**Author:** [@SMARTEGURU](https://www.ruby-forum.com/u/SMARTEGURU)\
**Replies:** 3\
**Last updated:** [September 11, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-debug-a-varible-collection-array/114331 "2007-09-11T15:09:40Z")

</div>

Hi, is there any function in ruby like print\_r in php. i want to debug variable/collection/session array in browser. if i use puts it give nothing

---

## [Question about performance, which is better?](https://www.ruby-forum.com/t/question-about-performance-which-is-better/114333)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 3:04pm UTC](https://www.ruby-forum.com/t/question-about-performance-which-is-better/114333 "2007-09-11T15:04:10Z")

</div>

Hi, i’ve to make a permalink and i’ve to choose about two options. The first one is to make the permalink id-name and save it in the db and then search the product using the permalink The second one is to make everyti…

---

## [Multi form wizard](https://www.ruby-forum.com/t/multi-form-wizard/114336)

<div class="topic-metadata">

**Author:** [@Anand\_duhan](https://www.ruby-forum.com/u/Anand_duhan)\
**Replies:** 0\
**Last updated:** [September 11, 2007, 2:37pm UTC](https://www.ruby-forum.com/t/multi-form-wizard/114336 "2007-09-11T14:37:37Z")

</div>

Hi There I am using Multi-form as given at URL:- http://snippets.dzone.com/posts/show/277 Now I have to validate each step that may contain more than one model validation and if validated it should go to the second s…

---

## [Perfect Rails emacs ide](https://www.ruby-forum.com/t/perfect-rails-emacs-ide/114306)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 5\
**Last updated:** [September 11, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/perfect-rails-emacs-ide/114306 "2007-09-11T14:18:51Z")

</div>

Hello list! I currently use emacs for planning and notes (PlannerMode). Been using RadRails for Ruby/Rails dev but can’t stand it anymore. I’d like to set up emacs to be a powerful rails/ruby ide. However, I’m confu…

---

## [What is that?](https://www.ruby-forum.com/t/what-is-that/114188)

<div class="topic-metadata">

**Author:** [@alexey.Creopolis](https://www.ruby-forum.com/u/alexey.Creopolis)\
**Replies:** 2\
**Last updated:** [September 11, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/what-is-that/114188 "2007-09-11T13:40:28Z")

</div>

Does anyone can define this function ? range.inject(Hash.new(0)){|h,e| h\[e\] += 1; h} \* range is array of integers like: \[1,22,12,8,45,3,etc…\] :slight\_smile:

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

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