# Rails

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

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

---

## [Https going back to http after forms -- why?](https://www.ruby-forum.com/t/https-going-back-to-http-after-forms-why/120819)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/https-going-back-to-http-after-forms-why/120819 "2007-12-06T20:28:22Z")

</div>

Yello, When people login to my site, they are redirected to https://mysite.org/their\_account That part is working fine for me. The problem comes when I use form\_tags. After they click the submit button, the next …

---

## [Partial Static Site](https://www.ruby-forum.com/t/partial-static-site/121670)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/partial-static-site/121670 "2007-12-06T19:42:39Z")

</div>

I’m developing a site compound by a static part and a dynamic one. I still use things like “link\_to(…)”, etc in the static part within rhtml files. In the static part, I don’t have the notion of controller and model. …

---

## [\[OT\] Minus\_mor not working](https://www.ruby-forum.com/t/ot-minus-mor-not-working/103890)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:37pm UTC](https://www.ruby-forum.com/t/ot-minus-mor-not-working/103890 "2007-12-06T19:37:16Z")

</div>

Hi If anyone has experience with minus\_mor, I would love some insights into this. I’ve just installed the pluing, and when I go to access my page I get ArgumentError (ActionView is not missing constant ActionViewErro…

---

## [Encryption Modulus and Exponent](https://www.ruby-forum.com/t/encryption-modulus-and-exponent/122340)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 7:24pm UTC](https://www.ruby-forum.com/t/encryption-modulus-and-exponent/122340 "2007-12-06T19:24:11Z")

</div>

Is there a way to get the modulus and exponent from an key, or is there a way to get that information as it is being encrypted? I am using the OpenSSL::PKey::RSA library to encrypt my data. Thanks, -S

---

## [Paranoid ar\_mailer](https://www.ruby-forum.com/t/paranoid-ar-mailer/122339)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/paranoid-ar-mailer/122339 "2007-12-06T19:22:08Z")

</div>

Hi I am using ar\_,ailer and I love it. I am wondering though. Is there a way that it can be configured to not delete the emails, but rather just mark them as sent. We have a backgroundrb process that will be sending…

---

## [Can this be written cleaner?](https://www.ruby-forum.com/t/can-this-be-written-cleaner/121745)

<div class="topic-metadata">

**Author:** [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Replies:** 4\
**Last updated:** [December 6, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/can-this-be-written-cleaner/121745 "2007-12-06T17:59:23Z")

</div>

i brute force this, is there a cleaner way\>?? @friend\_ids = Favorite.find(:all, :conditions =\> \[“user\_id = (#{current\_user.id}) and favorable\_type = ‘User’”\]) @friend\_blogs = Array.new @friend\_ids.each do |x| @frien…

---

## [Number\_to\_currency](https://www.ruby-forum.com/t/number-to-currency/122304)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/number-to-currency/122304 "2007-12-06T17:38:07Z")

</div>

I am using the number to currency function because i live in the uk and the company want me to only show values of the pound of course.I have created all my application using ruby script/generate scaffold\_resource… I …

---

## [Reverse openid authentication](https://www.ruby-forum.com/t/reverse-openid-authentication/122327)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/reverse-openid-authentication/122327 "2007-12-06T17:37:35Z")

</div>

i have been working on an app just for managing users for all of the other internal apps. to keep all of the usernames and passwords the same across all of the apps, i used open id and built a server with a few custom…

---

## [Rails Newbie--where do I configure webrick to start using ssl certs/https?](https://www.ruby-forum.com/t/rails-newbie-where-do-i-configure-webrick-to-start-using-ssl-certs-https/122325)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/rails-newbie-where-do-i-configure-webrick-to-start-using-ssl-certs-https/122325 "2007-12-06T17:15:14Z")

</div>

Hello all- Though I’ve got eons of java dev experience, I’m a fresh RoR noob with a server configuration question. Because it has to be tied into a single sign on solution(that uses secure cookies), an application th…

---

## [Passing parameters through link\_to](https://www.ruby-forum.com/t/passing-parameters-through-link-to/122292)

<div class="topic-metadata">

**Author:** [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/passing-parameters-through-link-to/122292 "2007-12-06T16:42:55Z")

</div>

Is it possible to pass parameters through link\_to that will be used by the controller that link\_to directs to? Specifically I have this code: \<% for user in @users -%\> \<%= link\_to user.screen\_name, {:action =\> “inde…

---

## [Strange ssl\_requirement plugin issues](https://www.ruby-forum.com/t/strange-ssl-requirement-plugin-issues/121440)

<div class="topic-metadata">

**Author:** [@kyle](https://www.ruby-forum.com/u/kyle)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/strange-ssl-requirement-plugin-issues/121440 "2007-12-06T16:30:36Z")

</div>

I’m having problems with the ssl\_requirement plugin. I’m moving my app from one server to another. Both servers have the same versions of ruby and rails, and the code and ssl certificates on the two servers is ident…

---

## [Using string cryptography in Rails](https://www.ruby-forum.com/t/using-string-cryptography-in-rails/122302)

<div class="topic-metadata">

**Author:** [@weverton\_g](https://www.ruby-forum.com/u/weverton_g)\
**Replies:** 4\
**Last updated:** [December 6, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/using-string-cryptography-in-rails/122302 "2007-12-06T16:15:22Z")

</div>

Hi, I’m needing crytography a string in a Rails app. How is the better way to do this?? Thanks, – Weverton G. de Morais TecnÃ³logo em Redes de ComunicaÃ§Ã£o Desenvolvedor Delphi Entusiasta Ruby/Rails “Todos jun…

---

## [Undefined method error](https://www.ruby-forum.com/t/undefined-method-error/122065)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 13\
**Last updated:** [December 6, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/undefined-method-error/122065 "2007-12-06T16:06:34Z")

</div>

class Task \< ActiveRecord::Base belongs\_to :court has\_many :workflow\_tasks has\_many :task\_users, :dependent =\> :destroy has\_many :court\_users, :through =\> :task\_users end class TaskUser \< ActiveRecord::Ba…

---

## [Question about acts\_as\_tree](https://www.ruby-forum.com/t/question-about-acts-as-tree/122242)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [December 6, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/question-about-acts-as-tree/122242 "2007-12-06T15:31:23Z")

</div>

Hi All, I was wondering if a Class declared with acts\_as\_tree can have more than one root, i.e., parent\_id = null? this will basically support multiple trees within the same table. My implementation idea is to have a…

---

## [Anybody use OPEN\_ID to authenticate?](https://www.ruby-forum.com/t/anybody-use-open-id-to-authenticate/122278)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 3\
**Last updated:** [December 6, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/anybody-use-open-id-to-authenticate/122278 "2007-12-06T14:04:36Z")

</div>

how did it go? here is the link if you are interested: What are the differences between FAPI 1.0 and FAPI 2.0 and what do they mean to you? - OpenID Foundation

---

## [Tricky respond\_to and layout problem](https://www.ruby-forum.com/t/tricky-respond-to-and-layout-problem/122043)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/tricky-respond-to-and-layout-problem/122043 "2007-12-06T13:47:43Z")

</div>

Hi all… I just spent the better part of an hour wrestling with a finicky situation, and since there was some discussion earlier regarding multiple layouts, I thought I’d share my experience in the hope it might save …

---

## [Layout Problem: No page headers or footers!](https://www.ruby-forum.com/t/layout-problem-no-page-headers-or-footers/117850)

<div class="topic-metadata">

**Author:** [@f212](https://www.ruby-forum.com/u/f212)\
**Replies:** 8\
**Last updated:** [December 6, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/layout-problem-no-page-headers-or-footers/117850 "2007-12-06T12:49:06Z")

</div>

Noob here. Been walking through the depot example in AWDWR second edition and discovered when I tried to add styling I found that my pages were not being wrapped by the layout template: They had no headers or footers,…

---

## [Testing find\_by\_sql](https://www.ruby-forum.com/t/testing-find-by-sql/122298)

<div class="topic-metadata">

**Author:** [@kabish](https://www.ruby-forum.com/u/kabish)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/testing-find-by-sql/122298 "2007-12-06T12:26:34Z")

</div>

Hi all, I have a controller method that, given some parameters, constructs a big sql query and passes it to find\_by\_sql (with pagination). The point is that I can’t wonder how to write a functional test for this meth…

---

## [Upload images and displaying of images](https://www.ruby-forum.com/t/upload-images-and-displaying-of-images/122286)

<div class="topic-metadata">

**Author:** [@koli](https://www.ruby-forum.com/u/koli)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 12:23pm UTC](https://www.ruby-forum.com/t/upload-images-and-displaying-of-images/122286 "2007-12-06T12:23:36Z")

</div>

Hi, I am using ruby with postgresql, I want to know how to upload images to path and then store the path in the database.i would not like to store the images in database . i also want to know how to display the upl…

---

## [Saving the user id for thumbnails using attachment\_fu](https://www.ruby-forum.com/t/saving-the-user-id-for-thumbnails-using-attachment-fu/122299)

<div class="topic-metadata">

**Author:** [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Replies:** 0\
**Last updated:** [December 6, 2007, 11:58am UTC](https://www.ruby-forum.com/t/saving-the-user-id-for-thumbnails-using-attachment-fu/122299 "2007-12-06T11:58:20Z")

</div>

I am using attachment\_fu to create thumbnails, and it is working great. However, I am have a view with all my users thumbnails displayed and am trying to make it so when you click on a thumbnail of their avatar, it s…

---

## [Leanest way to query with the results in a typed hash?](https://www.ruby-forum.com/t/leanest-way-to-query-with-the-results-in-a-typed-hash/122277)

<div class="topic-metadata">

**Author:** [@magpie](https://www.ruby-forum.com/u/magpie)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 11:01am UTC](https://www.ruby-forum.com/t/leanest-way-to-query-with-the-results-in-a-typed-hash/122277 "2007-12-06T11:01:24Z")

</div>

I’m querying many thousands of rows in a table, and would like the result to be a hash with the values in the correct types eg. Time, String, Fixnum. I’d rather not use the normal find() as that creates model objects …

---

## [Problems with multiple render and redirect](https://www.ruby-forum.com/t/problems-with-multiple-render-and-redirect/121932)

<div class="topic-metadata">

**Author:** [@slava](https://www.ruby-forum.com/u/slava)\
**Replies:** 6\
**Last updated:** [December 6, 2007, 9:55am UTC](https://www.ruby-forum.com/t/problems-with-multiple-render-and-redirect/121932 "2007-12-06T09:55:09Z")

</div>

def test foo = redirect\_to(:action =\> “foo”).to\_s and return render :text =\> foo + " bar" end def foo render :text =\> "foo " end This code prints foo while it should foo bar why? thank you

---

## [Implementation of rest in ROR](https://www.ruby-forum.com/t/implementation-of-rest-in-ror/122285)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 6, 2007, 8:50am UTC](https://www.ruby-forum.com/t/implementation-of-rest-in-ror/122285 "2007-12-06T08:50:08Z")

</div>

Hi all, I am new to ROR world. I know the REST conceptually but find the difficulties in implementation can anybody guide me that which is the best book which i have to read. also some good links of implementation of…

---

## [Attachment\_fu for an avatar](https://www.ruby-forum.com/t/attachment-fu-for-an-avatar/121951)

<div class="topic-metadata">

**Author:** [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:42am UTC](https://www.ruby-forum.com/t/attachment-fu-for-an-avatar/121951 "2007-12-06T07:42:46Z")

</div>

Hey everyone, so I am building a social network and am sing attachment\_fu for photo uploading purposes. I’ve gotten this functionality to work fine. I can have users upload multiple photos and display them all. Now…

---

## [Ssl\_required being ignored?](https://www.ruby-forum.com/t/ssl-required-being-ignored/122155)

<div class="topic-metadata">

**Author:** [@Big\_Dave\_S](https://www.ruby-forum.com/u/Big_Dave_S)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:30am UTC](https://www.ruby-forum.com/t/ssl-required-being-ignored/122155 "2007-12-06T07:30:30Z")

</div>

Hi everyone! I want to require SSL for a single action in one of my controllers (for logging in, and sending a password). Working off of the skateboard book, I have added: include SslRequirement to my application co…

---

## [Rake error - please help](https://www.ruby-forum.com/t/rake-error-please-help/122228)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:07am UTC](https://www.ruby-forum.com/t/rake-error-please-help/122228 "2007-12-06T07:07:08Z")

</div>

Hi- I’m suddenly getting this rake error where as before I wasn’t. And nothing’s been changed. As you can see it says something about “load\_missing\_constant”. Is my development environment broken? Can someone please…

---

## [Application scope question](https://www.ruby-forum.com/t/application-scope-question/122233)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 7:03am UTC](https://www.ruby-forum.com/t/application-scope-question/122233 "2007-12-06T07:03:02Z")

</div>

Getting into the later chapters of the Agile book depot app (and getting more confused as it goes along!) Boy for awhile I thought I was really getting it, now I’m not so sure. Anyway, Chapter 11, talking about limiti…

---

## [Restful\_authentication](https://www.ruby-forum.com/t/restful-authentication/122281)

<div class="topic-metadata">

**Author:** [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Replies:** 1\
**Last updated:** [December 6, 2007, 6:53am UTC](https://www.ruby-forum.com/t/restful-authentication/122281 "2007-12-06T06:53:41Z")

</div>

there are just ton’s of conflicting stories about this. plus lots of code for password reset and change. is anybody using it today? what is your best web site for instructions to get it going? thanks.

---

## [How to handle the final output page?](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282)

<div class="topic-metadata">

**Author:** [@wrb](https://www.ruby-forum.com/u/wrb)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 6:00am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282 "2007-12-06T06:00:27Z")

</div>

i want to use javascript to encrypt the whole content in html tag and decrypt it in the browser side (in order to avoid robot to grab the content) . so i want to write a plugin or sth to handle the output of my …

---

## [How to set a text\_field to un-editable in ROR](https://www.ruby-forum.com/t/how-to-set-a-text-field-to-un-editable-in-ror/122194)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 5\
**Last updated:** [December 6, 2007, 4:35am UTC](https://www.ruby-forum.com/t/how-to-set-a-text-field-to-un-editable-in-ror/122194 "2007-12-06T04:35:29Z")

</div>

hi all pls can any one tell me how to set a text\_field to un-editable in ROR. i have to set a values for it and have to make it un-editable. pls can some body help on this. Thanks

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

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