# Rails

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

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

---

## [Replace comma with space](https://www.ruby-forum.com/t/replace-comma-with-space/129083)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 7:23am UTC](https://www.ruby-forum.com/t/replace-comma-with-space/129083 "2008-02-14T07:23:01Z")

</div>

Hi, Can anyone help me? I have strings like, 1,2,A and 4, 5, B. When I insert into the table, I want it to be like this: id my\_string 1 1 2 A 2 4 5 B instead of id my\_string 1 1,2,A 2…

---

## [Routes.rb error](https://www.ruby-forum.com/t/routes-rb-error/129086)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 14, 2008, 6:51am UTC](https://www.ruby-forum.com/t/routes-rb-error/129086 "2008-02-14T06:51:41Z")

</div>

I’m new to ruby and trying to make a welcome page. I changed routes.rb to: map.connect ‘’, :controller =\> “welcome” and deleted index.html, but still I get the error: NameError in WelcomeController#index uninitializ…

---

## [Accessing entire current SESSION row - Not just DATA column](https://www.ruby-forum.com/t/accessing-entire-current-session-row-not-just-data-column/129058)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [February 14, 2008, 6:14am UTC](https://www.ruby-forum.com/t/accessing-entire-current-session-row-not-just-data-column/129058 "2008-02-14T06:14:58Z")

</div>

Hi, I am in need to perform left join between my friends table and In built sessions table: LEFT JOIN sessions ON sessions.user\_id=friendships.friend\_id To do this, I have altered sessions table to have user\_id apart…

---

## [Engines + Exception Notifier = Can't find template file](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928)

<div class="topic-metadata">

