# Rails

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

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

---

## [Date validation](https://www.ruby-forum.com/t/date-validation/113152)

<div class="topic-metadata">

**Author:** [@prashanth](https://www.ruby-forum.com/u/prashanth)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 6:27am UTC](https://www.ruby-forum.com/t/date-validation/113152 "2007-08-28T06:27:00Z")

</div>

hi, i have a date which is entered by the user, and i calculate the date entered + 1year, say for example start\_on = 27/08/2007 and the end\_on is calculated automatically as 26/08/2007 i want to check this in the mod…

---

## [Want to Move RestfulAuthentication's UsersController to Admi](https://www.ruby-forum.com/t/want-to-move-restfulauthentications-userscontroller-to-admi/113110)

<div class="topic-metadata">

**Author:** [@riles01](https://www.ruby-forum.com/u/riles01)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 6:17am UTC](https://www.ruby-forum.com/t/want-to-move-restfulauthentications-userscontroller-to-admi/113110 "2007-08-28T06:17:59Z")

</div>

I’m trying to move RestfulAuthentication’s UsersController to an Admin module–Admin::UsersController–as I’m also adding roles and permissions for an app I’m building. I would like this all to be within a single user i…

---

## [No rails](https://www.ruby-forum.com/t/no-rails/113144)

<div class="topic-metadata">

**Author:** [@diltonm](https://www.ruby-forum.com/u/diltonm)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 5:43am UTC](https://www.ruby-forum.com/t/no-rails/113144 "2007-08-28T05:43:58Z")

</div>

I used the copy of gems in the latest Ubuntu and followed the instructions Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Contr…

---

## [Lookup on Google Maps](https://www.ruby-forum.com/t/lookup-on-google-maps/113099)

<div class="topic-metadata">

**Author:** [@jandot](https://www.ruby-forum.com/u/jandot)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 5:36am UTC](https://www.ruby-forum.com/t/lookup-on-google-maps/113099 "2007-08-28T05:36:57Z")

</div>

I have a table of address in my database. I want to show these on a google map. The problem is, I can only get it to work if I have a pretty geocode like this: ‘555 Irving, San Francisco, CA’,Irving’ and my data is no…

---

## [Php executing from rails](https://www.ruby-forum.com/t/php-executing-from-rails/113139)

<div class="topic-metadata">

**Author:** [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 5:30am UTC](https://www.ruby-forum.com/t/php-executing-from-rails/113139 "2007-08-28T05:30:56Z")

</div>

Hello the subject xplain all, i know that i came to rails to left php, but i haven’t learned a lot of rails to do very heavy classes like in php, and i have to get some responses to my clients. What i want to know if …

---

## [How to access a form value in template from controller](https://www.ruby-forum.com/t/how-to-access-a-form-value-in-template-from-controller/113150)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 5:29am UTC](https://www.ruby-forum.com/t/how-to-access-a-form-value-in-template-from-controller/113150 "2007-08-28T05:29:56Z")

</div>

I have this in my template \<%= hidden\_field(:content\_provider, :id, {:value =\> ‘1’}) %\> How do I get it’s value (1) in my controller?

---

## [Automatically send e-mail describing each cap deploy?](https://www.ruby-forum.com/t/automatically-send-e-mail-describing-each-cap-deploy/113146)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 4:12am UTC](https://www.ruby-forum.com/t/automatically-send-e-mail-describing-each-cap-deploy/113146 "2007-08-28T04:12:52Z")

</div>

Railsters: Here’s the command to get the revision log between a given revision and the state-of-the-art: svn log http://my…repository/trunk --revision 42:head Under our usual mix of Capistrano and SVN, how would one…

---

## [Reload multiple instances of a same app](https://www.ruby-forum.com/t/reload-multiple-instances-of-a-same-app/113147)

<div class="topic-metadata">

**Author:** [@vidriloco](https://www.ruby-forum.com/u/vidriloco)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 3:47am UTC](https://www.ruby-forum.com/t/reload-multiple-instances-of-a-same-app/113147 "2007-08-28T03:47:40Z")

</div>

Hi I am working on a system that marks reviewed items in a table, what i am trying to find is a method that for every instance of that app running maybe in two or more computers with the same item set, they can get u…

---

## [Two databases](https://www.ruby-forum.com/t/two-databases/113111)

<div class="topic-metadata">

**Author:** [@joshua](https://www.ruby-forum.com/u/joshua)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 2:48am UTC](https://www.ruby-forum.com/t/two-databases/113111 "2007-08-28T02:48:01Z")

</div>

Hello all, I’ve got a question. I’m writing a RoR app for a client and they need me to use two databases, one a mssql database the other a mysql database. The mssql database will hold the username/password values. Onc…

---

## [How do you order by two conditions?](https://www.ruby-forum.com/t/how-do-you-order-by-two-conditions/112968)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 1:25am UTC](https://www.ruby-forum.com/t/how-do-you-order-by-two-conditions/112968 "2007-08-28T01:25:42Z")

</div>

For instance, if I wanted to order by “created\_at”, then order that again by “last\_contacted”, how would I do so? I tried something like this, but unfortunately didn’t work: :order =\> ‘created\_date DESC, last\_contacte…

---

## [Get app url with rails](https://www.ruby-forum.com/t/get-app-url-with-rails/113019)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 5\
**Last updated:** [August 28, 2007, 12:41am UTC](https://www.ruby-forum.com/t/get-app-url-with-rails/113019 "2007-08-28T00:41:40Z")

</div>

This is the root of my app: http://localhost:3000/management How can I get this from within rails?

---

## [Find(:all) on parent where child.nil?](https://www.ruby-forum.com/t/find-all-on-parent-where-child-nil/113035)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 2\
**Last updated:** [August 28, 2007, 12:11am UTC](https://www.ruby-forum.com/t/find-all-on-parent-where-child-nil/113035 "2007-08-28T00:11:38Z")

</div>

How can I find(:all) on a parent model only for objects where a has\_one child is nil? Models class Parent \< ActiveRecord::Base has\_one :child end class Child \< ActiveRecord::Base belongs\_to :parent end So, I want…

---

## [Help with FlexImage](https://www.ruby-forum.com/t/help-with-fleximage/113120)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 12:08am UTC](https://www.ruby-forum.com/t/help-with-fleximage/113120 "2007-08-28T00:08:37Z")

</div>

I can upload, edit and view images just fine. But, I am having problems deleting the images. I have tried: @mod.data = nil this returns the error: Exception in edit\_module: You have a nil object when you didn’t expe…

---

## [UPS Shipping Tools XML Integration](https://www.ruby-forum.com/t/ups-shipping-tools-xml-integration/110892)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 12:02am UTC](https://www.ruby-forum.com/t/ups-shipping-tools-xml-integration/110892 "2007-08-28T00:02:37Z")

</div>

Hello! I’m relatively new to Rails and in over my head… I’d like to integrate the XML UPS Shipping tools into an online cart so that a user can select a shipping method based on availability and price. I understand …

---

## [Development.log not being recorded with mongrel](https://www.ruby-forum.com/t/development-log-not-being-recorded-with-mongrel/113135)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/development-log-not-being-recorded-with-mongrel/113135 "2007-08-27T23:47:35Z")

</div>

I change into my app directory and run script/server and mongrel boots up fine. In the browser, when I interact with the app, none of the queries are recorded in the development.log I am using custom subdomains and ed…

---

## [AS, login, filter](https://www.ruby-forum.com/t/as-login-filter/113133)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/as-login-filter/113133 "2007-08-27T23:38:24Z")

</div>

Hi all, I need a help to solve problem with ActiveScaffold, Imagine that you have a list of companies, each company has a list of products. If Iâ€™m administrator of some company and I want to edit my products I also…

---

## [Is LiteSpeed for me on VPS?](https://www.ruby-forum.com/t/is-litespeed-for-me-on-vps/112993)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/is-litespeed-for-me-on-vps/112993 "2007-08-27T23:18:32Z")

</div>

Hello all, i am planning to deploy my ROR app on a VPS. as i m quite new to be a web admin, i want to choose something easy to deploy. i come accross LiteSpeed, i heard that it’s easy to install and maintain as well.…

---

## [How to set response status to :created?](https://www.ruby-forum.com/t/how-to-set-response-status-to-created/113119)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-set-response-status-to-created/113119 "2007-08-27T22:52:30Z")

</div>

I want my response to include either the json or xml text, but I also want it to include the http status 201. How can I do this? if @manufacturer.save format.xml { render :xml =\> @manufacturer.to\_xml } format.json …

---

## [RJS - unterminated string literal](https://www.ruby-forum.com/t/rjs-unterminated-string-literal/111692)

<div class="topic-metadata">

**Author:** [@escoz](https://www.ruby-forum.com/u/escoz)\
**Replies:** 13\
**Last updated:** [August 27, 2007, 10:19pm UTC](https://www.ruby-forum.com/t/rjs-unterminated-string-literal/111692 "2007-08-27T22:19:40Z")

</div>

Hi guys, I’m having problems with RJS, and can’t figure it out… I’m using RJS to do a very simple effect on a div: page.visual\_effect :blind\_up, ‘comment-’+@id The request works, but the javascript it sends to the br…

---

## [Timeout issues](https://www.ruby-forum.com/t/timeout-issues/113126)

<div class="topic-metadata">

**Author:** [@kyl](https://www.ruby-forum.com/u/kyl)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/timeout-issues/113126 "2007-08-27T21:15:17Z")

</div>

Hi Not sure which newsgroup to post this question to. Has anyone had the issue with timeouts where in your Rails application, you have a Query into the database and there’s just too much data to search for while runn…

---

## [How to use acts\_as\_versioned\_association](https://www.ruby-forum.com/t/how-to-use-acts-as-versioned-association/113125)

<div class="topic-metadata">

**Author:** [@newrubyguy](https://www.ruby-forum.com/u/newrubyguy)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 9:14pm UTC](https://www.ruby-forum.com/t/how-to-use-acts-as-versioned-association/113125 "2007-08-27T21:14:21Z")

</div>

Hello, I have been looking for documentation for acts\_as\_versioned\_association and canâ€™t really find any. I have acts\_as\_versioned\_working properly but want to change to acts\_as\_versioned\_association. Do I need to c…

---

## [Re: How to I generate a \<span\> tag](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113117)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113117 "2007-08-27T20:17:07Z")

</div>

That did it! I have been stuck on this for a while and it was starting to drive me nuts :slight\_smile: Thanks Adam! ----- Original Message ---- From: Adam C. removed\_email\_address@domain.invalid To: removed\_email\_…

---

## [Re: How to I generate a \<span\> tag](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113115)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [August 27, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113115 "2007-08-27T20:12:07Z")

</div>

First, thanks for the help! When I try using content\_tag(‘span’, 'Home)) it wraps the output in my with quotes. ----- Original Message ---- From: Adam C. removed\_email\_address@domain.invalid To: removed\_email\_addr…

---

## [Has\_attachment plugin : upload pdf?](https://www.ruby-forum.com/t/has-attachment-plugin-upload-pdf/113107)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [August 27, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/has-attachment-plugin-upload-pdf/113107 "2007-08-27T19:59:06Z")

</div>

I am using has\_attachment :content\_type =\> \[:image, ‘application/pdf’, ‘application/msword’, ‘text/plain’, ‘application/rtf’\], :storage =\> :file\_system, :path\_prefix =\> ‘public/files/documents’ it’s fine for all ima…

---

## [Busco Ruby on Rails developer (latinoamÃ©rica-desde casa)](https://www.ruby-forum.com/t/busco-ruby-on-rails-developer-latinoama-rica-desde-casa/113114)

<div class="topic-metadata">

**Author:** [@avity](https://www.ruby-forum.com/u/avity)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/busco-ruby-on-rails-developer-latinoama-rica-desde-casa/113114 "2007-08-27T19:54:36Z")

</div>

We are a rapidly growing American company with staff in Latin America and Europe. We would like to retain three or more developers immediately to staff several projects of 3+ months. Ideally on these projects we woul…

---

## [Has\_many polymorphics problems](https://www.ruby-forum.com/t/has-many-polymorphics-problems/225956)

<div class="topic-metadata">

**Author:** [@juan](https://www.ruby-forum.com/u/juan)\
**Replies:** 3\
**Last updated:** [August 27, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/has-many-polymorphics-problems/225956 "2007-08-27T19:39:05Z")

</div>

I have this situation: A ‘processable’ model has\_many :preprocessors and/or :postprocessors I do that: @processor\_and\_processable.id = @processor\_and\_processable.processable\_id = @processor\_and\_processable.processa…

---

## [Sending from multiple email addresses using POP](https://www.ruby-forum.com/t/sending-from-multiple-email-addresses-using-pop/113112)

<div class="topic-metadata">

**Author:** [@bakki](https://www.ruby-forum.com/u/bakki)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/sending-from-multiple-email-addresses-using-pop/113112 "2007-08-27T19:16:00Z")

</div>

Hi, I have an app with many users who need to send and receive emails. My client does not want to have a local smtp server (if he can avoid it :). I can receive emails on a per user basis using Net::pop. What has me …

---

## [Helpers in Database Content?](https://www.ruby-forum.com/t/helpers-in-database-content/113108)

<div class="topic-metadata">

**Author:** [@Pete\_Bekisz](https://www.ruby-forum.com/u/Pete_Bekisz)\
**Replies:** 0\
**Last updated:** [August 27, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/helpers-in-database-content/113108 "2007-08-27T18:56:57Z")

</div>

Hi folks, I’m trying to figure out if it’s possible to have helpers in database content that would be parsed in the view. For instance, suppose I have a helper called course\_info, and if I were to use \<%= course\_inf…

---

## [Error 500 when displaying after creating a controller](https://www.ruby-forum.com/t/error-500-when-displaying-after-creating-a-controller/113096)

<div class="topic-metadata">

**Author:** [@arte\_fact](https://www.ruby-forum.com/u/arte_fact)\
**Replies:** 1\
**Last updated:** [August 27, 2007, 6:07pm UTC](https://www.ruby-forum.com/t/error-500-when-displaying-after-creating-a-controller/113096 "2007-08-27T18:07:54Z")

</div>

Hello, I’m currently learning RoR but I’m facing yp to a displaying issue. I created a RoR project via the command rails project in the OS Linux Ubuntu Then, I also created a controller: sudo script/generate contr…

---

## [How to I generate a \<span\> tag](https://www.ruby-forum.com/t/how-to-i-generate-a-span-tag/113100)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [August 27, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/how-to-i-generate-a-span-tag/113100 "2007-08-27T17:54:53Z")

</div>

I’m having a problem generating this HTML is my \_header.rhtml. Home I know I need to use the link\_to and image\_tag but I have not been able to generate the This is the basic code \<% if request.path\_parameters\['cont…

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

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