# Rails

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

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

---

## [Streaming videos](https://www.ruby-forum.com/t/streaming-videos/114596)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 8:30am UTC](https://www.ruby-forum.com/t/streaming-videos/114596 "2007-09-17T08:30:26Z")

</div>

Hi, Iam facing one problem in showing my videos…anyone knows help me… list of videos available in my public folder…iam showing in one page…if i click any of that video it should open in another page with video like…

---

## [Using benchmark method](https://www.ruby-forum.com/t/using-benchmark-method/114590)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 0\
**Last updated:** [September 17, 2007, 1:30am UTC](https://www.ruby-forum.com/t/using-benchmark-method/114590 "2007-09-17T01:30:20Z")

</div>

Hi, I’m trying to use the benchmark method (from Module ActionController::Benchmarking::ClassMethods). But I get a “undefined method benchmark.” I’m trying to use it from inside a method in a subclass of ActionContr…

---

## [Re: Simple rails website design question](https://www.ruby-forum.com/t/re-simple-rails-website-design-question/114482)

<div class="topic-metadata">

**Author:** [@andre\_hartawan](https://www.ruby-forum.com/u/andre_hartawan)\
**Replies:** 1\
**Last updated:** [September 16, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/re-simple-rails-website-design-question/114482 "2007-09-16T13:20:19Z")

</div>

hi eggie5, you could read this book “Apress - Beginning Ruby On Rails E-Commerce - From Novice To Professional”,there are examples just you mentioned bellow ----- Original Message ---- From: eggie5 removed\_email\_addr…

---

## [Attachment\_fu - width and height is null in table?](https://www.ruby-forum.com/t/attachment-fu-width-and-height-is-null-in-table/114581)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [September 16, 2007, 12:05pm UTC](https://www.ruby-forum.com/t/attachment-fu-width-and-height-is-null-in-table/114581 "2007-09-16T12:05:47Z")

</div>

Hello, I just installed the attachment\_fu plugin, the uploading progress is working fine, the file is upload corrent, but no resizing or thumb? The width and height in the table is NULL, I’m getting in the console “f…

---

## [Add/edit child models in one form](https://www.ruby-forum.com/t/add-edit-child-models-in-one-form/114571)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 0\
**Last updated:** [September 15, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/add-edit-child-models-in-one-form/114571 "2007-09-15T20:18:56Z")

</div>

Hi all I’m a ruby beginner so I hope to get some help on this forum. I have seen that there are allready some posts on this subject, but I can’t seem to get them to work on my test project. To give some info. I have …

---

## [Sessions from existing database](https://www.ruby-forum.com/t/sessions-from-existing-database/114562)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 1\
**Last updated:** [September 15, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/sessions-from-existing-database/114562 "2007-09-15T15:14:00Z")

</div>

I want to read the login session data from an existing Database(oscommerce). The sessions Table looks like this: sesskey (varchar(32)) expiry (int(11)) value (text) I think I have to uncomment this line in the envi…

---

## [Better render\_if\_exists](https://www.ruby-forum.com/t/better-render-if-exists/114566)

<div class="topic-metadata">

**Author:** [@esox\_ch](https://www.ruby-forum.com/u/esox_ch)\
**Replies:** 0\
**Last updated:** [September 15, 2007, 2:57pm UTC](https://www.ruby-forum.com/t/better-render-if-exists/114566 "2007-09-15T14:57:32Z")

</div>

Hello, I’m building a little polymorphic page (I mean that you use the same page to deal with objects coming from different models, for instance users and products) and I need to render some partial templates if they …

---

## [Script/server with options](https://www.ruby-forum.com/t/script-server-with-options/114555)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [September 14, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/script-server-with-options/114555 "2007-09-14T22:48:57Z")

</div>

I have hacked a script that I found at http://www.koders.com/ruby into a generalized webrick startup script. The script is attached to this post and the help text is reproduced below. “script/server” runs webrick on …

---

## [AJAX + RJS across controllers](https://www.ruby-forum.com/t/ajax-rjs-across-controllers/114552)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/ajax-rjs-across-controllers/114552 "2007-09-14T22:40:07Z")

</div>

Here’s the scenario… there are a lot of models in use in this one controller, so I want to separate responsibility for remote calls into different controllers. some\_controller has a view with a list of Foo objects. s…

---

## [Question about "lightweight" definition?](https://www.ruby-forum.com/t/question-about-lightweight-definition/114423)

<div class="topic-metadata">

**Author:** [@shafi](https://www.ruby-forum.com/u/shafi)\
**Replies:** 2\
**Last updated:** [September 14, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/question-about-lightweight-definition/114423 "2007-09-14T21:11:27Z")

</div>

why Ruby on Rails is lightweight? , and does it effect on project size or number of website users in the same time? – Mohamed S. software engineer

---

## [How to calculate the distance/radius on zipcodes?](https://www.ruby-forum.com/t/how-to-calculate-the-distance-radius-on-zipcodes/114389)

<div class="topic-metadata">

**Author:** [@surfman](https://www.ruby-forum.com/u/surfman)\
**Replies:** 5\
**Last updated:** [September 14, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-calculate-the-distance-radius-on-zipcodes/114389 "2007-09-14T20:12:31Z")

</div>

Suppose I have all zip codes database, how may I allow my users search all things within xxx miles from his/her zip codes? I have no idea on the calculation of the math. anyone may help me with same codes? Thanks in a…

---

## [How to define people and movies' association?](https://www.ruby-forum.com/t/how-to-define-people-and-movies-association/114536)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 4\
**Last updated:** [September 14, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-define-people-and-movies-association/114536 "2007-09-14T18:19:37Z")

</div>

I want to make a app similar to www.imdb.com, now I have a problem to define the association of two table --people and movies . Movie stars, movie writers… are allow people, I plan to put all people data into one tabl…

---

## [Organizing rhtml and rjs files?](https://www.ruby-forum.com/t/organizing-rhtml-and-rjs-files/114522)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 3\
**Last updated:** [September 14, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/organizing-rhtml-and-rjs-files/114522 "2007-09-14T16:27:06Z")

</div>

Is it possible to keep rjs and rhtml files in different subdirectories of a view, for purely organizational reasons? On a very AJAX heavy view, there are a LOT of partials, and it just gets a bit messy.

---

## [Testing a rest plugin](https://www.ruby-forum.com/t/testing-a-rest-plugin/114543)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/testing-a-rest-plugin/114543 "2007-09-14T15:20:03Z")

</div>

Hello, I have a plugin that interacts with nearly all parts of rails (Controller / ActiveRecord / Routing / Views / Views’ Helpers) I’m in the need of some sort of integration testing. My idea is to step on the test d…

---

## [HTTP Post with Web Services](https://www.ruby-forum.com/t/http-post-with-web-services/114541)

<div class="topic-metadata">

**Author:** [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/http-post-with-web-services/114541 "2007-09-14T15:19:41Z")

</div>

Hello, I would like to know, in a rails web service, is there a way to do an HTTP Post or GET or is it only SOAP and XML-RPC?

---

## [ActionMailer issues](https://www.ruby-forum.com/t/actionmailer-issues/114540)

<div class="topic-metadata">

**Author:** [@xinit](https://www.ruby-forum.com/u/xinit)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/actionmailer-issues/114540 "2007-09-14T14:23:02Z")

</div>

Hi all, I’m having some issues with ActionMailer and I’m wondering if anyone ever experienced the same issues? And of course, I hope that there are solutions for my issues. Currently, I experienced two: ActionMail…

---

## [\[Ruby on rails\] upload del progetto](https://www.ruby-forum.com/t/ruby-on-rails-upload-del-progetto/114537)

<div class="topic-metadata">

**Author:** [@cletopolonia](https://www.ruby-forum.com/u/cletopolonia)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 11:11am UTC](https://www.ruby-forum.com/t/ruby-on-rails-upload-del-progetto/114537 "2007-09-14T11:11:00Z")

</div>

Sono un super-inesperto e sono di fronte ad 1 enorme problema… Devo fare l’upload del mio progetto sul server dell’universitÃ . Le istruzioni che ci ha dato il prof sono per linux, Come installare la tua applicazionc…

---

## [Mapping two host names to the same app](https://www.ruby-forum.com/t/mapping-two-host-names-to-the-same-app/114534)

<div class="topic-metadata">

**Author:** [@christophe1](https://www.ruby-forum.com/u/christophe1)\
**Replies:** 0\
**Last updated:** [September 14, 2007, 10:22am UTC](https://www.ruby-forum.com/t/mapping-two-host-names-to-the-same-app/114534 "2007-09-14T10:22:08Z")

</div>

Hi, I wonder if there is any reason to avoid mapping several host names to the same rails application in an apache + fcgi configuration (I’m thinking about the tmp directory content). My idea is to detect the host nam…

---

## [Pdf::Writer ; page numbering, and table wrapping](https://www.ruby-forum.com/t/pdf-writer-page-numbering-and-table-wrapping/89064)

<div class="topic-metadata">

**Author:** [@jshow](https://www.ruby-forum.com/u/jshow)\
**Replies:** 2\
**Last updated:** [September 14, 2007, 10:05am UTC](https://www.ruby-forum.com/t/pdf-writer-page-numbering-and-table-wrapping/89064 "2007-09-14T10:05:56Z")

</div>

Hey there, I know this isn’t a pdf::writer list - If there’s a more appropriate place for me to ask these questions I’d appreciate being set straight. I’m having a couple of misunderstandings/isssues first with page n…

---

## [\[ANN/ADV\] CustomXMLSerialization 1.1](https://www.ruby-forum.com/t/ann-adv-customxmlserialization-1-1/114527)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [September 14, 2007, 2:25am UTC](https://www.ruby-forum.com/t/ann-adv-customxmlserialization-1-1/114527 "2007-09-14T02:25:32Z")

</div>

CustomXMLSerialization is a Ruby on Rails plug-in that allows you more freedom in how your model objects are serialized using the to\_xml method in ActiveRecord::XmlSerialization. Your ActiveRecord subclasses can speci…

---

## [Create! method\_missing?](https://www.ruby-forum.com/t/create-method-missing/114514)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/create-method-missing/114514 "2007-09-13T22:12:40Z")

</div>

So, all the documentation says I should be able to call #create! on an ActiveRecord, to do the same thing as #create, but raise an exception on validation failure. But when I try this on any ActiveRecord::Base class, …

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/114011)

<div class="topic-metadata">

**Author:** [@jzhang](https://www.ruby-forum.com/u/jzhang)\
**Replies:** 1\
**Last updated:** [September 13, 2007, 10:12pm UTC](https://www.ruby-forum.com/t/nomethoderror/114011 "2007-09-13T22:12:31Z")

</div>

Rails guru Our rails web applicaion always show NoMethodError after runing some time. This NoMethodError throw from controller during the access to ActiveRecord association method. But we define a belongs\_to in the …

---

## [Forcing Action mailer to asynchronous mode?](https://www.ruby-forum.com/t/forcing-action-mailer-to-asynchronous-mode/114526)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/forcing-action-mailer-to-asynchronous-mode/114526 "2007-09-13T22:07:02Z")

</div>

Hi, Has anyone looked at this: Forcing action mailer to do the mailer processing in asynchronous mode. I am aware of action mailer queue. Wanted to check if we can do that directly instead of the plugin? Regards, Sa…

---

## [Eager loading issue](https://www.ruby-forum.com/t/eager-loading-issue/114524)

<div class="topic-metadata">

**Author:** [@leveille](https://www.ruby-forum.com/u/leveille)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/eager-loading-issue/114524 "2007-09-13T21:56:48Z")

</div>

Hi, so I have an eager loading issue I’d like to get opinions on. My models are imported from an xml file and I’m able to preserve the hierarchy and use the models to\_xml() method to get the whole tree back as an expo…

---

## [Broken Console](https://www.ruby-forum.com/t/broken-console/114286)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 14\
**Last updated:** [September 13, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/broken-console/114286 "2007-09-13T21:27:59Z")

</div>

Hi, i’ve posted this before, but I still haven’t been able to figure out how to resolve this issue. C:\\rails\_apps\\jms\>ruby script/console Loading development environment. c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custo…

---

## [Rails and LDap all on Windows](https://www.ruby-forum.com/t/rails-and-ldap-all-on-windows/114521)

<div class="topic-metadata">

**Author:** [@dpav345](https://www.ruby-forum.com/u/dpav345)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/rails-and-ldap-all-on-windows/114521 "2007-09-13T21:17:42Z")

</div>

So, I’m new to LDAP and semi-new to rails. I’ve referenced this page - http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap My questions : Does this method WORK on Windows? I’ve installed all of the gems…

---

## [Route for crashes, missing urls etc?](https://www.ruby-forum.com/t/route-for-crashes-missing-urls-etc/114516)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 7:19pm UTC](https://www.ruby-forum.com/t/route-for-crashes-missing-urls-etc/114516 "2007-09-13T19:19:27Z")

</div>

Someone mentioned to me that you can set a route in environment.rb for when the app crashes, or someone puts in a bad url, or anything ‘bad’ basically - does anyone know how to set this up please?

---

## [WEBRick auto generated SSL certificate](https://www.ruby-forum.com/t/webrick-auto-generated-ssl-certificate/114511)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [September 13, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/webrick-auto-generated-ssl-certificate/114511 "2007-09-13T18:26:40Z")

</div>

Where do I look for/find the parameters that ::SSLCertName will accept for WEBrick’s auto-generated certificate? Specifically, I am trying to find out if there is a way to generate or pass a unique certificate serial …

---

## [ActiveRecord: Select which sequence to use](https://www.ruby-forum.com/t/activerecord-select-which-sequence-to-use/114510)

<div class="topic-metadata">

**Author:** [@verifier](https://www.ruby-forum.com/u/verifier)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/activerecord-select-which-sequence-to-use/114510 "2007-09-13T15:51:31Z")

</div>

I’m using rails with PostgreSQL. I have a table which have two different sequences (generators). One should be used when administrators are saving rows, and one when regular users are doing it. How can I tell rails t…

---

## [Development.log](https://www.ruby-forum.com/t/development-log/114509)

<div class="topic-metadata">

**Author:** [@S.Tony](https://www.ruby-forum.com/u/S.Tony)\
**Replies:** 0\
**Last updated:** [September 13, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/development-log/114509 "2007-09-13T15:28:55Z")

</div>

I am using activescaffold with form override I find the the select tag value cannot be insert into table Processing CustomerController#create (for 127.0.0.1 at 2007-09-13 21:22:43) \[POST\] Session ID: 1358d30acc2435d9…

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

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