# Rails

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

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

---

## [Unit tests rolling back my migrations](https://www.ruby-forum.com/t/unit-tests-rolling-back-my-migrations/113887)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 10:37pm UTC](https://www.ruby-forum.com/t/unit-tests-rolling-back-my-migrations/113887 "2007-09-06T22:37:55Z")

</div>

Hey folks– I’m currently on tag/rel\_1-2-3 and have a problem I haven’t encountered before. I’ve got about 55 total migrations in my database. With this most recent one, I migrate the test database: rake RAILS\_ENV=t…

---

## [Models/tables with relationships and forms](https://www.ruby-forum.com/t/models-tables-with-relationships-and-forms/113984)

<div class="topic-metadata">

**Author:** [@Arnfinn](https://www.ruby-forum.com/u/Arnfinn)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/models-tables-with-relationships-and-forms/113984 "2007-09-06T21:30:06Z")

</div>

Hi, I’m just starting out writing a RoR application, and I have a couple of questions… Lets say I have a model class Questionnaire \< ActiveRecord::Base has\_many :categories end I’ve understood that one can referenc…

---

## [Javascript float array in params hash](https://www.ruby-forum.com/t/javascript-float-array-in-params-hash/113892)

<div class="topic-metadata">

**Author:** [@sab](https://www.ruby-forum.com/u/sab)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/javascript-float-array-in-params-hash/113892 "2007-09-06T21:15:04Z")

</div>

Hi all I’m trying to figure out the best way to send the contents of a javascript array containing floats to the controller and have the controller correctly interpret it as an array of floats. So if I have var poin…

---

## [Using symbols for controllers and actions](https://www.ruby-forum.com/t/using-symbols-for-controllers-and-actions/113981)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/using-symbols-for-controllers-and-actions/113981 "2007-09-06T21:09:03Z")

</div>

Hello I am a newbe to rails. One of the things that confuses me is the usage of symbols and strings to refer to actions and controllers. Which of the following would be the right way to go: \<%= link\_to ‘Login’, :cont…

---

## [Using symbols for controllers and actions](https://www.ruby-forum.com/t/using-symbols-for-controllers-and-actions/196458)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/using-symbols-for-controllers-and-actions/196458 "2007-09-06T21:09:03Z")

</div>

Hello I am a newbe to rails. One of the things that confuses me is the usage of symbols and strings to refer to actions and controllers. Which of the following would be the right way to go: \<%= link\_to ‘Login’, :cont…

---

## [Ttl](https://www.ruby-forum.com/t/ttl/196457)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/ttl/196457 "2007-09-06T20:51:54Z")

</div>

This is just a random thought that I had about Time To Live with session variables. Is there a way to do that in Rails? I have created sessions before. For example, what if I wanted to log off a person after a certain…

---

## [Link\_to\_remote](https://www.ruby-forum.com/t/link-to-remote/113877)

<div class="topic-metadata">

**Author:** [@jasiu85](https://www.ruby-forum.com/u/jasiu85)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 8:00pm UTC](https://www.ruby-forum.com/t/link-to-remote/113877 "2007-09-06T20:00:53Z")

</div>

Hey, I’m trying to create AJAX website with Rails. I ran into the following problem: I want to add a Song to my database. There is this \_form.rhtml where I can edit all Song’s attributes. Then I can click ‘Create’ an…

---

## [Capistarno deployment issues](https://www.ruby-forum.com/t/capistarno-deployment-issues/113961)

<div class="topic-metadata">

**Author:** [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Replies:** 6\
**Last updated:** [September 6, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/capistarno-deployment-issues/113961 "2007-09-06T19:37:50Z")

</div>

Hi guys, I’ve just started using capistrano so forgive me if I’ve done something moronic. I’ve run capify and cap deploy:setup which all worked fine. But when I try to deploy my app I get the following error: F:\\per…

---

## [Model for multiple tables](https://www.ruby-forum.com/t/model-for-multiple-tables/113967)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/model-for-multiple-tables/113967 "2007-09-06T19:06:44Z")

</div>

How do I construct a model to map multiple tables? For example: table1, table2, table3 The model will represent a join of table1+table2+table3 I did notice there is a join\_table for use. But I don’t want to create s…

---

## [Odd Redirects: Security issue in deployed app?](https://www.ruby-forum.com/t/odd-redirects-security-issue-in-deployed-app/113968)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/odd-redirects-security-issue-in-deployed-app/113968 "2007-09-06T19:03:44Z")

</div>

I’m checking my production log after a week’s vacation, and I’m finding a lot of entries like these ---- snip ---- Processing FilelistController#index (for 86.209.164.247 at 2007-08-26 17:36:20) \[GET\] Session ID: 6f…

---

## [Putting serialized data into fixture](https://www.ruby-forum.com/t/putting-serialized-data-into-fixture/110420)

<div class="topic-metadata">

**Author:** [@sandrejev](https://www.ruby-forum.com/u/sandrejev)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/putting-serialized-data-into-fixture/110420 "2007-09-06T18:58:41Z")

</div>

Hi, I am very fresh to ruby on rails so maybe I am missing something very obvious, but anyway. How do I put serialized data into fixture. I have a class Board which is somewhat a very complex class. It occupies more …

---

## [Observe\_field loses event binding after firing](https://www.ruby-forum.com/t/observe-field-loses-event-binding-after-firing/112980)

<div class="topic-metadata">

**Author:** [@wolfram](https://www.ruby-forum.com/u/wolfram)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/observe-field-loses-event-binding-after-firing/112980 "2007-09-06T18:54:40Z")

</div>

I’m running into an odd problem where I’m observing two radio buttons via observe\_field to make AJAX calls, and it seems to lose the event binding after the first call. The basic functionality is that clicking on the …

---

## [\[ANN\] view\_test 0.9.0](https://www.ruby-forum.com/t/ann-view-test-0-9-0/112941)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 11\
**Last updated:** [September 6, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/ann-view-test-0-9-0/112941 "2007-09-06T18:21:33Z")

</div>

\[ANN\] view\_test 0.9.0 view\_test is a similar implementation of rspec’s controller and view specs for test/unit. It allows you to migrate existing tests one test at a time to create simpler functional tests by extrac…

---

## [Web service in rails](https://www.ruby-forum.com/t/web-service-in-rails/113949)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/web-service-in-rails/113949 "2007-09-06T17:54:29Z")

</div>

Hi, I wish to know where I can find information about the web service (rest, saop or xml-rpc) on rails, like example code, documentation? Thanks you very much Sayoyo

---

## [Flash not being cleared after filter returns false](https://www.ruby-forum.com/t/flash-not-being-cleared-after-filter-returns-false/113951)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/flash-not-being-cleared-after-filter-returns-false/113951 "2007-09-06T16:54:16Z")

</div>

I’ve got a strange situation with filters and flashes. I set up a filter like this: def set\_flash flash\[:error\] = ‘hi joe’ redirect\_to :action =\> ‘index2’ return false end It redirects to index2 with the flash se…

---

## [Environment problem..!](https://www.ruby-forum.com/t/environment-problem/113927)

<div class="topic-metadata">

**Author:** [@saurabhbhatia](https://www.ruby-forum.com/u/saurabhbhatia)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/environment-problem/113927 "2007-09-06T14:22:20Z")

</div>

Hello sir…!! Good morning to all of u…!!! Friends. I have download some projects from rubyforge.com. Now some is running as usual means all migration files are running and table is also created. But in one applicatio…

---

## [Reg :regular expression](https://www.ruby-forum.com/t/reg-regular-expression/113938)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/reg-regular-expression/113938 "2007-09-06T14:02:45Z")

</div>

HI, how to validate a time in regular expression eg: alert 9916789067 05:16 wake up so i should validate time time can be 05:16 0516 05.16p 05.16p.m or pm 05.16a 05.16a.m or am 05:16a if any one knows help me …

---

## [Inheriting from Activerecord classes](https://www.ruby-forum.com/t/inheriting-from-activerecord-classes/113651)

<div class="topic-metadata">

**Author:** [@Sudarshan\_Purohit](https://www.ruby-forum.com/u/Sudarshan_Purohit)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/inheriting-from-activerecord-classes/113651 "2007-09-06T13:52:44Z")

</div>

Hi, I have this ‘legacy’ RoR application, in which, at one place, we’re doing something like this : class Car \< ActiveRecord::Base #lots of belongs\_to and has\_many relations belongs\_to :brand def make\_of\_car #ret…

---

## [Rendering JSON from a view](https://www.ruby-forum.com/t/rendering-json-from-a-view/113581)

<div class="topic-metadata">

**Author:** [@jonny](https://www.ruby-forum.com/u/jonny)\
**Replies:** 3\
**Last updated:** [September 6, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/rendering-json-from-a-view/113581 "2007-09-06T13:48:43Z")

</div>

Hi, I’m rendering a reasonable amount of JSON back to an application at the moment and the controllers are starting to get very messy with the code to structure and return the JSON. Is it possible to have a template …

---

## [Being modular but still interacting](https://www.ruby-forum.com/t/being-modular-but-still-interacting/113908)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/being-modular-but-still-interacting/113908 "2007-09-06T13:48:10Z")

</div>

So I want to use components so parts of my code are more modular, and this maybe a newbie mistake, but it seems to me that if you using components in a modular way, you can’t redirect or render anything from your orig…

---

## [How to deploy rails project using Host Gator](https://www.ruby-forum.com/t/how-to-deploy-rails-project-using-host-gator/113934)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 11:10am UTC](https://www.ruby-forum.com/t/how-to-deploy-rails-project-using-host-gator/113934 "2007-09-06T11:10:21Z")

</div>

hi am new to ror can anyone tell me about: how to deploy a rails project using “Host Gator” server. thanks ina dvance.

---

## [A question about routing](https://www.ruby-forum.com/t/a-question-about-routing/113905)

<div class="topic-metadata">

**Author:** [@Jim\_Welch](https://www.ruby-forum.com/u/Jim_Welch)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 10:29am UTC](https://www.ruby-forum.com/t/a-question-about-routing/113905 "2007-09-06T10:29:16Z")

</div>

Hi all, I have recently bought a site template that I’ve tacked on to my rails application. The template came with a flash movie that plays at the top of each page, displaying the site’s name and a few words of the …

---

## [Amazon E-commerce Webservice + soap/wsdlDriver = weird error](https://www.ruby-forum.com/t/amazon-e-commerce-webservice-soap-wsdldriver-weird-error/196456)

<div class="topic-metadata">

**Author:** [@22marine](https://www.ruby-forum.com/u/22marine)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 9:56am UTC](https://www.ruby-forum.com/t/amazon-e-commerce-webservice-soap-wsdldriver-weird-error/196456 "2007-09-06T09:56:05Z")

</div>

Hi, I’m trying to use amazon E-commerce Webservice using soap/wsdlDriver. The idea is that a user gives an ISBN, ant to get book informations. Here’s my code : require ‘soap/wsdlDriver’ URL = ‘http://webservices.am…

---

## [Lightbox for forms](https://www.ruby-forum.com/t/lightbox-for-forms/113748)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 4\
**Last updated:** [September 6, 2007, 9:24am UTC](https://www.ruby-forum.com/t/lightbox-for-forms/113748 "2007-09-06T09:24:07Z")

</div>

Hello, this is lightbox(works for images) http://www.huddletogether.com/projects/lightbox2/#example this is helper for lightbox http://blog.lipsiasoft.com/articles/2007/06/05/lightbox-helper-per-ruby-on-rails But I …

---

## [Something went wrong](https://www.ruby-forum.com/t/something-went-wrong/113836)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 8\
**Last updated:** [September 6, 2007, 9:21am UTC](https://www.ruby-forum.com/t/something-went-wrong/113836 "2007-09-06T09:21:06Z")

</div>

I get this error: We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a look at it shortly. …often and I keep refreshing then it starts working…sometimes when I refresh it show…

---

## [Components - working alternatives?](https://www.ruby-forum.com/t/components-working-alternatives/113925)

<div class="topic-metadata">

**Author:** [@jacques](https://www.ruby-forum.com/u/jacques)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 8:38am UTC](https://www.ruby-forum.com/t/components-working-alternatives/113925 "2007-09-06T08:38:01Z")

</div>

Has anyone figured a good practice for integrating components in Rails? render\_component has exactly the interface I need but its depreciated and in generally hated on by everyone. I looked at ezra’s cell’s plugin, bu…

---

## [Calling a controller method from another controller](https://www.ruby-forum.com/t/calling-a-controller-method-from-another-controller/113880)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 6:45am UTC](https://www.ruby-forum.com/t/calling-a-controller-method-from-another-controller/113880 "2007-09-06T06:45:54Z")

</div>

I have a rest endpoing that allows my users to create a new subscriber by posting to the subscribers collection, e.g.: \[POST\] sevice/subscribers Although, this is fine for outsiders using the API, I need have an inte…

---

## [Scholarship](https://www.ruby-forum.com/t/scholarship/113920)

<div class="topic-metadata">

**Author:** [@Scholarship\_S\_Job](https://www.ruby-forum.com/u/Scholarship_S_Job)\
**Replies:** 0\
**Last updated:** [September 6, 2007, 6:26am UTC](https://www.ruby-forum.com/t/scholarship/113920 "2007-09-06T06:26:53Z")

</div>

Scholarship and job in http://cambodiajobs.blogspot.com Japan Scholarship Japan/World Bank Scholarship Ford Foundation Fellowships ADB - Japan Scholarship New Zealand Scholarships Australian Scholarships Chevening…

---

## [Gsub question, not a regex question...including part of the](https://www.ruby-forum.com/t/gsub-question-not-a-regex-question-including-part-of-the/113896)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 6, 2007, 6:21am UTC](https://www.ruby-forum.com/t/gsub-question-not-a-regex-question-including-part-of-the/113896 "2007-09-06T06:21:53Z")

</div>

Hi all, I’ve got a simple bulletin board type of code in part of my application, and I want to implement phpbb-like tags for users to add to posts. I strip HTML out of the posts, of course. I can handle things like…

---

## [How To View Documentation in doc/app](https://www.ruby-forum.com/t/how-to-view-documentation-in-doc-app/113866)

<div class="topic-metadata">

**Author:** [@bezerker](https://www.ruby-forum.com/u/bezerker)\
**Replies:** 2\
**Last updated:** [September 6, 2007, 6:04am UTC](https://www.ruby-forum.com/t/how-to-view-documentation-in-doc-app/113866 "2007-09-06T06:04:51Z")

</div>

G’Day- Noob question: I’m currently working through the examples in Agile Development With Rails. On page 182, the book shows you how to generate documentation for your application using RDoc. I’ve done that success…

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

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