# Rails

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

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

---

## [Multiblog engine?](https://www.ruby-forum.com/t/multiblog-engine/111914)

<div class="topic-metadata">

**Author:** [@alvim](https://www.ruby-forum.com/u/alvim)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/multiblog-engine/111914 "2007-08-13T14:25:53Z")

</div>

Hey, guys. I’m looking for a blog engine that will support multiple users/blogs. I’ve looked at Typo and RadiantCMS, along with some others. No one seems to do this as of yet, and I don’t have the time (or the skills, …

---

## [Form Blocks](https://www.ruby-forum.com/t/form-blocks/111906)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/form-blocks/111906 "2007-08-13T14:04:51Z")

</div>

Hi, How do I get a value out of a form block eg. \<% form\_for :order do |form\_block| %\> \<%= form\_block.text\_field :name, :size =\> 40 %\> \<% end %\> If within that block I wanted to get the value of an attribute like …

---

## [Converting date and time formats](https://www.ruby-forum.com/t/converting-date-and-time-formats/111917)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/converting-date-and-time-formats/111917 "2007-08-13T13:57:19Z")

</div>

Hi, I am trying to convert the update\_at column in my database to this format “Fri, 10 Aug 2007 12:17:00 GMT”. How do I do this? Kind regards, Dave.

---

## [Healthy lifestyle ! â®â®â®](https://www.ruby-forum.com/t/healthy-lifestyle-a-a-a/111916)

<div class="topic-metadata">

**Author:** [@Info\_4\_Today\_SS\_SS](https://www.ruby-forum.com/u/Info_4_Today_SS_SS)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/healthy-lifestyle-a-a-a/111916 "2007-08-13T13:47:44Z")

</div>

Do you know anyone who plays computer all the time? Perhaps their personal relationships, work and social life are suffering due to their desire to constantly play computer? If this is the case, this person you know m…

---

## [Date and Time validator, updater](https://www.ruby-forum.com/t/date-and-time-validator-updater/111878)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 4\
**Last updated:** [August 13, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/date-and-time-validator-updater/111878 "2007-08-13T12:50:37Z")

</div>

Can someone point me to a date/time validator or updater. I have an event start datetime and an event end datetime. I want to validate that the end datetime is after the start datetime. Figure there is some code or l…

---

## [Multiple Database Connections](https://www.ruby-forum.com/t/multiple-database-connections/111747)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 17\
**Last updated:** [August 13, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/multiple-database-connections/111747 "2007-08-13T12:03:29Z")

</div>

Hi all, We currently have a potentially large scale rails project. There is one table (call it ‘updates’) that will potentially have somewhere in the region of 2500 records created every minute (ie 200 million recor…

---

## [Default find condition in ActiveRecord](https://www.ruby-forum.com/t/default-find-condition-in-activerecord/110639)

<div class="topic-metadata">

**Author:** [@seeah](https://www.ruby-forum.com/u/seeah)\
**Replies:** 10\
**Last updated:** [August 13, 2007, 11:10am UTC](https://www.ruby-forum.com/t/default-find-condition-in-activerecord/110639 "2007-08-13T11:10:24Z")

</div>

I’m having the following situation: Users can upload photos (and possibly videos, music etc. in future) each of which must be approved by an administrator before it becomes public. The photos are being displayed in a …

---

## [Weird validates\_format\_of problem](https://www.ruby-forum.com/t/weird-validates-format-of-problem/111749)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 4\
**Last updated:** [August 13, 2007, 10:22am UTC](https://www.ruby-forum.com/t/weird-validates-format-of-problem/111749 "2007-08-13T10:22:20Z")

</div>

Hi, I have an odd problem when trying to match a hyphen in a validates\_format\_of validation: class DataDate \< ActiveRecord::Base validates\_format\_of :date, :with =\> /-/ end If I try to create a new instance either …

---

## [I am sorry about this question,please help me!](https://www.ruby-forum.com/t/i-am-sorry-about-this-question-please-help-me/111903)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 10:03am UTC](https://www.ruby-forum.com/t/i-am-sorry-about-this-question-please-help-me/111903 "2007-08-13T10:03:17Z")

</div>

I use Instant Rails 1.7 to develop this project in windows xp. I have attached it.How can i make it to display in chinese when i input “http://localhost:3000/admin/list” in the browser. Thank you!

---

## [Yaml for mysql](https://www.ruby-forum.com/t/yaml-for-mysql/111770)

<div class="topic-metadata">

**Author:** [@niky81](https://www.ruby-forum.com/u/niky81)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 9:55am UTC](https://www.ruby-forum.com/t/yaml-for-mysql/111770 "2007-08-13T09:55:18Z")

</div>

Hi, I’m writing my first application with RoR and would like to use the migrate files for the DB definition. Where can I find the correct syntax to use? Thank you.

---

## [CSV parse error (CONST\_MISSING)](https://www.ruby-forum.com/t/csv-parse-error-const-missing/111889)

<div class="topic-metadata">

**Author:** [@henry](https://www.ruby-forum.com/u/henry)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 9:49am UTC](https://www.ruby-forum.com/t/csv-parse-error-const-missing/111889 "2007-08-13T09:49:16Z")

</div>

Hi, I have built a function in my app for the user to parse a CSV file and store the data in the application’s database. This works great in Locomotive on my Mac, but the app has been deployed to an IIS server and n…

---

## [Testing controller modules](https://www.ruby-forum.com/t/testing-controller-modules/111815)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 9:43am UTC](https://www.ruby-forum.com/t/testing-controller-modules/111815 "2007-08-13T09:43:16Z")

</div>

Hello, I have a controller that defines a module and I’m wondering how I can write a functional test for methods w/in the module. Here’s the basic structure of the controller module blog\_controller: require 'hmac/hma…

---

## [Uninitialized constant MiniMagic (NameError)](https://www.ruby-forum.com/t/uninitialized-constant-minimagic-nameerror/111748)

<div class="topic-metadata">

**Author:** [@pradeep](https://www.ruby-forum.com/u/pradeep)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 9:23am UTC](https://www.ruby-forum.com/t/uninitialized-constant-minimagic-nameerror/111748 "2007-08-13T09:23:14Z")

</div>

Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ‘rubygems’ gem ‘mini\_magick’ include minimagick image = MiniMagick::Image.from\_file(’./fun.jpg’) image.resize “100x100” …

---

## [ROR application deployment in Distributed / Non Distributed](https://www.ruby-forum.com/t/ror-application-deployment-in-distributed-non-distributed/111908)

<div class="topic-metadata">

**Author:** [@krkaleraj](https://www.ruby-forum.com/u/krkaleraj)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 9:03am UTC](https://www.ruby-forum.com/t/ror-application-deployment-in-distributed-non-distributed/111908 "2007-08-13T09:03:12Z")

</div>

Hi All Any one of you can suggest me how to deploy ROR in Distributed and Non Distributed environment? What is the software / hardware configuration is required. Thanks K.R.Kaleraj

---

## [Rspec compatibility issue](https://www.ruby-forum.com/t/rspec-compatibility-issue/111895)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 7:46am UTC](https://www.ruby-forum.com/t/rspec-compatibility-issue/111895 "2007-08-13T07:46:08Z")

</div>

I’m trying to get Rspec working. Using the installing 1.0.7 & the Rails plugin, I tried one of the examples on Rspec’s website and produced the following error: #######################################################…

---

## [How to return Full path in File\_field?](https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901)

<div class="topic-metadata">

**Author:** [@coelho](https://www.ruby-forum.com/u/coelho)\
**Replies:** 1\
**Last updated:** [August 13, 2007, 6:36am UTC](https://www.ruby-forum.com/t/how-to-return-full-path-in-file-field/111901 "2007-08-13T06:36:01Z")

</div>

Hello, I have put a file\_field on my form and it is working but instead of returning the full PATH+filename it only returns filename. On screen when I pick a file it shows Path+filename but when submited only filena…

---

## [Rails For All announces acts\_as\_conference](https://www.ruby-forum.com/t/rails-for-all-announces-acts-as-conference/111899)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 5:54am UTC](https://www.ruby-forum.com/t/rails-for-all-announces-acts-as-conference/111899 "2007-08-13T05:54:02Z")

</div>

Hello everyone, Rails For All has announced that they are going to hold a two day, one track Rails conference in Orlando, Florida in February of 2008. Check out the ADS site for links to the official announcement and …

---

## [Image\_tag returns screwy src url from url\_for\_file\_column](https://www.ruby-forum.com/t/image-tag-returns-screwy-src-url-from-url-for-file-column/111890)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [August 13, 2007, 3:21am UTC](https://www.ruby-forum.com/t/image-tag-returns-screwy-src-url-from-url-for-file-column/111890 "2007-08-13T03:21:53Z")

</div>

Seems like I had this question, but never asked or never resolved it. Anyway, I’m using file\_column. I’ve been using it. No problems. Works great. url\_for\_file\_column returns the proper url every time. Except… when …

---

## [Help With associations](https://www.ruby-forum.com/t/help-with-associations/111834)

<div class="topic-metadata">

**Author:** [@charlie](https://www.ruby-forum.com/u/charlie)\
**Replies:** 5\
**Last updated:** [August 13, 2007, 3:19am UTC](https://www.ruby-forum.com/t/help-with-associations/111834 "2007-08-13T03:19:52Z")

</div>

I am having some problems manipulating associations. For example, I have an opinion model that belongs to both a user model and a blog model. When listing a users blogs I want to also list that users opinion of the bl…

---

## [Polymorphic URLs from script/console?](https://www.ruby-forum.com/t/polymorphic-urls-from-script-console/111892)

<div class="topic-metadata">

**Author:** [@jay-levitt](https://www.ruby-forum.com/u/jay-levitt)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 2:35am UTC](https://www.ruby-forum.com/t/polymorphic-urls-from-script-console/111892 "2007-08-13T02:35:50Z")

</div>

In my routes.rb, I have: map.resources :users, :member =\> {:edit\_business\_card =\> :get, :update\_business\_card =\> :put } In a view, I can say \<%= update\_business\_card\_url %\> And from my browser, I can post to http:…

---

## [Look at this nice link](https://www.ruby-forum.com/t/look-at-this-nice-link/111888)

<div class="topic-metadata">

**Author:** [@pupsi](https://www.ruby-forum.com/u/pupsi)\
**Replies:** 0\
**Last updated:** [August 13, 2007, 12:26am UTC](https://www.ruby-forum.com/t/look-at-this-nice-link/111888 "2007-08-13T00:26:43Z")

</div>

http://www.pennergame.de/ref.php?uid=4762

---

## [RESTful and "graceful" degrade if javascript is disabled](https://www.ruby-forum.com/t/restful-and-graceful-degrade-if-javascript-is-disabled/111872)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/restful-and-graceful-degrade-if-javascript-is-disabled/111872 "2007-08-12T23:30:36Z")

</div>

I’m trying to resolve a sort of personal conflict. On the one hand, I want to use the new nifty javascript things. In the case of the application I’m writing, it would make the user interface usable and I can’t figur…

---

## [24 seconds for FASTCGI process to startup? Is this normal?](https://www.ruby-forum.com/t/24-seconds-for-fastcgi-process-to-startup-is-this-normal/111881)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/24-seconds-for-fastcgi-process-to-startup-is-this-normal/111881 "2007-08-12T22:57:33Z")

</div>

Hi, I’m on Dreamhost for hosting and have been finding that (noting Dreamhost kill off ruby processes) the first page return takes 20-40seconds, after which things go ok. I’ve put some logging in the “dispatch.fcgi”…

---

## [Bootrapping a database using Capistrano](https://www.ruby-forum.com/t/bootrapping-a-database-using-capistrano/111874)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 3\
**Last updated:** [August 12, 2007, 9:57pm UTC](https://www.ruby-forum.com/t/bootrapping-a-database-using-capistrano/111874 "2007-08-12T21:57:29Z")

</div>

Hi, I used “rake db:schema:dump” to generate a file containing: ActiveRecord::Schema.define(:version =\> 20) do create\_table “connections”, :force =\> true do |t| … So it has everything needed to generate my database …

---

## [Integrating polymorphic models into controllers views? how?](https://www.ruby-forum.com/t/integrating-polymorphic-models-into-controllers-views-how/111714)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 7\
**Last updated:** [August 12, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/integrating-polymorphic-models-into-controllers-views-how/111714 "2007-08-12T20:30:20Z")

</div>

I’m having trouble trying to get this to work. How the heck do you get a polymorphic controller to work? Especially integrating it with a view? Let’s say that we have shows, and episodes, then comments. A show has ma…

---

## [Has\_one relationship not working](https://www.ruby-forum.com/t/has-one-relationship-not-working/111858)

<div class="topic-metadata">

**Author:** [@jspencer78](https://www.ruby-forum.com/u/jspencer78)\
**Replies:** 2\
**Last updated:** [August 12, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/has-one-relationship-not-working/111858 "2007-08-12T19:30:09Z")

</div>

I’m writing my first web app in rails and it was going really well until now. I have just linked 2 class with a has\_one relationship but its not working. class Vmorder \< ActiveRecord::Base has\_one :creditcard … cl…

---

## [Newbie: AJAX not working - Undefined Method error](https://www.ruby-forum.com/t/newbie-ajax-not-working-undefined-method-error/111870)

<div class="topic-metadata">

**Author:** [@jules](https://www.ruby-forum.com/u/jules)\
**Replies:** 0\
**Last updated:** [August 12, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/newbie-ajax-not-working-undefined-method-error/111870 "2007-08-12T18:42:08Z")

</div>

Hello I have included prototype in my Applications rhtml file \<%= javascript\_include\_tag "prototype" %\> FLYPRO \<%= stylesheet\_link\_tag 'flypro' %\> I call link\_to\_remote in a page as follows \<%= link…

---

## [Re: Multiple Database Connections](https://www.ruby-forum.com/t/re-multiple-database-connections/111760)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 3\
**Last updated:** [August 12, 2007, 6:33pm UTC](https://www.ruby-forum.com/t/re-multiple-database-connections/111760 "2007-08-12T18:33:07Z")

</div>

Instead of different databases per customer, why not use different tables in the same database per customer ? No need to mess around with connections, just do something like Model.table\_name = ‘table\_’+session\[:custom…

---

## [Rails incorrectly names cached files](https://www.ruby-forum.com/t/rails-incorrectly-names-cached-files/111864)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 1\
**Last updated:** [August 12, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/rails-incorrectly-names-cached-files/111864 "2007-08-12T18:01:02Z")

</div>

I’m having difficultly getting simple page caching to work with named routes. I have a named route called “about” (url About Us | Domain.com) which goes to the controller called “home” and an action called “about”. W…

---

## [\[OT\] Parallels or VMWare?](https://www.ruby-forum.com/t/ot-parallels-or-vmware/111737)

<div class="topic-metadata">

**Author:** [@liquid](https://www.ruby-forum.com/u/liquid)\
**Replies:** 16\
**Last updated:** [August 12, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/ot-parallels-or-vmware/111737 "2007-08-12T17:57:02Z")

</div>

I’m looking to get parallels or vmware for my imac. Wondering what ppls opinions are. Besides web broswers I need to run some windows only stuff, and wondering about running MS Office Opinions? Thanx Daniel

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

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