# Rails

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

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

---

## [Running Rails as fast as possible on Cygwin?](https://www.ruby-forum.com/t/running-rails-as-fast-as-possible-on-cygwin/111803)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 3\
**Last updated:** [August 11, 2007, 3:39am UTC](https://www.ruby-forum.com/t/running-rails-as-fast-as-possible-on-cygwin/111803 "2007-08-11T03:39:55Z")

</div>

Helo, I’m running my RoR on Cygwin under WinXP. I was wondering if there is a way to make it work faster. There are many situations where it takes ages to wait for the result, e.g. running autotest - I have to wait lo…

---

## [RJS creates JavaScript, which prints to screen instead of ev](https://www.ruby-forum.com/t/rjs-creates-javascript-which-prints-to-screen-instead-of-ev/111516)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 3\
**Last updated:** [August 11, 2007, 3:16am UTC](https://www.ruby-forum.com/t/rjs-creates-javascript-which-prints-to-screen-instead-of-ev/111516 "2007-08-11T03:16:53Z")

</div>

I have a partial named “\_mailing\_list.rhtml” ~ \<% remote\_form\_for(:recipient, :url=\> { :controller =\> ‘recipients’, :action =\> ‘create’ }) do |f| %\> Email: \<%= f.text\_field :email\_address, :size =\> 20 -%\> \<%…

---

## [Select doenst pass the correct value](https://www.ruby-forum.com/t/select-doenst-pass-the-correct-value/111725)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 2\
**Last updated:** [August 11, 2007, 3:07am UTC](https://www.ruby-forum.com/t/select-doenst-pass-the-correct-value/111725 "2007-08-11T03:07:19Z")

</div>

Hello, I have in my view a select tag that doesnt return the right value, could anyone point me what am I doing wrong? Heres whats in my view \<%=select “”, “situacao”, {“Open”=\>0,“Closed”=\> 1},:include\_blank=\>true%\> …

---

## [Submit\_to\_remote question](https://www.ruby-forum.com/t/submit-to-remote-question/111805)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 0\
**Last updated:** [August 11, 2007, 2:37am UTC](https://www.ruby-forum.com/t/submit-to-remote-question/111805 "2007-08-11T02:37:51Z")

</div>

I’ve put together what should be a dirt simple submit\_to\_remote and can’t seem to get it working. This is gem Rails 1.2.3. Here’s the code: \<% form\_tag do %\> \<%= submit\_to\_remote('ok', 'ok', :action =\> 'foo') %\>…

---

## [Trying to find records that haven't been updated in 2 weeks](https://www.ruby-forum.com/t/trying-to-find-records-that-havent-been-updated-in-2-weeks/111707)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [August 11, 2007, 1:35am UTC](https://www.ruby-forum.com/t/trying-to-find-records-that-havent-been-updated-in-2-weeks/111707 "2007-08-11T01:35:47Z")

</div>

My app has some students that have attendances. I’m trying to find students who have not attended class in the last 2 weeks. Here is my code that is not working: students = @school.students.active @missed\_attnd = \[\] …

---

## [Upload file and use cache](https://www.ruby-forum.com/t/upload-file-and-use-cache/111802)

<div class="topic-metadata">

**Author:** [@Sketchy](https://www.ruby-forum.com/u/Sketchy)\
**Replies:** 1\
**Last updated:** [August 11, 2007, 12:52am UTC](https://www.ruby-forum.com/t/upload-file-and-use-cache/111802 "2007-08-11T00:52:45Z")

</div>

Hi, is there something I can use to upload a file to filesystem just for a temporary time… I just need to execute a ruby script on the file and then I can delete it… Is there a way to just upload it to cache and then …

---

## [Secure cookies through HTTPS](https://www.ruby-forum.com/t/secure-cookies-through-https/111682)

<div class="topic-metadata">

**Author:** [@differenthink](https://www.ruby-forum.com/u/differenthink)\
**Replies:** 13\
**Last updated:** [August 11, 2007, 12:01am UTC](https://www.ruby-forum.com/t/secure-cookies-through-https/111682 "2007-08-11T00:01:41Z")

</div>

Hi, I m using cookies on my website, so my user don t have to login each time… But there is a security hole behind that, it s why i would like to know is it possible de send and check the cookies using HHTPS … ? Ii …

---

## [Attachment\_fu issues](https://www.ruby-forum.com/t/attachment-fu-issues/111709)

<div class="topic-metadata">

**Author:** [@P.F.Pluto](https://www.ruby-forum.com/u/P.F.Pluto)\
**Replies:** 3\
**Last updated:** [August 10, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/attachment-fu-issues/111709 "2007-08-10T23:53:41Z")

</div>

Relying largely on Mike C.'s guidance: http://clarkware.com/cgi/blosxom/2007/02/24 I’ve had limited success with attachment\_fu. I’m able to upload andsubsequently redisplay images through the browser. But, a few thin…

---

## [External js load via ajax?](https://www.ruby-forum.com/t/external-js-load-via-ajax/111782)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 6\
**Last updated:** [August 10, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/external-js-load-via-ajax/111782 "2007-08-10T23:48:31Z")

</div>

I am working with the Yahoo Maps API and I’d like to only include the Yahoo javascript library on demand. I have a link\_to\_remote that shows a Yahoo Map. Rather than the Yahoo library on every page it seems more effi…

---

## [Where is the syntax error in this code?](https://www.ruby-forum.com/t/where-is-the-syntax-error-in-this-code/111798)

<div class="topic-metadata">

**Author:** [@mmnmm7](https://www.ruby-forum.com/u/mmnmm7)\
**Replies:** 2\
**Last updated:** [August 10, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/where-is-the-syntax-error-in-this-code/111798 "2007-08-10T22:59:37Z")

</div>

Hi. I am a beginner at Ruby and RoR. But I’m in truble now. Please review below message; What is the syntax error in this code? \[code\] =========================================================== Your Pragmatic Cata…

---

## [Fix Your WINDOWS XP](https://www.ruby-forum.com/t/fix-your-windows-xp/111797)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/fix-your-windows-xp/111797 "2007-08-10T22:44:34Z")

</div>

Repair your installation and fix all errors in your operating system

---

## [Change Management Databases](https://www.ruby-forum.com/t/change-management-databases/111795)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 10:34pm UTC](https://www.ruby-forum.com/t/change-management-databases/111795 "2007-08-10T22:34:34Z")

</div>

I’ve seen CMDBs (Change Managment Databases) programmed out in a number of languages but have not seen offerings done via Ruby on Rails. Anyone know of any existing projects that have created a CMDB using Ruby on Rai…

---

## [Rails Rumble: What can you build in Rails in only 48 hours?](https://www.ruby-forum.com/t/rails-rumble-what-can-you-build-in-rails-in-only-48-hours/111794)

<div class="topic-metadata">

**Author:** [@Carter\_Parks](https://www.ruby-forum.com/u/Carter_Parks)\
**Replies:** 1\
**Last updated:** [August 10, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/rails-rumble-what-can-you-build-in-rails-in-only-48-hours/111794 "2007-08-10T21:57:30Z")

</div>

In a similar vein to Rails Day of the years past, I’m happy to announce the Rails Rumble. It’ll be taking place September 8-9, 2007. Unlike Rails Day, this event will span 48 hours and will also be judged by the publi…

---

## [ActionMailer::Base](https://www.ruby-forum.com/t/actionmailer-base/111792)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/actionmailer-base/111792 "2007-08-10T21:33:27Z")

</div>

As part of testing/learning, I’m trying to create a my class based on the ActionMailer::Base object in the script/console and calling methods I added. I can call the receive method but I can not call any of my other …

---

## [One Application, Multiple Domains.. separate data?](https://www.ruby-forum.com/t/one-application-multiple-domains-separate-data/111765)

<div class="topic-metadata">

**Author:** [@unreal](https://www.ruby-forum.com/u/unreal)\
**Replies:** 5\
**Last updated:** [August 10, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/one-application-multiple-domains-separate-data/111765 "2007-08-10T19:50:09Z")

</div>

Hi, I am developing a sort of CMS application that will be used by multiple domains on my host. Each domain requires its own set of users, news, etc., but I would like to keep my application only installed one place …

---

## [Static HTML in rails application](https://www.ruby-forum.com/t/static-html-in-rails-application/111776)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 10, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/static-html-in-rails-application/111776 "2007-08-10T19:34:14Z")

</div>

Hi all, can anyone tell me the easiest way to include some static html pages (generated by latex2html) to a rails application? The problem is that rails tries to route all those static links which leads to errors. Th…

---

## [Help needed with callbacks](https://www.ruby-forum.com/t/help-needed-with-callbacks/111775)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 6:31pm UTC](https://www.ruby-forum.com/t/help-needed-with-callbacks/111775 "2007-08-10T18:31:07Z")

</div>

I’m just delving into the world of callbacks and am stuck already… I have Article, which has\_and\_belongs\_to\_many Links (and where a link is also an Article) When the user tries to create a new article, i want to see i…

---

## [Assignment for has\_many objects](https://www.ruby-forum.com/t/assignment-for-has-many-objects/111718)

<div class="topic-metadata">

**Author:** [@jub](https://www.ruby-forum.com/u/jub)\
**Replies:** 2\
**Last updated:** [August 10, 2007, 6:14pm UTC](https://www.ruby-forum.com/t/assignment-for-has-many-objects/111718 "2007-08-10T18:14:07Z")

</div>

Hello, I’m playing with Agile Web dev for rails, inside which I encountered this model : class Order \< ActiveRecord::Base has\_many :line\_items PAYMENT\_TYPES = \[ # Displayed stored in db \[ “Check” , “check” \], \[ “…

---

## [Build sybase adapter on winxp with eclipse/cdt](https://www.ruby-forum.com/t/build-sybase-adapter-on-winxp-with-eclipse-cdt/75395)

<div class="topic-metadata">

**Author:** [@cschlaefcke](https://www.ruby-forum.com/u/cschlaefcke)\
**Replies:** 6\
**Last updated:** [August 10, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/build-sybase-adapter-on-winxp-with-eclipse-cdt/75395 "2007-08-10T17:55:03Z")

</div>

Hi folks, I try to get the sybase adapter installed. I downloaded the sybase-ctlib from here: http://raa.ruby-lang.org/project/sybase-ctlib and now want to build the stuff on my winxp machine somehow. I decided to ec…

---

## [Routes mongrel, please help](https://www.ruby-forum.com/t/routes-mongrel-please-help/111772)

<div class="topic-metadata">

**Author:** [@stephenT](https://www.ruby-forum.com/u/stephenT)\
**Replies:** 1\
**Last updated:** [August 10, 2007, 5:48pm UTC](https://www.ruby-forum.com/t/routes-mongrel-please-help/111772 "2007-08-10T17:48:02Z")

</div>

I can’t get rid of the “welcome aboard” page! Really, I’m not kidding. I’ve deleted the public/index.html page (completely gone not just renamed) I’ve added a route for ‘’ and ‘/’ to my main application controller …

---

## [Installing ruby-debug on cygwin](https://www.ruby-forum.com/t/installing-ruby-debug-on-cygwin/111756)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 1\
**Last updated:** [August 10, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/installing-ruby-debug-on-cygwin/111756 "2007-08-10T17:47:02Z")

</div>

Helo, I’m installing ruby-debug under cygwin for WinXP. Since i’m under cygwing I’m choosing ruby version (not win32). It starts installation but fails. The error is Gem::Installer::ExtensionBuildError Failed to buil…

---

## [Local Community Website - can you help?](https://www.ruby-forum.com/t/local-community-website-can-you-help/111750)

<div class="topic-metadata">

**Author:** [@Tim\_Wraight](https://www.ruby-forum.com/u/Tim_Wraight)\
**Replies:** 1\
**Last updated:** [August 10, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/local-community-website-can-you-help/111750 "2007-08-10T17:40:59Z")

</div>

I want to make a website to which anyone can go to find out what’s going on in their area, and to which anyone can post an event, no matter how seemingly insignificant. I want it to be the place people go to find loca…

---

## [Using a Find statement with user input, not selecting the ri](https://www.ruby-forum.com/t/using-a-find-statement-with-user-input-not-selecting-the-ri/111701)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 2\
**Last updated:** [August 10, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/using-a-find-statement-with-user-input-not-selecting-the-ri/111701 "2007-08-10T16:54:52Z")

</div>

I have a search form that takes user input, and displays the results in a search\_results.rhtml view. In my controller for the search form, I have the following declarations and am using the call to “find”: beds = par…

---

## [Self.class in view rhtml](https://www.ruby-forum.com/t/self-class-in-view-rhtml/111745)

<div class="topic-metadata">

**Author:** [@SSrob\_desbois](https://www.ruby-forum.com/u/SSrob_desbois)\
**Replies:** 7\
**Last updated:** [August 10, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/self-class-in-view-rhtml/111745 "2007-08-10T15:08:42Z")

</div>

Hi all, very much new to Ruby and RoR - a very steep learning curve but exciting stuff! I’m just playing around with some things - I have a LoginController which has an index.rhtml view file. If I insert \<%= self.insp…

---

## [ActionMailer classes don't reload](https://www.ruby-forum.com/t/actionmailer-classes-dont-reload/111753)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/actionmailer-classes-dont-reload/111753 "2007-08-10T13:59:31Z")

</div>

This is an interesting one. ActionMailer classes don’t reload. That is, if I make a change in such a class, I have to restart webrick for changes to take effect. And I’m in the development mode… It seems that there is…

---

## [Rails developers wanted!](https://www.ruby-forum.com/t/rails-developers-wanted/111752)

<div class="topic-metadata">

**Author:** [@craigtmackenzie](https://www.ruby-forum.com/u/craigtmackenzie)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 1:52pm UTC](https://www.ruby-forum.com/t/rails-developers-wanted/111752 "2007-08-10T13:52:04Z")

</div>

We need a couple of Rails programmers to join a great team! You’ll be working on a range of User Interfaces for hosted mobile interactive applications for mass-participation - its a genuinely exciting and challenging …

---

## [Web service models without active record](https://www.ruby-forum.com/t/web-service-models-without-active-record/111751)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 10, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/web-service-models-without-active-record/111751 "2007-08-10T13:39:26Z")

</div>

Hello all, I want to create a model object or at least a ruby object. Stuff it with a couple of different arrays and then pack it off on a web service to be consumed by, unfortunately, a flex client. I tried to cre…

---

## [Model without database table](https://www.ruby-forum.com/t/model-without-database-table/111699)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 6\
**Last updated:** [August 10, 2007, 1:12pm UTC](https://www.ruby-forum.com/t/model-without-database-table/111699 "2007-08-10T13:12:11Z")

</div>

I have a few models that have “statuses”. These statuses are currently stored in a database table. Examples: id: 1 status: Awaiting Review id: 2 status: Development id: 3 status: Production etc etc. This data d…

---

## [Split and display](https://www.ruby-forum.com/t/split-and-display/111743)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 2\
**Last updated:** [August 10, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/split-and-display/111743 "2007-08-10T13:00:05Z")

</div>

hello frnds I want to store a split string in an array and then display it one by one. Eg:- Say suppose my db value is “My email id is removed\_email\_address@domain.invalid” then i want that only the email should be d…

---

## [Howto use ENCRYPT() function of MySQL](https://www.ruby-forum.com/t/howto-use-encrypt-function-of-mysql/111478)

<div class="topic-metadata">

**Author:** [@babyloon00](https://www.ruby-forum.com/u/babyloon00)\
**Replies:** 4\
**Last updated:** [August 10, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/howto-use-encrypt-function-of-mysql/111478 "2007-08-10T12:26:27Z")

</div>

Hi all, I’m working actually on a Control Panel to manage a mail system. Until now, when I create a new mail account, i do an insert and protect the pasword with ENCRYPT(‘password’) function. I can’t change the metho…

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

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