# Rails

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

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

---

## [Assert\_equal behavior](https://www.ruby-forum.com/t/assert-equal-behavior/182769)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/assert-equal-behavior/182769 "2010-02-02T22:23:47Z")

</div>

I am testing with assert\_equal Here is my Fixture: bob1: id: 1000001 login: bob glogin: removed\_email\_address@domain.invalid session\_token: 77a38 # test Here is my Test method: class Guser \< ActiveRecord::Base a…

---

## [Set\_table\_name not working in 2.3.5](https://www.ruby-forum.com/t/set-table-name-not-working-in-2-3-5/182671)

<div class="topic-metadata">

**Author:** [@gigg](https://www.ruby-forum.com/u/gigg)\
**Replies:** 4\
**Last updated:** [February 2, 2010, 9:51pm UTC](https://www.ruby-forum.com/t/set-table-name-not-working-in-2-3-5/182671 "2010-02-02T21:51:27Z")

</div>

I am new to rails and developed a simple task in an app that runs every while using crontab. Under previous versions of rails it worked fine. But, I have upgraded the server, installed rails 2.3.5 as per rubygems late…

---

## [/!\\ FAILSAFE /!\\ error with Rails 2.3.4](https://www.ruby-forum.com/t/failsafe-error-with-rails-2-3-4/182783)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 8:37pm UTC](https://www.ruby-forum.com/t/failsafe-error-with-rails-2-3-4/182783 "2010-02-02T20:37:14Z")

</div>

Does anyone know what could be causing this error? I am currently experiencing it when some browser submit a multipart form witha file attached. Thanks! Tom /!\\ FAILSAFE /!\\ Tue Feb 02 13:28:35 -0500 2010 Status:…

---

## [Problem freezing svenfuchs-i18n gem](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [February 2, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/problem-freezing-svenfuchs-i18n-gem/182760 "2010-02-02T19:03:58Z")

</div>

Hi all, i’m having a problem with i18n gem. First, I froze rails into the vendor folder: that worked fine. For i18n, i installed a gem called svenfuchs-i18n: gem list | grep i18n =\>svenfuchs-i18n (0.2.0) I then froz…

---

## [Problem with interlock and memcache-client](https://www.ruby-forum.com/t/problem-with-interlock-and-memcache-client/182780)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/problem-with-interlock-and-memcache-client/182780 "2010-02-02T18:04:16Z")

</div>

hey all I have interlock and memcache working fine in one rails app. I’m starting another and can’t get it working - when i try to run a test for example i get no such file to load – memcache-client …list of rubyge…

---

## [Action Caching and After Filters](https://www.ruby-forum.com/t/action-caching-and-after-filters/182770)

<div class="topic-metadata">

**Author:** [@lukec](https://www.ruby-forum.com/u/lukec)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/action-caching-and-after-filters/182770 "2010-02-02T17:00:42Z")

</div>

Hi there, I’m using action caching, instead of page caching, because I’m using filters in my controller. class CommunityProgramController \< ApplicationController before\_filter :login\_required after\_filter :log\_reque…

---

## [How to parse rendered html page](https://www.ruby-forum.com/t/how-to-parse-rendered-html-page/182762)

<div class="topic-metadata">

**Author:** [@parkurm](https://www.ruby-forum.com/u/parkurm)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 3:42pm UTC](https://www.ruby-forum.com/t/how-to-parse-rendered-html-page/182762 "2010-02-02T15:42:53Z")

</div>

I’m trying to write a website that parses all images in a given webpage. I initially tried to get all image links by looking for tag, by using nokogiri html parser, and it works well with webpages without javascript. …

---

## [Sqlite3.dll?](https://www.ruby-forum.com/t/sqlite3-dll/182724)

<div class="topic-metadata">

**Author:** [@xafgx](https://www.ruby-forum.com/u/xafgx)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/sqlite3-dll/182724 "2010-02-02T15:15:01Z")

</div>

I am running windows xp. I also have aptana and mysql installed. The problem is that when i try to go and view my project from browser it says " sqlite3.dll was not found, blah blah. I don’t sqlite3.dll since i am usi…

---

## [Can't have webrick come up](https://www.ruby-forum.com/t/cant-have-webrick-come-up/182765)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/cant-have-webrick-come-up/182765 "2010-02-02T15:03:45Z")

</div>

hi I can’t have webrick run. i get the error below; someone help. C:\>cd alumsimport1 C:\\alumsimport1\>ruby script/server =\> Booting WEBrick =\> Rails 2.3.5 application starting on http://0.0.0.0:3000 =\> Call with -d …

---

## [Active Scaffold configuration](https://www.ruby-forum.com/t/active-scaffold-configuration/182764)

<div class="topic-metadata">

**Author:** [@beny18241](https://www.ruby-forum.com/u/beny18241)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/active-scaffold-configuration/182764 "2010-02-02T14:56:53Z")

</div>

Hi I have simple question… When I’am adding following code to controller.New one, just generated, next ActiveScaffold installed. config.action\_links.add :edit. :label =\> ‘Comment’, :page =\> false, :type =\> :record A…

---

## [Ruby-GetText picking random languages (up to 3 on the same page!)](https://www.ruby-forum.com/t/ruby-gettext-picking-random-languages-up-to-3-on-the-same-page/182757)

<div class="topic-metadata">

**Author:** [@psy-q](https://www.ruby-forum.com/u/psy-q)\
**Replies:** 4\
**Last updated:** [February 2, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/ruby-gettext-picking-random-languages-up-to-3-on-the-same-page/182757 "2010-02-02T14:21:44Z")

</div>

Hi everyone, We have recently upgraded our project from Rails 2.1.x to Rails 2.3.x, and in the process also had to upgrade our Ruby-GetText. Our config/environment.rb now refers to these GetText gems: config.gem “get…

---

## [Restful plugin with session table](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/restful-plugin-with-session-table/182752 "2010-02-02T14:11:07Z")

</div>

hi, I want to use this plugin with sessions table with configuration in environment.rb config.action\_controller.session\_store = :active\_record\_store and rake db:sessions:create rake db:migrate but strange its not …

---

## [Chunks of form](https://www.ruby-forum.com/t/chunks-of-form/182755)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/chunks-of-form/182755 "2010-02-02T13:11:03Z")

</div>

is there any way so that i can divide my form into small chunks and then include it with render partial

---

## [Find\_by](https://www.ruby-forum.com/t/find-by/182725)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 4\
**Last updated:** [February 2, 2010, 10:46am UTC](https://www.ruby-forum.com/t/find-by/182725 "2010-02-02T10:46:39Z")

</div>

Hi All, I’m looking to improve finding friends on my site, by adding a ‘‘suggestion’’ page/area. BAsically, a query should be run against a logged in user and find other people from the same town/location. Or that sh…

---

## [Active scaffold multiple edit links](https://www.ruby-forum.com/t/active-scaffold-multiple-edit-links/182677)

<div class="topic-metadata">

**Author:** [@beny18241](https://www.ruby-forum.com/u/beny18241)\
**Replies:** 1\
**Last updated:** [February 2, 2010, 10:20am UTC](https://www.ruby-forum.com/t/active-scaffold-multiple-edit-links/182677 "2010-02-02T10:20:52Z")

</div>

Hi, Anybody knows how to put multiple edit fields into active scaffold? I’mean exactly 2 edit fields where first update 1’st column and second one 2’nd column ?? Regards

---

## [How to set RUBY EXECUTABLE path in Ruby Gems Environment](https://www.ruby-forum.com/t/how-to-set-ruby-executable-path-in-ruby-gems-environment/182744)

<div class="topic-metadata">

**Author:** [@nununu](https://www.ruby-forum.com/u/nununu)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 9:36am UTC](https://www.ruby-forum.com/t/how-to-set-ruby-executable-path-in-ruby-gems-environment/182744 "2010-02-02T09:36:24Z")

</div>

I have ruby 2 version in my Mac which are 1.8.6 and 1.8.7. I would like to set Rubygems environment to point to Ruby 1.8.7. Anyone know this issure??? ubyGems Environment: RUBYGEMS VERSION: 1.3.5 RUBY VERSION: 1.8.6…

---

## [Browsing nested models](https://www.ruby-forum.com/t/browsing-nested-models/182745)

<div class="topic-metadata">

**Author:** [@jonas](https://www.ruby-forum.com/u/jonas)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 9:35am UTC](https://www.ruby-forum.com/t/browsing-nested-models/182745 "2010-02-02T09:35:49Z")

</div>

Hi all, Beginner’s question here: I’ve wondered, why I can’t browse through “nested” models (belongs\_to/has\_many). My models: (http://gist.github.com/291956) class Enterprise \< ActiveRecord::Base has\_many :branches …

---

## [DB (MySQL) question](https://www.ruby-forum.com/t/db-mysql-question/182735)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 7:30am UTC](https://www.ruby-forum.com/t/db-mysql-question/182735 "2010-02-02T07:30:05Z")

</div>

I have a bit code that looks all records in an array of unique keys, creates new records for all keys not found, and updates the records of the found records. There is a race condition, if another request tries the s…

---

## [Help needed in Routes](https://www.ruby-forum.com/t/help-needed-in-routes/182743)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 7:28am UTC](https://www.ruby-forum.com/t/help-needed-in-routes/182743 "2010-02-02T07:28:57Z")

</div>

Hi All I am now using Rails 2.3.4 i would want to have a route like http://localhost:3000/mysite/questions/show.xml/question-title In Rails 2.1.2, i had used the format map.namespace :mysite do |mysite| mysite.show…

---

## [Conditions parameter for find](https://www.ruby-forum.com/t/conditions-parameter-for-find/182727)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 7\
**Last updated:** [February 2, 2010, 6:16am UTC](https://www.ruby-forum.com/t/conditions-parameter-for-find/182727 "2010-02-02T06:16:59Z")

</div>

I would like to limit the results returned by the category\_id. I can manually insert the category\_id :conditions =\> \[‘category\_id = 1’\] but I would like it to respond to the input from the search form instead. :condi…

---

## [How to stub out a library file](https://www.ruby-forum.com/t/how-to-stub-out-a-library-file/182736)

<div class="topic-metadata">

**Author:** [@jacky](https://www.ruby-forum.com/u/jacky)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 3:40am UTC](https://www.ruby-forum.com/t/how-to-stub-out-a-library-file/182736 "2010-02-02T03:40:12Z")

</div>

Hi all, I encounter a problem when i’m stubing out a library file. The rails version is 2.3.4. \[How to reproduce\] Create a file payment\_gateway.rb in subdirectory lib/. \[code\] class PaymentGateway def self.collec…

---

## [Dm-mongo-adapter / rails3](https://www.ruby-forum.com/t/dm-mongo-adapter-rails3/182734)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 3:18am UTC](https://www.ruby-forum.com/t/dm-mongo-adapter-rails3/182734 "2010-02-02T03:18:20Z")

</div>

There seems to be a lot of choices for DB adaptors in the Rails3 world Has anyone tried dm-mongo-adapter? What is the preferred adaptor for Mongo?

---

## [Cucumber vs. RSpec](https://www.ruby-forum.com/t/cucumber-vs-rspec/182647)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 13\
**Last updated:** [February 2, 2010, 2:45am UTC](https://www.ruby-forum.com/t/cucumber-vs-rspec/182647 "2010-02-02T02:45:32Z")

</div>

I want to start diving into BDD. I have never used TDD before and am not sure if I should start by learning RSpec and then jump to Cucumber or just go straight to using Cucumber. I have been reading on the internet ab…

---

## [Detect change to an associated attribute](https://www.ruby-forum.com/t/detect-change-to-an-associated-attribute/182726)

<div class="topic-metadata">

**Author:** [@Jerry\_Franks](https://www.ruby-forum.com/u/Jerry_Franks)\
**Replies:** 3\
**Last updated:** [February 2, 2010, 2:02am UTC](https://www.ruby-forum.com/t/detect-change-to-an-associated-attribute/182726 "2010-02-02T02:02:14Z")

</div>

Consider these two models: class Article \< ActiveRecord::Base has\_many :posts end class Post \< ActiveRecord::Base belongs\_to :article end The ActiveRecord::Dirty module allows one to detect changes in a model’s a…

---

## [User managed forms](https://www.ruby-forum.com/t/user-managed-forms/182730)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [February 2, 2010, 2:01am UTC](https://www.ruby-forum.com/t/user-managed-forms/182730 "2010-02-02T02:01:12Z")

</div>

Anybody know of a plugin/gem which allows users to create and manage forms? Just simple forms that email the contents mainly… Thanks! ~ Mark

---

## ["Create" form in another Controller's "show" view](https://www.ruby-forum.com/t/create-form-in-another-controllers-show-view/182723)

<div class="topic-metadata">

**Author:** [@adambeazley](https://www.ruby-forum.com/u/adambeazley)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 12:18am UTC](https://www.ruby-forum.com/t/create-form-in-another-controllers-show-view/182723 "2010-02-02T00:18:03Z")

</div>

This seems like a really obvious question, but I’m blanking on the solution. I have a simple post/comments relationship that fits the basic blog model. That means that the form to create a new comment is in the show a…

---

## [Query multiple models/tables for an "Overview" page](https://www.ruby-forum.com/t/query-multiple-models-tables-for-an-overview-page/182720)

<div class="topic-metadata">

**Author:** [@Seirie](https://www.ruby-forum.com/u/Seirie)\
**Replies:** 2\
**Last updated:** [February 2, 2010, 12:00am UTC](https://www.ruby-forum.com/t/query-multiple-models-tables-for-an-overview-page/182720 "2010-02-02T00:00:30Z")

</div>

Hey guys. I want to create a overview page for my application that contains the latest activity on the site, from a few different sources. Lets say we have messages, comments, files and tasks (much like Basecamp, if y…

---

## [Best way to connect various applications?](https://www.ruby-forum.com/t/best-way-to-connect-various-applications/182601)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 12\
**Last updated:** [February 1, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/best-way-to-connect-various-applications/182601 "2010-02-01T22:18:26Z")

</div>

Good evening, I’ve got three different self-programmed Rails application I need to connect and manage with a 4th “supervisor” application. There’s a wiki application, there’s a shop application and there’s a business…

---

## [Action path - syntax error, unexpected tIDENTIFIER, expecting ')'](https://www.ruby-forum.com/t/action-path-syntax-error-unexpected-tidentifier-expecting/182640)

<div class="topic-metadata">

**Author:** [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 10:02pm UTC](https://www.ruby-forum.com/t/action-path-syntax-error-unexpected-tidentifier-expecting/182640 "2010-02-01T22:02:13Z")

</div>

I have a user controller with login as action. When I access the index.html.erb file via application.layout file. I get a error on the login link on the index.html.erb page. I think I am having dfifficulty in setting…

---

## [Validating both sides of a has\_one relationship breaks pickle/machinist tests](https://www.ruby-forum.com/t/validating-both-sides-of-a-has-one-relationship-breaks-pickle-machinist-tests/182706)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/validating-both-sides-of-a-has-one-relationship-breaks-pickle-machinist-tests/182706 "2010-02-01T20:05:48Z")

</div>

A lot has been posted about validation issues with associations, however, I don’t see this issue addressed specifically. ex: class Foo has\_one :schedule, :dependent =\> :destroy validates\_presence\_of :schedule class…

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

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