# Rails

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

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

---

## [Path to rails app question](https://www.ruby-forum.com/t/path-to-rails-app-question/150702)

<div class="topic-metadata">

**Author:** [@jschank](https://www.ruby-forum.com/u/jschank)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/path-to-rails-app-question/150702 "2008-10-11T19:24:32Z")

</div>

\[Post copied from other groups (Capistrano, and Rails Talk) Trying to find the right venue for this question, I apologize to anyone who’s seen this before\] Hello, I’m finally ready to deploy my first rails app. I’m d…

---

## [Http://localhost:3000/index.html does not open my home page](https://www.ruby-forum.com/t/http-localhost-3000-index-html-does-not-open-my-home-page/150692)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/http-localhost-3000-index-html-does-not-open-my-home-page/150692 "2008-10-11T18:56:26Z")

</div>

Hi all How can I change the setup in order to open my home page “index.html” located inside the Public folder when I type http://localhost:3000/index.html thanks

---

## [Http autentication and restful\_authentication](https://www.ruby-forum.com/t/http-autentication-and-restful-authentication/150697)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/http-autentication-and-restful-authentication/150697 "2008-10-11T18:55:51Z")

</div>

Hi, I’ve started the long task of adding an API to a project of mine. Since I need to write a PHP library for it I will use for inspiration the one for Basecamp(GitHub - quirkey/basecamphp: PHP Wrapper for the 37 Sign…

---

## [Conditionally assigning html id to link\_to (tabbed interface)](https://www.ruby-forum.com/t/conditionally-assigning-html-id-to-link-to-tabbed-interface/150673)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 5\
**Last updated:** [October 11, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/conditionally-assigning-html-id-to-link-to-tabbed-interface/150673 "2008-10-11T18:49:24Z")

</div>

Hi all, I am looking to implement a tabbed interface. The tabs are mere link\_to links in the template. All i need to do is, check if a particular tab has been selected and if it has been selected, set the :id attribu…

---

## [Test Coverage Tool for TDD?](https://www.ruby-forum.com/t/test-coverage-tool-for-tdd/150690)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/test-coverage-tool-for-tdd/150690 "2008-10-11T17:02:49Z")

</div>

Hi, I’m learning TDD without using Shoulda or RSpec. When I played with RSpec, there was a tool to show test coverage visually. Is there any similar function built-in to Rails Test::Unit? Or do I need to add it on my…

---

## [Sortable\_element isn't doing an ajax request](https://www.ruby-forum.com/t/sortable-element-isnt-doing-an-ajax-request/150689)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/sortable-element-isnt-doing-an-ajax-request/150689 "2008-10-11T15:46:57Z")

</div>

Hi, I’m using sortable\_element and trying to do a request after each drag and drop. But it doesn’t seem to work when the option :ghosting is turned off. \<%= sortable\_element(“imgpage0”,:tag=\>“div”,:constraint=\>:hori…

---

## [Help for a newsletter system..is ar\_mailer the right choice?](https://www.ruby-forum.com/t/help-for-a-newsletter-system-is-ar-mailer-the-right-choice/146524)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/help-for-a-newsletter-system-is-ar-mailer-the-right-choice/146524 "2008-10-11T15:31:40Z")

</div>

Hi, i’ve to build a simple newsletter system for a client and for the begin he will have something like 5-6000 contacts (that’s how much has now) and probably he will get to 25-30000 contacts until the end of the year…

---

## [Model references fail in the initializer](https://www.ruby-forum.com/t/model-references-fail-in-the-initializer/150655)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 4\
**Last updated:** [October 11, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/model-references-fail-in-the-initializer/150655 "2008-10-11T14:04:16Z")

</div>

I know that we shouldn’t make database calls in the Initializer, but how do we avoid this when a class ‘bootstraps’ itself when it is required, e.g. class Status \< ActiveRecord::Base Add constants representing the va…

---

## [Config/initializers](https://www.ruby-forum.com/t/config-initializers/150680)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/config-initializers/150680 "2008-10-11T13:47:16Z")

</div>

Hi In rails 2.0 config/initializers directory is there. I am using 1.2.5 So for initializing some gem (for example) in which file can I do that? Thanks in advance Sijo

---

## [How to Redirect Rails application from HTTP to HTTPS using lighttpd for WinXP](https://www.ruby-forum.com/t/how-to-redirect-rails-application-from-http-to-https-using-lighttpd-for-winxp/150682)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/how-to-redirect-rails-application-from-http-to-https-using-lighttpd-for-winxp/150682 "2008-10-11T13:32:01Z")

</div>

Hi all, I want to redirect from http to https using lighttpd for winxp, Please explain me. please help me out. Thanks and Regards, Shripad

---

## [Prototype WTP 0.2 released,this release for Prototype 1.6.0](https://www.ruby-forum.com/t/prototype-wtp-0-2-released-this-release-for-prototype-1-6-0/150681)

<div class="topic-metadata">

**Author:** [@javascript\_fish](https://www.ruby-forum.com/u/javascript_fish)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 12:21pm UTC](https://www.ruby-forum.com/t/prototype-wtp-0-2-released-this-release-for-prototype-1-6-0/150681 "2008-10-11T12:21:11Z")

</div>

from:http://www.googlemother.com/wpblogs/?p=7281 prototypeWTP also support other tools based on WTP,such as MyEclipse

---

## [Change event in one combo box to update another combo box](https://www.ruby-forum.com/t/change-event-in-one-combo-box-to-update-another-combo-box/150174)

<div class="topic-metadata">

**Author:** [@jicksta](https://www.ruby-forum.com/u/jicksta)\
**Replies:** 10\
**Last updated:** [October 11, 2008, 12:20pm UTC](https://www.ruby-forum.com/t/change-event-in-one-combo-box-to-update-another-combo-box/150174 "2008-10-11T12:20:35Z")

</div>

Hi, I have two combo boxes. One combo box has the name of countries stored in the database. So, when a country is selected from this combo box I want other combo box to list all the cities stored in the database relat…

---

## [Charts in rails](https://www.ruby-forum.com/t/charts-in-rails/150670)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 6:25am UTC](https://www.ruby-forum.com/t/charts-in-rails/150670 "2008-10-11T06:25:08Z")

</div>

Hi I have a need of drawing charts in my rails application…I found this Have anybody used this? It is using flash and all to draw charts.Could anybody who used this suggest about its performance ?If using flash…

---

## [Time\_ago\_in\_words is off by a day](https://www.ruby-forum.com/t/time-ago-in-words-is-off-by-a-day/150669)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 2\
**Last updated:** [October 11, 2008, 5:08am UTC](https://www.ruby-forum.com/t/time-ago-in-words-is-off-by-a-day/150669 "2008-10-11T05:08:20Z")

</div>

Maybe someone can help me; I’m sure I’m just missing something silly. I have a Task model that has a due\_date. In my migration it’s set to a date: t.date :due\_date I want to display both the actual date and a friend…

---

## [Problems with validates\_format\_of](https://www.ruby-forum.com/t/problems-with-validates-format-of/150667)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 3\
**Last updated:** [October 11, 2008, 3:03am UTC](https://www.ruby-forum.com/t/problems-with-validates-format-of/150667 "2008-10-11T03:03:38Z")

</div>

hi, i’m trying to validate the format of a date and have the following regular code: validates\_presence\_of :dob validates\_format\_of :dob, :with =\> /^\[0-9\]{4}\[-\]\[0-9\]{2}\[-\]\[0-9\]{2}$/, :unless =\> Proc.new { |u| u.dob…

---

## [The maximum value issue](https://www.ruby-forum.com/t/the-maximum-value-issue/150654)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 3\
**Last updated:** [October 11, 2008, 2:52am UTC](https://www.ruby-forum.com/t/the-maximum-value-issue/150654 "2008-10-11T02:52:35Z")

</div>

Hey guys, I have a problem you’ll hopefully be able to help me with. I’m developing a logbook, and I have the following database structure: users (table) —\> flights (table) —\> flight\_times (table) \<— flight\_types (tab…

---

## [Rails does not see installed gem in production](https://www.ruby-forum.com/t/rails-does-not-see-installed-gem-in-production/150661)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 3\
**Last updated:** [October 11, 2008, 2:41am UTC](https://www.ruby-forum.com/t/rails-does-not-see-installed-gem-in-production/150661 "2008-10-11T02:41:12Z")

</div>

Everything works like a charm locally, but running in production (Dreamhost shared with Passenger if it matters), “These gems that this application depends on are missing \\n -rmagick” Rmagick is installed on dreamhost…

---

## [Ajax complex forms: checkbox weirdness](https://www.ruby-forum.com/t/ajax-complex-forms-checkbox-weirdness/150576)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 4\
**Last updated:** [October 11, 2008, 2:04am UTC](https://www.ruby-forum.com/t/ajax-complex-forms-checkbox-weirdness/150576 "2008-10-11T02:04:38Z")

</div>

Hello! Question for you wizards… If you’ve used Ryan B. tutorial on complex forms: … or better yet, the one from Advanced Rails Recipes… perhaps you can help me. I set up a complex form for an Account that has many …

---

## [Restful views](https://www.ruby-forum.com/t/restful-views/150557)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 1:42am UTC](https://www.ruby-forum.com/t/restful-views/150557 "2008-10-11T01:42:59Z")

</div>

Hi \*, I’m writing a Restful service that should map a pre-existing partially restful site. What I find confusing is how to display models in my views. I’m writing all XML in builder using the respond\_to API, but ever…

---

## [Am I doing it the right way?](https://www.ruby-forum.com/t/am-i-doing-it-the-right-way/150592)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 4\
**Last updated:** [October 11, 2008, 1:42am UTC](https://www.ruby-forum.com/t/am-i-doing-it-the-right-way/150592 "2008-10-11T01:42:59Z")

</div>

Hello, I’m totally new to RoR but I work with PHP and Java for a while (7 years)… I’m getting used to Ruby and I’d like to know if the code below is “right”. It is the “show” page of the Users table… Email: \<%=h …

---

## [How to close a popup and execute an xhr call to update the "opener" window?](https://www.ruby-forum.com/t/how-to-close-a-popup-and-execute-an-xhr-call-to-update-the-opener-window/150581)

<div class="topic-metadata">

**Author:** [@athem](https://www.ruby-forum.com/u/athem)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 1:42am UTC](https://www.ruby-forum.com/t/how-to-close-a-popup-and-execute-an-xhr-call-to-update-the-opener-window/150581 "2008-10-11T01:42:59Z")

</div>

Hi, I’m opening a popup window using: \<%= link\_to ‘Click here to manage documents and photos for this vehicle’, { :action =\> ‘manage\_photos\_documents\_popup’ }, :popup =\> \[ ‘Manage Documents and Photos’, ‘width=550, …

---

## [Validates\_presence\_of and a blank form](https://www.ruby-forum.com/t/validates-presence-of-and-a-blank-form/150553)

<div class="topic-metadata">

**Author:** [@justinbankston](https://www.ruby-forum.com/u/justinbankston)\
**Replies:** 2\
**Last updated:** [October 11, 2008, 1:42am UTC](https://www.ruby-forum.com/t/validates-presence-of-and-a-blank-form/150553 "2008-10-11T01:42:59Z")

</div>

Hey All, I’m frustrated with validates\_presence\_of. I have a form, and I’m validating four fields using validates\_presence\_of… It works fine, except that when the form comes back with the error messages, it is blank…

---

## [RSPEC and Custom Validation date fields](https://www.ruby-forum.com/t/rspec-and-custom-validation-date-fields/150664)

<div class="topic-metadata">

**Author:** [@leogodin217](https://www.ruby-forum.com/u/leogodin217)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 1:30am UTC](https://www.ruby-forum.com/t/rspec-and-custom-validation-date-fields/150664 "2008-10-11T01:30:06Z")

</div>

HI All, I have a model that uses custom validation. The validation works from the browser but RSPEC gives it an error. It looks to me like RSPEC isn’t seeing the start\_time and end\_time fields in my model. If I ch…

---

## [Background jobs](https://www.ruby-forum.com/t/background-jobs/150660)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [October 11, 2008, 1:08am UTC](https://www.ruby-forum.com/t/background-jobs/150660 "2008-10-11T01:08:28Z")

</div>

Hey everybody, I’m running InstantRails 2.1.0 under Windows Server 2003 and I’m looking for a plugin or something that will allow me to schedule and complete long-running tasks in the background. I was trying to use …

---

## [Form\_for yags questions](https://www.ruby-forum.com/t/form-for-yags-questions/150663)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 0\
**Last updated:** [October 11, 2008, 12:59am UTC](https://www.ruby-forum.com/t/form-for-yags-questions/150663 "2008-10-11T00:59:50Z")

</div>

Hi have a question about several tags, I do not understand if they are RoR tags os something else this is my form, I wrote it following the book “Simply Rails 2” in chapter 6: \<% form\_for @contacto do |f| %\> Your N.…

---

## [Routes from restful\_authentication, wtf?](https://www.ruby-forum.com/t/routes-from-restful-authentication-wtf/150656)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 2\
**Last updated:** [October 11, 2008, 12:16am UTC](https://www.ruby-forum.com/t/routes-from-restful-authentication-wtf/150656 "2008-10-11T00:16:58Z")

</div>

Hey, Can someone please explain what these routes from restful\_authentication map out to? I’m trying to move the administrative actions from a RA based login system to an admin namespace but thanks to this routing I’…

---

## [Keeping a Running Total](https://www.ruby-forum.com/t/keeping-a-running-total/150657)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [October 10, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/keeping-a-running-total/150657 "2008-10-10T22:42:36Z")

</div>

Hello- I’m working on a site where I need to keep a running tab of inventory sold. Each of my Item classes has a sku and a quantity. As items get created, destroyed, and have their quantity changed, I want to alter t…

---

## [Error when trying to setup Heroku to edit locally](https://www.ruby-forum.com/t/error-when-trying-to-setup-heroku-to-edit-locally/150658)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [October 10, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-setup-heroku-to-edit-locally/150658 "2008-10-10T22:20:56Z")

</div>

Hello All, Heroku seems to be a great application, and i’m excited about using it, but I am having a problem though, and i can’t seem to find any resolution. I am using Win XP SP2 here is the error message: whitej…

---

## [Another "I'm I right" question](https://www.ruby-forum.com/t/another-im-i-right-question/150591)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 2\
**Last updated:** [October 10, 2008, 9:24pm UTC](https://www.ruby-forum.com/t/another-im-i-right-question/150591 "2008-10-10T21:24:04Z")

</div>

I’m pretty sure that there’s a better way to do this: @roles = Role.find(:all) @selected\_role = Role.find(@user.role\_id) Can someone help me?

---

## [No Method Error when using a plugin](https://www.ruby-forum.com/t/no-method-error-when-using-a-plugin/150501)

<div class="topic-metadata">

**Author:** [@dangerp](https://www.ruby-forum.com/u/dangerp)\
**Replies:** 3\
**Last updated:** [October 10, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/no-method-error-when-using-a-plugin/150501 "2008-10-10T21:07:01Z")

</div>

I’m at kind of a weird roadblock right now. I’m fairly new at rails, but what I am trying to do right now seems too simple to not work. I installed the “spawn” plugin using the following: ruby script/plugin install h…

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

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