# Rails

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

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

---

## [Using encrypted connection with ActionMailer](https://www.ruby-forum.com/t/using-encrypted-connection-with-actionmailer/127199)

<div class="topic-metadata">

**Author:** [@skt](https://www.ruby-forum.com/u/skt)\
**Replies:** 3\
**Last updated:** [February 1, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/using-encrypted-connection-with-actionmailer/127199 "2008-02-01T14:11:32Z")

</div>

Hello Folks, I am trying to use Gmail to send out test emails from my dev machine. I have the following in my environment.rb ActionMailer::Base.delivery\_method = :smtp ActionMailer::Base.smtp\_settings = { :address =\>…

---

## [404 error - lighttpd - Rails](https://www.ruby-forum.com/t/404-error-lighttpd-rails/127806)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/404-error-lighttpd-rails/127806 "2008-02-01T13:50:18Z")

</div>

Hello, I just build lighttpd and all prerequisites (OSX). Lighttpd seems to work fine on port 81, but my rails applications won’t run. I just created a testapp and when I try to view the application environment from …

---

## [Live preview in rails 2.0](https://www.ruby-forum.com/t/live-preview-in-rails-2-0/127680)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/live-preview-in-rails-2-0/127680 "2008-02-01T13:38:15Z")

</div>

I’am trying to set a live preview for my rails app I using recipe 3 from rails recipies. It’s a recipe from rails 1.0 in 2.0 i get no live preview in my testapp i have the following code :controller def new @Post …

---

## [Need to display only two days in date\_select](https://www.ruby-forum.com/t/need-to-display-only-two-days-in-date-select/127803)

<div class="topic-metadata">

**Author:** [@Sumeru](https://www.ruby-forum.com/u/Sumeru)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/need-to-display-only-two-days-in-date-select/127803 "2008-02-01T13:03:24Z")

</div>

I am using date select for displaying year, month, day. I want to display only two days in day dropdown. can somebody help me???

---

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

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 1\
**Last updated:** [February 1, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/help-with-pricing/127785 "2008-02-01T12:44:54Z")

</div>

Looking for some advice with my app. I’ve got it to a stage where I’m happy but I need to do a more “programmy” type thing and I’d very much appreciate some advice. It’s a language school. They have Courses. Each cou…

---

## [Rspec crashes if any tests have failed - is this normal?](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [February 1, 2008, 12:07pm UTC](https://www.ruby-forum.com/t/rspec-crashes-if-any-tests-have-failed-is-this-normal/127792 "2008-02-01T12:07:18Z")

</div>

I just installed spec (plugin) and rspec\_on\_rails. It seems to work, but if any tests have failed, after doing the report it seems to crash, with this message - 5 examples, 2 failures rake aborted! Command ruby -I…

---

## [Problems with using Open Flash Charts library](https://www.ruby-forum.com/t/problems-with-using-open-flash-charts-library/127790)

<div class="topic-metadata">

**Author:** [@antonk](https://www.ruby-forum.com/u/antonk)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 11:03am UTC](https://www.ruby-forum.com/t/problems-with-using-open-flash-charts-library/127790 "2008-02-01T11:03:47Z")

</div>

Hi. I have download OpenFlashCharts library for RubyonRails. And when I try to make a chart a have problem with data for this chart code samples from examples which are on this web-site are’nt working http://pullmonk…

---

## [HABTM not populating new record creation in Rails 2](https://www.ruby-forum.com/t/habtm-not-populating-new-record-creation-in-rails-2/127789)

<div class="topic-metadata">

**Author:** [@newman](https://www.ruby-forum.com/u/newman)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 11:01am UTC](https://www.ruby-forum.com/t/habtm-not-populating-new-record-creation-in-rails-2/127789 "2008-02-01T11:01:04Z")

</div>

Hi! I’m working on Rails2. And I see that this problem: http://dev.rubyonrails.org/ticket/3692 still exists …right? I described my code here: http://railsforum.com/viewtopic.php?id=12004 Maybe under Rails 2 I have t…

---

## [Rake db:create fails and every other rake task](https://www.ruby-forum.com/t/rake-db-create-fails-and-every-other-rake-task/127700)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 5\
**Last updated:** [February 1, 2008, 10:55am UTC](https://www.ruby-forum.com/t/rake-db-create-fails-and-every-other-rake-task/127700 "2008-02-01T10:55:17Z")

</div>

Okay, I’m trying really hard to get this to work. And it has worked before. I have added tables to my database before but now it suddenly doesn’t "know how to build task ‘db:create’, ‘db:drop’ or even ‘db:reset’. I’v…

---

## [Has\_many: get all objects, not only associated](https://www.ruby-forum.com/t/has-many-get-all-objects-not-only-associated/127756)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 3\
**Last updated:** [February 1, 2008, 9:30am UTC](https://www.ruby-forum.com/t/has-many-get-all-objects-not-only-associated/127756 "2008-02-01T09:30:40Z")

</div>

Hi all, I have a model user. A user has\_many :roles Roles: admin, super admin, user This specific user has the admin role. But for a view I want to list all roles. Is it possible to do something like: “user.roles\_…

---

## [Good applications to learn from](https://www.ruby-forum.com/t/good-applications-to-learn-from/127781)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 9:22am UTC](https://www.ruby-forum.com/t/good-applications-to-learn-from/127781 "2008-02-01T09:22:26Z")

</div>

Hello- I was wondering what open-source applications the group feels would be good ones to look at for someone new to Ruby on Rails (but not development). Ideally, I’m looking for something like the Microsoft ASP.NET …

---

## [\[WebOrb\] Error: Send failed while I am trying to run Primitive Tests](https://www.ruby-forum.com/t/weborb-error-send-failed-while-i-am-trying-to-run-primitive-tests/127656)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 1, 2008, 9:06am UTC](https://www.ruby-forum.com/t/weborb-error-send-failed-while-i-am-trying-to-run-primitive-tests/127656 "2008-02-01T09:06:18Z")

</div>

Hi, all Could someone help me with weborb’s tests from Flex application? Then I run server and it is working, but when I click Run Primitive Tests - I have error message Send failed. C:\\ruby\\loginexample\>ruby script/…

---

## [Observe\_field and on:focus](https://www.ruby-forum.com/t/observe-field-and-on-focus/127776)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 3\
**Last updated:** [February 1, 2008, 9:00am UTC](https://www.ruby-forum.com/t/observe-field-and-on-focus/127776 "2008-02-01T09:00:47Z")

</div>

Hi, I want to give suggestions(basically showing a hidden div) when somebody clicks on the text box to write(I assumed this is what on:focus meant). \<%= observe\_field :test\_field, :function =\> “alert(‘Element on focus…

---

## [Time format](https://www.ruby-forum.com/t/time-format/127777)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 8:52am UTC](https://www.ruby-forum.com/t/time-format/127777 "2008-02-01T08:52:31Z")

</div>

how to get “1:30 AM” from Time.now t= Time.now #=\>Fri Feb 01 01:30:10 +0530 2008 i need the output as “1:30 AM” How to do this

---

## [Problem converting time to date](https://www.ruby-forum.com/t/problem-converting-time-to-date/127775)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 8:16am UTC](https://www.ruby-forum.com/t/problem-converting-time-to-date/127775 "2008-02-01T08:16:18Z")

</div>

Hi, In my application in a @Schedule.begins\_at object I have this value “Fri Feb 01 03:30:00 +0530 2008” In my view file i need this to be displayed as 3:30 AM But in my Schedules table begins\_at field is datetime… …

---

## [Rspec and test data](https://www.ruby-forum.com/t/rspec-and-test-data/127778)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 7:51am UTC](https://www.ruby-forum.com/t/rspec-and-test-data/127778 "2008-02-01T07:51:38Z")

</div>

Hello, Following the rspec convention I minimize fixtures and really only use them to test custom find methods, however I’ve still been using fixtures to setup baseline test data for user testing, Selenium, etc. Is t…

---

## [Help with Model find](https://www.ruby-forum.com/t/help-with-model-find/127763)

<div class="topic-metadata">

**Author:** [@skoppy](https://www.ruby-forum.com/u/skoppy)\
**Replies:** 2\
**Last updated:** [February 1, 2008, 7:17am UTC](https://www.ruby-forum.com/t/help-with-model-find/127763 "2008-02-01T07:17:00Z")

</div>

I am trying to set up a simple search on my site. First I am grabbing the string that was entered into the text field and searching through my article titles. Next I am splitting the string into an array so i can sep…

---

## [Why isn't validation kicking in and how can I make it so?](https://www.ruby-forum.com/t/why-isnt-validation-kicking-in-and-how-can-i-make-it-so/127774)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 6:43am UTC](https://www.ruby-forum.com/t/why-isnt-validation-kicking-in-and-how-can-i-make-it-so/127774 "2008-02-01T06:43:30Z")

</div>

Hi, I have a model, ec\_order, which has multiple ec\_line\_items. You start a “new” order through the OrderController … class OrderController \< ApplicationController def new if logged\_in? @user = User.find(session\[:…

---

## [Errors, errors, and more errors](https://www.ruby-forum.com/t/errors-errors-and-more-errors/127726)

<div class="topic-metadata">

**Author:** [@jsierra](https://www.ruby-forum.com/u/jsierra)\
**Replies:** 11\
**Last updated:** [February 1, 2008, 4:59am UTC](https://www.ruby-forum.com/t/errors-errors-and-more-errors/127726 "2008-02-01T04:59:21Z")

</div>

Rolling Ruby, Rails, etc on a Powerbook (OSX 10.4). I’ve had a successful install for many months, and then I upgraded Ruby to 1.8.6 and used gem to update Rails to 2.0.2. Upon install, Rails stopped working and thre…

---

## [Highlighting Text fin red rom DB in view](https://www.ruby-forum.com/t/highlighting-text-fin-red-rom-db-in-view/127636)

<div class="topic-metadata">

**Author:** [@jackster](https://www.ruby-forum.com/u/jackster)\
**Replies:** 14\
**Last updated:** [February 1, 2008, 3:30am UTC](https://www.ruby-forum.com/t/highlighting-text-fin-red-rom-db-in-view/127636 "2008-02-01T03:30:37Z")

</div>

Hi Forum, I have various trap messages stored as text in my DB and accessable in my view as @trap. (trap.ipadd, trap.desc etc…) I would like to highlight certain key words in red if they exist in the text. I was thi…

---

## [RoR TextMate Bundle google group](https://www.ruby-forum.com/t/ror-textmate-bundle-google-group/127761)

<div class="topic-metadata">

**Author:** [@nicwilliams](https://www.ruby-forum.com/u/nicwilliams)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 1:56am UTC](https://www.ruby-forum.com/t/ror-textmate-bundle-google-group/127761 "2008-02-01T01:56:12Z")

</div>

Yesterday it was announced that the Rails TextMate bundle was slapping up an “Under New Management” sign across its front door (http:// drnicwilliams.com/2008/01/31/get-ready-for-the-textmate-trundle-to- rails-20-bund…

---

## [View messed up in IE but not mozilla](https://www.ruby-forum.com/t/view-messed-up-in-ie-but-not-mozilla/127532)

<div class="topic-metadata">

**Author:** [@valerieloy](https://www.ruby-forum.com/u/valerieloy)\
**Replies:** 7\
**Last updated:** [February 1, 2008, 1:51am UTC](https://www.ruby-forum.com/t/view-messed-up-in-ie-but-not-mozilla/127532 "2008-02-01T01:51:42Z")

</div>

\[code=\]\<div align = “left” style="margin:20px;width:680px;border:5px solid black;background:#282;padding:5px; font-family: sans-serif;font-weight: bold;text-transform:capitalize"\> Attention: You are viewing the Cours…

---

## [Model Design Question](https://www.ruby-forum.com/t/model-design-question/127760)

<div class="topic-metadata">

**Author:** [@roofjump](https://www.ruby-forum.com/u/roofjump)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 1:13am UTC](https://www.ruby-forum.com/t/model-design-question/127760 "2008-02-01T01:13:25Z")

</div>

Hey all. I’m fairly new to Rails (and ORM for that matter) and have a design question for you. I’m tasked with designing an app to do the following: System should be able to handle different types of “tests” Each tes…

---

## [RailsConf 2008 Session Question](https://www.ruby-forum.com/t/railsconf-2008-session-question/127759)

<div class="topic-metadata">

**Author:** [@Mason](https://www.ruby-forum.com/u/Mason)\
**Replies:** 0\
**Last updated:** [February 1, 2008, 12:58am UTC](https://www.ruby-forum.com/t/railsconf-2008-session-question/127759 "2008-02-01T00:58:12Z")

</div>

I was cruising the site for RailsConf and saw this page: http://en.oreilly.com/rails2008/public/schedule/detail/1984 Does anyone know what the “LimeLight” software he refers to is? The typically trusty Googlezon yield…

---

## [Newbie questions for publish the site](https://www.ruby-forum.com/t/newbie-questions-for-publish-the-site/127565)

<div class="topic-metadata">

**Author:** [@cmcfab](https://www.ruby-forum.com/u/cmcfab)\
**Replies:** 2\
**Last updated:** [January 31, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/newbie-questions-for-publish-the-site/127565 "2008-01-31T23:25:04Z")

</div>

I’m a newbie and I have many about how to publish my website made in Ruby. I developed a simple site in Ruby with MySQL for learning, in development environment work fine, now I will publish in my site hosted on Host…

---

## [\[ANN\] New Rails Generator: Stage](https://www.ruby-forum.com/t/ann-new-rails-generator-stage/127728)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/ann-new-rails-generator-stage/127728 "2008-01-31T22:27:45Z")

</div>

I’ve just completed a new generator called stage. This generator was based off of the scaffold generator included with Rails 2.0.2. Along with the helper, it uses form and data partials to DRY up the view code. The…

---

## [High Quality Rails Logo for download. Where?](https://www.ruby-forum.com/t/high-quality-rails-logo-for-download-where/127078)

<div class="topic-metadata">

**Author:** [@jesperronn](https://www.ruby-forum.com/u/jesperronn)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/high-quality-rails-logo-for-download-where/127078 "2008-01-31T22:00:39Z")

</div>

Where do I find the Ruby on Rails logo for download in high quality? I want it vector-based or similar for printing on a big poster. Thannks! /Jesper Rønn-Jensen blog: www.justaddwater.dk

---

## [Text\_area\_for](https://www.ruby-forum.com/t/text-area-for/127744)

<div class="topic-metadata">

**Author:** [@philthompson](https://www.ruby-forum.com/u/philthompson)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/text-area-for/127744 "2008-01-31T21:57:38Z")

</div>

Hi, I have a form on a page which consists of a bunch of \<%= text\_field\_for blah blah blah %\> tags. One of them will contain a lot of text over multiple lines, surely it’s possible to do a \<%=text\_area\_for blahblahb…

---

## [Postgresql Fixture Load Error After Rails 2.0 Upgrade](https://www.ruby-forum.com/t/postgresql-fixture-load-error-after-rails-2-0-upgrade/127459)

<div class="topic-metadata">

**Author:** [@radwan](https://www.ruby-forum.com/u/radwan)\
**Replies:** 1\
**Last updated:** [January 31, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/postgresql-fixture-load-error-after-rails-2-0-upgrade/127459 "2008-01-31T21:45:30Z")

</div>

Hello, I just updated a small project I’m working on to RoR 2.0.2 from 1.2.4. I rely on a postgresql 8.0 database for storage and before the upgrade migrations and fixtures loading worked flawlessly. After the upgrade …

---

## [Ssl](https://www.ruby-forum.com/t/ssl/127738)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 31, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/ssl/127738 "2008-01-31T21:25:43Z")

</div>

Hi all, I have just enabled SSL on my HTTPD installation and it is working flawlessly. Even my rails app is working, and I did not change one line of code in it. I access my app trought HTTPS and every link on it kee…

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

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