# Rails

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

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

---

## [Follow\_redirect!() doesn't exist?](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [November 28, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/follow-redirect-doesnt-exist/121485 "2007-11-28T12:06:30Z")

</div>

Hi all I want to do some functional testing. I stumbled over the method follow\_redirect!() somewhere, but evidently this doesn’t seem to exist in my Rails version (1.2.5 or so)?! Then I tried follow\_redirect() (witho…

---

## [Reg : select\_datetime s](https://www.ruby-forum.com/t/reg-select-datetime-s/196528)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 11:13am UTC](https://www.ruby-forum.com/t/reg-select-datetime-s/196528 "2007-11-28T11:13:33Z")

</div>

Hi, I want to display date and time. I used \<%= datetime\_select (:program ,:trailer\_date )%\> program=Program.new(params\[:program\]) when i save this format it is throwing error.if any one knows how to solve pls help …

---

## [Reg : select\_datetime](https://www.ruby-forum.com/t/reg-select-datetime/121479)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 11:12am UTC](https://www.ruby-forum.com/t/reg-select-datetime/121479 "2007-11-28T11:12:37Z")

</div>

Hi, I want to display date and time. I used \<%= datetime\_select (:program ,:trailer\_date )%\> program=Program.new(params\[:program\]) when i save this format it is throwing error.if any one knows how to solve pls help …

---

## [Processes run by rails ignore SIG\_TERM](https://www.ruby-forum.com/t/processes-run-by-rails-ignore-sig-term/121474)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 10:22am UTC](https://www.ruby-forum.com/t/processes-run-by-rails-ignore-sig-term/121474 "2007-11-28T10:22:25Z")

</div>

Hello Everybody, it happens that my Rails 1.2.5 application developed in Linux environment starts DHCP service (version 3.0.1-r1 taken from www.isc.org/products/DHCP). After that the process run in his turn by the se…

---

## [Disappearing decimals... please help!](https://www.ruby-forum.com/t/disappearing-decimals-please-help/121430)

<div class="topic-metadata">

**Author:** [@cade3](https://www.ruby-forum.com/u/cade3)\
**Replies:** 3\
**Last updated:** [November 28, 2007, 10:08am UTC](https://www.ruby-forum.com/t/disappearing-decimals-please-help/121430 "2007-11-28T10:08:07Z")

</div>

Maybe it’s all in my head, but I’m having the strangest little issue ever. My pricetags in my rails app are always whole numbers. Rails seems to completely ignore my decimal input. So as a consequence, 10.41 becomes 1…

---

## [Error when accessing](https://www.ruby-forum.com/t/error-when-accessing/121471)

<div class="topic-metadata">

**Author:** [@abednegoyulo](https://www.ruby-forum.com/u/abednegoyulo)\
**Replies:** 1\
**Last updated:** [November 28, 2007, 9:58am UTC](https://www.ruby-forum.com/t/error-when-accessing/121471 "2007-11-28T09:58:35Z")

</div>

Hi! I would like to appologize first if this is the wrong place to post this. I have been studying ruby on rails for a couple of days now. And I have this problem on accessing a site. The error on the production.log …

---

## [Agile RSS Aggregator in Ruby ==\> rails](https://www.ruby-forum.com/t/agile-rss-aggregator-in-ruby-rails/121470)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 9:42am UTC](https://www.ruby-forum.com/t/agile-rss-aggregator-in-ruby-rails/121470 "2007-11-28T09:42:54Z")

</div>

I just installed and ran this amazing program \<http://www.igvita.com/ blog/2007/03/22/agile-rss-aggregator-in-ruby/\>. What would be involved in putting this together with rails? I’d like to persist the feeds to MySQ…

---

## [Generating CRUD interface automagically](https://www.ruby-forum.com/t/generating-crud-interface-automagically/121439)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 8\
**Last updated:** [November 28, 2007, 8:41am UTC](https://www.ruby-forum.com/t/generating-crud-interface-automagically/121439 "2007-11-28T08:41:26Z")

</div>

When I browse to http://localhost:3000/feeds I expect rails to “automagically” present a CRUD interface because I’ve done this with a previous rails (tutorial) project. It’s like I’m missing a rake command, or a sca…

---

## [Help with the Depot App](https://www.ruby-forum.com/t/help-with-the-depot-app/121457)

<div class="topic-metadata">

**Author:** [@cosmas](https://www.ruby-forum.com/u/cosmas)\
**Replies:** 11\
**Last updated:** [November 28, 2007, 8:22am UTC](https://www.ruby-forum.com/t/help-with-the-depot-app/121457 "2007-11-28T08:22:08Z")

</div>

Hi all, Warning noob question! I’m having an absolute blast toying with the Depot example in Agile Web Dev. I made a method that looks like this: def purchase @local = Product.find(params\[:id\]) if @local.status == …

---

## [Win a new car](https://www.ruby-forum.com/t/win-a-new-car/121468)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 7:51am UTC](https://www.ruby-forum.com/t/win-a-new-car/121468 "2007-11-28T07:51:10Z")

</div>

YOU WANT TO WIN A NEW MODEL CAR WITH BEAUTYFUL LOOK http://rexmier.blogspot.com/

---

## [Scaffold error: try creating a table for your model](https://www.ruby-forum.com/t/scaffold-error-try-creating-a-table-for-your-model/121466)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 6:17am UTC](https://www.ruby-forum.com/t/scaffold-error-try-creating-a-table-for-your-model/121466 "2007-11-28T06:17:40Z")

</div>

I decided to return to the tutorial at \<http://developer.apple.com/ tools/rubyonrails.html\> because I did once get the desired result, namely a CRUD interface for a table. I slavishly followed the tutorial but now ge…

---

## [Is there a Telnet Rails Application that someone has build/released?](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [November 28, 2007, 5:14am UTC](https://www.ruby-forum.com/t/is-there-a-telnet-rails-application-that-someone-has-build-released/121452 "2007-11-28T05:14:33Z")

</div>

Hi, Does anyone know if there is a secure Telnet Rails Web Application that is available? i.e. to allow a telnet (SSH) session but in a web-application form (i.e. you deploy the rails application on the host you wa…

---

## [Problems parsing data from deeply-nested forms](https://www.ruby-forum.com/t/problems-parsing-data-from-deeply-nested-forms/121453)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 4:20am UTC](https://www.ruby-forum.com/t/problems-parsing-data-from-deeply-nested-forms/121453 "2007-11-28T04:20:53Z")

</div>

I have the following failing test case in actionpack/test/controller\_test.rb (edge): {{{ def test\_deep\_query\_string\_with\_array\_of\_hashes\_with\_hash\_values query\_string = ‘x\[y\]\[\]\[z\]=1&x\[y\]\[\]\[w\]\[a\]=2&x\[y\]\[\]\[w\]\[b\]=3’ as…

---

## [Marquee Selection and Feedback](https://www.ruby-forum.com/t/marquee-selection-and-feedback/121449)

<div class="topic-metadata">

**Author:** [@geego](https://www.ruby-forum.com/u/geego)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 3:56am UTC](https://www.ruby-forum.com/t/marquee-selection-and-feedback/121449 "2007-11-28T03:56:49Z")

</div>

I need to implement a marquee style selection in which I would drag a cursor so as to draw a box on an image and return the coordinates while it is dragging (thus live feedback) in a popup/tooltip style fashion and th…

---

## [Country + State/Province/County Generator or Plugin](https://www.ruby-forum.com/t/country-state-province-county-generator-or-plugin/121447)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 0\
**Last updated:** [November 28, 2007, 2:15am UTC](https://www.ruby-forum.com/t/country-state-province-county-generator-or-plugin/121447 "2007-11-28T02:15:34Z")

</div>

Google seems to be failing me tonight. Are there any generators for Country State/Province/County generators out their so I do not need to write this stuff myself :-). I am sure someone has done something for this …

---

## [Outputting to web = Rails or web framework the best?](https://www.ruby-forum.com/t/outputting-to-web-rails-or-web-framework-the-best/121403)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 1\
**Last updated:** [November 28, 2007, 12:51am UTC](https://www.ruby-forum.com/t/outputting-to-web-rails-or-web-framework-the-best/121403 "2007-11-28T00:51:57Z")

</div>

I have a program I wrote in ruby, but I would like to have it accessible on the web so my co-workers don’t have to load up a ruby environment. Would Rails be the way to go? The program asks for a list of urls and it’l…

---

## [Complicated find with habtm conditions](https://www.ruby-forum.com/t/complicated-find-with-habtm-conditions/121405)

<div class="topic-metadata">

**Author:** [@pascal](https://www.ruby-forum.com/u/pascal)\
**Replies:** 2\
**Last updated:** [November 27, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/complicated-find-with-habtm-conditions/121405 "2007-11-27T23:49:59Z")

</div>

Hi forum! Please have a look at this link first: http://www.odamoz.org.mz/reports/rpt\_own.asp I’m currently trying to refactor that in Rails, here’s some more info first: We are looking for Projects. A project has\_…

---

## [Render question](https://www.ruby-forum.com/t/render-question/121415)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [November 27, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/render-question/121415 "2007-11-27T23:26:01Z")

</div>

Earlier I ask how I could basically do two things at once - have an error message display then had a list of saved stuff display. Now I would like to, instead, have a alert box come up and say something but still rend…

---

## [Need to Sort Array of Hashes using multiple keys](https://www.ruby-forum.com/t/need-to-sort-array-of-hashes-using-multiple-keys/121421)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/need-to-sort-array-of-hashes-using-multiple-keys/121421 "2007-11-27T23:02:31Z")

</div>

I have an array of hashes that makes up a table that isn’t associated with a Model. Each Hash is a represents a column. For instance the Array would be setup as follows: rows \<\< {:name =\> row\_name, :status =\> row\_sta…

---

## [Startup script](https://www.ruby-forum.com/t/startup-script/121423)

<div class="topic-metadata">

**Author:** [@monarailguy42](https://www.ruby-forum.com/u/monarailguy42)\
**Replies:** 5\
**Last updated:** [November 27, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/startup-script/121423 "2007-11-27T22:08:03Z")

</div>

Hi, I need to run a ruby file when the server starts up and then at 2 second intervals as long as the server is running. What is the preferred way to do this in Rails? Can I put something in the environment.rb or s…

---

## [Integrating mephisto in to the existing rails application](https://www.ruby-forum.com/t/integrating-mephisto-in-to-the-existing-rails-application/120876)

<div class="topic-metadata">

**Author:** [@chandrahasanreddy](https://www.ruby-forum.com/u/chandrahasanreddy)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/integrating-mephisto-in-to-the-existing-rails-application/120876 "2007-11-27T21:48:38Z")

</div>

Hi Guys… I have a rails application which requires the mephisto blog to be integrated in to it as a plugin. I had tried out with a lot of things but was not resulted good. So Could any one please say to me if an…

---

## [A question about associations](https://www.ruby-forum.com/t/a-question-about-associations/121407)

<div class="topic-metadata">

**Author:** [@kyku](https://www.ruby-forum.com/u/kyku)\
**Replies:** 7\
**Last updated:** [November 27, 2007, 9:26pm UTC](https://www.ruby-forum.com/t/a-question-about-associations/121407 "2007-11-27T21:26:38Z")

</div>

Is it possible to get the ‘other’ end of an associations? For example if teacher has\_many students, it could be very readable to say something like this: ateacher.students\[0\].classes which would call a method on the …

---

## [Credit card](https://www.ruby-forum.com/t/credit-card/121297)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [November 27, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/credit-card/121297 "2007-11-27T21:23:22Z")

</div>

Hi all, I got some code from this very site demonstrating how to do credit card encryption and I was wondering if someone here could help me understand the code. def crypt\_number c = cipher c.encrypt c.key = key …

---

## [Sessions across subdomains](https://www.ruby-forum.com/t/sessions-across-subdomains/121413)

<div class="topic-metadata">

**Author:** [@dougal](https://www.ruby-forum.com/u/dougal)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/sessions-across-subdomains/121413 "2007-11-27T20:25:52Z")

</div>

Hi Folks. I have an application that is accessed from a domain, and a subdomain of the same domain dependent on scope. example.com subdomain.example.com How do I ensure that a session remains valid (stays logged in…

---

## [O/T div.fieldWithErrors styling](https://www.ruby-forum.com/t/o-t-div-fieldwitherrors-styling/121418)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 1\
**Last updated:** [November 27, 2007, 8:18pm UTC](https://www.ruby-forum.com/t/o-t-div-fieldwitherrors-styling/121418 "2007-11-27T20:18:16Z")

</div>

this is kinda trivial but I’m anal and it bugs me :slight\_smile: whenever there’s a error in the form the error field is wrapped with this throws my form’s styling off because it puts too much space b/t fields and w…

---

## [Models with only one entry](https://www.ruby-forum.com/t/models-with-only-one-entry/121410)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 0\
**Last updated:** [November 27, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/models-with-only-one-entry/121410 "2007-11-27T19:18:53Z")

</div>

Are there any sweet rails conventions for dealing with models that only have one entry in a table? Here are the specifics of my application… I have 3 manageable content areas on a website (3 different pages with stat…

---

## [JDJ coverage of RoR](https://www.ruby-forum.com/t/jdj-coverage-of-ror/121385)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 3\
**Last updated:** [November 27, 2007, 7:17pm UTC](https://www.ruby-forum.com/t/jdj-coverage-of-ror/121385 "2007-11-27T19:17:19Z")

</div>

I pretty much despise SYS-CON Media as a whole, but I figured I’d point out this JDJ article on RoR: http://java.sys-con.com/read/464389.htm –Greg

---

## [Simple ActiveRecord question](https://www.ruby-forum.com/t/simple-activerecord-question/121406)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 5\
**Last updated:** [November 27, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/simple-activerecord-question/121406 "2007-11-27T18:57:20Z")

</div>

I’ve programmed in ruby for awhile, but I’m just getting into AR. I can boil my current problem understanding it down to the following example. Thanks, Kyle #!/usr/bin/ruby require ‘rubygems’ require ‘active\_reco…

---

## [Is this normal performance?](https://www.ruby-forum.com/t/is-this-normal-performance/121318)

<div class="topic-metadata">

**Author:** [@syg6](https://www.ruby-forum.com/u/syg6)\
**Replies:** 19\
**Last updated:** [November 27, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/is-this-normal-performance/121318 "2007-11-27T18:36:26Z")

</div>

I’m starting to benchmark my application and was wondering if this is normal results / degradation when new layers are added. Basically I was worried about the ~35% decline when it hits mongrel, and the following 40% …

---

## [.Net web services and integers](https://www.ruby-forum.com/t/net-web-services-and-integers/121306)

<div class="topic-metadata">

**Author:** [@damo](https://www.ruby-forum.com/u/damo)\
**Replies:** 12\
**Last updated:** [November 27, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/net-web-services-and-integers/121306 "2007-11-27T18:34:24Z")

</div>

my integers have suddenly become negative numbers when returned from a .Net web service. Thing is I have this running locally on my Mac OS X box and everything is working fine. I then copied the exact same function to…

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

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