# Rails

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

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

---

## [OK to post?](https://www.ruby-forum.com/t/ok-to-post/110515)

<div class="topic-metadata">

**Author:** [@davox](https://www.ruby-forum.com/u/davox)\
**Replies:** 2\
**Last updated:** [July 27, 2007, 5:37am UTC](https://www.ruby-forum.com/t/ok-to-post/110515 "2007-07-27T05:37:07Z")

</div>

Hi, is it OK to post on the forum? Our company, the TGND Corporation, seeks an excellent RoR engineer - is there an appropriate place to post? Thanks, David

---

## [\[ANN\] RubyWorks 0.0.4 - x86\_64 support and some extra packag](https://www.ruby-forum.com/t/ann-rubyworks-0-0-4-x86-64-support-and-some-extra-packag/110523)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 5:19am UTC](https://www.ruby-forum.com/t/ann-rubyworks-0-0-4-x86-64-support-and-some-extra-packag/110523 "2007-07-27T05:19:05Z")

</div>

RubyWorks production stack is a collection of open-source software required to host a RubyOnRails application on a Linux server. To set up a production Rails server, you point a package manager to RubyWorks package re…

---

## [What does "assert assigns(:users)" mean?](https://www.ruby-forum.com/t/what-does-assert-assigns-users-mean/110461)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 4\
**Last updated:** [July 27, 2007, 4:29am UTC](https://www.ruby-forum.com/t/what-does-assert-assigns-users-mean/110461 "2007-07-27T04:29:03Z")

</div>

Hi All, I recently started using RoR and love it! I’m currently creating some unit tests and found this line in the scaffolding for a controller test: assert assigns(:users) What does it mean? I know what assert do…

---

## [Text Editor for Windows with SFTP support + Ruby syntax high](https://www.ruby-forum.com/t/text-editor-for-windows-with-sftp-support-ruby-syntax-high/109435)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 4:27am UTC](https://www.ruby-forum.com/t/text-editor-for-windows-with-sftp-support-ruby-syntax-high/109435 "2007-07-27T04:27:03Z")

</div>

Does anybody know of any good text editors for Windows with SFTP support + Ruby syntax highlighting? SFTP support could include the ability to automatically sync projects and/or the abillity to edit remote files local…

---

## [Application-wide layouts?](https://www.ruby-forum.com/t/application-wide-layouts/103732)

<div class="topic-metadata">

**Author:** [@coldtone](https://www.ruby-forum.com/u/coldtone)\
**Replies:** 5\
**Last updated:** [July 27, 2007, 3:40am UTC](https://www.ruby-forum.com/t/application-wide-layouts/103732 "2007-07-27T03:40:58Z")

</div>

Hey all. I’m making use of Engines-based plugins in several of my sites. I have a wiki, a login engine, a CRM tool… Right now, I install the plugin(s), then have to create a mask controller containing a layout “sta…

---

## [Webmail Apps in RoR](https://www.ruby-forum.com/t/webmail-apps-in-ror/110491)

<div class="topic-metadata">

**Author:** [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Replies:** 9\
**Last updated:** [July 27, 2007, 3:13am UTC](https://www.ruby-forum.com/t/webmail-apps-in-ror/110491 "2007-07-27T03:13:54Z")

</div>

Recently started looking for a webmail client written using ruby and rails. Have not had much luck with google. Only one that shows up thus far has been mailr but that site has a python error on it. Does anyone here…

---

## [Combine File](https://www.ruby-forum.com/t/combine-file/110519)

<div class="topic-metadata">

**Author:** [@watxit](https://www.ruby-forum.com/u/watxit)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 3:05am UTC](https://www.ruby-forum.com/t/combine-file/110519 "2007-07-27T03:05:10Z")

</div>

Hi all! I’m want to combine file eg.(word,gif,pdf,…) in Raild,but can’t read content of this file because they had encoded. If you know the way to do, please help me what i should do. Thank a lot.

---

## [Open source billing system, feedback on a couple of items](https://www.ruby-forum.com/t/open-source-billing-system-feedback-on-a-couple-of-items/110508)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 0\
**Last updated:** [July 27, 2007, 12:09am UTC](https://www.ruby-forum.com/t/open-source-billing-system-feedback-on-a-couple-of-items/110508 "2007-07-27T00:09:41Z")

</div>

I’m just about finished with my business natural language system for defining recurring billing periods, but have one major question that I haven’t decided on. Since I’ll be releasing this as open source very soon, I…

---

## [Wildcard sub-domains and routes](https://www.ruby-forum.com/t/wildcard-sub-domains-and-routes/110500)

<div class="topic-metadata">

**Author:** [@armanddp](https://www.ruby-forum.com/u/armanddp)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/wildcard-sub-domains-and-routes/110500 "2007-07-26T23:45:39Z")

</div>

Hi, I’ve got a requirement which requires my site to accept all subdomains e.g. sub1.domain.com, sub2.domain.com, sub3.domain.com etc and handle them accordingly. I’m currently investigating the options for dealing w…

---

## [Using more than 1 collection\_select drop down in a form](https://www.ruby-forum.com/t/using-more-than-1-collection-select-drop-down-in-a-form/110503)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/using-more-than-1-collection-select-drop-down-in-a-form/110503 "2007-07-26T22:40:59Z")

</div>

Bashing my head off this one, done some serious googling and can;t find an answer anywhere, is there any way to run multiple collection selects in single form, i have 1 working no problems, but when I try to set up a …

---

## [Converting an Array to a Hash](https://www.ruby-forum.com/t/converting-an-array-to-a-hash/110385)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/converting-an-array-to-a-hash/110385 "2007-07-26T22:21:28Z")

</div>

Hi. I currently have an array, but realized that I need a hash instead. I have this code in my users\_helper.rb def generate\_sub\_nav sub\_nav\_array = \[\] user = User.find(session\[:user\]) for role in user.role…

---

## [Through Associations](https://www.ruby-forum.com/t/through-associations/110472)

<div class="topic-metadata">

**Author:** [@Farhan](https://www.ruby-forum.com/u/Farhan)\
**Replies:** 5\
**Last updated:** [July 26, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/through-associations/110472 "2007-07-26T22:09:24Z")

</div>

Hi, I’m a total noob to rails. I’m working my way through my first app and I desperately need help with through associations in rails. Task: get number of unread articles. Database structure: A. Users has\_many :act…

---

## [Problems with RJS & Ajax](https://www.ruby-forum.com/t/problems-with-rjs-ajax/110501)

<div class="topic-metadata">

**Author:** [@creemej](https://www.ruby-forum.com/u/creemej)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/problems-with-rjs-ajax/110501 "2007-07-26T22:09:24Z")

</div>

I try to create an “onKeypress” event handler for a form but nothing works! I have already studied the reference books on Ajax, but that didn’t help. Can someone explain me how todo this? These are the code-snippets…

---

## [Module to track books and their reviews for my users? Amazon](https://www.ruby-forum.com/t/module-to-track-books-and-their-reviews-for-my-users-amazon/110492)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/module-to-track-books-and-their-reviews-for-my-users-amazon/110492 "2007-07-26T21:15:19Z")

</div>

I’m currently 'spec’ing out an application to allow my users to review books that are topical to their needs. I started ‘stealing’ the layout that Amazon seems to keep for each book and relate it to author, reviews, v…

---

## [JRuby Hack Day (San Francisco, CA)](https://www.ruby-forum.com/t/jruby-hack-day-san-francisco-ca/110495)

<div class="topic-metadata">

**Author:** [@kristiewells](https://www.ruby-forum.com/u/kristiewells)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/jruby-hack-day-san-francisco-ca/110495 "2007-07-26T21:04:16Z")

</div>

Joyent and Sun are proud to present the first in a series of Hack Days, where you will get a chance to hear about the latest technologies and learn how to use them in an interactive unconference styled event. The fi…

---

## [Lohan the observable](https://www.ruby-forum.com/t/lohan-the-observable/110489)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/lohan-the-observable/110489 "2007-07-26T20:16:12Z")

</div>

Sorry, that name is a misnomer. However, I was excited to find that Ruby has a built in Observable module and I’m pretty bored, so I apologize in advance… require ‘observer’ one who is observed class Celebrity inc…

---

## [File path from controller](https://www.ruby-forum.com/t/file-path-from-controller/110487)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/file-path-from-controller/110487 "2007-07-26T20:13:05Z")

</div>

I’m trying to load an .html file from my /public directory using Hpricot in one of my controllers. Ex: doc = Hpricot(open(’/template\_1.htm’)) This can’t seem to find the file and it only works if I use the full, abso…

---

## [Capistrano - 'sanity\_check' task](https://www.ruby-forum.com/t/capistrano-sanity-check-task/110484)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/capistrano-sanity-check-task/110484 "2007-07-26T19:25:05Z")

</div>

I instantly refresh my browser after deploying to make sure nothing went wrong. This gets tiring so I added some code to hit the site and print results after the deployment task has been run. The Net:HTTP code is ta…

---

## [Rails bloggers wanted](https://www.ruby-forum.com/t/rails-bloggers-wanted/110483)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/rails-bloggers-wanted/110483 "2007-07-26T19:23:05Z")

</div>

We are launching an IT Q&A Social Networking site http://www.itknowledgeexchange.com/ and are looking for Ruby/Rails bloggers or similarly related IT topics. Earn $100+ per month depending on traffic you generate. C…

---

## [How to use ActiveResource with Rails version 1.2.3](https://www.ruby-forum.com/t/how-to-use-activeresource-with-rails-version-1-2-3/90797)

<div class="topic-metadata">

**Author:** [@Armin\_J](https://www.ruby-forum.com/u/Armin_J)\
**Replies:** 8\
**Last updated:** [July 26, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/how-to-use-activeresource-with-rails-version-1-2-3/90797 "2007-07-26T18:42:19Z")

</div>

Hello, what is the easiest way to use ActiveResource with the current stable release of rails. Is there a gem or a plugin? Regards, Armin

---

## [Bi-directional self-referential HABTM](https://www.ruby-forum.com/t/bi-directional-self-referential-habtm/110463)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/bi-directional-self-referential-habtm/110463 "2007-07-26T18:42:02Z")

</div>

Hi, I’m having a little trouble figuring out how to make a self- referential HABTM bi-directional. I have a Employee class. Each employee can have a couple of bosses, who are also employees. The employee class has th…

---

## [Rails, SQL Server 2000 and Dates Pre 1970](https://www.ruby-forum.com/t/rails-sql-server-2000-and-dates-pre-1970/110474)

<div class="topic-metadata">

**Author:** [@leei](https://www.ruby-forum.com/u/leei)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/rails-sql-server-2000-and-dates-pre-1970/110474 "2007-07-26T18:42:02Z")

</div>

When using dates in Rails with SQL server everything seems to work great until I attempt to use a date prior to 1970. I can see the date is correct in the database but when I attempt to read the value it is returned a…

---

## [Rhtml output](https://www.ruby-forum.com/t/rhtml-output/110481)

<div class="topic-metadata">

**Author:** [@ricklach](https://www.ruby-forum.com/u/ricklach)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 6:37pm UTC](https://www.ruby-forum.com/t/rhtml-output/110481 "2007-07-26T18:37:01Z")

</div>

Just a simple question. I know what this does" \<%= %\> for output but what is the purpose of the negative sign in this \<%= -%\> in a rhtml template?

---

## [Little Rails Bug - does it still exist?](https://www.ruby-forum.com/t/little-rails-bug-does-it-still-exist/110477)

<div class="topic-metadata">

**Author:** [@nex](https://www.ruby-forum.com/u/nex)\
**Replies:** 2\
**Last updated:** [July 26, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/little-rails-bug-does-it-still-exist/110477 "2007-07-26T18:15:59Z")

</div>

I came across a little Rails gotcha recently, something that was reported back at least a year ago. I was wondering whether anyone could help me find my way through the bug tracker and see if there was progress on it …

---

## [Model not updating](https://www.ruby-forum.com/t/model-not-updating/110238)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/model-not-updating/110238 "2007-07-26T17:58:34Z")

</div>

Hi, I’ve just found myself in charge of maintaining and developing a rails web application at my company. It’s a newbish question as I have pretty much no experience with rails before. The problem is that although I …

---

## [Partial not pulling through values](https://www.ruby-forum.com/t/partial-not-pulling-through-values/110476)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 0\
**Last updated:** [July 26, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/partial-not-pulling-through-values/110476 "2007-07-26T17:50:21Z")

</div>

Any ideas on this would be grand I have two models Degree and Qualification and am using a join table called assigned, in my edit view below I am calling the partial ‘form’ at the start and then currently having to ca…

---

## [Ruby vs Java](https://www.ruby-forum.com/t/ruby-vs-java/110471)

<div class="topic-metadata">

**Author:** [@rohit](https://www.ruby-forum.com/u/rohit)\
**Replies:** 4\
**Last updated:** [July 26, 2007, 5:42pm UTC](https://www.ruby-forum.com/t/ruby-vs-java/110471 "2007-07-26T17:42:56Z")

</div>

I am a newbie. I want to know how Ruby is different from Java. When to use Ruby and what are the advantages? Is it focused entirely on Web?

---

## [Anyone have any experience with SortHelper2?](https://www.ruby-forum.com/t/anyone-have-any-experience-with-sorthelper2/110464)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 1\
**Last updated:** [July 26, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/anyone-have-any-experience-with-sorthelper2/110464 "2007-07-26T17:36:49Z")

</div>

I’m simply trying to work out what I should change to align the fields to the left, rather than the default which is in the center?

---

## [RubyonRails 2.0 (NEW)?](https://www.ruby-forum.com/t/rubyonrails-2-0-new/110073)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 5\
**Last updated:** [July 26, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/rubyonrails-2-0-new/110073 "2007-07-26T17:29:55Z")

</div>

Hello, I was wondering when the new version RubyonRails will come out? and which new features will be available to the web developer? Regards, Jamal Thanks :slight\_smile:

---

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

<div class="topic-metadata">

**Author:** [@r0nsync](https://www.ruby-forum.com/u/r0nsync)\
**Replies:** 3\
**Last updated:** [July 26, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/help/110466 "2007-07-26T17:18:54Z")

</div>

if ((( chaine\[i+14\] == “twincards\>false\</twincards”)||(chaine\[i+14\] == “twincards\>true\</twincards”))|| ( chaine\[ i+14\]== “twincards xsi:nil=“1”/”)) ??? : syntax error, expecting end-of-file ???

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

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