**Author:** [@ratkins](https://www.ruby-forum.com/u/ratkins)\
**Replies:** 2\
**Last updated:** [February 14, 2008, 5:13am UTC](https://www.ruby-forum.com/t/engines-exception-notifier-cant-find-template-file/128928 "2008-02-14T05:13:16Z")

</div>

Engine-Users mailing list removed\_email\_address@domain.invalid http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

---

## [Syntax of session's updated\_at field?](https://www.ruby-forum.com/t/syntax-of-sessions-updated-at-field/196594)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 5:08am UTC](https://www.ruby-forum.com/t/syntax-of-sessions-updated-at-field/196594 "2008-02-14T05:08:32Z")

</div>

What’s the syntax to acquire the updated\_at value of a session stored in a db? session.updated\_at doesn’t work. can’t find any docs on this. – gw

---

## [Start\_form / start\_end](https://www.ruby-forum.com/t/start-form-start-end/73437)

<div class="topic-metadata">

**Author:** [@Fluffy\_Hippo](https://www.ruby-forum.com/u/Fluffy_Hippo)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 4:35am UTC](https://www.ruby-forum.com/t/start-form-start-end/73437 "2008-02-14T04:35:06Z")

</div>

I upgraded a project to a more recent version of edge today and in my testing the log started throwing these warnings: DEPRECATION WARNING: start\_form\_tag is deprecated and will be removed from Rails 2.0 See http://…

---

## [Is there an implicit index in this loop?](https://www.ruby-forum.com/t/is-there-an-implicit-index-in-this-loop/129084)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 14, 2008, 3:22am UTC](https://www.ruby-forum.com/t/is-there-an-implicit-index-in-this-loop/129084 "2008-02-14T03:22:26Z")

</div>

Hi, I have the partial below … \<% fields\_for "ec\_order\[ec\_line\_item\_attributes\]\[\]", ec\_line\_item do |ec\_line\_item\_form| %\> Item #### \<% end %\> What I’m wondering is if there’s …

---

## [Includes on controller](https://www.ruby-forum.com/t/includes-on-controller/129067)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 1\
**Last updated:** [February 14, 2008, 2:54am UTC](https://www.ruby-forum.com/t/includes-on-controller/129067 "2008-02-14T02:54:53Z")

</div>

is it possible to have includes on controllers ? ie. I have this block on many controller actions and I would like to make it as DRY as possible require ‘rubygems’ require ‘net/ldap’ require ‘iconv’ ldap = Net::LDA…

---

## [Rails Logging Question](https://www.ruby-forum.com/t/rails-logging-question/129081)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 1:50am UTC](https://www.ruby-forum.com/t/rails-logging-question/129081 "2008-02-14T01:50:26Z")

</div>

I would like to log to two separate files depending on a vendor name in the vendors table. Does anyone know how I can do this in Rails? TIA. – http://www.rubyplus.org/ Free Ruby and Rails Screencasts

---

## [Simple Link\_to Question](https://www.ruby-forum.com/t/simple-link-to-question/129075)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [February 14, 2008, 1:31am UTC](https://www.ruby-forum.com/t/simple-link-to-question/129075 "2008-02-14T01:31:53Z")

</div>

Hello, I’m still really new to Ruby on Rails and I just need some clarification… So if I define a param in a link\_to in my view like so: \<%= link\_to match\[‘name’\], :controller =\> ‘compare’, :action =\> ‘viewinfo’, :pa…

---

## [Null byte error trying to install ZenTest](https://www.ruby-forum.com/t/null-byte-error-trying-to-install-zentest/129073)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 12:23am UTC](https://www.ruby-forum.com/t/null-byte-error-trying-to-install-zentest/129073 "2008-02-14T00:23:05Z")

</div>

I’ve got a fresh Ruby/Rails install (compiled Ruby from scratch, installed latest Rubygems etc) and I have had no problems installing any gems except for when I hit ZenTest. I keep getting the following: matthew-will…

---

## [Steps to Productionize your code?](https://www.ruby-forum.com/t/steps-to-productionize-your-code/129069)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/steps-to-productionize-your-code/129069 "2008-02-13T23:19:13Z")

</div>

Hi there, Does anyone know of any good resources or even suggestions as to steps one should take to ‘productionize’ code? I think a lot of it would come down to query optimization, and best practices for writing cont…

---

## [How can I set the output\_level on ActionController::IntegrationTest](https://www.ruby-forum.com/t/how-can-i-set-the-output-level-on-actioncontroller-integrationtest/129060)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/how-can-i-set-the-output-level-on-actioncontroller-integrationtest/129060 "2008-02-13T22:05:43Z")

</div>

Hi, The ActionController::IntegrationTest class works well for running integration tests across an entire application. I’ve been looking for a way to control the output level of the test results (from within the i…

---

## [ÙˆÙŠÙ† Ø±Ø¢ÙŠØ­ Ø´ÙÙ†Ø§Ùƒ](https://www.ruby-forum.com/t/u-usu-o-o-uso-o-u-u-o-u/196595)

<div class="topic-metadata">

**Author:** [@dgggrg](https://www.ruby-forum.com/u/dgggrg)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/u-usu-o-o-uso-o-u-u-o-u/196595 "2008-02-13T20:41:18Z")

</div>

www.alluth.jeun.fr www.alluth.jeun.fr www.alluth.jeun.fr

---

## [ÙˆÙŠÙ† Ø±Ø¢ÙŠØ­ Ø´ÙÙ†Ø§Ùƒ](https://www.ruby-forum.com/t/u-usu-o-o-uso-o-u-u-o-u/129051)

<div class="topic-metadata">

**Author:** [@dgggrg](https://www.ruby-forum.com/u/dgggrg)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/u-usu-o-o-uso-o-u-u-o-u/129051 "2008-02-13T20:41:14Z")

</div>

www.alluth.jeun.fr www.alluth.jeun.fr www.alluth.jeun.fr

---

## [Rails 2.02 dropped JSON attribute tag?](https://www.ruby-forum.com/t/rails-2-02-dropped-json-attribute-tag/124334)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 5\
**Last updated:** [February 13, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/rails-2-02-dropped-json-attribute-tag/124334 "2008-02-13T20:29:49Z")

</div>

Hey there I was scratching my head over why my application breaks when I run on a local server but works on my remote server. It turns out that my local server is Rails 2.0.2 and my remote server is 1.2.3 and I expect …

---

## [Rss aggregator](https://www.ruby-forum.com/t/rss-aggregator/129046)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/rss-aggregator/129046 "2008-02-13T19:22:35Z")

</div>

There are a few rss aggregators which I like: http://www.gnome.org/projects/straw/ http://feed-on-feeds.googlecode.com/ However, none of them quite match my needs. Trawlr is nice, but I want the data in my own db s…

---

## [Web Application Testing Framework](https://www.ruby-forum.com/t/web-application-testing-framework/129041)

<div class="topic-metadata">

**Author:** [@burrowsm](https://www.ruby-forum.com/u/burrowsm)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/web-application-testing-framework/129041 "2008-02-13T18:56:01Z")

</div>

Hello, I have been searching the forums here, but haven’t found a thread on what I am looking for. We would like to build a RoR application as an automated test framework for testing another web application. All of …

---

## [3 simple design questions](https://www.ruby-forum.com/t/3-simple-design-questions/128910)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/3-simple-design-questions/128910 "2008-02-13T18:44:46Z")

</div>

Hi to all, I’ve 3 simple (I hope) questions about rails application design: I’m developing a RoR application with some tables, every table has a boolean column (is\_active), this column/property determines if the obj…

---

## [Can a class have the association has\_itself?](https://www.ruby-forum.com/t/can-a-class-have-the-association-has-itself/129032)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/can-a-class-have-the-association-has-itself/129032 "2008-02-13T18:40:38Z")

</div>

is it possible to implement a recursive foreign key association like that? i’m writing a vocab app, where i want the vocab table to have an id and two foreign keys, word1 and word2. the word table will have an id, a …

---

## [Sequential Validation](https://www.ruby-forum.com/t/sequential-validation/129035)

<div class="topic-metadata">

**Author:** [@dara](https://www.ruby-forum.com/u/dara)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/sequential-validation/129035 "2008-02-13T18:32:56Z")

</div>

hi, have any of you tried to do sequential validation, and stop the validation on the first failure/error ? Basically I want to validate fields in a form, in order, stopping on the first failure (rather than outputin…

---

## [Rails with Flex](https://www.ruby-forum.com/t/rails-with-flex/129016)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 13, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/rails-with-flex/129016 "2008-02-13T15:59:37Z")

</div>

Hi everyone I am doing a project in which i am using adobe flex front end rails as back end support. I am not getting how to perform search on mysql database using rails and displaying the result with flex front end.…

---

## [Has many through: Users, Reservations, and the zen of being totally confused](https://www.ruby-forum.com/t/has-many-through-users-reservations-and-the-zen-of-being-totally-confused/128972)

<div class="topic-metadata">

**Author:** [@MESSYKILL5000](https://www.ruby-forum.com/u/MESSYKILL5000)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/has-many-through-users-reservations-and-the-zen-of-being-totally-confused/128972 "2008-02-13T15:54:19Z")

</div>

Hey folks, This is a question about my rails app. It takes online reservations for a hotel. I’ve got a has many through relationship all set up and working: class User \< ActiveRecord::Base has\_many :reservations ha…

---

## [LiveValidation and form\_remote\_tag](https://www.ruby-forum.com/t/livevalidation-and-form-remote-tag/127864)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/livevalidation-and-form-remote-tag/127864 "2008-02-13T15:52:35Z")

</div>

form\_remote\_tag(:update =\> “ListDateDiv”, :url=\> { :action =\> ‘new\_date’},:complete =\> “onEventDateInsered()”,:html=\>{:multipart =\> true,:class=\>‘FormNewEdit’}) I have an ajax form with some fields. Ex. var place\_si…

---

## [How to fetch the previous or next record](https://www.ruby-forum.com/t/how-to-fetch-the-previous-or-next-record/101004)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 9\
**Last updated:** [February 13, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/how-to-fetch-the-previous-or-next-record/101004 "2008-02-13T15:47:15Z")

</div>

Hello, Is there some built-in facility for fetching the Previous or Next record from a table? Assume the command find\_by\_name has been issued, and the variable @name contains the name “John D.”. I’m looking for someth…

---

## [How to show images stored in the database](https://www.ruby-forum.com/t/how-to-show-images-stored-in-the-database/129006)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [February 13, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-show-images-stored-in-the-database/129006 "2008-02-13T15:05:14Z")

</div>

Actually i have came across a situation where i will have to store an image in the database and show the same image… for this purpose i have used LONGBLOB field in mysql and stored the image… I have to show this image…

---

## [Field names in validators](https://www.ruby-forum.com/t/field-names-in-validators/62784)

<div class="topic-metadata">

**Author:** [@Vlad\_Berditchevskiy](https://www.ruby-forum.com/u/Vlad_Berditchevskiy)\
**Replies:** 5\
**Last updated:** [February 13, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/field-names-in-validators/62784 "2008-02-13T15:00:38Z")

</div>

Hi! Is there a (simple) way to use alternative field names in validation messages? For example, if I have a validator like this one: validates\_presence\_of :email how can I make it print a message like “E-Mail Address…

---

## [Form POST method does not work!](https://www.ruby-forum.com/t/form-post-method-does-not-work/129003)

<div class="topic-metadata">

**Author:** [@Houman\_D](https://www.ruby-forum.com/u/Houman_D)\
**Replies:** 3\
**Last updated:** [February 13, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/form-post-method-does-not-work/129003 "2008-02-13T14:59:22Z")

</div>

Hello folks, In one of my forms, I have a wired problem, it does not post the form data to the rails from what I see in log file. It works locally but not after deployment to the server. All of other forms work but n…

---

## [Rspec & table type MyISAM](https://www.ruby-forum.com/t/rspec-table-type-myisam/129002)

<div class="topic-metadata">

**Author:** [@thorsten](https://www.ruby-forum.com/u/thorsten)\
**Replies:** 2\
**Last updated:** [February 13, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/rspec-table-type-myisam/129002 "2008-02-13T14:40:50Z")

</div>

i’m using a table, that uses fulltext search and therefore the table type MyISAM everything works fine in production mode, but tests fail with ActiveRecord::StatementInvalid: Mysql::Error: The used table type doesn’t…

---

## [Problem with deploying a facebook application](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709)

<div class="topic-metadata">

**Author:** [@noham](https://www.ruby-forum.com/u/noham)\
**Replies:** 5\
**Last updated:** [February 13, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709 "2008-02-13T13:21:57Z")

</div>

Hi all, M having a problem deploying a ruby on rails application on the production server tthough I’ve successfully deployed another 1 on the same before, and though the neww app is successfully running on the devel…

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

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