# Rails

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

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

---

## [Render a partial on buttonclick?](https://www.ruby-forum.com/t/render-a-partial-on-buttonclick/92552)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 9\
**Last updated:** [April 23, 2007, 4:17pm UTC](https://www.ruby-forum.com/t/render-a-partial-on-buttonclick/92552 "2007-04-23T16:17:16Z")

</div>

I currently have a link to a Login screen, but its a separate page althogether. I have created a partial that is just the login box and password, and would like that partial to appear at a place on the page when the u…

---

## [Is theme\_support the only theme plugin in rails?](https://www.ruby-forum.com/t/is-theme-support-the-only-theme-plugin-in-rails/92731)

<div class="topic-metadata">

**Author:** [@rubdabadub](https://www.ruby-forum.com/u/rubdabadub)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/is-theme-support-the-only-theme-plugin-in-rails/92731 "2007-04-23T16:12:15Z")

</div>

Hi: I am just wondering if theme\_support is the only themes enabler plugin in rails? I have a feeling there is more but i can’t seems to find it by searching … Any help? Regards

---

## [How I can stop periodically\_call\_remote?](https://www.ruby-forum.com/t/how-i-can-stop-periodically-call-remote/57112)

<div class="topic-metadata">

**Author:** [@ilyas](https://www.ruby-forum.com/u/ilyas)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 3:59pm UTC](https://www.ruby-forum.com/t/how-i-can-stop-periodically-call-remote/57112 "2007-04-23T15:59:31Z")

</div>

I need make progress bar with following function: Ruby on Rails code \<%= periodically\_call\_remote(:update =\> ‘progress-bar’, :url =\> { :action =\> :progress }, :frequency =\> 0.1 , :complete =\> “check(request)”) %\> H…

---

## [Incoming email question](https://www.ruby-forum.com/t/incoming-email-question/92728)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/incoming-email-question/92728 "2007-04-23T15:30:08Z")

</div>

I’m writing a model for receiving incoming email from a remote imap server. The problem is, our server isn’t going to be running all of the time, and so I’m just going to set it up to check the inbox on each request …

---

## [Suggestions for a complex model appreciated](https://www.ruby-forum.com/t/suggestions-for-a-complex-model-appreciated/92724)

<div class="topic-metadata">

**Author:** [@kimmoke](https://www.ruby-forum.com/u/kimmoke)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/suggestions-for-a-complex-model-appreciated/92724 "2007-04-23T14:44:39Z")

</div>

I have a rather complex legacy db I’d like to access via ActiveRecord and I’m not sure how to model it wisely. I have a lot of tables that follow the following format: Table name: CDM\_CONFIGURATION\_ITEMS Primary key…

---

## [How to change Date format](https://www.ruby-forum.com/t/how-to-change-date-format/92714)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 3\
**Last updated:** [April 23, 2007, 2:18pm UTC](https://www.ruby-forum.com/t/how-to-change-date-format/92714 "2007-04-23T14:18:54Z")

</div>

Hi all, I am using InstantRails with MySQL-Front. Date is stored in format yyyy-mm-dd in database. I want to retrieve and show date in dd-mm-yyyy in my view.rhtml. How can I change it to dd-mm-yyyy form. Please hel…

---

## [Zsh tab completion for capistrano](https://www.ruby-forum.com/t/zsh-tab-completion-for-capistrano/92720)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/zsh-tab-completion-for-capistrano/92720 "2007-04-23T14:07:52Z")

</div>

I got tired of typing out things like “cap production restart\_mongrel\_cluster” (and can never remember whether it’s restart\_mongrel\_cluster or mongrel\_cluster\_restart"), so I hacked together a capistrano tab-completio…

---

## [Why does this add \<div style="margin:0;padding:0"\>?](https://www.ruby-forum.com/t/why-does-this-add-div-style-margin-0-padding-0/92674)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/why-does-this-add-div-style-margin-0-padding-0/92674 "2007-04-23T12:24:00Z")

</div>

Hi, I have the following form\_for tag that seems to be outputing any suggestions on how this can be stopped? \<% form\_for :user, :url =\> user\_path(@user), :html =\> {:method =\> :put} do |f| %\> cheers jon

---

## [REST default response format](https://www.ruby-forum.com/t/rest-default-response-format/92717)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/rest-default-response-format/92717 "2007-04-23T12:17:58Z")

</div>

Hi, Does anybody know how to change the default response format of RESTful controllers? My controllers support both XML and JSON responses but I need JSON one to be the default one. Changing the order of the format.…

---

## [Dynamically create tables and models depending on parent.att](https://www.ruby-forum.com/t/dynamically-create-tables-and-models-depending-on-parent-att/92125)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 11:18am UTC](https://www.ruby-forum.com/t/dynamically-create-tables-and-models-depending-on-parent-att/92125 "2007-04-23T11:18:54Z")

</div>

Hi everybody! Given those models: ############################################################################### class Company \< ActiveRecord::Base has\_many :employees class Employee \< ActiveRecord::Base belongs\_t…

---

## [Need a sample file of dispatch.fcgi, dispatch.rb, .htaccess](https://www.ruby-forum.com/t/need-a-sample-file-of-dispatch-fcgi-dispatch-rb-htaccess/92710)

<div class="topic-metadata">

**Author:** [@modpriest](https://www.ruby-forum.com/u/modpriest)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 10:42am UTC](https://www.ruby-forum.com/t/need-a-sample-file-of-dispatch-fcgi-dispatch-rb-htaccess/92710 "2007-04-23T10:42:50Z")

</div>

I’m currently working on godaddy hosting that support ruby on rails. But i found out all the tutorial on rubyonrails.org and other place don’t work. I need to know how exactly how to setup. But i failed, so i need a s…

---

## [How to log SQL Create,Update,Delete only?](https://www.ruby-forum.com/t/how-to-log-sql-create-update-delete-only/90413)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 10\
**Last updated:** [April 23, 2007, 9:53am UTC](https://www.ruby-forum.com/t/how-to-log-sql-create-update-delete-only/90413 "2007-04-23T09:53:55Z")

</div>

Hi everyone, Does anyone know of a way to log SQL statements (but without the SELECT queries)? I would like to keep track of the changes made to the database, but I don’t want the log file to be flooded with SELECT …

---

## [Caching a model that belongs to another model](https://www.ruby-forum.com/t/caching-a-model-that-belongs-to-another-model/92684)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 3\
**Last updated:** [April 23, 2007, 8:33am UTC](https://www.ruby-forum.com/t/caching-a-model-that-belongs-to-another-model/92684 "2007-04-23T08:33:43Z")

</div>

Hi everyone… I have a user model that stores the currently logged in user in a session variable so a db query won’t be created for every access to it. However, I have another model (user\_properties) that belongs\_to th…

---

## [How to put multiple contents in one layout?](https://www.ruby-forum.com/t/how-to-put-multiple-contents-in-one-layout/92704)

<div class="topic-metadata">

**Author:** [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 7:44am UTC](https://www.ruby-forum.com/t/how-to-put-multiple-contents-in-one-layout/92704 "2007-04-23T07:44:35Z")

</div>

Dear all, When I used “content\_for”, I can easily make a page show bot TOC and text. Now I am using “yield”, how to do the same thing? Thanks.

---

## [How to sort columns from more than one table using Ajax?](https://www.ruby-forum.com/t/how-to-sort-columns-from-more-than-one-table-using-ajax/92415)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 3\
**Last updated:** [April 23, 2007, 7:28am UTC](https://www.ruby-forum.com/t/how-to-sort-columns-from-more-than-one-table-using-ajax/92415 "2007-04-23T07:28:56Z")

</div>

I modified Julien B.'s code in “How to paginate, sort, and search a table using Ajax and Rails” (How to paginate, sort and search a table with Ajax and Rails · dev.nozav.org) a bit for my application. However, each ro…

---

## [Encoding problem with rails 1.2 and MySql 5.0](https://www.ruby-forum.com/t/encoding-problem-with-rails-1-2-and-mysql-5-0/92701)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 6:25am UTC](https://www.ruby-forum.com/t/encoding-problem-with-rails-1-2-and-mysql-5-0/92701 "2007-04-23T06:25:26Z")

</div>

Hi all, I want my rails application and ferret to support utf-8, so I create a database in MySql 5.0 using utf-8 charset and add the following declarations in environment.rb: $KCODE = ‘u’ require ‘jcode’ ENV\[‘LANG’…

---

## [Slow page render](https://www.ruby-forum.com/t/slow-page-render/92698)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 5:31am UTC](https://www.ruby-forum.com/t/slow-page-render/92698 "2007-04-23T05:31:11Z")

</div>

I have been using pl\_analyze to profile my app. It occurs that I have done enough caching to improve upon my DB, which cannot be improved further. I am using fragment caches as well to the best that I can. I am also u…

---

## [Help with exceptions in UI](https://www.ruby-forum.com/t/help-with-exceptions-in-ui/92671)

<div class="topic-metadata">

**Author:** [@onemind](https://www.ruby-forum.com/u/onemind)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 5:09am UTC](https://www.ruby-forum.com/t/help-with-exceptions-in-ui/92671 "2007-04-23T05:09:21Z")

</div>

Hi Ruby forum, I’m pretty new to Rails and Ruby and I’m trying to figure out how to avoid having ugly stack dumps in my applications. I’m trying build a Login module following the “Rails Recipes”. It works fine when u…

---

## [Is there a bug in the ActiveRecord method validates\_format\_o](https://www.ruby-forum.com/t/is-there-a-bug-in-the-activerecord-method-validates-format-o/92672)

<div class="topic-metadata">

**Author:** [@dparkmit](https://www.ruby-forum.com/u/dparkmit)\
**Replies:** 4\
**Last updated:** [April 23, 2007, 4:21am UTC](https://www.ruby-forum.com/t/is-there-a-bug-in-the-activerecord-method-validates-format-o/92672 "2007-04-23T04:21:17Z")

</div>

Hi All, I think that I might have found a bug in the validates\_format\_of method. Below is my code and the test case that threw an error. Please let me know if there is a bug in my code that I just didn’t catch. Her…

---

## [Anyone done postgres replication with slony?](https://www.ruby-forum.com/t/anyone-done-postgres-replication-with-slony/92697)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 4:19am UTC](https://www.ruby-forum.com/t/anyone-done-postgres-replication-with-slony/92697 "2007-04-23T04:19:17Z")

</div>

We’re going to start doing some postgres replication using Slony, and I’m wondering if anyone’s already worked on this. I did some googling but haven’t found much. What strategies have you used in replicating your r…

---

## [Database Modeller (Mac)](https://www.ruby-forum.com/t/database-modeller-mac/92618)

<div class="topic-metadata">

**Author:** [@Barry\_Frost](https://www.ruby-forum.com/u/Barry_Frost)\
**Replies:** 7\
**Last updated:** [April 23, 2007, 3:05am UTC](https://www.ruby-forum.com/t/database-modeller-mac/92618 "2007-04-23T03:05:16Z")

</div>

Can anyone recommend a database modelling tool for the Mac? I’m building a new Rails app and want an interface to draw out the database’s entity relationship diagram, setup foreign keys and then output DDL at the end …

---

## [Multiple models from one controller](https://www.ruby-forum.com/t/multiple-models-from-one-controller/92685)

<div class="topic-metadata">

**Author:** [@ikiini](https://www.ruby-forum.com/u/ikiini)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 2:28am UTC](https://www.ruby-forum.com/t/multiple-models-from-one-controller/92685 "2007-04-23T02:28:09Z")

</div>

Hey all, I am new to Ruby on Rails and need some beyond basics help. I have a the agile web dev with rails 2nd ed. And i have looked at a few tutorials online. However none has covered real life webapps with multiple…

---

## [RoR on-line store or OSCommerce?](https://www.ruby-forum.com/t/ror-on-line-store-or-oscommerce/92683)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 1:22am UTC](https://www.ruby-forum.com/t/ror-on-line-store-or-oscommerce/92683 "2007-04-23T01:22:05Z")

</div>

Hello everyone, I am I the process or searching for some info that will hep em deciding is it s better to create my own on-line store in RoR or use What will be the pros and cons to create from scratch my own RoR on-…

---

## [Should I have private and public controllers?](https://www.ruby-forum.com/t/should-i-have-private-and-public-controllers/92597)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 1:18am UTC](https://www.ruby-forum.com/t/should-i-have-private-and-public-controllers/92597 "2007-04-23T01:18:05Z")

</div>

I have a resource where there can be private or public items. If an item is public then no login is required to view, but if it’s private then only the owner should be able to see it. I’ve thought that I will just hav…

---

## [Error Starting Rails - DEPRECATED\_INSTANCE\_VARIABLES](https://www.ruby-forum.com/t/error-starting-rails-deprecated-instance-variables/91875)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [April 23, 2007, 12:58am UTC](https://www.ruby-forum.com/t/error-starting-rails-deprecated-instance-variables/91875 "2007-04-23T00:58:33Z")

</div>

Hi, I’ve got a rails app happily working on my Vista laptop. I’ve installed a ubuntu slice using VMWorkstation to try & replicate my hosting environment. I think I’ve installed everything as I should, I’m running Edg…

---

## [Possible to use Piston to manage Mephisto installation while](https://www.ruby-forum.com/t/possible-to-use-piston-to-manage-mephisto-installation-while/92678)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 12:07am UTC](https://www.ruby-forum.com/t/possible-to-use-piston-to-manage-mephisto-installation-while/92678 "2007-04-23T00:07:00Z")

</div>

Hello, Is it possible to use Piston to manage a Mephisto (or any other app) installation while still using svn:externals to manage vendor/rails? I do not want to commit an entire copy of Rails to my repository just t…

---

## [URL for creating nested resources in REST](https://www.ruby-forum.com/t/url-for-creating-nested-resources-in-rest/92676)

<div class="topic-metadata">

**Author:** [@namelessjon](https://www.ruby-forum.com/u/namelessjon)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/url-for-creating-nested-resources-in-rest/92676 "2007-04-22T23:40:59Z")

</div>

Hi all I have a problem with the url helpers my nested routes are supplying (or at least, I think I do). I’m writing a site to help people keep track of roleplaying characters, so one user has\_many characters, so in…

---

## [Reading the contents of a text\_field\_tag within a form](https://www.ruby-forum.com/t/reading-the-contents-of-a-text-field-tag-within-a-form/92675)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 0\
**Last updated:** [April 22, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/reading-the-contents-of-a-text-field-tag-within-a-form/92675 "2007-04-22T23:19:49Z")

</div>

I’m trying to do something which I think should be simple but can’t find anything after reading and searching for quite a while. I guess I’m searching using the wrong terms maybe. I’d like to read the contents of a te…

---

## [Form\_tag using :onsubmit =\> "confirm('are you sure?')". help](https://www.ruby-forum.com/t/form-tag-using-onsubmit-confirm-are-you-sure-help/92662)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [April 22, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/form-tag-using-onsubmit-confirm-are-you-sure-help/92662 "2007-04-22T22:59:44Z")

</div>

hi, both ok and cancel buttons submits the form…is there a way that when the user selects cancel that it doesnt submit the form? thanks!

---

## [Delete scaffold](https://www.ruby-forum.com/t/delete-scaffold/92666)

<div class="topic-metadata">

**Author:** [@smital](https://www.ruby-forum.com/u/smital)\
**Replies:** 2\
**Last updated:** [April 22, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/delete-scaffold/92666 "2007-04-22T22:23:43Z")

</div>

Hi, I created a scaffolding using the “generate” script for a table, lets call it “foo”, in MySql database. I have now modified the database by adding new tables and deleting the table “foo”. How do I now delete the …

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

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