# Rails

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

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

---

## [Error on belongs\_to method](https://www.ruby-forum.com/t/error-on-belongs-to-method/132019)

<div class="topic-metadata">

**Author:** [@shygoly](https://www.ruby-forum.com/u/shygoly)\
**Replies:** 1\
**Last updated:** [March 15, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/error-on-belongs-to-method/132019 "2008-03-15T14:07:53Z")

</div>

I followed the Ruby on Rails up and running book published by Orielly. there are three DB tables, photo, slideshow, and slide the Slide class in slide.rb is like this: class Slide \< ActiveRecord::Base belongs\_to :pho…

---

## ["public", how to remove it? + htaccess question. Help Please](https://www.ruby-forum.com/t/public-how-to-remove-it-htaccess-question-help-please/130507)

<div class="topic-metadata">

**Author:** [@xdmx](https://www.ruby-forum.com/u/xdmx)\
**Replies:** 12\
**Last updated:** [March 15, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/public-how-to-remove-it-htaccess-question-help-please/130507 "2008-03-15T13:28:33Z")

</div>

Hi, i’ve a little app which is working without problems, but i’ve a little annoyance. I’m using the cool rest methods, like users\_url, but when i do this the result is www.domain.com/public/users, how can i remove the…

---

## [How to define HTTP header for cached pages in public dir](https://www.ruby-forum.com/t/how-to-define-http-header-for-cached-pages-in-public-dir/132014)

<div class="topic-metadata">

**Author:** [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Replies:** 0\
**Last updated:** [March 15, 2008, 10:24am UTC](https://www.ruby-forum.com/t/how-to-define-http-header-for-cached-pages-in-public-dir/132014 "2008-03-15T10:24:57Z")

</div>

I want it to be Content-Type: text/html; charset=utf8 now it is just Content-Type: text/html; I know, that it is possible to make Apache (lighttpd,…) responsible for files in public dir. But sometimes in different…

---

## [In\_place\_editor with resful routes](https://www.ruby-forum.com/t/in-place-editor-with-resful-routes/83166)

<div class="topic-metadata">

**Author:** [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Replies:** 8\
**Last updated:** [March 15, 2008, 9:48am UTC](https://www.ruby-forum.com/t/in-place-editor-with-resful-routes/83166 "2008-03-15T09:48:21Z")

</div>

Im trying to implement an inline editor for table data. The problem ok is pressed and no route can be found. Im attempted to send the result to the update controller method so put tracks/3 eg named route track\_path(id…

---

## [URL faking with nested resources](https://www.ruby-forum.com/t/url-faking-with-nested-resources/132012)

<div class="topic-metadata">

**Author:** [@Mike\_Y](https://www.ruby-forum.com/u/Mike_Y)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 9:10am UTC](https://www.ruby-forum.com/t/url-faking-with-nested-resources/132012 "2008-03-15T09:10:14Z")

</div>

I’ve created a three tiered nested resource tree as defined below. My problem is that it’s easy for a user to fake the URL and pull image records from another users account since there is no check to see if the image…

---

## [Graphical Designer Tool for ActiveRecord....?](https://www.ruby-forum.com/t/graphical-designer-tool-for-activerecord/132013)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 0\
**Last updated:** [March 15, 2008, 7:53am UTC](https://www.ruby-forum.com/t/graphical-designer-tool-for-activerecord/132013 "2008-03-15T07:53:54Z")

</div>

Hi, Just wanted to confirm, if there is any graphical designer tool available for Active Record…? Currently there is SQL Designer tool available for LINQ 2 SQL on .Net 3.5. Just wanted to confirm if there is any pro…

---

## [Rails and flashplayer](https://www.ruby-forum.com/t/rails-and-flashplayer/132007)

<div class="topic-metadata">

**Author:** [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Replies:** 0\
**Last updated:** [March 15, 2008, 6:02am UTC](https://www.ruby-forum.com/t/rails-and-flashplayer/132007 "2008-03-15T06:02:06Z")

</div>

hi,guys.i want know does rails can do whith .swf ?

---

## [Simple Problem](https://www.ruby-forum.com/t/simple-problem/131987)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 4\
**Last updated:** [March 15, 2008, 5:17am UTC](https://www.ruby-forum.com/t/simple-problem/131987 "2008-03-15T05:17:34Z")

</div>

Hello there, I have what I think is a simple problem that I was hoping someone could help me with. I have an application that keeps track of many restaurants. Each restaurant has many user reviews associated with it. …

---

## [Viewing HTML E-Mails](https://www.ruby-forum.com/t/viewing-html-e-mails/132000)

<div class="topic-metadata">

**Author:** [@jordanisip](https://www.ruby-forum.com/u/jordanisip)\
**Replies:** 1\
**Last updated:** [March 15, 2008, 1:11am UTC](https://www.ruby-forum.com/t/viewing-html-e-mails/132000 "2008-03-15T01:11:25Z")

</div>

Hi All, Quick question, Is it possible to view ActionMailer HTML e-mails in a browser? Or somehow view them without having to actually send out an email? Thanks in advance! Jordan

---

## [Belongs\_to has\_many newbie question](https://www.ruby-forum.com/t/belongs-to-has-many-newbie-question/131882)

<div class="topic-metadata">

**Author:** [@Dankinit](https://www.ruby-forum.com/u/Dankinit)\
**Replies:** 2\
**Last updated:** [March 15, 2008, 1:04am UTC](https://www.ruby-forum.com/t/belongs-to-has-many-newbie-question/131882 "2008-03-15T01:04:57Z")

</div>

I’ve searched alot tonight for this answer, it must be out there, so thanks for any help. I have a simple setup like so: LIST has\_many :list\_items has\_many :business, :through =\> :list\_items LIST\_ITEM belongs\_to :…

---

## [Production mode and mysql library question](https://www.ruby-forum.com/t/production-mode-and-mysql-library-question/124001)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 7\
**Last updated:** [March 15, 2008, 12:52am UTC](https://www.ruby-forum.com/t/production-mode-and-mysql-library-question/124001 "2008-03-15T00:52:52Z")

</div>

I just put one application in production mode to see if everything works fine. I runs on a Debian/Etch machine: gems: actionmailer (2.0.2) actionpack (2.0.2) activerecord (2.0.2) activeresource (2.0.2) activesupp…

---

## [Probelm with partials](https://www.ruby-forum.com/t/probelm-with-partials/131969)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/probelm-with-partials/131969 "2008-03-14T23:55:14Z")

</div>

I have this in my view: New client \<%= error\_messages\_for :client %\> \<%= error\_messages\_for :entity %\> \<% form\_for(@client) do |f| %\> \<% render :partial =\> “entities/entity\_fields\_for”, :object =\> “@entity” %\> …

---

## [ActionController \<-\> ActiveView code access ambiguity](https://www.ruby-forum.com/t/actioncontroller-activeview-code-access-ambiguity/131985)

<div class="topic-metadata">

**Author:** [@sinm](https://www.ruby-forum.com/u/sinm)\
**Replies:** 3\
**Last updated:** [March 14, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/actioncontroller-activeview-code-access-ambiguity/131985 "2008-03-14T23:38:46Z")

</div>

Hi All! This is not a problem in general but i’ve just missed the point. If my application has a global state, which i have to use both throughout ActionController and ActiveView, then, where to place that state? E.…

---

## [Rails App freezes when accessed](https://www.ruby-forum.com/t/rails-app-freezes-when-accessed/131980)

<div class="topic-metadata">

**Author:** [@Jason\_Kusar](https://www.ruby-forum.com/u/Jason_Kusar)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/rails-app-freezes-when-accessed/131980 "2008-03-14T23:33:28Z")

</div>

Hi All, I just had this problem come up today and so far I’m stumped. This morning, my mongrels were all completely unresponsive. I had to kill -9 them to get them to go away. I restarted them, but the first time …

---

## [Example using uncached](https://www.ruby-forum.com/t/example-using-uncached/131999)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/example-using-uncached/131999 "2008-03-14T23:29:55Z")

</div>

I am inserting rows into a MS SQL Server table from a Rails 2.0 application. However, when ActiveRecord issues a “SELECT @@IDENTITY AS Ident” after each insert, it only ever returns the values of the initial SELECT. …

---

## [Rails 2 scaffolding: establishing the field list](https://www.ruby-forum.com/t/rails-2-scaffolding-establishing-the-field-list/130975)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 21\
**Last updated:** [March 14, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/rails-2-scaffolding-establishing-the-field-list/130975 "2008-03-14T23:24:38Z")

</div>

Hey All, Is there a way to get the scaffold generator in rails v2.0.2 to read field names out of an existing table? I get that you can list them off on the command line when you generate the scaffold, and get the wh…

---

## [Good Collection of Important Websites\[My First Post\]](https://www.ruby-forum.com/t/good-collection-of-important-websites-my-first-post/131997)

<div class="topic-metadata">

**Author:** [@Sonia](https://www.ruby-forum.com/u/Sonia)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/good-collection-of-important-websites-my-first-post/131997 "2008-03-14T23:04:41Z")

</div>

Dear Friends, This is my first post in the group, so would like to Introduce myself as Sonia, and also would like to share something nice with all of you below as a symbol of Good Will. Here is a new website from Ra…

---

## [Random strings](https://www.ruby-forum.com/t/random-strings/131972)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/random-strings/131972 "2008-03-14T22:58:14Z")

</div>

I would like to know how to obtain random string of 8 characters, and if it possible, obtaining readable strings. For example, I would like to obtain strings like “chocoles” and not string like “akgudyfn”

---

## [HABTM and Fixtures](https://www.ruby-forum.com/t/habtm-and-fixtures/131962)

<div class="topic-metadata">

**Author:** [@Backov](https://www.ruby-forum.com/u/Backov)\
**Replies:** 7\
**Last updated:** [March 14, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/habtm-and-fixtures/131962 "2008-03-14T22:32:18Z")

</div>

First off, I’ve done some googling and read some very informative stuff, but I’m having an issue and I can’t figure out what I’m doing wrong. I’ve got it working with one model, but the other one is choking… Here’s th…

---

## [Newbie Session Discussion: Expiration and Clean Up NO CRONS](https://www.ruby-forum.com/t/newbie-session-discussion-expiration-and-clean-up-no-crons/131839)

<div class="topic-metadata">

**Author:** [@Baz](https://www.ruby-forum.com/u/Baz)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/newbie-session-discussion-expiration-and-clean-up-no-crons/131839 "2008-03-14T22:22:55Z")

</div>

Please forgive this discussion, but I’m not sure where to find what I’m looking for. I’m coming for a PHP background, where I’ve only ever used sessions for very simple storage (serializing when I need a lil’ more st…

---

## [Inline file upload error: undefined method \`size='](https://www.ruby-forum.com/t/inline-file-upload-error-undefined-method-size/131992)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/inline-file-upload-error-undefined-method-size/131992 "2008-03-14T22:11:41Z")

</div>

Hello, I followed the tutorial at: http://khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment\_fu-and-responds\_to\_parent However, in my controller I am getting the error: NoMethodError (undefi…

---

## [MySQL IN clause for an array of strings](https://www.ruby-forum.com/t/mysql-in-clause-for-an-array-of-strings/131984)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/mysql-in-clause-for-an-array-of-strings/131984 "2008-03-14T22:11:06Z")

</div>

I’m trying (for the first time) to build an IN clause from an array of strings and getting an error using MySQL as the DB… Here’s the code I’m using to build the clause: zips\_clause = '' user.get\_zipcodes.each {|z| …

---

## [Override AR default attribute accessors](https://www.ruby-forum.com/t/override-ar-default-attribute-accessors/131989)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/override-ar-default-attribute-accessors/131989 "2008-03-14T21:56:24Z")

</div>

anybody know how one overrides the default AR attribute methods? ex. c = Group c.id =\> 3.0 c.id.to\_i =\> 3 reason is, I’m using Firebird DB which some tables return decimals for id, I’d like to override that…

---

## [Getting value from session - syntax help](https://www.ruby-forum.com/t/getting-value-from-session-syntax-help/131814)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 6\
**Last updated:** [March 14, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/getting-value-from-session-syntax-help/131814 "2008-03-14T21:27:54Z")

</div>

Hi, I’m trying to make a rails app and although I understand the logic of what I’m trying to do, the syntax used in ruby really confuses me as it seems to do a lot of the work automatically. I have 3 tables, user, for…

---

## [Backup strategy for frequently changing database](https://www.ruby-forum.com/t/backup-strategy-for-frequently-changing-database/131963)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 3\
**Last updated:** [March 14, 2008, 9:21pm UTC](https://www.ruby-forum.com/t/backup-strategy-for-frequently-changing-database/131963 "2008-03-14T21:21:51Z")

</div>

I’m curious about how others are backing up their databases, especially when it contains frequently changing information, such as a list of orders and line items from an ecommerce site. Right now, I’m backing up my my…

---

## [How do I get a older version of restful\_authentication](https://www.ruby-forum.com/t/how-do-i-get-a-older-version-of-restful-authentication/131981)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/how-do-i-get-a-older-version-of-restful-authentication/131981 "2008-03-14T21:19:40Z")

</div>

I’m currently running rails 1.2.6 and I’ve got the new restful\_authentication running, unfortunately, the new version of the plugin does not support the older rails very well. how can I get an older version of restful…

---

## [Remote\_function :with parameters from other form fields](https://www.ruby-forum.com/t/remote-function-with-parameters-from-other-form-fields/131624)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [March 14, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/remote-function-with-parameters-from-other-form-fields/131624 "2008-03-14T20:59:02Z")

</div>

I’m building a form where I have a set of radio buttons. When any of these are selected I make an AJAX call that needs some values from other fields in the form, but I’m having problems getting those values and maybe …

---

## [Attachment\_fu and public\_filename](https://www.ruby-forum.com/t/attachment-fu-and-public-filename/131976)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 14, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-public-filename/131976 "2008-03-14T20:57:52Z")

</div>

Hey all , I’ve been using attachment\_fu for a while now and I love it, but recently I’ve been expanding and I have a setup on 2 servers, the first one is the application server and the second is the picture host. So I…

---

## [FYI: object\_transactions plugin requires Transaction::Simple](https://www.ruby-forum.com/t/fyi-object-transactions-plugin-requires-transaction-simple/131979)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/fyi-object-transactions-plugin-requires-transaction-simple/131979 "2008-03-14T20:55:10Z")

</div>

All, If you pull in the object\_transactions plugin described here (http://ryandaigle.com/articles/2007/3/20/what-s-new-in-edge-rails-object-transactions-are-out), it needs the transaction-simple gem, which can be inst…

---

## [Last version from NERO program \* NERO 8 \*](https://www.ruby-forum.com/t/last-version-from-nero-program-nero-8/131978)

<div class="topic-metadata">

**Author:** [@www.bramjnet1.com](https://www.ruby-forum.com/u/www.bramjnet1.com)\
**Replies:** 0\
**Last updated:** [March 14, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/last-version-from-nero-program-nero-8/131978 "2008-03-14T20:52:34Z")

</div>

THE LINK http://www.bramjnet1.com/Default.aspx Nero 8 brings a world of digital opportunities to your PC. The award- winning suite lets you organize your multimedia projects easily, helping you get the most from your…

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

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