# Rails

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

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

---

## [Checking redirection or the previous action](https://www.ruby-forum.com/t/checking-redirection-or-the-previous-action/91467)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/checking-redirection-or-the-previous-action/91467 "2007-04-10T12:37:14Z")

</div>

Hi you all, I have two actions in my controller in this way: def list\_by\_bubble Bla bla bla redirect\_to(:action =\> ‘list\_by\_filter’) end def list\_by\_filter #To display always Bla bla bla #To display just the res…

---

## [How to test views](https://www.ruby-forum.com/t/how-to-test-views/91553)

<div class="topic-metadata">

**Author:** [@venkat](https://www.ruby-forum.com/u/venkat)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 12:15pm UTC](https://www.ruby-forum.com/t/how-to-test-views/91553 "2007-04-10T12:15:05Z")

</div>

Hi, Please help me how to test my views in rails? Thnaks Venkat

---

## [Newbie :: Convert integer to string in Ruby](https://www.ruby-forum.com/t/newbie-convert-integer-to-string-in-ruby/91550)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 12:14pm UTC](https://www.ruby-forum.com/t/newbie-convert-integer-to-string-in-ruby/91550 "2007-04-10T12:14:16Z")

</div>

Hi all, Please anybody tell me how to Convert integer to string in Ruby and concat it. Suppose I’ve a string “ABC” , I want to concat it with a number say “ABC12” . Please help me out. Thanks

---

## [Rails/info/properties wont work in production](https://www.ruby-forum.com/t/rails-info-properties-wont-work-in-production/91518)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 11:31am UTC](https://www.ruby-forum.com/t/rails-info-properties-wont-work-in-production/91518 "2007-04-10T11:31:12Z")

</div>

Is it intentional that rails/info/properties will not work in production? It works fine in my development environment and is useful for checking all versions. However in production it just gives: ActionController::Ro…

---

## [Why comments feed is opening as a dialog box](https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 10:45am UTC](https://www.ruby-forum.com/t/why-comments-feed-is-opening-as-a-dialog-box/91483 "2007-04-10T10:45:52Z")

</div>

visit this site. http://eventsinindia.com/event/2551 Now click on ‘comments feed’ link . In both IE and Firefox it prompts to open a dialog box. As per feed validator the comments feed is a valid feed. (http://event…

---

## [Redbox Help](https://www.ruby-forum.com/t/redbox-help/91549)

<div class="topic-metadata">

**Author:** [@muralimaran](https://www.ruby-forum.com/u/muralimaran)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 10:40am UTC](https://www.ruby-forum.com/t/redbox-help/91549 "2007-04-10T10:40:13Z")

</div>

Hi Folks, I am very new to rails, please help me in redbox plugin, that i can able to work with redbox and i can access a single page output., but i need to refresh that page for different action. e.g., i have a link …

---

## [ActiveRecord: Pointing to two records in one table from a re](https://www.ruby-forum.com/t/activerecord-pointing-to-two-records-in-one-table-from-a-re/91531)

<div class="topic-metadata">

**Author:** [@mrmarkham](https://www.ruby-forum.com/u/mrmarkham)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 10:32am UTC](https://www.ruby-forum.com/t/activerecord-pointing-to-two-records-in-one-table-from-a-re/91531 "2007-04-10T10:32:51Z")

</div>

I’m relatively new to Rails (well, I got involved in it last fall, but got away from it) and am trying to figure out a reasonable way to model the following: team id name game id first\_team\_id frist\_team\_score se…

---

## [Change in default xml, rjs respond\_to templates that Rails l](https://www.ruby-forum.com/t/change-in-default-xml-rjs-respond-to-templates-that-rails-l/91546)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 9:41am UTC](https://www.ruby-forum.com/t/change-in-default-xml-rjs-respond-to-templates-that-rails-l/91546 "2007-04-10T09:41:44Z")

</div>

Not sure if this is the right avenue to discuss this but I couldn’t find anywhere to ask this question on Rails Trac. Regarding this latest changeset: http://dev.rubyonrails.org/changeset/6507 (Change default respond\_…

---

## [Best related select / sub-list plugin?](https://www.ruby-forum.com/t/best-related-select-sub-list-plugin/91544)

<div class="topic-metadata">

**Author:** [@rovnak](https://www.ruby-forum.com/u/rovnak)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 9:15am UTC](https://www.ruby-forum.com/t/best-related-select-sub-list-plugin/91544 "2007-04-10T09:15:43Z")

</div>

Hello. Interested int he classic related select scenario. Countries in one list. Cities in a second list. Both lists are on the same page and both are active. I want to make them related - so that the Cities list onl…

---

## [Best way to develop a self-contained widget?](https://www.ruby-forum.com/t/best-way-to-develop-a-self-contained-widget/91543)

<div class="topic-metadata">

**Author:** [@jug](https://www.ruby-forum.com/u/jug)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 9:07am UTC](https://www.ruby-forum.com/t/best-way-to-develop-a-self-contained-widget/91543 "2007-04-10T09:07:15Z")

</div>

Hello, I am developing a small widget composed of several form elements, which are connected with javascript code (i.e. what the user does on an element has an impact on what another element shows). At first I put th…

---

## [Protecting source code](https://www.ruby-forum.com/t/protecting-source-code/91539)

<div class="topic-metadata">

**Author:** [@siegi](https://www.ruby-forum.com/u/siegi)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 8:55am UTC](https://www.ruby-forum.com/t/protecting-source-code/91539 "2007-04-10T08:55:35Z")

</div>

hi, i know in the age of open source software this question might seem old- fashioned, but: how do you deal with source code for commercial ruby on rails applications? how do you protect the source code in subversio…

---

## [Need substitute of mechanize rubygem](https://www.ruby-forum.com/t/need-substitute-of-mechanize-rubygem/91541)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 8:41am UTC](https://www.ruby-forum.com/t/need-substitute-of-mechanize-rubygem/91541 "2007-04-10T08:41:38Z")

</div>

Hello friends could you please let me known if there is any substitute of mechanize or similar to the mechanize which is used for website interaction… Thanks…

---

## [Huge collection of Sanjaya Malakar's videos, parodies, jokes](https://www.ruby-forum.com/t/huge-collection-of-sanjaya-malakars-videos-parodies-jokes/91538)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 6:42am UTC](https://www.ruby-forum.com/t/huge-collection-of-sanjaya-malakars-videos-parodies-jokes/91538 "2007-04-10T06:42:31Z")

</div>

Huge collection of Sanjaya Malakar’s videos, parodies, jokes http://www.teenwag.com/playvideo/3817 http://www.teenwag.com/playvideo/3816 http://www.teenwag.com/playvideo/3814 http://www.teenwag.com/playvideo/3813 ht…

---

## [RESTful URL quesiton](https://www.ruby-forum.com/t/restful-url-quesiton/91041)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 4\
**Last updated:** [April 10, 2007, 6:26am UTC](https://www.ruby-forum.com/t/restful-url-quesiton/91041 "2007-04-10T06:26:30Z")

</div>

Hey everybody, I’ve started trying to be a bit fancier with my URLs, and it’s biting me back. :frowning: I am working on a set of controllers to allow people to directly manipulate database records… Since they all pe…

---

## [Pref for beginner book: Wrox (Holzner) or Ruby for Rails?](https://www.ruby-forum.com/t/pref-for-beginner-book-wrox-holzner-or-ruby-for-rails/90907)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 19\
**Last updated:** [April 10, 2007, 5:51am UTC](https://www.ruby-forum.com/t/pref-for-beginner-book-wrox-holzner-or-ruby-for-rails/90907 "2007-04-10T05:51:25Z")

</div>

I’m a beginner. I’ve done the apple tutorial, Agile ROR (the depot app, I stopped after that, a little to advanced with no base knowledge of Ruby), Why’s guide and my copy of Chris P.'s book today. After Pine, I’m g…

---

## [ANN: Singapore Ruby Brigade Meeting](https://www.ruby-forum.com/t/ann-singapore-ruby-brigade-meeting/91535)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 5:23am UTC](https://www.ruby-forum.com/t/ann-singapore-ruby-brigade-meeting/91535 "2007-04-10T05:23:24Z")

</div>

Hi all, There will be a singapore.rb meeting on the 19th of April 2007 held at the Central Lending Library. Here’s the tentative agenda: 7:00pm Rails Plugins Showcase: Dead simple AJAX and Form testing in Rails (Choo…

---

## [Script/install plugin on local box is the same as copying](https://www.ruby-forum.com/t/script-install-plugin-on-local-box-is-the-same-as-copying/91528)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 4:40am UTC](https://www.ruby-forum.com/t/script-install-plugin-on-local-box-is-the-same-as-copying/91528 "2007-04-10T04:40:22Z")

</div>

folder over to production server in the vendors directory? basically, if my rails app is on my local box, and i want to move it to the server, can i just copy over the vendor directory so i dont have to reinstall the …

---

## [Gruff send\_data](https://www.ruby-forum.com/t/gruff-send-data/91489)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 6\
**Last updated:** [April 10, 2007, 4:16am UTC](https://www.ruby-forum.com/t/gruff-send-data/91489 "2007-04-10T04:16:21Z")

</div>

Hi, for those with experience of Gruff module: suppose I want to send image from server straight to the browser (as example on gruff web site): send\_data(g.to\_blob, :disposition =\> ‘inline’, :type =\> ‘image/png’, …

---

## [Captcha validation shuts webrick server down](https://www.ruby-forum.com/t/captcha-validation-shuts-webrick-server-down/91527)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 3:19am UTC](https://www.ruby-forum.com/t/captcha-validation-shuts-webrick-server-down/91527 "2007-04-10T03:19:17Z")

</div>

i tried setting up the captcha validation plugin but anytime i go to a page that has the image on it, the web server completely shuts down and i get this: ./script/…/config/…/vendor/plugins/validates\_captcha/lib/ cap…

---

## [Beginner Error: You have a nil object](https://www.ruby-forum.com/t/beginner-error-you-have-a-nil-object/91519)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 10, 2007, 3:16am UTC](https://www.ruby-forum.com/t/beginner-error-you-have-a-nil-object/91519 "2007-04-10T03:16:16Z")

</div>

So I set out to build an app that is very similar to the Depot app to build my experience. I added a lot of constant lists for the pulldowns on the admin add product page. Then this error? NoMethodError in Admin#new …

---

## [Where to put a file in io.foreach?](https://www.ruby-forum.com/t/where-to-put-a-file-in-io-foreach/91514)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 2:17am UTC](https://www.ruby-forum.com/t/where-to-put-a-file-in-io-foreach/91514 "2007-04-10T02:17:12Z")

</div>

Hi there, I want a piece of code in my controller to grab a text file with a list of words in it, but I don’t know where to put that text file (words.list). Here’s the relevant code: def puzzle\_generator # Load all…

---

## [Unexpected "unexpected kEND, expecting $"](https://www.ruby-forum.com/t/unexpected-unexpected-kend-expecting/91484)

<div class="topic-metadata">

**Author:** [@thooby](https://www.ruby-forum.com/u/thooby)\
**Replies:** 3\
**Last updated:** [April 10, 2007, 2:04am UTC](https://www.ruby-forum.com/t/unexpected-unexpected-kend-expecting/91484 "2007-04-10T02:04:11Z")

</div>

I know about this error. It appears when you put an END in a wrong place or forget to close a parentesis etc … But I have only a module helper with two lines in a file named “noticias\_helper.rb” Module NoticiasHelper …

---

## [Is anyone aware of a size limitation on hash keys?](https://www.ruby-forum.com/t/is-anyone-aware-of-a-size-limitation-on-hash-keys/91517)

<div class="topic-metadata">

**Author:** [@marko](https://www.ruby-forum.com/u/marko)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 1:58am UTC](https://www.ruby-forum.com/t/is-anyone-aware-of-a-size-limitation-on-hash-keys/91517 "2007-04-10T01:58:10Z")

</div>

We have a hash where the value is blank, but the key is huge… Is there reason to expect Rails \> 1.1.6 to choke on this (maybe due to REST or something) ? “\<rma\_request\>\\n\\t PostTestResult\\n\\t \\n 1\\n …

---

## [Find Programming Job?](https://www.ruby-forum.com/t/find-programming-job/91515)

<div class="topic-metadata">

**Author:** [@cindy](https://www.ruby-forum.com/u/cindy)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 1:47am UTC](https://www.ruby-forum.com/t/find-programming-job/91515 "2007-04-10T01:47:10Z")

</div>

Find Your Programming Job Vacancy and resources here → http://www.jobbankdata.com/job-programming.htm

---

## [ArgumentError with Acts as Authenticated](https://www.ruby-forum.com/t/argumenterror-with-acts-as-authenticated/91506)

<div class="topic-metadata">

**Author:** [@nielsene](https://www.ruby-forum.com/u/nielsene)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 1:30am UTC](https://www.ruby-forum.com/t/argumenterror-with-acts-as-authenticated/91506 "2007-04-10T01:30:09Z")

</div>

I posted a previous error that I thought was attributed to attachment fu but after ripping all the attachment fu code out I’m running into similar error with acts as authenticated when I try to post several files cons…

---

## [Help with ActiveRecord joins](https://www.ruby-forum.com/t/help-with-activerecord-joins/91491)

<div class="topic-metadata">

**Author:** [@BallS\_Donald\_A\_Jr\_S](https://www.ruby-forum.com/u/BallS_Donald_A_Jr_S)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 12:21am UTC](https://www.ruby-forum.com/t/help-with-activerecord-joins/91491 "2007-04-10T00:21:04Z")

</div>

I’m working on a fairly complex join query and could use a bit of advice from more expert users of ActiveRecord. I have an events table with quite a lot of data, with has\_many relations to categories, age\_groups, and …

---

## [Convention over configuration](https://www.ruby-forum.com/t/convention-over-configuration/91469)

<div class="topic-metadata">

**Author:** [@rajdeep](https://www.ruby-forum.com/u/rajdeep)\
**Replies:** 1\
**Last updated:** [April 10, 2007, 12:18am UTC](https://www.ruby-forum.com/t/convention-over-configuration/91469 "2007-04-10T00:18:11Z")

</div>

hello everybody, i am new to ROR i have some doubts 1\> will u tell me that what Convention over configuration what i mean is which configurations are avoided and what conventions we use in ROR 2\>DRY principle-\>dont…

---

## [Building a "between filter"? Any ideas welcome](https://www.ruby-forum.com/t/building-a-between-filter-any-ideas-welcome/91504)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [April 9, 2007, 10:54pm UTC](https://www.ruby-forum.com/t/building-a-between-filter-any-ideas-welcome/91504 "2007-04-09T22:54:48Z")

</div>

Hi, I’m sure there’s a good way to solve this problem and I’m hoping for some insight into the best approach. I’d like to be able to fire a “filter” event off between the action and the view. Right now, as I understa…

---

## [Problems with validation \[\]](https://www.ruby-forum.com/t/problems-with-validation/91453)

<div class="topic-metadata">

**Author:** [@Daniello](https://www.ruby-forum.com/u/Daniello)\
**Replies:** 6\
**Last updated:** [April 9, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/problems-with-validation/91453 "2007-04-09T22:37:47Z")

</div>

I’ve generated model, controller and then I’ve added validation to my model. When I leave my form field empty validation doesn’t appear (validate\_presents\_of). How can I fixed it??

---

## [Override destroy -- how to save it?](https://www.ruby-forum.com/t/override-destroy-how-to-save-it/91440)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 3\
**Last updated:** [April 9, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/override-destroy-how-to-save-it/91440 "2007-04-09T22:36:47Z")

</div>

I would like to override the destroy method of my AR objects with something like this: module Restorable alias\_method :really\_destroy, :destroy def destroy self.destroyed = Date.today self.save(false) self end d…

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

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