# Rails

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

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

---

## [How to comment codes in .rhtml file](https://www.ruby-forum.com/t/how-to-comment-codes-in-rhtml-file/103686)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/how-to-comment-codes-in-rhtml-file/103686 "2007-05-09T14:50:30Z")

</div>

HI everybody I know how to comment codes in ruby (.rb) file. But can anyone say how to comment codes in rails file i mean in .rhtml file . Regards, Veeraa.

---

## [Acts as Authenticated](https://www.ruby-forum.com/t/acts-as-authenticated/103693)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/acts-as-authenticated/103693 "2007-05-09T12:12:11Z")

</div>

Hi, Can anyone tell me the hash encryption level for a password using acts as authenticated 128bit, 164bit??? require ‘digest/sha1’ Encrypts some data with the salt. def self.encrypt(password, salt) Digest::SHA1.hex…

---

## [Attachment\_fu Memory Use When Uploading](https://www.ruby-forum.com/t/attachment-fu-memory-use-when-uploading/103692)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 10:52am UTC](https://www.ruby-forum.com/t/attachment-fu-memory-use-when-uploading/103692 "2007-05-09T10:52:59Z")

</div>

Hello, If I were to upload, say, a 250MB image using attachment\_fu without any resizing or image manipulation would I need 250MB of spare RAM to handle the upload? I ask because I’m not sure whether attachment\_fu str…

---

## [How to make read-times counter](https://www.ruby-forum.com/t/how-to-make-read-times-counter/103624)

<div class="topic-metadata">

