# Rails

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

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

---

## [Patch for AR SQLServer adapter to allow for \< 1970 datetimes](https://www.ruby-forum.com/t/patch-for-ar-sqlserver-adapter-to-allow-for-1970-datetimes/130492)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 4, 2008, 9:51pm UTC](https://www.ruby-forum.com/t/patch-for-ar-sqlserver-adapter-to-allow-for-1970-datetimes/130492 "2008-03-04T21:51:21Z")

</div>

All, = Rails 1.2.6 I’ve been down this road of not being able to get the SQLServer AR driver to support pre-1970 SQLServer datetime fields before back in Rails 1.1.6 (Selecting datetime values from SQL Server (year…

---

## [Marshaling ActiveRecord objects: how to unload associations?](https://www.ruby-forum.com/t/marshaling-activerecord-objects-how-to-unload-associations/129953)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 2\
**Last updated:** [March 4, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/marshaling-activerecord-objects-how-to-unload-associations/129953 "2008-03-04T20:51:19Z")

</div>

I’m marshaling ActiveRecord objects, and I want them to be as small as possible. How can I unload everything that can be reloaded from the database? If they’re marshaled before any of the associations are referenced …

---

## [XML Schema validation](https://www.ruby-forum.com/t/xml-schema-validation/130966)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/xml-schema-validation/130966 "2008-03-04T20:41:43Z")

</div>

Does anyone know of a way to validate XML using XML Schema (or DTD in case no XML Schema validator is available). Thanks in advance Erik L.

---

## [RoR and Ruby/DL on WinXP](https://www.ruby-forum.com/t/ror-and-ruby-dl-on-winxp/130964)

<div class="topic-metadata">

**Author:** [@abg](https://www.ruby-forum.com/u/abg)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/ror-and-ruby-dl-on-winxp/130964 "2008-03-04T20:36:45Z")

</div>

Hi All, I’m trying to connect to a WinXP address correction DLL using Ruby/DL, using some perl code as a jumping-off point (http://www.arcsi.net/codingguide.html#perl16). I’ve attached my current code, along with wha…

---

## [Apache deflate not working with prototype.js?1234](https://www.ruby-forum.com/t/apache-deflate-not-working-with-prototype-js-1234/130952)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 8:03pm UTC](https://www.ruby-forum.com/t/apache-deflate-not-working-with-prototype-js-1234/130952 "2008-03-04T20:03:50Z")

</div>

I’m trying to compress javascript files using apache’s deflate. Here is my config: AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css application/x-javascript text/javascript; BrowserMatch ^Mozill…

---

## [Environment initialize block - Kernel.load problems](https://www.ruby-forum.com/t/environment-initialize-block-kernel-load-problems/130941)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/environment-initialize-block-kernel-load-problems/130941 "2008-03-04T19:48:19Z")

</div>

Hi, I’m trying to load a file into my environment, so it can use the instance variable “config”, the block parameter within the initialize call. I can’ seem to get the file to load, so that it has access to “config”.…

---

## [Check\_box\_tag remote\_function](https://www.ruby-forum.com/t/check-box-tag-remote-function/130739)

<div class="topic-metadata">

**Author:** [@bucks](https://www.ruby-forum.com/u/bucks)\
**Replies:** 2\
**Last updated:** [March 4, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/check-box-tag-remote-function/130739 "2008-03-04T18:26:01Z")

</div>

I have a collection of check\_box\_tags that look like the following: \<% for item in @items %\> \<%= check\_box\_tag “item\[item\_ids\]\[\]”, item.id, false, {:onchange =\> remote\_function(:url =\> update\_items\_path, :with =\> "‘it…

---

## [Dynamically add/remove mongrel on EC2 from Apache balancer](https://www.ruby-forum.com/t/dynamically-add-remove-mongrel-on-ec2-from-apache-balancer/129491)

<div class="topic-metadata">

**Author:** [@yaxm](https://www.ruby-forum.com/u/yaxm)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/dynamically-add-remove-mongrel-on-ec2-from-apache-balancer/129491 "2008-03-04T17:57:03Z")

</div>

Hi, I’d like to scale out by adding more EC2 mongrel instances, and scale down by removing EC2 mongrel instances. Is there a way to dynamically add/remove mongrel instances from Apache mod\_proxy\_balancer. It seems t…

---

## [Re: Sending SMS from rails](https://www.ruby-forum.com/t/re-sending-sms-from-rails/130931)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/re-sending-sms-from-rails/130931 "2008-03-04T17:41:10Z")

</div>

Clickatell is easy enough to use but cost about .064 / message. You just need to post to a url uri\_str = “http://api.clickatell.com/http/sendmsg?user=&password=&api\_id=&to=&text=Test+from+textagog+-+testing+how+long+a…

---

## [Rails Application Platform Architecture](https://www.ruby-forum.com/t/rails-application-platform-architecture/130918)

<div class="topic-metadata">

**Author:** [@liseki](https://www.ruby-forum.com/u/liseki)\
**Replies:** 9\
**Last updated:** [March 4, 2008, 5:41pm UTC](https://www.ruby-forum.com/t/rails-application-platform-architecture/130918 "2008-03-04T17:41:09Z")

</div>

Hey People, I’m trying to wrap my mind around the idea of having a simple rails application that acts as a platform and having other rails applications running on the platform. Of course this sort of idea is all the r…

---

## [Event registration app](https://www.ruby-forum.com/t/event-registration-app/130909)

<div class="topic-metadata">

**Author:** [@nospacesalloneword](https://www.ruby-forum.com/u/nospacesalloneword)\
**Replies:** 3\
**Last updated:** [March 4, 2008, 5:36pm UTC](https://www.ruby-forum.com/t/event-registration-app/130909 "2008-03-04T17:36:28Z")

</div>

I was looking to make a small event registration app but I thought i would check to see if there were any already floating around to check out, I did a quick google search but didnt really find anything…

---

## [Syntaxerror while starting server](https://www.ruby-forum.com/t/syntaxerror-while-starting-server/130912)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 6\
**Last updated:** [March 4, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/syntaxerror-while-starting-server/130912 "2008-03-04T17:31:01Z")

</div>

Hi there. I get an syntax error on this line (135) when i start my server. I have out-commented the line for now, but would really appreciate any help. \[code\] error\_messages = objects.map {|object| object.errors.full…

---

## [New MySQL behaiour for :null =\> false](https://www.ruby-forum.com/t/new-mysql-behaiour-for-null-false/130940)

<div class="topic-metadata">

**Author:** [@icedragon](https://www.ruby-forum.com/u/icedragon)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 5:10pm UTC](https://www.ruby-forum.com/t/new-mysql-behaiour-for-null-false/130940 "2008-03-04T17:10:16Z")

</div>

I have migrations like t.string :name, :null =\> false I’ve tried some of the latest MySQL versions and now when I create a new object Person.new the name property is nil. Before if i have :null =\> false it was empty …

---

## [Incoming mail in rails](https://www.ruby-forum.com/t/incoming-mail-in-rails/130938)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/incoming-mail-in-rails/130938 "2008-03-04T16:57:37Z")

</div>

Hello, I need to receive incoming emails in rails. I am running windows 2003. The mails will either be from gmail or from my domain mailbox. Any ideas abt how do i proceed. Thank you.

---

## [Two models one cotroller/view](https://www.ruby-forum.com/t/two-models-one-cotroller-view/130866)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 4:39pm UTC](https://www.ruby-forum.com/t/two-models-one-cotroller-view/130866 "2008-03-04T16:39:34Z")

</div>

hi all I have two different models representing two different data sets but I want to use the same controler and views to process them how can I DRY this up so I don’t have to use a separate controller and view for…

---

## [\[ANN\] Ebb web server version 0.0.3](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-3/130894)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/ann-ebb-web-server-version-0-0-3/130894 "2008-03-04T16:04:31Z")

</div>

Ebb aims to be a small and fast web server, written in C, specifically for hosting web frameworks like Rails and Merb. It is not meant to be a full featured web server like Lighttpd, Apache, or Nginx. Rather it should…

---

## [Question About Using A Gem In Rails](https://www.ruby-forum.com/t/question-about-using-a-gem-in-rails/130850)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 2\
**Last updated:** [March 4, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/question-about-using-a-gem-in-rails/130850 "2008-03-04T15:35:34Z")

</div>

I installed a gem called: Contacts From the console this works: Contacts.new(:hotmail, “asdasd”, “asdasd”)" But from the controller I get “uninitialized constant FriendFindersController::Contacts” when I try to load …

---

## [Implementing REST properly](https://www.ruby-forum.com/t/implementing-rest-properly/130464)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 10\
**Last updated:** [March 4, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/implementing-rest-properly/130464 "2008-03-04T15:35:00Z")

</div>

Hi, Same question is in Link\_to parameters ignored - Rails - Ruby-Forum but since it evolved from a different question I move it to its own topic. I have some resources: Programs, Users and Comments. Users make comm…

---

## [Basic MVC question](https://www.ruby-forum.com/t/basic-mvc-question/130835)

<div class="topic-metadata">

**Author:** [@wintermute123](https://www.ruby-forum.com/u/wintermute123)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/basic-mvc-question/130835 "2008-03-04T15:28:52Z")

</div>

Hello! I’d like to ask a simple controller design question regarding the MVC pattern. It seems that most of the tutorials follow the one-controller-per-table pattern. Books like AWDWR however use more advanced approa…

---

## [Timestamp field not created/updated](https://www.ruby-forum.com/t/timestamp-field-not-created-updated/130925)

<div class="topic-metadata">

**Author:** [@Kless](https://www.ruby-forum.com/u/Kless)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/timestamp-field-not-created-updated/130925 "2008-03-04T15:02:48Z")

</div>

I’ve a timestamp field --updated\_at-- into a table that isn’t being updated -neither created- automatically, but in the another tables it works well. Which could be the problem?

---

## [How can i know type of attribute with active record](https://www.ruby-forum.com/t/how-can-i-know-type-of-attribute-with-active-record/130832)

<div class="topic-metadata">

**Author:** [@ricardvince](https://www.ruby-forum.com/u/ricardvince)\
**Replies:** 2\
**Last updated:** [March 4, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/how-can-i-know-type-of-attribute-with-active-record/130832 "2008-03-04T13:52:56Z")

</div>

Hello, In my database, I have a table “products” with attributes : id title -\>string desc -\> text I use active record, but I don’t know why recover the type of this attribute with active record? I try attributes\_be…

---

## [Information about query caching and HM through](https://www.ruby-forum.com/t/information-about-query-caching-and-hm-through/130910)

<div class="topic-metadata">

**Author:** [@jub](https://www.ruby-forum.com/u/jub)\
**Replies:** 2\
**Last updated:** [March 4, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/information-about-query-caching-and-hm-through/130910 "2008-03-04T13:03:21Z")

</div>

Hi there, I would like to find more information about query caching, or about the concept behind the following behavior, in a “User has many Groups through Memberships” association. Let me show you an example. Base …

---

## [Can't send email](https://www.ruby-forum.com/t/cant-send-email/130911)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/cant-send-email/130911 "2008-03-04T12:30:41Z")

</div>

I am using Gmail as my primary smtp server. When I try to send email through app deployed locally, it works fine but when I put it on host (heroku), it does not send any emails. What could be wrong?

---

## [Ajax](https://www.ruby-forum.com/t/ajax/130893)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [March 4, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/ajax/130893 "2008-03-04T12:12:20Z")

</div>

Hi I have in the controller def show\_details @sd\_ticket=ServiceDeskTicket.find(params\[:id\]) @sd\_attachments=ServiceDeskAttachment.find\_all\_by\_service\_desk\_ticket\_id(params\[:id\]) @servicedesk\_cis\_join = @sd\_ticket.se…

---

## [How to delete all cookies from local machine](https://www.ruby-forum.com/t/how-to-delete-all-cookies-from-local-machine/130905)

<div class="topic-metadata">

**Author:** [@pradeepta](https://www.ruby-forum.com/u/pradeepta)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/how-to-delete-all-cookies-from-local-machine/130905 "2008-03-04T12:00:47Z")

</div>

How can i delete all cookies and offline contents from my machine using ruby ?? Any body help !

---

## [Can someone help me?](https://www.ruby-forum.com/t/can-someone-help-me/130903)

<div class="topic-metadata">

**Author:** [@junik](https://www.ruby-forum.com/u/junik)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 11:29am UTC](https://www.ruby-forum.com/t/can-someone-help-me/130903 "2008-03-04T11:29:29Z")

</div>

how can i make more unique this site?that’s my homepage and i don’t even know what is really matter… http://nagykepu.extra.hu/

---

## [Array.rand fails - Why?](https://www.ruby-forum.com/t/array-rand-fails-why/130898)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 3\
**Last updated:** [March 4, 2008, 11:02am UTC](https://www.ruby-forum.com/t/array-rand-fails-why/130898 "2008-03-04T11:02:55Z")

</div>

Hey guys. I have bould an array \[1, 2, 3, 4, 5, 6, 7, 8, 9, 10\] and want to get a random element from it. If i use array.rand the controller returns this error private method \`rand' called for \[0, 1, 2, 3, 4, 5, 6, 7…

---

## [Soap4r in wrong format](https://www.ruby-forum.com/t/soap4r-in-wrong-format/130897)

<div class="topic-metadata">

**Author:** [@nyxx](https://www.ruby-forum.com/u/nyxx)\
**Replies:** 0\
**Last updated:** [March 4, 2008, 10:42am UTC](https://www.ruby-forum.com/t/soap4r-in-wrong-format/130897 "2008-03-04T10:42:07Z")

</div>

Hi people, I was wondering if anyone has any experience with using soap4r. I’ve done the whole wsdl2ruby and basically evrything works fine, were it not that the servive I am talking to has a different standard concer…

---

## [To use JS in RedBox Plugin](https://www.ruby-forum.com/t/to-use-js-in-redbox-plugin/130771)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 4\
**Last updated:** [March 4, 2008, 10:36am UTC](https://www.ruby-forum.com/t/to-use-js-in-redbox-plugin/130771 "2008-03-04T10:36:39Z")

</div>

Hi All, I’m using redbox plugin in my app. Redbox plugin is working properly.But when i try to change text box values using js its not working. The Code is Test Here I’m assigning hidden input value to the text bo…

---

## [The controller.send() method failing to assign value](https://www.ruby-forum.com/t/the-controller-send-method-failing-to-assign-value/130892)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 1\
**Last updated:** [March 4, 2008, 10:29am UTC](https://www.ruby-forum.com/t/the-controller-send-method-failing-to-assign-value/130892 "2008-03-04T10:29:36Z")

</div>

Hi there. I have a conroller, on which I’m using the send() method to find the correct property to assign a posted value to. This looks like so: @charactersheets.send(abl) = v Where the abl variable is defined earlier…

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

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