# Rails

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

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

---

## [Validation of other model fields](https://www.ruby-forum.com/t/validation-of-other-model-fields/103095)

<div class="topic-metadata">

**Author:** [@Daniello](https://www.ruby-forum.com/u/Daniello)\
**Replies:** 5\
**Last updated:** [May 2, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/validation-of-other-model-fields/103095 "2007-05-02T17:11:37Z")

</div>

I’ve got in my Form not only fileds from my model but also fields from ither models. How can I validate them like other fields. Example names od input tag fields Name1 \<%= text\_field 'model1', 'name1' , :size =\> 40 %\> …

---

## [Capistrano won't let me deploy any more](https://www.ruby-forum.com/t/capistrano-wont-let-me-deploy-any-more/103163)

<div class="topic-metadata">

**Author:** [@gers4302](https://www.ruby-forum.com/u/gers4302)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/capistrano-wont-let-me-deploy-any-more/103163 "2007-05-02T16:36:30Z")

</div>

IÂ’m not sure what has changed, but when I run Â‘rake deployÂ’, I get the following: (in D:/Documents/Code/METS/src/METS) executing task deploy executing task update \*\* transaction: start executing task upd…

---

## [Selected value in a combobox](https://www.ruby-forum.com/t/selected-value-in-a-combobox/103161)

<div class="topic-metadata">

**Author:** [@maria](https://www.ruby-forum.com/u/maria)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/selected-value-in-a-combobox/103161 "2007-05-02T16:26:02Z")

</div>

I’m using ActiveScaffold. In the file house\_helper.rb I have written the code: def house\_form\_column(record, input\_name) … list = House.find(:all, :include =\> ‘city’) new\_list=… … list do |element| if record = el…

---

## [Acts\_as\_whatever](https://www.ruby-forum.com/t/acts-as-whatever/53182)

<div class="topic-metadata">

**Author:** [@samj](https://www.ruby-forum.com/u/samj)\
**Replies:** 4\
**Last updated:** [May 2, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/acts-as-whatever/53182 "2007-05-02T16:15:26Z")

</div>

Hi there, I love the acts\_as\_\* family that rails uses. I’ve also found I can create something similar by dropping the following code into my activerecord classes: class MyClass \< ActiveRecord::Base class \<\< self al…

---

## [Session\_timeout and link\_to\_remote conflict](https://www.ruby-forum.com/t/session-timeout-and-link-to-remote-conflict/103145)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/session-timeout-and-link-to-remote-conflict/103145 "2007-05-02T15:24:19Z")

</div>

Hi, I have a membership rails application and I used session\_timeout plugin to allow accounts to automatically logout after a period of time (15 minutes) In some screen I have a div container which is updated with l…

---

## [Dynamically iterate around a table's columns (using content\_](https://www.ruby-forum.com/t/dynamically-iterate-around-a-tables-columns-using-content/103065)

<div class="topic-metadata">

**Author:** [@demisone](https://www.ruby-forum.com/u/demisone)\
**Replies:** 5\
**Last updated:** [May 2, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/dynamically-iterate-around-a-tables-columns-using-content/103065 "2007-05-02T15:14:17Z")

</div>

Hi there, I was trying to make some DRY code in the ‘edit’ controller so it will check for every single column and if it is empty, to write something like ‘\[Undefined\]’ in it’s place. The thing is didn’t want to make …

---

## [Ajax Updater mystery](https://www.ruby-forum.com/t/ajax-updater-mystery/103113)

<div class="topic-metadata">

**Author:** [@Kenneth\_D](https://www.ruby-forum.com/u/Kenneth_D)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/ajax-updater-mystery/103113 "2007-05-02T14:56:30Z")

</div>

I have a form which contains the following updater: When I use this form in a ‘new’ action, it works as expected. However, When I try it with an 'edit/ action, it fails to call updtrecipients, and instead calls ed…

---

## [Unit testing and stale ActiveRecords](https://www.ruby-forum.com/t/unit-testing-and-stale-activerecords/103051)

<div class="topic-metadata">

**Author:** [@seanhussey](https://www.ruby-forum.com/u/seanhussey)\
**Replies:** 7\
**Last updated:** [May 2, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/unit-testing-and-stale-activerecords/103051 "2007-05-02T14:54:29Z")

</div>

I’m having real trouble unit testing my Rails ActiveRecord models. It seems like more than half the time the data is stale. All I have to do is reference a variable and it suddenly the test will start passing. I’m n…

---

## [Form\_remote\_tag not sending xml\_http\_request](https://www.ruby-forum.com/t/form-remote-tag-not-sending-xml-http-request/103147)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 2:46pm UTC](https://www.ruby-forum.com/t/form-remote-tag-not-sending-xml-http-request/103147 "2007-05-02T14:46:39Z")

</div>

I have a form defined in a view : \<% form\_remote\_tag( :url =\>{:action =\> ‘list’ }, :html =\> {:id =\> ‘prop\_search\_form’, :name =\> “prop\_search\_form”}) do %\> … \<% end %\> when submitted, the check in list action of th…

---

## [Ruby Licensing](https://www.ruby-forum.com/t/ruby-licensing/103117)

<div class="topic-metadata">

**Author:** [@newcoder1](https://www.ruby-forum.com/u/newcoder1)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/ruby-licensing/103117 "2007-05-02T14:21:24Z")

</div>

Hi , I have some questions regarding the licensing of Ruby & Ruby On Rails . How does the licensing work in the following situations A) I write a website using Ruby and Rails where i want to charge customers for th…

---

## [Problem in: img\_options\["size"\] = img\_size](https://www.ruby-forum.com/t/problem-in-img-options-size-img-size/103134)

<div class="topic-metadata">

**Author:** [@sanjay](https://www.ruby-forum.com/u/sanjay)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/problem-in-img-options-size-img-size/103134 "2007-05-02T13:47:07Z")

</div>

hi guys, I have show\_image problem. I have the following code in application\_helper.rb in my rails project def show\_image(src,img\_size) img\_options = { “src” =\> src.include?("/") ? src : “/images/#{src}” } img\_optio…

---

## [Storing hashes in DB but getting strings back](https://www.ruby-forum.com/t/storing-hashes-in-db-but-getting-strings-back/103151)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 1:19pm UTC](https://www.ruby-forum.com/t/storing-hashes-in-db-but-getting-strings-back/103151 "2007-05-02T13:19:53Z")

</div>

Hi! I am adding a hash to a serialized column in a DB. When retrieving the data I get back a string though… Any idea why that might happen? Here is the model and a copy and paste of the usage from irb: http://pastie.…

---

## [Problem loading associated instances after deserialization](https://www.ruby-forum.com/t/problem-loading-associated-instances-after-deserialization/103152)

<div class="topic-metadata">

**Author:** [@edvardm](https://www.ruby-forum.com/u/edvardm)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/problem-loading-associated-instances-after-deserialization/103152 "2007-05-02T13:07:23Z")

</div>

Hi, I’m not sure if this is an active record bug, but the problem is as follows: I’m trying to create a cache of results for an expensive computation. I’m storing results to database. Results contain child objects …

---

## [In Place Editor and RJS](https://www.ruby-forum.com/t/in-place-editor-and-rjs/103150)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/in-place-editor-and-rjs/103150 "2007-05-02T12:54:59Z")

</div>

Hello, I have extended the InPlaceEditor (as in Chad F. Book Rails Recipes) to do a In Place Select Editor I display a data table : i have two cells , one for a code, one for a Label. I Opened the Label with in plac…

---

## [Cap deploy problem](https://www.ruby-forum.com/t/cap-deploy-problem/93247)

<div class="topic-metadata">

**Author:** [@matthi](https://www.ruby-forum.com/u/matthi)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 11:33am UTC](https://www.ruby-forum.com/t/cap-deploy-problem/93247 "2007-05-02T11:33:18Z")

</div>

Hi, this is the first time i try to set up a testserver mainly following this great tutorial “Debian On Rails : Apache 2.2 + MySQL + Ruby + Rails + PHP + Mongrel + Mongrel\_cluster + Subversion + Trac + Capistrano” a…

---

## [Weird problem with Net/SSH](https://www.ruby-forum.com/t/weird-problem-with-net-ssh/103074)

<div class="topic-metadata">

**Author:** [@ohad](https://www.ruby-forum.com/u/ohad)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 11:06am UTC](https://www.ruby-forum.com/t/weird-problem-with-net-ssh/103074 "2007-05-02T11:06:35Z")

</div>

Hi guys, One of my applications uses SSH to authenticate the user. That is, in order to log in to the system, the user inputs a username and password, and the server checks those against itself using SSH. I do it like…

---

## [Confused about this log file report](https://www.ruby-forum.com/t/confused-about-this-log-file-report/103003)

<div class="topic-metadata">

**Author:** [@eddy](https://www.ruby-forum.com/u/eddy)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 10:56am UTC](https://www.ruby-forum.com/t/confused-about-this-log-file-report/103003 "2007-05-02T10:56:53Z")

</div>

Is there a problem with my mongrel clusters that openssl is not starting or do you think it’s the other way around? (that my openssl is missing, so the server won’t start?) \*\* Daemonized, any open files are closed. L…

---

## [A newbe question about active record](https://www.ruby-forum.com/t/a-newbe-question-about-active-record/103141)

<div class="topic-metadata">

**Author:** [@itamar](https://www.ruby-forum.com/u/itamar)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 9:23am UTC](https://www.ruby-forum.com/t/a-newbe-question-about-active-record/103141 "2007-05-02T09:23:17Z")

</div>

Hi, I’m learning rails and if I understand correct the active record always uses a “lazy” way to fetch relations (so if a record has a userId and I want to display the userName, another query is executed). is that ri…

---

## [Problem with RoR's controller getting too large](https://www.ruby-forum.com/t/problem-with-rors-controller-getting-too-large/106828)

<div class="topic-metadata">

**Author:** [@shurain](https://www.ruby-forum.com/u/shurain)\
**Replies:** 6\
**Last updated:** [May 2, 2007, 8:08am UTC](https://www.ruby-forum.com/t/problem-with-rors-controller-getting-too-large/106828 "2007-05-02T08:08:37Z")

</div>

Let’s assume that there are two models Post and Comment. If we have a controller dealing with both of these models, it wouldn’t take long before the controller grows too big to maintain. As far as I understand, this h…

---

## [AWS - nillable fields in WSDL](https://www.ruby-forum.com/t/aws-nillable-fields-in-wsdl/103136)

<div class="topic-metadata">

**Author:** [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 7:03am UTC](https://www.ruby-forum.com/t/aws-nillable-fields-in-wsdl/103136 "2007-05-02T07:03:33Z")

</div>

I’m writing a soap server app. The client accessing my services requires that some elements (that can be nil) be explicitly set to “nillable = true” in the wsdl. Does AWS support nillable elements? I haven’t been ab…

---

## [Rails video tutorails](https://www.ruby-forum.com/t/rails-video-tutorails/93176)

<div class="topic-metadata">

**Author:** [@Henry\_Addo](https://www.ruby-forum.com/u/Henry_Addo)\
**Replies:** 8\
**Last updated:** [May 2, 2007, 6:57am UTC](https://www.ruby-forum.com/t/rails-video-tutorails/93176 "2007-05-02T06:57:33Z")

</div>

Hi I want to dive into rails this weekend. Does anyone knows where I can download free video tutorials on rails, or other resources which can get me started quickly. Thanks – ++henry For online local languages dict…

---

## [WHERE NOT syntax with ActiveRecord](https://www.ruby-forum.com/t/where-not-syntax-with-activerecord/103132)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 6:23am UTC](https://www.ruby-forum.com/t/where-not-syntax-with-activerecord/103132 "2007-05-02T06:23:31Z")

</div>

I need to run a sql statement along the lines of SELECT \* FROM items WHERE NOT … But I would like to run this in the ActiveRecord syntax. I like using :conditions =\> \[…\] but obviously where it renders ‘WHERE NOT’ and …

---

## [Gloc problem](https://www.ruby-forum.com/t/gloc-problem/92906)

<div class="topic-metadata">

**Author:** [@Carol](https://www.ruby-forum.com/u/Carol)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 6:11am UTC](https://www.ruby-forum.com/t/gloc-problem/92906 "2007-05-02T06:11:47Z")

</div>

Hi! I am new with ruby and with rails. I have installed Gloc plugin from the svn but when I try to run webrick server I get this error: C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/…

---

## [Single sing on with PHP](https://www.ruby-forum.com/t/single-sing-on-with-php/103107)

<div class="topic-metadata">

**Author:** [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 4:48am UTC](https://www.ruby-forum.com/t/single-sing-on-with-php/103107 "2007-05-02T04:48:25Z")

</div>

Hi all, For our next project we are required to integrate a rails application with a PHP application. The PHP application is going to be used to authenticate users. When the user is logged into the PHP application,…

---

## [Is there any better method to externalize some configure inf](https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 1\
**Last updated:** [May 2, 2007, 4:46am UTC](https://www.ruby-forum.com/t/is-there-any-better-method-to-externalize-some-configure-inf/103127 "2007-05-02T04:46:25Z")

</div>

i wanna get some var or constant out of the code files. pls show your ways.thanks!

---

## [About the link\_to\_remote](https://www.ruby-forum.com/t/about-the-link-to-remote/103124)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 2\
**Last updated:** [May 2, 2007, 4:15am UTC](https://www.ruby-forum.com/t/about-the-link-to-remote/103124 "2007-05-02T04:15:23Z")

</div>

hi,all i dont know why it does not work as my expection. it always render the 127.0.0.1:3000 (my ror server) ,not the 8080 port. \<%= link\_to\_remote ‘query now!’, {:host=\>“127.0.0.1:8080”,:controller=\>“webgui”,:actio…

---

## [Template image display problem(newbie)](https://www.ruby-forum.com/t/template-image-display-problem-newbie/103128)

<div class="topic-metadata">

**Author:** [@Melinda](https://www.ruby-forum.com/u/Melinda)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 4:03am UTC](https://www.ruby-forum.com/t/template-image-display-problem-newbie/103128 "2007-05-02T04:03:48Z")

</div>

Hi guys, I use a web template for my rails application. I place the images in public/image folder. I edit my list.rhtml(got by scaffolding) Now my image display code is as below: But when i access the page from th…

---

## [Performance of to\_xml, versus to\_json](https://www.ruby-forum.com/t/performance-of-to-xml-versus-to-json/103108)

<div class="topic-metadata">

**Author:** [@Eric\_Mill](https://www.ruby-forum.com/u/Eric_Mill)\
**Replies:** 3\
**Last updated:** [May 2, 2007, 3:54am UTC](https://www.ruby-forum.com/t/performance-of-to-xml-versus-to-json/103108 "2007-05-02T03:54:22Z")

</div>

I’ve been doing some benchmarks on how fast ActiveRecord’s #to\_xml is on large datasets, versus the speed of A ActiveRecord’s #to\_json, and the difference is rather alarming. #to\_xml becomes quickly unusable for large…

---

## [WebObjects I - Introductory Course, 6/18-6/22 in Seattle, WA](https://www.ruby-forum.com/t/webobjects-i-introductory-course-6-18-6-22-in-seattle-wa/103125)

<div class="topic-metadata">

**Author:** [@xyzzycoder](https://www.ruby-forum.com/u/xyzzycoder)\
**Replies:** 0\
**Last updated:** [May 2, 2007, 3:00am UTC](https://www.ruby-forum.com/t/webobjects-i-introductory-course-6-18-6-22-in-seattle-wa/103125 "2007-05-02T03:00:19Z")

</div>

Hello. For those of you who may be interested in learning WebObjects (an Apple technology similar to ROR), here is an opportunity in Seattle. Aaron Übermind, Inc., a leading developer of custom, enterprise applicat…

---

## [Retrospectiva - Web project management on Rails](https://www.ruby-forum.com/t/retrospectiva-web-project-management-on-rails/90803)

<div class="topic-metadata">

**Author:** [@Dimitrij](https://www.ruby-forum.com/u/Dimitrij)\
**Replies:** 17\
**Last updated:** [May 2, 2007, 2:31am UTC](https://www.ruby-forum.com/t/retrospectiva-web-project-management-on-rails/90803 "2007-05-02T02:31:19Z")

</div>

Hi! For those who are not following the announcements on my blog (yet), a second release candidate of Retrospectiva v1.0, which I already expect to be production-ready, has been released recently. To get the applicat…

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

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