**Author:** [@ackiae86](https://www.ruby-forum.com/u/ackiae86)\
**Replies:** 3\
**Last updated:** [May 9, 2007, 10:51am UTC](https://www.ruby-forum.com/t/how-to-make-read-times-counter/103624 "2007-05-09T10:51:15Z")

</div>

Hello all: I wanted to realize a article counter function in my blog system. Please help me out Thanks!

---

## [Http://tinyurl.com/36pw6k Fired Aaron swartz attacs Reddit b](https://www.ruby-forum.com/t/http-tinyurl-com-36pw6k-fired-aaron-swartz-attacs-reddit-b/103691)

<div class="topic-metadata">

**Author:** [@foto](https://www.ruby-forum.com/u/foto)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 10:49am UTC](https://www.ruby-forum.com/t/http-tinyurl-com-36pw6k-fired-aaron-swartz-attacs-reddit-b/103691 "2007-05-09T10:49:58Z")

</div>

HugeDomains.com Aaron swartz attacs Reddit brings it down

---

## [Problems with tags\_as\_taggable](https://www.ruby-forum.com/t/problems-with-tags-as-taggable/103688)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 10:16am UTC](https://www.ruby-forum.com/t/problems-with-tags-as-taggable/103688 "2007-05-09T10:16:37Z")

</div>

Hello I need help from you all. I have 3 tables: tbl\_restaurants, tbl\_tags, and tbl\_res\_tags. tbl\_restaurants has 3 fields: res\_id, name, description. tbl\_tags has tag\_id and name. tbl\_res\_tags has tag\_id and res\_id.…

---

## [How to getDate](https://www.ruby-forum.com/t/how-to-getdate/103591)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 8\
**Last updated:** [May 9, 2007, 7:49am UTC](https://www.ruby-forum.com/t/how-to-getdate/103591 "2007-05-09T07:49:17Z")

</div>

Hi all, I’ve a string “Mon Nov 20 00:00:00 UTC+0530 2006” in my database. I want to retrieve that in dd-mm-yyyy format. Please help me out. Thanks,

---

## [Atlanta (May 17th): Need Ruby on Rails Advocate for Panel Di](https://www.ruby-forum.com/t/atlanta-may-17th-need-ruby-on-rails-advocate-for-panel-di/103678)

<div class="topic-metadata">

**Author:** [@Mike\_Schinkel](https://www.ruby-forum.com/u/Mike_Schinkel)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:54am UTC](https://www.ruby-forum.com/t/atlanta-may-17th-need-ruby-on-rails-advocate-for-panel-di/103678 "2007-05-09T05:54:25Z")

</div>

Hi all Ruby on Rails Developers: Do you know a business-savvy Ruby on Rails developer with the skill to give a great presentation in the Atlanta, Georgia USA area? If so, I’d really appreciate if you could either for…

---

## [\[ANN\] SyslogLogger 1.4.0 Released](https://www.ruby-forum.com/t/ann-sysloglogger-1-4-0-released/103673)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:41am UTC](https://www.ruby-forum.com/t/ann-sysloglogger-1-4-0-released/103673 "2007-05-09T05:41:30Z")

</div>

SyslogLogger version 1.4.0 has been released! http://seattlerb.rubyforge.org/SyslogLogger SyslogLogger is a Logger replacement that logs to syslog. It is almost drop-in with a few caveats. Changes: == 1.4.0 / 2007-…

---

## [How can I specify the selected value in collection\_select wh](https://www.ruby-forum.com/t/how-can-i-specify-the-selected-value-in-collection-select-wh/103674)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 5:39am UTC](https://www.ruby-forum.com/t/how-can-i-specify-the-selected-value-in-collection-select-wh/103674 "2007-05-09T05:39:30Z")

</div>

Hi all, I have a relatively simple scenario. I have a form that can have a list of multiple phone objects in it. I’m trying to get the edit and entry screens to work with unique field names. I have entry and recor…

---

## [Custom validation error messages](https://www.ruby-forum.com/t/custom-validation-error-messages/103671)

<div class="topic-metadata">

**Author:** [@Diego](https://www.ruby-forum.com/u/Diego)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 4:41am UTC](https://www.ruby-forum.com/t/custom-validation-error-messages/103671 "2007-05-09T04:41:06Z")

</div>

Hi all, I have a few questions regarding the error messages which are produced by default. For example, if I have “validates\_uniqueness\_of” I may get an error message "Surname has already been taken’ What if I want a…

---

## [Looking for FT RoR programmer in Bay Area](https://www.ruby-forum.com/t/looking-for-ft-ror-programmer-in-bay-area/103666)

<div class="topic-metadata">

**Author:** [@Key\_Curriculum\_Pres](https://www.ruby-forum.com/u/Key_Curriculum_Pres)\
**Replies:** 0\
**Last updated:** [May 9, 2007, 1:49am UTC](https://www.ruby-forum.com/t/looking-for-ft-ror-programmer-in-bay-area/103666 "2007-05-09T01:49:14Z")

</div>

I’m an educational publisher in Emeryville, California, and am looking for a software engineer to work in emeryville at our sister company, KCP Technologies, to help build a web application to deliver school mathemati…

---

## [Install plugin acts\_as\_auth.. no access to techno-weenie.net](https://www.ruby-forum.com/t/install-plugin-acts-as-auth-no-access-to-techno-weenie-net/103585)

<div class="topic-metadata">

**Author:** [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Replies:** 2\
**Last updated:** [May 9, 2007, 1:47am UTC](https://www.ruby-forum.com/t/install-plugin-acts-as-auth-no-access-to-techno-weenie-net/103585 "2007-05-09T01:47:26Z")

</div>

please help me get this plugin installed… I have no access to techo-weenie.net due to a firewall blocking the weenie crap in its domain name. more specifically, i’m trying to do this: script/plugin install http://svn…

---

## [Getting a 'true' value out of a method?](https://www.ruby-forum.com/t/getting-a-true-value-out-of-a-method/103649)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 1:44am UTC](https://www.ruby-forum.com/t/getting-a-true-value-out-of-a-method/103649 "2007-05-09T01:44:14Z")

</div>

Hi, I’m having trouble with one of my apps. I’m trying to make a studio booking software. Before creating a booking, I want to check if the studio is available. I have a method checking for the availability of the stu…

---

## [Fulltext index?](https://www.ruby-forum.com/t/fulltext-index/103651)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 1\
**Last updated:** [May 9, 2007, 12:30am UTC](https://www.ruby-forum.com/t/fulltext-index/103651 "2007-05-09T00:30:11Z")

</div>

What’s the best way to create a fulltext index on a table column? I was looking at the source of the add\_index method, and it looks like: add\_index(table, column, “FULLTEXT”) will work (at least for MySQL), but accor…

---

## [Machine to machine with ActiveResource](https://www.ruby-forum.com/t/machine-to-machine-with-activeresource/103636)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 8\
**Last updated:** [May 8, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/machine-to-machine-with-activeresource/103636 "2007-05-08T23:57:08Z")

</div>

This is probably really obvious. But I can’t see it. I have ActiveResource enabled client talking to RESTful server. Instead of using link\_to from the client to call the resource on the server, I’d like to do this ma…

---

## [How to handle no category on select element?](https://www.ruby-forum.com/t/how-to-handle-no-category-on-select-element/103659)

<div class="topic-metadata">

**Author:** [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Replies:** 0\
**Last updated:** [May 8, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/how-to-handle-no-category-on-select-element/103659 "2007-05-08T23:48:15Z")

</div>

I have situation like this: Assign: Choose category 1 category 2 So when I choose option ‘Choose’ with value 0 and I don’t have a category with that id i get error… Making a new category in table with title = …

---

## [Complex query with joins](https://www.ruby-forum.com/t/complex-query-with-joins/103043)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 2\
**Last updated:** [May 8, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/complex-query-with-joins/103043 "2007-05-08T23:28:06Z")

</div>

Hi everyone, My problem involves two tables, Objects and Attributes. (These are not the real names) Objects |ID Name Attributes |ID |Object\_ID (foreign key references Objects.id) Value I want to …

---

## [Mongrel\_cluster 1.0.1.1 does not create /var/run/mongrel\_clu](https://www.ruby-forum.com/t/mongrel-cluster-1-0-1-1-does-not-create-var-run-mongrel-clu/103655)

<div class="topic-metadata">

**Author:** [@ehud](https://www.ruby-forum.com/u/ehud)\
**Replies:** 0\
**Last updated:** [May 8, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-1-0-1-1-does-not-create-var-run-mongrel-clu/103655 "2007-05-08T23:07:03Z")

</div>

Hi everyone, I am going crazy over here! :slight\_smile: I just want to be able to use --clean with my mongrel\_rails cluster::start command. I’ve upgraded to mongrel\_cluster 1.0.1.1 and mongrel\_rails 1.0.1. my config…

---

## [Getting a 'true' value out of a method?](https://www.ruby-forum.com/t/getting-a-true-value-out-of-a-method/103648)

<div class="topic-metadata">

**Author:** [@pat](https://www.ruby-forum.com/u/pat)\
**Replies:** 0\
**Last updated:** [May 8, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/getting-a-true-value-out-of-a-method/103648 "2007-05-08T22:03:46Z")

</div>

Hi I wrote this method to check for the availability of a studio : def check\_dispo(date, time, time\_duration, week\_duration) i = 0 end\_time = time + time\_duration.strftime(’%H’).to\_i3600 + time\_duration.strftime(’%M’…

---

## [Problems w/ selecting model data in the right order](https://www.ruby-forum.com/t/problems-w-selecting-model-data-in-the-right-order/103628)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [May 8, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/problems-w-selecting-model-data-in-the-right-order/103628 "2007-05-08T21:39:43Z")

</div>

Hello, I’m trying to extract data from two related tables and send only specified fields to a method that creates a csv export. The problem is when send the data from the find method, only some of the fields match…

---

## [My sites up, but](https://www.ruby-forum.com/t/my-sites-up-but/103639)

<div class="topic-metadata">

**Author:** [@eddy](https://www.ruby-forum.com/u/eddy)\
**Replies:** 1\
**Last updated:** [May 8, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/my-sites-up-but/103639 "2007-05-08T21:14:40Z")

</div>

My first time in deploying. of course there are bugs in my app. seems like code i developed under development is now buggy with production mode. in any case, if there seems to be a problem, my mongrel stops… and this…

---

## [Collection\_select with :selected option](https://www.ruby-forum.com/t/collection-select-with-selected-option/90521)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [May 8, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/collection-select-with-selected-option/90521 "2007-05-08T19:46:28Z")

</div>

Hi there. I know that there are a lot of solutions that have been discussed for this issue here already. However none of them did work for me. Either the selected option did work, but not “:include\_blank =\> true” or m…

---

## [Select 1 I18N solution to keep RoR full stack](https://www.ruby-forum.com/t/select-1-i18n-solution-to-keep-ror-full-stack/103635)

<div class="topic-metadata">

**Author:** [@Benoit](https://www.ruby-forum.com/u/Benoit)\
**Replies:** 1\
**Last updated:** [May 8, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/select-1-i18n-solution-to-keep-ror-full-stack/103635 "2007-05-08T19:36:27Z")

</div>

http://wiki.rubyonrails.org/rails/pages/InternationalizationComparison is exactly what RoR is not supposed to be : something where we have to select a solution out of 5 differents packages that are mostly doing the sa…

---

## [Associations and find](https://www.ruby-forum.com/t/associations-and-find/103640)

<div class="topic-metadata">

**Author:** [@najt](https://www.ruby-forum.com/u/najt)\
**Replies:** 0\
**Last updated:** [May 8, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/associations-and-find/103640 "2007-05-08T19:31:22Z")

</div>

Hi. I have the following models class User \< ActiveRecord::Base has\_and\_belongs\_to\_many :projects end class Project \< ActiveRecord::Base has\_many :castings, :dependent =\> :destroy has\_many :candidates, :through =\> …

---

## [Help with sortable\_element](https://www.ruby-forum.com/t/help-with-sortable-element/103633)

<div class="topic-metadata">

**Author:** [@Charlie\_McElfresh](https://www.ruby-forum.com/u/Charlie_McElfresh)\
**Replies:** 2\
**Last updated:** [May 8, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/help-with-sortable-element/103633 "2007-05-08T19:16:20Z")

</div>

Hi, I made a sortable list that works fine. It does what I want – it sorts, and the order of the list is updated in the database. When you drag an element up the window, it scrolls. It’s draggable by the header. H…

---

## [How to create a forum using ROR](https://www.ruby-forum.com/t/how-to-create-a-forum-using-ror/103406)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 9\
**Last updated:** [May 8, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/how-to-create-a-forum-using-ror/103406 "2007-05-08T19:03:18Z")

</div>

hello Can u tell me how can i create a forum using ROR thanks

---

## [User and password verification (login form)](https://www.ruby-forum.com/t/user-and-password-verification-login-form/103612)

<div class="topic-metadata">

**Author:** [@dhaval](https://www.ruby-forum.com/u/dhaval)\
**Replies:** 3\
**Last updated:** [May 8, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/user-and-password-verification-login-form/103612 "2007-05-08T18:50:15Z")

</div>

hello I have created a registration form, from where the user is asked to fill the userid and password and is stored in the database now i want to create a login page which will take the user and password and then ve…

---

## [Get back a Javascript variable](https://www.ruby-forum.com/t/get-back-a-javascript-variable/103551)

<div class="topic-metadata">

**Author:** [@guillaume](https://www.ruby-forum.com/u/guillaume)\
**Replies:** 8\
**Last updated:** [May 8, 2007, 6:39pm UTC](https://www.ruby-forum.com/t/get-back-a-javascript-variable/103551 "2007-05-08T18:39:54Z")

</div>

Hi, I ve performed some search but i don t really find what i want to do… So it s simple, i need to get back in a controller or a view a Javascript variable (which i use to detect the version of a flash player)… How…

---

## [Help needed with regular expression](https://www.ruby-forum.com/t/help-needed-with-regular-expression/103616)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 2\
**Last updated:** [May 8, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/help-needed-with-regular-expression/103616 "2007-05-08T18:29:00Z")

</div>

Hi Im working through the “Best of ruby quiz” book which some of you might be familiar with, but hey dont worry if not, you can probably still help me :slight\_smile: - I’ve found a regular expression that does what I …

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

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