# Rails

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

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

---

## [SSL signed by unknown and slow browsing](https://www.ruby-forum.com/t/ssl-signed-by-unknown-and-slow-browsing/172253)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/ssl-signed-by-unknown-and-slow-browsing/172253 "2009-07-17T16:04:08Z")

</div>

I’ve searched but can’t find the answer so I’l try here. I or my host must have done something wrong. In Safari I get an alert that the certificate is signed by unknown authority (bought at godaddy), or something like…

---

## [How to get "www.site.com/user1" address](https://www.ruby-forum.com/t/how-to-get-www-site-com-user1-address/172246)

<div class="topic-metadata">

**Author:** [@szkizzer](https://www.ruby-forum.com/u/szkizzer)\
**Replies:** 3\
**Last updated:** [July 17, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-get-www-site-com-user1-address/172246 "2009-07-17T16:01:27Z")

</div>

Hi, I am a newcomer to the Rails Front. Currently reading chapter 17 of Agile Web D. on Rails. But a burning question, that I would appreciate anyone being able to verify for me! Here goes: What I am hoping of tryin…

---

## [Proper API doc for rails erb objects?](https://www.ruby-forum.com/t/proper-api-doc-for-rails-erb-objects/172082)

<div class="topic-metadata">

**Author:** [@shakor](https://www.ruby-forum.com/u/shakor)\
**Replies:** 8\
**Last updated:** [July 17, 2009, 3:48pm UTC](https://www.ruby-forum.com/t/proper-api-doc-for-rails-erb-objects/172082 "2009-07-17T15:48:26Z")

</div>

Hi, I recently started working with rails and maybe Im a bit spoiled coming from a Java background but is there a proper api document for the objects that are used in erb.html pages? For example, I read a tutorial me…

---

## [Use of self in a class](https://www.ruby-forum.com/t/use-of-self-in-a-class/171985)

<div class="topic-metadata">

**Author:** [@buzz](https://www.ruby-forum.com/u/buzz)\
**Replies:** 14\
**Last updated:** [July 17, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/use-of-self-in-a-class/171985 "2009-07-17T14:46:54Z")

</div>

class PaymentType \< ActiveRecord::Base def self.get\_payment\_types payment\_types\_all = find(:all, :select =\> “display\_name, stored\_name” , :order =\> :display\_name) # Creates a nested array of \[\[display\_name, stored\_n…

---

## [Problem with rails and AJAX](https://www.ruby-forum.com/t/problem-with-rails-and-ajax/172186)

<div class="topic-metadata">

**Author:** [@shakor](https://www.ruby-forum.com/u/shakor)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/problem-with-rails-and-ajax/172186 "2009-07-17T14:38:01Z")

</div>

Hi, I have a very simple page with a drop down select list and I want that a portion of this page gets updated each time a new selection is done on the select list. This is my page with the select list (edit view\_sit…

---

## [Expire\_action confusion](https://www.ruby-forum.com/t/expire-action-confusion/172187)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 11:18am UTC](https://www.ruby-forum.com/t/expire-action-confusion/172187 "2009-07-17T11:18:21Z")

</div>

I just can’t figure this out. I have this in my Players controller: caches\_action :show, :layout =\> false I have a sweeper (that is getting called) that does this: expire\_action(:controller =\> :players, :action =\> :s…

---

## [Record is not store in DB & session.delete('key') not workin](https://www.ruby-forum.com/t/record-is-not-store-in-db-session-delete-key-not-workin/172239)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 7:47am UTC](https://www.ruby-forum.com/t/record-is-not-store-in-db-session-delete-key-not-workin/172239 "2009-07-17T07:47:02Z")

</div>

Hi, I’m creating multi page form (wizard like pages) in my application using code at http://snippets.dzone.com/posts/show/277#related problem ===\> When I create a new coupon first time, it is stored in DB. After sav…

---

## [Attachment\_fu :partition =\> lamda {}](https://www.ruby-forum.com/t/attachment-fu-partition-lamda/172236)

<div class="topic-metadata">

**Author:** [@northband](https://www.ruby-forum.com/u/northband)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 7:42am UTC](https://www.ruby-forum.com/t/attachment-fu-partition-lamda/172236 "2009-07-17T07:42:47Z")

</div>

Hi - I am trying to dynamically create my partition folders via attachment\_fu. I have read about a hack that allows you to do this on the attachment model: :partition =\> lambda {|a| a.article\_id} Which passes the m…

---

## [How to make something like IN (1,3,4) in the :conditions](https://www.ruby-forum.com/t/how-to-make-something-like-in-1-3-4-in-the-conditions/172181)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 3\
**Last updated:** [July 17, 2009, 7:06am UTC](https://www.ruby-forum.com/t/how-to-make-something-like-in-1-3-4-in-the-conditions/172181 "2009-07-17T07:06:47Z")

</div>

named\_scope :unarchive, lambda { |project\_identifier| { :conditions =\> {:project\_id =\> project\_identifier,:archive =\> false}, order =\> :name} } Here is the code within condition i want to make something like :id=\>“I…

---

## [Plugin classes won't load](https://www.ruby-forum.com/t/plugin-classes-wont-load/172231)

<div class="topic-metadata">

**Author:** [@ari](https://www.ruby-forum.com/u/ari)\
**Replies:** 0\
**Last updated:** [July 17, 2009, 4:39am UTC](https://www.ruby-forum.com/t/plugin-classes-wont-load/172231 "2009-07-17T04:39:19Z")

</div>

Hi all, I’ve been working on an application which uses the smerf plugin (Simple MEta Forms). It works fine in the development environment, but in the production environment it seems unable to autoload anything from …

---

## [\- 2.3.2 uninitialized constant ApplicationController](https://www.ruby-forum.com/t/2-3-2-uninitialized-constant-applicationcontroller/163518)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [July 17, 2009, 3:29am UTC](https://www.ruby-forum.com/t/2-3-2-uninitialized-constant-applicationcontroller/163518 "2009-07-17T03:29:07Z")

</div>

Hi, I just migrated from rails 2.2.2 to 2.3.2 The rails app was running fine until i migrated I checked for the application.rb in the controller folder and its there Any suggestions, why this is happening??? Regard…

---

## [Multi check box insertion](https://www.ruby-forum.com/t/multi-check-box-insertion/172223)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 2:58am UTC](https://www.ruby-forum.com/t/multi-check-box-insertion/172223 "2009-07-17T02:58:51Z")

</div>

Hi guys i am new to this community is there any link to insert and update Multi check box Thanks karthik.k

---

## [Problems with activerecord/oracle addapter](https://www.ruby-forum.com/t/problems-with-activerecord-oracle-addapter/172220)

<div class="topic-metadata">

**Author:** [@diragor](https://www.ruby-forum.com/u/diragor)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 11:38pm UTC](https://www.ruby-forum.com/t/problems-with-activerecord-oracle-addapter/172220 "2009-07-16T23:38:25Z")

</div>

I am working on a project and we are having problems displaying utf8 charaters. my system specs & settings are: this is what i did and the outputs of it form ruby script/console. why is it doing this to me? data = …

---

## [Please help me understand how arrays are translated in rails](https://www.ruby-forum.com/t/please-help-me-understand-how-arrays-are-translated-in-rails/172218)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 9\
**Last updated:** [July 16, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/please-help-me-understand-how-arrays-are-translated-in-rails/172218 "2009-07-16T23:30:53Z")

</div>

I’ve spent hours researching the subject and have tried many test sequences in IRB, and rails console but I’m just having trouble making headway into what is probably a very easy subject. I understand arrays with at l…

---

## ["me" route](https://www.ruby-forum.com/t/me-route/172217)

<div class="topic-metadata">

**Author:** [@wouter](https://www.ruby-forum.com/u/wouter)\
**Replies:** 5\
**Last updated:** [July 16, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/me-route/172217 "2009-07-16T23:00:29Z")

</div>

Hey, I have a social network web app with ruby on rails and users can see their profile like this: /profiles/2-admin Now i want to make an alias or something with the route “/me” so it would show the same as profiles…

---

## [Getting routing errors](https://www.ruby-forum.com/t/getting-routing-errors/172177)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 8:36pm UTC](https://www.ruby-forum.com/t/getting-routing-errors/172177 "2009-07-16T20:36:08Z")

</div>

Hi guys, I am getting some routing errors which, I have not mentioned in routing.rb, these are somewhat like js,css or some xml files missing. The sample error is ActionController::RoutingError (no route found to mat…

---

## [Rack.rb:17: warning: already initialized constant VERSION](https://www.ruby-forum.com/t/rack-rb-warning-already-initialized-constant-version/166313)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/rack-rb-warning-already-initialized-constant-version/166313 "2009-07-16T20:34:57Z")

</div>

Despite the resolved thread #2255 (https://rails.lighthouseapp.com/ projects/8994/tickets/2255-bundled-rack-10-doesnt-loaded-first-in- rails-232) , I get a VERSION warning : ruby script/console Loading development en…

---

## [Merge error in collection\_select when trying to access another model](https://www.ruby-forum.com/t/merge-error-in-collection-select-when-trying-to-access-another-model/172209)

<div class="topic-metadata">

**Author:** [@melomane](https://www.ruby-forum.com/u/melomane)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/merge-error-in-collection-select-when-trying-to-access-another-model/172209 "2009-07-16T20:24:25Z")

</div>

Hi I am a newbie in rails. My question may seems too simple to be discussed here, but the only place to get my answer from experts is here. I searched in this group, but didn’t find something like my problem, althoug…

---

## [ActiveResource timeout not functioning?](https://www.ruby-forum.com/t/activeresource-timeout-not-functioning/172173)

<div class="topic-metadata">

**Author:** [@bencahen](https://www.ruby-forum.com/u/bencahen)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/activeresource-timeout-not-functioning/172173 "2009-07-16T20:23:39Z")

</div>

I’m trying to contact a REST API using ActiveResource on Rails 2.3.2. I’m attempting to use the timeout functionality so that if the resource I’m contacting is down I can fail quickly - I’m doing this with the followi…

---

## [Mongrel issue](https://www.ruby-forum.com/t/mongrel-issue/172206)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/mongrel-issue/172206 "2009-07-16T19:44:16Z")

</div>

Hello G.s, As our pids are getting lost again and again, we need to restart mongrel\_cluster again and again, I have one doubt that , for this we may need to configure mongrel\_cluster.yml, but I can find in that for th…

---

## [Another RSS Feed question](https://www.ruby-forum.com/t/another-rss-feed-question/170672)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 4\
**Last updated:** [July 16, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/another-rss-feed-question/170672 "2009-07-16T18:07:08Z")

</div>

I’ve searched the whole forums watched all the videos read the books and apparently there is about 1,000 ways to generate a rss feed. Which none of them worked for me. I was going to reply to a post to continue the th…

---

## [How to make a picture a linked picture](https://www.ruby-forum.com/t/how-to-make-a-picture-a-linked-picture/172095)

<div class="topic-metadata">

**Author:** [@miss\_moviestar](https://www.ruby-forum.com/u/miss_moviestar)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/how-to-make-a-picture-a-linked-picture/172095 "2009-07-16T17:56:12Z")

</div>

hi i want to get a picture and a linke as inputs from user and then when user clicked on that picture it goes to that link related to the picture do anyone know how? thanks in advance

---

## [Serialization problem](https://www.ruby-forum.com/t/serialization-problem/172192)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/serialization-problem/172192 "2009-07-16T17:32:40Z")

</div>

Hi, I’m sure I’m doing something obviously incorrect here, but have stared at it for so long I can’t seem to find it. I want to serialize some activerecord objects as rows in a table. Basically I can: import\_object…

---

## [Associations over 37 different tables with has\_one](https://www.ruby-forum.com/t/associations-over-37-different-tables-with-has-one/172199)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/associations-over-37-different-tables-with-has-one/172199 "2009-07-16T17:29:32Z")

</div>

Hi all, I have 37 different tables with each having its own sort column (sort implying that the main data of that table is sorted on that particular column). Each of these sort columns is different and unique. To ma…

---

## [Mongrel issue](https://www.ruby-forum.com/t/mongrel-issue/172179)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/mongrel-issue/172179 "2009-07-16T16:55:15Z")

</div>

Hello G.s, As our pids are getting lost again and again, we need to restart mongrel\_cluster again and again, I have one doubt that , for this we may need to configure mongrel\_cluster.yml, but I can find in that for th…

---

## [Find\_all\_by and select boxes?](https://www.ruby-forum.com/t/find-all-by-and-select-boxes/172189)

<div class="topic-metadata">

**Author:** [@Valerie\_Fehst](https://www.ruby-forum.com/u/Valerie_Fehst)\
**Replies:** 1\
**Last updated:** [July 16, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/find-all-by-and-select-boxes/172189 "2009-07-16T16:51:44Z")

</div>

So…let’s have a look if I understood the issue: -Find\_all\_by is actually the same like Find(:all), however Find\_all\_by is much shorter and less complicated than the syntax of Find(:all) -So in my CONTROLLER it says @f…

---

## [Remove 12002 from http://www.projectbidding.com:12002/account/index](https://www.ruby-forum.com/t/remove-12002-from-http-www-projectbidding-com-12002-account-index/172184)

<div class="topic-metadata">

**Author:** [@seenu](https://www.ruby-forum.com/u/seenu)\
**Replies:** 3\
**Last updated:** [July 16, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/remove-12002-from-http-www-projectbidding-com-12002-account-index/172184 "2009-07-16T16:45:18Z")

</div>

Hi, How can i remove 12002 from the URL http://www.projectbidding.com:12002/account/index i am using ruby on rails. I just need to have my url http://www.projectbidding.com/account/index. Please help me on this

---

## [With rails thread safe, is mongrel multi-threaded now?](https://www.ruby-forum.com/t/with-rails-thread-safe-is-mongrel-multi-threaded-now/172190)

<div class="topic-metadata">

**Author:** [@gaoxt1983](https://www.ruby-forum.com/u/gaoxt1983)\
**Replies:** 0\
**Last updated:** [July 16, 2009, 2:44pm UTC](https://www.ruby-forum.com/t/with-rails-thread-safe-is-mongrel-multi-threaded-now/172190 "2009-07-16T14:44:47Z")

</div>

Like I have 4 mongrel processes with a 4 cpu server, and there are 10 concurrency connections. Does the server response the client concurrencily (I know with time slice, there is no real concurrency.)?

---

## [How to dynamically change stylesheets globally?](https://www.ruby-forum.com/t/how-to-dynamically-change-stylesheets-globally/172151)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 13\
**Last updated:** [July 16, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/how-to-dynamically-change-stylesheets-globally/172151 "2009-07-16T14:30:45Z")

</div>

There, was that subject sufficiently obtuse to grab your attention? :slight\_smile: I would like to have several different stylesheets for my application that may be selected dynamically as the user navigates through my …

---

## [Time calculate method in rails](https://www.ruby-forum.com/t/time-calculate-method-in-rails/172172)

<div class="topic-metadata">

**Author:** [@on9west](https://www.ruby-forum.com/u/on9west)\
**Replies:** 2\
**Last updated:** [July 16, 2009, 1:28pm UTC](https://www.ruby-forum.com/t/time-calculate-method-in-rails/172172 "2009-07-16T13:28:49Z")

</div>

Dear all Is there any existing function in rails to calculate time? I have google it but no information found… For example a = “2009-07-16 12:34”.to\_time b = “2009-07-16 12:04”.to\_time some\_method(a,b) return “30 m…

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

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