# Rails

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

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

---

## [SSL cert - mydomain.com? or www.mydomain.com?](https://www.ruby-forum.com/t/ssl-cert-mydomain-com-or-www-mydomain-com/87392)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 18\
**Last updated:** [March 5, 2007, 2:46am UTC](https://www.ruby-forum.com/t/ssl-cert-mydomain-com-or-www-mydomain-com/87392 "2007-03-05T02:46:59Z")

</div>

I’m getting my first SSL cert and have to specify whether the cert is for https://mydomain.com or https://www.mydomain.com. I’m guessing there’s a signifant difference buried in that choice somewhere, but have no ide…

---

## [PostgreSQL user-defined type](https://www.ruby-forum.com/t/postgresql-user-defined-type/87654)

<div class="topic-metadata">

**Author:** [@ned.c.amazotz](https://www.ruby-forum.com/u/ned.c.amazotz)\
**Replies:** 5\
**Last updated:** [March 5, 2007, 12:55am UTC](https://www.ruby-forum.com/t/postgresql-user-defined-type/87654 "2007-03-05T00:55:11Z")

</div>

I get the following error: PGError: ERROR: null value in column “person\_id” violates not-null constraint …after I generate a basic scaffold and try to insert a record into a PostgreSQL table that looks like: CREATE …

---

## [Confusion with has\_many :through](https://www.ruby-forum.com/t/confusion-with-has-many-through/87594)

<div class="topic-metadata">

**Author:** [@anonymous](https://www.ruby-forum.com/u/anonymous)\
**Replies:** 2\
**Last updated:** [March 5, 2007, 12:48am UTC](https://www.ruby-forum.com/t/confusion-with-has-many-through/87594 "2007-03-05T00:48:41Z")

</div>

I have an app where users upload images and tag them: class Image \< ActiveRecord::Base has\_many :taggings, :dependent =\> :destroy has\_many :tags, :through =\> :taggings end class Tag \< ActiveRecord::Base has\_many …

---

## [Ym4r plugin, problems?](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 4\
**Last updated:** [March 5, 2007, 12:36am UTC](https://www.ruby-forum.com/t/ym4r-plugin-problems/87631 "2007-03-05T00:36:39Z")

</div>

Hi, after installing the plugin and running a rake production command, i receive the following… /usr/local/lib/ruby/1.8/yaml.rb:133:in load' /usr/local/lib/ruby/1.8/yaml.rb:133:inload’ /usr/local/lib/ruby/1.8/yaml.rb…

---

## [Ruby 1.8.6 preview3 has been released](https://www.ruby-forum.com/t/ruby-1-8-6-preview3-has-been-released/87643)

<div class="topic-metadata">

**Author:** [@masayoshi\_takahashi](https://www.ruby-forum.com/u/masayoshi_takahashi)\
**Replies:** 1\
**Last updated:** [March 5, 2007, 12:25am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-preview3-has-been-released/87643 "2007-03-05T00:25:04Z")

</div>

Hi all, Ruby 1.8.6 preview3 has been released. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/10492 A brief summary of changes and full of changes are here. http://svn.ruby-lang.org/repos/ruby/tags/v1\_8\_…

---

## [Globalize, how to remove a translation](https://www.ruby-forum.com/t/globalize-how-to-remove-a-translation/87656)

<div class="topic-metadata">

**Author:** [@oscarpica](https://www.ruby-forum.com/u/oscarpica)\
**Replies:** 0\
**Last updated:** [March 5, 2007, 12:03am UTC](https://www.ruby-forum.com/t/globalize-how-to-remove-a-translation/87656 "2007-03-05T00:03:01Z")

</div>

Hi, The title tells it all. How do I remove a transation when using the Globalize plugin. Thanks.

---

## [Re: Deprecating @session, but it's already set](https://www.ruby-forum.com/t/re-deprecating-session-but-its-already-set/87653)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 11:19pm UTC](https://www.ruby-forum.com/t/re-deprecating-session-but-its-already-set/87653 "2007-03-04T23:19:58Z")

</div>

Actually I had the test case containing the get :index inside a suite derived from Test::Rails::ViewTestCase; moving it to a normal functional suite fixed the problem. The error message could have been clearer, though…

---

## [AJAX form with multiple interaction points](https://www.ruby-forum.com/t/ajax-form-with-multiple-interaction-points/87649)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/ajax-form-with-multiple-interaction-points/87649 "2007-03-04T23:10:57Z")

</div>

Hi to all, sorry for the poor subject but, as of now, I can’t find anything better to explain the problem. What I would like to accomplish is: Show the user a form asking for a badge number After entering the number…

---

## [Deprecating @session, but it's already set](https://www.ruby-forum.com/t/deprecating-session-but-its-already-set/87650)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/deprecating-session-but-its-already-set/87650 "2007-03-04T23:07:56Z")

</div>

What do I do about a deprecation warning if my own code is innocent? RuntimeError: Deprecating @session, but it’s already set to #\<ActionController::TestSession:0xb698eb10 @attributes={“flash”=\>{}}, @saved\_attributes=…

---

## [\[Solved\] : Re: datetime\_select =\> "\<select name="orderyearmo](https://www.ruby-forum.com/t/solved-re-datetime-select-select-name-orderyearmo/87647)

<div class="topic-metadata">

**Author:** [@aravet](https://www.ruby-forum.com/u/aravet)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/solved-re-datetime-select-select-name-orderyearmo/87647 "2007-03-04T22:18:50Z")

</div>

I just found the culprit: the Globalize Plugin.

---

## [Model Without A Table](https://www.ruby-forum.com/t/model-without-a-table/87550)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/model-without-a-table/87550 "2007-03-04T22:16:50Z")

</div>

I have a filter model and I want it to behave like a model but I don’t need a table for it. How can I have a model without a table? :slight\_smile: – John K. removed\_email\_address@domain.invalid http://www.kopanas.c…

---

## [Params question](https://www.ruby-forum.com/t/params-question/87598)

<div class="topic-metadata">

**Author:** [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Replies:** 6\
**Last updated:** [March 4, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/params-question/87598 "2007-03-04T21:58:45Z")

</div>

I’m a little embarrassed to ask this but I have a url that is like: foo/bar/5?start=45 and in foo\_controller I’m trying to access it like so: def bar @start\_time = get\_start\_time(params) end def get\_start\_time(para…

---

## [Simple instructions and pitfalls for upgrading rails 1.1.6 t](https://www.ruby-forum.com/t/simple-instructions-and-pitfalls-for-upgrading-rails-1-1-6-t/87641)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 7:43pm UTC](https://www.ruby-forum.com/t/simple-instructions-and-pitfalls-for-upgrading-rails-1-1-6-t/87641 "2007-03-04T19:43:33Z")

</div>

Alright, things are really looking clumsy for me and this upgrade, so I am reaching out. I read the issues for upgrading on the ruby weblog, but I really didn’t find “clear” answers to the upgrade problems, so I am r…

---

## [Fw: Mail System Error - Returned Mail](https://www.ruby-forum.com/t/fw-mail-system-error-returned-mail/87636)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/fw-mail-system-error-returned-mail/87636 "2007-03-04T18:34:27Z")

</div>

Anybody else getting these? I’ve been getting them intermittently for a couple of days. ----- Original Message ----- From: "Mail Administrator Sent: Sunday, March 04, 2007 10:08 AM Subject: Mail System Error - Retu…

---

## [Controllers!?](https://www.ruby-forum.com/t/controllers/87633)

<div class="topic-metadata">

**Author:** [@etikette](https://www.ruby-forum.com/u/etikette)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/controllers/87633 "2007-03-04T18:18:25Z")

</div>

when i put: render :action=\>“list” in my “index” method of my controller it doesn’t use/create the variables created in the list method it only gives the “list” view? is that supposed to happen

---

## [Scaffold does not work](https://www.ruby-forum.com/t/scaffold-does-not-work/87565)

<div class="topic-metadata">

**Author:** [@hvenkata](https://www.ruby-forum.com/u/hvenkata)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/scaffold-does-not-work/87565 "2007-03-04T18:13:27Z")

</div>

I am going through the Agile Web D. with Rails book and following the creation of depot app. On page 77 in the second edition i run the ruby script/generate scaffold product admin command. After the auto generated fi…

---

## [Rails on FreeBDS](https://www.ruby-forum.com/t/rails-on-freebds/87626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 4:52pm UTC](https://www.ruby-forum.com/t/rails-on-freebds/87626 "2007-03-04T16:52:16Z")

</div>

Hello everyone. I want to use my server to test my Rails scripts. My server is running with FreeBDS, so my question is what I have to do to install Ruby on Rails on FreeBDS? :slight\_smile: Thanks in advance. Maybe that…

---

## [Testing for non-existent parameters with "if"](https://www.ruby-forum.com/t/testing-for-non-existent-parameters-with-if/87601)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 4\
**Last updated:** [March 4, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/testing-for-non-existent-parameters-with-if/87601 "2007-03-04T16:16:16Z")

</div>

Rails gives me an error when I test for a blank param like this: if params\[:post\]\[:id\] @comment.commentable = Post.find(params\[:post\]\[:id\]) elsif params\[:event\]\[:id\] @comment.commentable = Event.find…

---

## [Redirect\_from BS?](https://www.ruby-forum.com/t/redirect-from-bs/87590)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [March 4, 2007, 4:02pm UTC](https://www.ruby-forum.com/t/redirect-from-bs/87590 "2007-03-04T16:02:06Z")

</div>

I’ve notice some entries in the log where folks are just poking around. Is it possible to ‘trap’ these and redirect\_to something valid like the site’s home page? Thanks, Bill

---

## [Question about some code in the agile book](https://www.ruby-forum.com/t/question-about-some-code-in-the-agile-book/87588)

<div class="topic-metadata">

**Author:** [@Kristen](https://www.ruby-forum.com/u/Kristen)\
**Replies:** 5\
**Last updated:** [March 4, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/question-about-some-code-in-the-agile-book/87588 "2007-03-04T14:02:56Z")

</div>

Hello, My question is based on the following code form the 2ed agile book: File: depot\_g/app/models/cart\_item.rb class CartItem attr\_reader :product, :quantity def initialize(product) @product = product @quantity …

---

## [Db:schema:dump constraints query](https://www.ruby-forum.com/t/dbdump-constraints-query/87610)

<div class="topic-metadata">

**Author:** [@akm](https://www.ruby-forum.com/u/akm)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/dbdump-constraints-query/87610 "2007-03-04T13:08:51Z")

</div>

‘Create a db/schema.rb file that can be portably used against any DB supported by AR’ This definition I understand fully, but is there a reason why key constraints are not carried across? For instance I have a primary…

---

## [\[ANN\] Munich.rb meets on Thursday 15th March](https://www.ruby-forum.com/t/ann-munich-rb-meets-on-thursday-15th-march/87606)

<div class="topic-metadata">

**Author:** [@Urban\_H](https://www.ruby-forum.com/u/Urban_H)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/ann-munich-rb-meets-on-thursday-15th-march/87606 "2007-03-04T12:59:50Z")

</div>

Hej! After a long (too long) time the Munich Ruby and Rails users are meeting again! We’ll meet at Bohne & Malz am Rathaus \[1\]\[2\] on 15th March at 7pm. I’ll wear my Munich.rb T-Shirt, but I guess a group like that w…

---

## [How can I view HTTP trace on an incoming request?](https://www.ruby-forum.com/t/how-can-i-view-http-trace-on-an-incoming-request/87574)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [March 4, 2007, 12:22pm UTC](https://www.ruby-forum.com/t/how-can-i-view-http-trace-on-an-incoming-request/87574 "2007-03-04T12:22:48Z")

</div>

Hi, how can I view HTTP trace on an incoming request? I am sending test HTTP requests from my test application (app1) to my actually application (app2) but I am getting Recognition failed errors? There is nothing …

---

## [Best way to check if a field is changed upon update to run a](https://www.ruby-forum.com/t/best-way-to-check-if-a-field-is-changed-upon-update-to-run-a/87609)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/best-way-to-check-if-a-field-is-changed-upon-update-to-run-a/87609 "2007-03-04T12:09:46Z")

</div>

So I have a settings table with a boolean column in it. It is mostly 1, but in the case it changes (either way) I need to run a method via an after filter. This is probably an easy answer but I want to know whats th…

---

## [Testing Problems](https://www.ruby-forum.com/t/testing-problems/87607)

<div class="topic-metadata">

**Author:** [@brianspaid](https://www.ruby-forum.com/u/brianspaid)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 11:11am UTC](https://www.ruby-forum.com/t/testing-problems/87607 "2007-03-04T11:11:43Z")

</div>

I am following this tutorial http://www.aidanf.net/rails\_user\_authentication\_tutorial to create a basic user auth system, but when I try and run the test I get a slew of errors with rails: d:/ruby/lib/ruby/site\_ruby/…

---

## [Prototype: Ajax.Request w/asynchronous: false](https://www.ruby-forum.com/t/prototype-ajax-request-w-asynchronous-false/87459)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 12\
**Last updated:** [March 4, 2007, 9:46am UTC](https://www.ruby-forum.com/t/prototype-ajax-request-w-asynchronous-false/87459 "2007-03-04T09:46:09Z")

</div>

All, I have the following Ajax call: new Ajax.Request(action, {asynchronous: false, method: ‘post’, parameters: params\_to\_pass, evalScripts: true}); The action that I’m calling is using render :update to send back …

---

## [Hpricot](https://www.ruby-forum.com/t/hpricot/87386)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [March 4, 2007, 9:16am UTC](https://www.ruby-forum.com/t/hpricot/87386 "2007-03-04T09:16:37Z")

</div>

I’m trying to follow the examples here: http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics However, I get “no such file to load – hpricot” I also tried include\_gem but I get “Could not find RubyGem hpricot (\> …

---

## [:confirm dialog box is invoking my table row links!](https://www.ruby-forum.com/t/confirm-dialog-box-is-invoking-my-table-row-links/87600)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [March 4, 2007, 7:41am UTC](https://www.ruby-forum.com/t/confirm-dialog-box-is-invoking-my-table-row-links/87600 "2007-03-04T07:41:32Z")

</div>

I’ve got a bunch of table rows consisting of the onclick method: \<%= student.last\_name %\> And when I delete one of these objects with the :confirm box by clicking “ok”, it deletes the object(which is good) but then inv…

---

## [Beginner :conditions question](https://www.ruby-forum.com/t/beginner-conditions-question/87576)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 7:36am UTC](https://www.ruby-forum.com/t/beginner-conditions-question/87576 "2007-03-04T07:36:32Z")

</div>

So I’m trying to grab birthdays for the current month. But I have to do some magic inside a condition and this messes up AR. Here is what I am using: @upcoming\_birthdays = People.find(:all, :conditions =\> “birthdat…

---

## [Params in views on localhost not consistent with server?](https://www.ruby-forum.com/t/params-in-views-on-localhost-not-consistent-with-server/87593)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [March 4, 2007, 6:35am UTC](https://www.ruby-forum.com/t/params-in-views-on-localhost-not-consistent-with-server/87593 "2007-03-04T06:35:29Z")

</div>

hi, I am launching my first app and testing now on a public server! great! but now it seems that sometimes params are not being passed from controllers back to views again. anyone else have have this experience?

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

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