# Rails

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

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

---

## [Deploy Rails apps in 4 mins and 37 secs](https://www.ruby-forum.com/t/deploy-rails-apps-in-4-mins-and-37-secs/128776)

<div class="topic-metadata">

**Author:** [@Macel](https://www.ruby-forum.com/u/Macel)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/deploy-rails-apps-in-4-mins-and-37-secs/128776 "2008-02-11T14:00:29Z")

</div>

Hi guys, I would like to invite all of you to deploy your Rails app on the newly-release Morph Application Platform. NO STRINGS attached. You might even get a shirt, if we like what we see or if you can give us your …

---

## [How much view logic should be displayed in views?](https://www.ruby-forum.com/t/how-much-view-logic-should-be-displayed-in-views/128774)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/how-much-view-logic-should-be-displayed-in-views/128774 "2008-02-11T13:50:19Z")

</div>

Hi, I have a few cases where a particular value on a page should take 1 of 2 values and so at the top of the template I chose which: \<% count = @count1 || @count2 %\> \<%= count %\> Often the decision between the two…

---

## [Hiding partials when used with rjs](https://www.ruby-forum.com/t/hiding-partials-when-used-with-rjs/128773)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/hiding-partials-when-used-with-rjs/128773 "2008-02-11T13:31:25Z")

</div>

Hi, I often find myself using partials in the following way when they are intended for use with both javascript and html rendering: – page.html.erb render :partial =\> ‘partial’ – page.rjs page.replace ‘element’, :…

---

## [Has\_one :through type problem](https://www.ruby-forum.com/t/has-one-through-type-problem/128772)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/has-one-through-type-problem/128772 "2008-02-11T13:21:17Z")

</div>

Hi, I have a set of models with the following relationships: parent has\_one intermediary intermediary has\_one child I would like to be able to search the parent table based on the value of child but I don’t know how…

---

## [Error in rails at startup](https://www.ruby-forum.com/t/error-in-rails-at-startup/128761)

<div class="topic-metadata">

**Author:** [@revans](https://www.ruby-forum.com/u/revans)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/error-in-rails-at-startup/128761 "2008-02-11T13:14:44Z")

</div>

Hi everybody. I met a strange situation when I begin to use rails. I install the ruby 1.86, rails 2.0.2, and update the gem to 1.0.1 then I install mongrel. Just create the rails project and type “ruby script/genera…

---

## [Call methods from ApplicationController from a cron job](https://www.ruby-forum.com/t/call-methods-from-applicationcontroller-from-a-cron-job/128767)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/call-methods-from-applicationcontroller-from-a-cron-job/128767 "2008-02-11T12:24:57Z")

</div>

Hi, Can code in my cron job call methods from ApplicationController? It needs to act as if a user called a function, which triggers a whole lot of code that I have in the controller. I don’t want to separate this to …

---

## [BLACk girl with very big tits .... get in!](https://www.ruby-forum.com/t/black-girl-with-very-big-tits-get-in/128762)

<div class="topic-metadata">

**Author:** [@zizo](https://www.ruby-forum.com/u/zizo)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 11:47am UTC](https://www.ruby-forum.com/t/black-girl-with-very-big-tits-get-in/128762 "2008-02-11T11:47:07Z")

</div>

sexyyyyyyyyyyyyyyyyyy http://www.pic46.com/showthread.php?t=635

---

## [Problem in passing params](https://www.ruby-forum.com/t/problem-in-passing-params/128760)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 11:29am UTC](https://www.ruby-forum.com/t/problem-in-passing-params/128760 "2008-02-11T11:29:35Z")

</div>

Hi, I have a controller called students\_controller.rb From a view file i am calling the index method by the URL like, students\_path(:format =\> :json) I have no problem in that. But i want to pass the teacher\_id as th…

---

## [Common Functions for Models](https://www.ruby-forum.com/t/common-functions-for-models/128420)

<div class="topic-metadata">

**Author:** [@vasan\_cec](https://www.ruby-forum.com/u/vasan_cec)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 11:28am UTC](https://www.ruby-forum.com/t/common-functions-for-models/128420 "2008-02-11T11:28:05Z")

</div>

Hi Everyone, Can anyone tell me where to put the common functions, which is to be used in more than one model & controller? Is there any way to create a “common\_functions.rb” model? (Or) is it a good practice to p…

---

## [Send\_data problem](https://www.ruby-forum.com/t/send-data-problem/128757)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 11:18am UTC](https://www.ruby-forum.com/t/send-data-problem/128757 "2008-02-11T11:18:46Z")

</div>

Hi! Following call for sending data does not sets the HTTP Content-Type header under Rails 2.02: send\_data(csv\_string,:filename =\> @entity.name+".csv", :type =\> ‘text/ csv; charset=UTF-8’) Can anyone help why its ha…

---

## [Will Rubinius make the deployment easier...?](https://www.ruby-forum.com/t/will-rubinius-make-the-deployment-easier/128746)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 11:15am UTC](https://www.ruby-forum.com/t/will-rubinius-make-the-deployment-easier/128746 "2008-02-11T11:15:33Z")

</div>

Hi, I am aware that a great project for Ruby Virtual machine known as “Rubinius” is getting developed rapidly. It also has Erubis , that works faster than ERB. I think it also has few important options that can repla…

---

## [Web Chat, Cross Browser](https://www.ruby-forum.com/t/web-chat-cross-browser/128604)

<div class="topic-metadata">

**Author:** [@SySySy](https://www.ruby-forum.com/u/SySySy)\
**Replies:** 13\
**Last updated:** [February 11, 2008, 11:04am UTC](https://www.ruby-forum.com/t/web-chat-cross-browser/128604 "2008-02-11T11:04:35Z")

</div>

Hi all, I am newly learning Rails and playing with Web Chat app. I looked through what other people have done. I tested the following very naive, skeleton app. It seems to work in my local machine when I open two Fir…

---

## [Rich Text Editor and link\_to\_remote](https://www.ruby-forum.com/t/rich-text-editor-and-link-to-remote/128754)

<div class="topic-metadata">

**Author:** [@tktktk](https://www.ruby-forum.com/u/tktktk)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 10:57am UTC](https://www.ruby-forum.com/t/rich-text-editor-and-link-to-remote/128754 "2008-02-11T10:57:57Z")

</div>

Hi How can I get link\_to\_remote to call a new page and respect the javascript within that page. I do have an edit page for datarecords, that have a textarea which is enhanced with the YUI Rich Text Editor. If I call …

---

## [URL aliasing](https://www.ruby-forum.com/t/url-aliasing/128755)

<div class="topic-metadata">

**Author:** [@naresh](https://www.ruby-forum.com/u/naresh)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 10:47am UTC](https://www.ruby-forum.com/t/url-aliasing/128755 "2008-02-11T10:47:03Z")

</div>

HI all, I want to implement pretty URL, say suppose my url like this domain/services/1/title-of-this-id i have changed my routes to this, map.services ‘services/:id/:title’, :controller =\> ‘services’, :action =\> ‘sh…

---

## [Simplifying RESTful urls](https://www.ruby-forum.com/t/simplifying-restful-urls/112504)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 5\
**Last updated:** [February 11, 2008, 10:40am UTC](https://www.ruby-forum.com/t/simplifying-restful-urls/112504 "2008-02-11T10:40:22Z")

</div>

Hi, If I am making an application that has a programmes model which has many episodes, and use nested resourses like so: map.resources :programmes do |programmes| programmes.resources :episodes end This then produce…

---

## [Creating meaningful urls, (changing default)](https://www.ruby-forum.com/t/creating-meaningful-urls-changing-default/98265)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 6\
**Last updated:** [February 11, 2008, 10:35am UTC](https://www.ruby-forum.com/t/creating-meaningful-urls-changing-default/98265 "2008-02-11T10:35:40Z")

</div>

Hi, Urls in ruby are as defualt set to :controller/:action/:id How can I change it to somthing like this :controller/:action/:id/#random title# #random title# may be a variable or taken from a field in the database t…

---

## [Rcov as a plugin](https://www.ruby-forum.com/t/rcov-as-a-plugin/128714)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [February 11, 2008, 9:21am UTC](https://www.ruby-forum.com/t/rcov-as-a-plugin/128714 "2008-02-11T09:21:03Z")

</div>

hi, i’ve got a site under shared hosting for my mini rails app. I want to use RCOV to automate some tasks but need the gem to do it, http://eigenclass.org/hiki.rb?rcov Any ideas if I can download this as a standalone …

---

## [DRb + Chat interface?](https://www.ruby-forum.com/t/drb-chat-interface/128696)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 9:17am UTC](https://www.ruby-forum.com/t/drb-chat-interface/128696 "2008-02-11T09:17:55Z")

</div>

Hello, I’m an amateur rails developer, and am currently developing a project that needs a somewhat specialized chat client. I’ve recently become enamored with DRb, and was wondering if anyone had tried implementing i…

---

## [Trouble testing for page element](https://www.ruby-forum.com/t/trouble-testing-for-page-element/128749)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 9:09am UTC](https://www.ruby-forum.com/t/trouble-testing-for-page-element/128749 "2008-02-11T09:09:35Z")

</div>

I’m trying to use Luke R.'s hpricot\_test\_helper plugin to test for the existence of a page element in my integration test. I get errors like “nil.content\_for” for even when using examples copied directly from his tuto…

---

## [Actionmailer Validation](https://www.ruby-forum.com/t/actionmailer-validation/128747)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 7:31am UTC](https://www.ruby-forum.com/t/actionmailer-validation/128747 "2008-02-11T07:31:57Z")

</div>

Hi all I have implemented action mailer and i want to add validation to it…now we can add the validate\_format\_of in models but its giving error as its not a activerecord…So has ne one implemented validation in action …

---

## [ROR with Forums in PHP...? Is it OK...?](https://www.ruby-forum.com/t/ror-with-forums-in-php-is-it-ok/128735)

<div class="topic-metadata">

**Author:** [@softmind](https://www.ruby-forum.com/u/softmind)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 7:28am UTC](https://www.ruby-forum.com/t/ror-with-forums-in-php-is-it-ok/128735 "2008-02-11T07:28:56Z")

</div>

Hi, I am getting glued to ROR day by day. I think its the best thing happened to web developers so far. But since ROR, does not have as much big community support like PHP currently, few things are initially missing. …

---

## [Problem with gSubing](https://www.ruby-forum.com/t/problem-with-gsubing/128742)

<div class="topic-metadata">

**Author:** [@mohit\_ranka](https://www.ruby-forum.com/u/mohit_ranka)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 7:11am UTC](https://www.ruby-forum.com/t/problem-with-gsubing/128742 "2008-02-11T07:11:21Z")

</div>

Hi, I am trying to this using gsub. \<- Variable\_Name -\> ==\> \<%= Variable\_Name %\> Currently, I am doing it by changing the \<- to \<%= and -\> to %\> separately… but I need to do it as whole… as gsub (\<- some\_text - )…

---

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

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 6:09am UTC](https://www.ruby-forum.com/t/help-with-caching/128739 "2008-02-11T06:09:48Z")

</div>

I’m using lighttpd serving mongrel backends. I have the following rewrites in my lighty conf file: url.rewrite += ( “^/$” =\> “/cache/index.html” ) url.rewrite += ( “^(\[^.\]+)$” =\> “/cache/$1.html” ) If a page has alre…

---

## [Summing up data by user-selected time zone](https://www.ruby-forum.com/t/summing-up-data-by-user-selected-time-zone/128646)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 2\
**Last updated:** [February 11, 2008, 5:24am UTC](https://www.ruby-forum.com/t/summing-up-data-by-user-selected-time-zone/128646 "2008-02-11T05:24:07Z")

</div>

I am trying use activerecord to sum up calorie values of items posted on the same day in my timezone aware app. I’m running into problems with the time zone support. All my dates are stored in the DB in GMT and conve…

---

## [User Authorization/Role Frameworks](https://www.ruby-forum.com/t/user-authorization-role-frameworks/128725)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 5:02am UTC](https://www.ruby-forum.com/t/user-authorization-role-frameworks/128725 "2008-02-11T05:02:27Z")

</div>

I’ve been asked the following question and I don’t know the answer as I have not used any of the authentication plugins yet. So far, I’ve just rolled my own. I know of acts\_as\_authenticated and restful\_authentication…

---

## [XAMPP With Rails?](https://www.ruby-forum.com/t/xampp-with-rails/128611)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 4:58am UTC](https://www.ruby-forum.com/t/xampp-with-rails/128611 "2008-02-11T04:58:55Z")

</div>

Hey, I use XAMPP on a USB memory stick at the moment to do all my coding in PHP/MySQL on a portable Apache server. Is it possible to integrate rails into this setup, so when the server encouters a PHP file it runs i…

---

## [Image\_tag is it just plain Broken?](https://www.ruby-forum.com/t/image-tag-is-it-just-plain-broken/128732)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 3:23am UTC](https://www.ruby-forum.com/t/image-tag-is-it-just-plain-broken/128732 "2008-02-11T03:23:34Z")

</div>

I’m trying \<%= link\_to image\_tag("#{gallery.link\_to}"), gallery\_path(gallery) unless gallery.thumbnail\_id == 0%\> and get the error: ActionView::TemplateError (undefined method \`image\_tag’ for #\<Gallery: 0xb7083be4\>)…

---

## [Help with a noob](https://www.ruby-forum.com/t/help-with-a-noob/128707)

<div class="topic-metadata">

**Author:** [@elemental](https://www.ruby-forum.com/u/elemental)\
**Replies:** 1\
**Last updated:** [February 11, 2008, 2:37am UTC](https://www.ruby-forum.com/t/help-with-a-noob/128707 "2008-02-11T02:37:53Z")

</div>

Hi all, I’m a noob to creating my own plugins, and I could use a hand. I’ve only developed basic rails apps, and several advanced J2EE apps. I understand how my plugin structure mirrors the rails app mvc in the ba…

---

## [Regarding Implementation of n Image Rendering Web Service in Rails](https://www.ruby-forum.com/t/regarding-implementation-of-n-image-rendering-web-service-in-rails/128726)

<div class="topic-metadata">

**Author:** [@dugla](https://www.ruby-forum.com/u/dugla)\
**Replies:** 0\
**Last updated:** [February 11, 2008, 2:16am UTC](https://www.ruby-forum.com/t/regarding-implementation-of-n-image-rendering-web-service-in-rails/128726 "2008-02-11T02:16:13Z")

</div>

Hello, I have a number of legacy 3D and 2D rendering applications (essentially batch applications) written in C++ that I now want to expose as services on the Web. For example as a Facebook photo hacking widget. Can…

---

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

<div class="topic-metadata">

**Author:** [@ipaddict](https://www.ruby-forum.com/u/ipaddict)\
**Replies:** 3\
**Last updated:** [February 11, 2008, 1:18am UTC](https://www.ruby-forum.com/t/has-many-through/128710 "2008-02-11T01:18:14Z")

</div>

This seems like it should have been asked numerous times already, but my Google-fu isn’t strong enough to find the answer. DHH advocates separating HABTM relationships into a join model, and I need to store some metad…

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

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