# Rails

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

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

---

## [Problem migrating to specific schema in PostgreSQL](https://www.ruby-forum.com/t/problem-migrating-to-specific-schema-in-postgresql/129107)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 3\
**Last updated:** [February 15, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/problem-migrating-to-specific-schema-in-postgresql/129107 "2008-02-15T13:05:37Z")

</div>

Hi All, I have created a schema named “CFG” in the postgreSQL database named “EIS1”. When run the rake command to migrate. The scripts are always run in the “Public” schema in database “EIS1”. How do I make it run u…

---

## [Authenticate against external rest api](https://www.ruby-forum.com/t/authenticate-against-external-rest-api/129000)

<div class="topic-metadata">

**Author:** [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 11:34am UTC](https://www.ruby-forum.com/t/authenticate-against-external-rest-api/129000 "2008-02-15T11:34:51Z")

</div>

Hello, i am new with webservices, so i think this is prety basic i want to use the REST interface of our zimbra collaboration server within my rails applications. I could create calendar appointments using curl -u use…

---

## [Before\_filter for ActionMailer](https://www.ruby-forum.com/t/before-filter-for-actionmailer/129159)

<div class="topic-metadata">

**Author:** [@jonzo](https://www.ruby-forum.com/u/jonzo)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 10:07am UTC](https://www.ruby-forum.com/t/before-filter-for-actionmailer/129159 "2008-02-15T10:07:06Z")

</div>

I’d like to execute some kind of before filter in my ActionMailer class… does anyone know how to do this? Specifically I let my users turn off email notifications, and I’d like to check their notification settings bef…

---

## [Updating model](https://www.ruby-forum.com/t/updating-model/129192)

<div class="topic-metadata">

**Author:** [@vishyanand](https://www.ruby-forum.com/u/vishyanand)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 10:05am UTC](https://www.ruby-forum.com/t/updating-model/129192 "2008-02-15T10:05:06Z")

</div>

I am following agile web development with rails.I faced some problems,as there are some changes related to default database and scaffolding.I was able to resolve these problems.My issue is this-i added a migration to …

---

## [How to make back button and bookmarks for rails](https://www.ruby-forum.com/t/how-to-make-back-button-and-bookmarks-for-rails/129185)

<div class="topic-metadata">

**Author:** [@balavrscse](https://www.ruby-forum.com/u/balavrscse)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 9:25am UTC](https://www.ruby-forum.com/t/how-to-make-back-button-and-bookmarks-for-rails/129185 "2008-02-15T09:25:46Z")

</div>

Hi to all, i am working in one application which is having full and full ajax request like link\_to\_remote,form\_remote\_tag,render\_component etc…mainly component oriented architecture,so if we click the back button on …

---

## [Will it automatically add index to forien\_keys?](https://www.ruby-forum.com/t/will-it-automatically-add-index-to-forien-keys/129189)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 9:11am UTC](https://www.ruby-forum.com/t/will-it-automatically-add-index-to-forien-keys/129189 "2008-02-15T09:11:26Z")

</div>

has\_may ,belongs\_to ,etc in those Model association ,will it automatically add index to forien\_keys ?

---

## [Mysql::Error: Lost connection to MySQL server during query](https://www.ruby-forum.com/t/mysql-lost-connection-to-mysql-server-during-query/129178)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 8:41am UTC](https://www.ruby-forum.com/t/mysql-lost-connection-to-mysql-server-during-query/129178 "2008-02-15T08:41:24Z")

</div>

Hi, I am getting this error on Rails 2.0.2 with MySql 5.0.27 on XP I thought it was a problem with the old mysql ruby drivers that was fixed using the win32 gem. But now it has come back when I upgraded to InstantRai…

---

## [Share-Nothing architecture](https://www.ruby-forum.com/t/share-nothing-architecture/129179)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 8:39am UTC](https://www.ruby-forum.com/t/share-nothing-architecture/129179 "2008-02-15T08:39:08Z")

</div>

In this forum, people are talking about share-nothing architecture. I don’t understand what this term means and how this improves the scalability

---

## [Text\_are\_tag without submit\_tag](https://www.ruby-forum.com/t/text-are-tag-without-submit-tag/129191)

<div class="topic-metadata">

**Author:** [@SySySy](https://www.ruby-forum.com/u/SySySy)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 7:54am UTC](https://www.ruby-forum.com/t/text-are-tag-without-submit-tag/129191 "2008-02-15T07:54:59Z")

</div>

Hi all, It must be simple stuff. I am trying to put an input text area that submits when a user presses Enter without a submit button and resets itself for a new input after Enter. \<% form\_remote\_tag (:url =\> {:actio…

---

## [Using plugin ssl\_requirement: generate SSL link](https://www.ruby-forum.com/t/using-plugin-ssl-requirement-generate-ssl-link/109308)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 6\
**Last updated:** [February 15, 2008, 5:55am UTC](https://www.ruby-forum.com/t/using-plugin-ssl-requirement-generate-ssl-link/109308 "2008-02-15T05:55:06Z")

</div>

Hi, I am using ssl\_requirement(http://dev.rubyonrails.org/svn/rails/plugins/ssl\_requirement/README) to set up SSL access requirement on actions in my controller. In my webapp’s home page, I provide a login panel for …

---

## [Why ROR?](https://www.ruby-forum.com/t/why-ror/128888)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 11\
**Last updated:** [February 15, 2008, 5:07am UTC](https://www.ruby-forum.com/t/why-ror/128888 "2008-02-15T05:07:50Z")

</div>

Can you share your thoughts on Why ROR for the web application development? The scaffolding is not effective enough. I think we cannot give high weightage for this. There are other advantages like active record model, …

---

## [Reading http request as IO in rails](https://www.ruby-forum.com/t/reading-http-request-as-io-in-rails/129135)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 4:49am UTC](https://www.ruby-forum.com/t/reading-http-request-as-io-in-rails/129135 "2008-02-15T04:49:51Z")

</div>

Hi, Here’s what i’m trying to do my mobile phone app ( j2me) tries to connect to the my rails application. the j2me app opens a java.io.OutputStream here’s the snippet hc = (HttpConnection) Connector.open(UPDATE\_URL, …

---

## [Validating to see if item can be destroyed](https://www.ruby-forum.com/t/validating-to-see-if-item-can-be-destroyed/129005)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 3:34am UTC](https://www.ruby-forum.com/t/validating-to-see-if-item-can-be-destroyed/129005 "2008-02-15T03:34:12Z")

</div>

Hey all. I think I flooded #rubyonrails too much I’m not getting replies anymore… hehe. Let’s say I have two models: Idea and IdeaImage. Idea has\_many :idea\_images and IdeaImage belongs\_to :idea. Here’s my question…

---

## [Storing URL in database -- h() or sanitize()?](https://www.ruby-forum.com/t/storing-url-in-database-h-or-sanitize/129071)

<div class="topic-metadata">

**Author:** [@namealreadytaken](https://www.ruby-forum.com/u/namealreadytaken)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 1:42am UTC](https://www.ruby-forum.com/t/storing-url-in-database-h-or-sanitize/129071 "2008-02-15T01:42:09Z")

</div>

Am I crazy? It seems only smart to escape fields before they’re put into the database if that is possible. If somebody injects SQL in their url or first name where better to escape it than in the model before\_save ? …

---

## [Migrate roll back](https://www.ruby-forum.com/t/migrate-roll-back/129140)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 2\
**Last updated:** [February 15, 2008, 1:12am UTC](https://www.ruby-forum.com/t/migrate-roll-back/129140 "2008-02-15T01:12:25Z")

</div>

Say I table called products with 001\_create\_products.rb Then say I add a column called price to product using a the migration 002\_add\_price.rb 002\_add\_price.rb class AddPrice \< ActiveRecord::Migration def self.up a…

---

## [Validation doesn't work (newbie in Rails)](https://www.ruby-forum.com/t/validation-doesnt-work-newbie-in-rails/129163)

<div class="topic-metadata">

**Author:** [@jrjuniorsp](https://www.ruby-forum.com/u/jrjuniorsp)\
**Replies:** 1\
**Last updated:** [February 15, 2008, 12:45am UTC](https://www.ruby-forum.com/t/validation-doesnt-work-newbie-in-rails/129163 "2008-02-15T00:45:25Z")

</div>

Hi guys, I am newbie in Rails world and I am using the Agile Web D. with Rails book to learn Rails. I am trying to create a simple example using validation, actually only one field on the User Interface and this fiel…

---

## [How can I dynamically create this form?](https://www.ruby-forum.com/t/how-can-i-dynamically-create-this-form/129143)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 15, 2008, 12:30am UTC](https://www.ruby-forum.com/t/how-can-i-dynamically-create-this-form/129143 "2008-02-15T00:30:45Z")

</div>

Hi, I have a model, ec\_order, with many of another model, ec\_line\_item. I have a page where users can dynamically add line items to their order. ===============Begin new.rhtml================== \<% form\_for :ec\_orde…

---

## [No protocol handler was valid? (Apache config problem)](https://www.ruby-forum.com/t/no-protocol-handler-was-valid-apache-config-problem/129161)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 0\
**Last updated:** [February 15, 2008, 12:18am UTC](https://www.ruby-forum.com/t/no-protocol-handler-was-valid-apache-config-problem/129161 "2008-02-15T00:18:57Z")

</div>

Well, I’m trying to get my first deploy up. I’m developing using 1- click against a legacy (SQL Server) database. Deployment is to RHEL 5. I am following the deployment recipes in the book. In particular, I copied…

---

## [Rails Web Site - Documentation page and Rails 2 Documentation](https://www.ruby-forum.com/t/rails-web-site-documentation-page-and-rails-2-documentation/129153)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 3\
**Last updated:** [February 14, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/rails-web-site-documentation-page-and-rails-2-documentation/129153 "2008-02-14T23:56:03Z")

</div>

I went to www.rubyonrails.org to see what documentation is around for rails 2. (I want to find out more about the main improvements.) I see the front page has been updated to reflect rails 2, but the documentation …

---

## [Testing date\_select](https://www.ruby-forum.com/t/testing-date-select/129155)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/testing-date-select/129155 "2008-02-14T23:09:09Z")

</div>

I’m trying to write a functional test for a POST with a date\_select. The date\_select outputs html like this: Which makes setting the params for the POST cumbersome. Is there an easy way to set the params for the POS…

---

## [PLEASE BAN zizo FROM POSTING HERE](https://www.ruby-forum.com/t/please-ban-zizo-from-posting-here/129066)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 6\
**Last updated:** [February 14, 2008, 11:06pm UTC](https://www.ruby-forum.com/t/please-ban-zizo-from-posting-here/129066 "2008-02-14T23:06:35Z")

</div>

PLEASE!! I’m tired of all his p0rn bs

---

## [Link\_to ---- articles detail - basic help](https://www.ruby-forum.com/t/link-to-articles-detail-basic-help/129062)

<div class="topic-metadata">

**Author:** [@liam](https://www.ruby-forum.com/u/liam)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/link-to-articles-detail-basic-help/129062 "2008-02-14T21:03:17Z")

</div>

I have a basic blog with images - and in the index.rhtml view file I have the following: \<% @contents.each do |content| -%\> \<%= content.title %\> \<%= content.summary %\> \<%= link\_to image\_tag(content.image.publi…

---

## [Date Picker](https://www.ruby-forum.com/t/date-picker/129057)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/date-picker/129057 "2008-02-14T20:55:36Z")

</div>

Hi, Can someone suggest a good implementation for the calendar date picker dialog. We have been using the DHTML Calendar till now but that is not working well. When we have a scroll bar inside the page, then the cale…

---

## [How to create project with prior version of Rails](https://www.ruby-forum.com/t/how-to-create-project-with-prior-version-of-rails/125316)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 6\
**Last updated:** [February 14, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/how-to-create-project-with-prior-version-of-rails/125316 "2008-02-14T20:43:15Z")

</div>

Hi and Thanks in advance I have 2.02 installed on my machine but I need to create a 1.25 project. If I create the project, it is a 2.02 app and when I do: svn export http://dev.rubyonrails.org/svn/rails/tags/rel\_1-2-5 …

---

## [On model update attribute](https://www.ruby-forum.com/t/on-model-update-attribute/129047)

<div class="topic-metadata">

**Author:** [@KTU](https://www.ruby-forum.com/u/KTU)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/on-model-update-attribute/129047 "2008-02-14T20:29:26Z")

</div>

Hi any idea why on model this wont work: class User \< ActiveRecord::Base def approve User.find(params\[:id\]).update\_attribute(‘status’,“1”) end end now I have controller with approve action and I see from the log t…

---

## [HABTM question or :through association](https://www.ruby-forum.com/t/habtm-question-or-through-association/129141)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 1\
**Last updated:** [February 14, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/habtm-question-or-through-association/129141 "2008-02-14T20:23:29Z")

</div>

Okay, we’ll I’ve been working on this crazy fun project (lol, maybe fun when we’re done). We’re working on a registration system for conventions \[and sadly, not even getting paid :frowning: \], so I want to ensure that…

---

## [Scaffold problem](https://www.ruby-forum.com/t/scaffold-problem/129127)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 1\
**Last updated:** [February 14, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/scaffold-problem/129127 "2008-02-14T20:19:57Z")

</div>

Hi, please see: http://railsforum.com/viewtopic.php?pid=54030#p54030

---

## [How do I access this parameter?](https://www.ruby-forum.com/t/how-do-i-access-this-parameter/129130)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 8:15pm UTC](https://www.ruby-forum.com/t/how-do-i-access-this-parameter/129130 "2008-02-14T20:15:14Z")

</div>

Hi, I have a form for creating users … \<% form\_tag ‘userconfirm’ do -%\> Username \<%= text\_field 'user', 'login' %\> Password \<%= password\_field 'user', 'password' %\> Confirm Password \<%= password\_field 'user', …

---

## [Guidelines to developing with scaling in mind](https://www.ruby-forum.com/t/guidelines-to-developing-with-scaling-in-mind/128586)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 14, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/guidelines-to-developing-with-scaling-in-mind/128586 "2008-02-14T19:48:03Z")

</div>

I’ve been reading a lot about how many larger sites are failing due to the scaling issues RoR has out of the box. I was looking at the well known Twitter problems, even that somewhat comical slideshow they put up. P…

---

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

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 0\
**Last updated:** [February 14, 2008, 7:06pm UTC](https://www.ruby-forum.com/t/has-many-with-through-question/129137 "2008-02-14T19:06:35Z")

</div>

This is my first independent RoR project after working with recipes from some cool books that I’ve been reading… Background: I’m building an app that could potentially useful to college students. The idea is that betw…

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

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