# Rails

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

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

---

## [Problem with http -\> https redirect](https://www.ruby-forum.com/t/problem-with-http-https-redirect/107083)

<div class="topic-metadata">

**Author:** [@charlie\_caroff](https://www.ruby-forum.com/u/charlie_caroff)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/problem-with-http-https-redirect/107083 "2007-06-18T18:05:32Z")

</div>

Hi, I have ssl working on my server. When I set all my views to ssl\_allowed in my controller, I can switch the http to https in my address line, and every page works right. But when I set all my views to ssl\_require…

---

## [Dynamic parameters in link\_to](https://www.ruby-forum.com/t/dynamic-parameters-in-link-to/107135)

<div class="topic-metadata">

**Author:** [@gattox](https://www.ruby-forum.com/u/gattox)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/dynamic-parameters-in-link-to/107135 "2007-06-18T17:49:26Z")

</div>

Don’t know how to use a link\_to directive where one of the parameters is taken form a form field (client side), eg: … The field “numrows” is used to dynamically change the number of rows per page in a pager (ok, let…

---

## [Simply\_helpful, where has it gone?](https://www.ruby-forum.com/t/simply-helpful-where-has-it-gone/106451)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 6\
**Last updated:** [June 18, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/simply-helpful-where-has-it-gone/106451 "2007-06-18T17:38:25Z")

</div>

Anyone know wahts happened to the simply\_helpful plugin? doesnt seem to be in its usual svn location? http://dev.rubyonrails.org/svn/rails/plugins/simply\_helpful/

---

## [How can I use form fields in link\_to parameters?](https://www.ruby-forum.com/t/how-can-i-use-form-fields-in-link-to-parameters/107146)

<div class="topic-metadata">

**Author:** [@gattox](https://www.ruby-forum.com/u/gattox)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/how-can-i-use-form-fields-in-link-to-parameters/107146 "2007-06-18T17:27:22Z")

</div>

Don’t know how to use a link\_to directive where one of the parameters is taken form a form field (client side), eg: … The field “numrows” is used to dynamically change the number of rows per page in a pager (ok, le…

---

## [One App, two REST questions - Nested Ressources, meaningful](https://www.ruby-forum.com/t/one-app-two-rest-questions-nested-ressources-meaningful/107068)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 5\
**Last updated:** [June 18, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/one-app-two-rest-questions-nested-ressources-meaningful/107068 "2007-06-18T16:39:16Z")

</div>

Hi everybody, Thank you for reading this, may you can help me out here, because I looked at many ressources and didn’t find a solution yet. Thank you very much regards Rafael First question I have a two model app: …

---

## [Best practice for fragment caching a dynamic listing?](https://www.ruby-forum.com/t/best-practice-for-fragment-caching-a-dynamic-listing/107097)

<div class="topic-metadata">

**Author:** [@openmind](https://www.ruby-forum.com/u/openmind)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/best-practice-for-fragment-caching-a-dynamic-listing/107097 "2007-06-18T16:37:48Z")

</div>

Hi, I’m new to fragment caching, and was wondering the best way to do it for a dynamically generated page. I have been working off of the “Agile Web Development with Rails” book, but it’s rather brief on fragment cac…

---

## [\[ANN\] acts\_as\_solr v.0.9 has been released](https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-9-has-been-released/107149)

<div class="topic-metadata">

**Author:** [@Thiago\_J](https://www.ruby-forum.com/u/Thiago_J)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-9-has-been-released/107149 "2007-06-18T16:23:15Z")

</div>

It’s with great pleasure that I announce this great milestone for the acts\_as\_solr plugin. Thanks to all who contributed with ideas, patches, etc. ========= About ========= This plugin adds full text search capabilit…

---

## [Login pre-filter and post data problems](https://www.ruby-forum.com/t/login-pre-filter-and-post-data-problems/107144)

<div class="topic-metadata">

**Author:** [@Spacen\_Jasset](https://www.ruby-forum.com/u/Spacen_Jasset)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/login-pre-filter-and-post-data-problems/107144 "2007-06-18T16:15:14Z")

</div>

Hello Folks, I am trying to use a standard sort of login controller, whereby you put a pre-filter on the pages on which you want the user to have to login. This is all well an good, except for one thing. Here is some …

---

## [Polymorphic validation](https://www.ruby-forum.com/t/polymorphic-validation/107141)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:49pm UTC](https://www.ruby-forum.com/t/polymorphic-validation/107141 "2007-06-18T15:49:40Z")

</div>

Hello I have 2 models. link.rb has\_many :categories, :as =\> :categorized validates\_presence\_of :name, :url, :created\_at, :category category.rb belongs\_to :categorized, :polymorphic =\> true validates\_presence\_of :…

---

## [Polymorphic validation](https://www.ruby-forum.com/t/polymorphic-validation/107140)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/polymorphic-validation/107140 "2007-06-18T15:48:30Z")

</div>

Hello I have 2 models. link.rb has\_many :categories, :as =\> :categorized validates\_presence\_of :name, :url, :created\_at, :category category.rb belongs\_to :categorized, :polymorphic =\> true validates\_presence\_of :…

---

## [Problem with belongs\_to associations validating associated c](https://www.ruby-forum.com/t/problem-with-belongs-to-associations-validating-associated-c/107139)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:35pm UTC](https://www.ruby-forum.com/t/problem-with-belongs-to-associations-validating-associated-c/107139 "2007-06-18T15:35:08Z")

</div>

Hi all, I’m using rails version 1.2.3. I have the following association in my View class belongs\_to :viewer, :class\_name =\> ‘User’, :foreign\_key =\> :viewer\_id And of course i have a User model class defined to. The …

---

## [Rails basic record locking](https://www.ruby-forum.com/t/rails-basic-record-locking/107136)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/rails-basic-record-locking/107136 "2007-06-18T15:26:22Z")

</div>

…i’m a rails newbie…and before i get into rails whole hog… is rails capable of sensing that a main record is locked out by some one else and can it also sense a ‘race’ condition or ‘multi-record interlocking condition…

---

## [How does google do the "did you mean...."?](https://www.ruby-forum.com/t/how-does-google-do-the-did-you-mean/107101)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 6\
**Last updated:** [June 18, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/how-does-google-do-the-did-you-mean/107101 "2007-06-18T15:17:06Z")

</div>

I have a search on my website that search names, so I know all of the values they could enter. How do I do something like google where if I type jonson it would say “did you mean johnson”? Any ideas? Thanks.

---

## [Actionmailer & picture](https://www.ruby-forum.com/t/actionmailer-picture/107077)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/actionmailer-picture/107077 "2007-06-18T15:09:51Z")

</div>

Hello I’m using action mailer to create an HMTL outbound email. This email renders a partial. In that partial, a call is made to a public location to get a picture for display in the email. When this email is gener…

---

## [Remote call issues](https://www.ruby-forum.com/t/remote-call-issues/107134)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/remote-call-issues/107134 "2007-06-18T15:08:13Z")

</div>

Hello: I have a remote call i’m making in a search feature that’s on a page with another form. Off to the side, this remote form performs the search and returns the results. Problem is that if the user enters anothe…

---

## [Named routine alternative to redirect\_to](https://www.ruby-forum.com/t/named-routine-alternative-to-redirect-to/107132)

<div class="topic-metadata">

**Author:** [@andreim](https://www.ruby-forum.com/u/andreim)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 2:21pm UTC](https://www.ruby-forum.com/t/named-routine-alternative-to-redirect-to/107132 "2007-06-18T14:21:53Z")

</div>

according to Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. redirect\_to is deprecated. My logs say th…

---

## [How to test "content\_for" chunks with functional tests?](https://www.ruby-forum.com/t/how-to-test-content-for-chunks-with-functional-tests/107124)

<div class="topic-metadata">

**Author:** [@Null\_Null\_Dev](https://www.ruby-forum.com/u/Null_Null_Dev)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 12:43pm UTC](https://www.ruby-forum.com/t/how-to-test-content-for-chunks-with-functional-tests/107124 "2007-06-18T12:43:43Z")

</div>

Basically, we have an application layout that demands some content for, e.g. the sidebar… during functional testing, we want to assert that our views properly provide this content. Example: application.rhtml has stu…

---

## [HTML embed tag and rails](https://www.ruby-forum.com/t/html-embed-tag-and-rails/107092)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 4\
**Last updated:** [June 18, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/html-embed-tag-and-rails/107092 "2007-06-18T12:42:59Z")

</div>

I have an embeded pluggin that I must use inside my RoR app. We have set up an application.rhtml page that renders the top, side menu and center of the application for every page via DIV’s. This works great. The prob…

---

## [Apostophe error](https://www.ruby-forum.com/t/apostophe-error/107118)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/apostophe-error/107118 "2007-06-18T12:02:33Z")

</div>

Hello, I received the following error when updating a field in an activerecord which contains an apostrophe “’” ActiveRecord::StatementInvalid (DBI::DatabaseError: Execute OLE error code:80040E14 in Microsoft OLE DB …

---

## [Iterate through activerecords](https://www.ruby-forum.com/t/iterate-through-activerecords/107114)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 2\
**Last updated:** [June 18, 2007, 11:58am UTC](https://www.ruby-forum.com/t/iterate-through-activerecords/107114 "2007-06-18T11:58:33Z")

</div>

Hello, I am a Rails newbie and I have problems to iterate through a list of records. pseudo code. def do something @userlist = User.find(:all) @userlist.each {|item| item.calculate\_stats item.save} end Ther probl…

---

## [Apache/mongrelcluster config for multi (unrelated) sites on](https://www.ruby-forum.com/t/apache-mongrelcluster-config-for-multi-unrelated-sites-on/107112)

<div class="topic-metadata">

**Author:** [@mjt](https://www.ruby-forum.com/u/mjt)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 10:12am UTC](https://www.ruby-forum.com/t/apache-mongrelcluster-config-for-multi-unrelated-sites-on/107112 "2007-06-18T10:12:16Z")

</div>

Hi all, I am attempting to setup two disparate sites on a single in-house host. I have the first one up and going OK and dont want to bend it while bringing up a second. Is this apache / mongrel config appropriate ?…

---

## [Columns in HTML emails?](https://www.ruby-forum.com/t/columns-in-html-emails/107080)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 9:44am UTC](https://www.ruby-forum.com/t/columns-in-html-emails/107080 "2007-06-18T09:44:09Z")

</div>

Hi: I’m including a simple table in my html email - but the columns aren’t working on delivery. Does anyone know why this might be the case or have suggestions? Here’s the email: \<%= stylesheet\_link\_tag ‘standard’ %\>…

---

## [ActiveRecord not destroying dependent records](https://www.ruby-forum.com/t/activerecord-not-destroying-dependent-records/104787)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [June 18, 2007, 8:26am UTC](https://www.ruby-forum.com/t/activerecord-not-destroying-dependent-records/104787 "2007-06-18T08:26:25Z")

</div>

Hi I have a really simple and straight forward scenario. A User model holds users. Each user can have several Feed Subscriptions. I want the feed subscriptions to be destroyed alongside the user when destroying a use…

---

## [Passing parameters from Ruby to JS. Please Help](https://www.ruby-forum.com/t/passing-parameters-from-ruby-to-js-please-help/107109)

<div class="topic-metadata">

**Author:** [@Anton\_Kalachev](https://www.ruby-forum.com/u/Anton_Kalachev)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 8:19am UTC](https://www.ruby-forum.com/t/passing-parameters-from-ruby-to-js-please-help/107109 "2007-06-18T08:19:05Z")

</div>

Hi, I am using Ext Grid to draw a table. show.rhtml page allows to access account data so the url look like http://\<server\_name\>/\<project\_name\>/show/1, where 1 is an account id. show.rhtml has the following code: \<%…

---

## [Test](https://www.ruby-forum.com/t/test/107054)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 6:44am UTC](https://www.ruby-forum.com/t/test/107054 "2007-06-18T06:44:57Z")

</div>

on the advice at gmane.discuss, a test message. -Thufir

---

## [Is something up with edge?](https://www.ruby-forum.com/t/is-something-up-with-edge/104527)

<div class="topic-metadata">

**Author:** [@craig\_fellows](https://www.ruby-forum.com/u/craig_fellows)\
**Replies:** 5\
**Last updated:** [June 18, 2007, 6:43am UTC](https://www.ruby-forum.com/t/is-something-up-with-edge/104527 "2007-06-18T06:43:57Z")

</div>

Hello, I’ve created a new rails app & could start mongrel happily. I then upgraded to edge, tried to start the server & received the following error. C:\\Transfer\\websites\\rails\\test\>ruby script\\server =\> Booting Mon…

---

## [Gmane test](https://www.ruby-forum.com/t/gmane-test/107058)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 6:41am UTC](https://www.ruby-forum.com/t/gmane-test/107058 "2007-06-18T06:41:57Z")

</div>

test, per advice at gmane.discuss.

---

## [Re: attachment\_fu File System Storage Change - Update?](https://www.ruby-forum.com/t/re-attachment-fu-file-system-storage-change-update/91512)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 18, 2007, 5:33am UTC](https://www.ruby-forum.com/t/re-attachment-fu-file-system-storage-change-update/91512 "2007-06-18T05:33:51Z")

</div>

Rick, Thanks a ton for this. I just realized this response was sitting in my spam folder and I’ve since re-sent the question to the list so please ignore those. Whoops. This looks good - I will give it a go. Thanks …

---

## [\[ANN\] Phoenix Rails Users Group](https://www.ruby-forum.com/t/ann-phoenix-rails-users-group/107099)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [June 18, 2007, 4:37am UTC](https://www.ruby-forum.com/t/ann-phoenix-rails-users-group/107099 "2007-06-18T04:37:46Z")

</div>

What: June Phoenix Rails Users Group When: Tuesday, June 19th, 6:30 pm - 9pm Where: Office of Integrum Technologies 290 East El Prado Court, Chandler, AZ (north-east of Arizona and Warner) Topic: Overview of al…

---

## [Join, then view data](https://www.ruby-forum.com/t/join-then-view-data/107036)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 7\
**Last updated:** [June 18, 2007, 3:32am UTC](https://www.ruby-forum.com/t/join-then-view-data/107036 "2007-06-18T03:32:40Z")

</div>

I am working on my first real RoR project and have a simple question (I think it is anyway). I have three tables: schools events event\_types I think I have the joins down with belongs\_to, but how do I actually go …

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

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