# Rails

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

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

---

## [Slicehost Down](https://www.ruby-forum.com/t/slicehost-down/118913)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 7\
**Last updated:** [November 1, 2007, 11:17am UTC](https://www.ruby-forum.com/t/slicehost-down/118913 "2007-11-01T11:17:29Z")

</div>

It seems to me that SliceHost.com and my hosted site have been down for at least the past hour. Does anyone notice the same?

---

## [Manuals.rubyonrails.com not online](https://www.ruby-forum.com/t/manuals-rubyonrails-com-not-online/118915)

<div class="topic-metadata">

**Author:** [@micho](https://www.ruby-forum.com/u/micho)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 11:12am UTC](https://www.ruby-forum.com/t/manuals-rubyonrails-com-not-online/118915 "2007-11-01T11:12:49Z")

</div>

Hi, can I find the manuals on another site? manuals.rubyonrails.com does not work. tnx Micho

---

## [RESTful routes, Globalite, an optional locale path\_prefix?](https://www.ruby-forum.com/t/restful-routes-globalite-an-optional-locale-path-prefix/118091)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 10:33am UTC](https://www.ruby-forum.com/t/restful-routes-globalite-an-optional-locale-path-prefix/118091 "2007-11-01T10:33:37Z")

</div>

Hi there, I have a few internationalized resources: map.resource :vendors, :path\_prefix =\> “/:locale” map.resource :contacts, :path\_prefix =\> “/:locale” map.resource :galleries, :path\_prefix =\> “/:locale” I’m using …

---

## [How to pass data from a view to a partial rendered in a layout?](https://www.ruby-forum.com/t/how-to-pass-data-from-a-view-to-a-partial-rendered-in-a-layout/118902)

<div class="topic-metadata">

**Author:** [@athem](https://www.ruby-forum.com/u/athem)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 9:50am UTC](https://www.ruby-forum.com/t/how-to-pass-data-from-a-view-to-a-partial-rendered-in-a-layout/118902 "2007-11-01T09:50:22Z")

</div>

In the application I’m working on, a layout renders a partial that displays a breadcrumb navigation bar across the top of a page. In other words, the layout renders a partial that displays breadcrumbs. But the naviga…

---

## [Urgetn Openings for RoR Programmers](https://www.ruby-forum.com/t/urgetn-openings-for-ror-programmers/118910)

<div class="topic-metadata">

**Author:** [@sarvana](https://www.ruby-forum.com/u/sarvana)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 9:20am UTC](https://www.ruby-forum.com/t/urgetn-openings-for-ror-programmers/118910 "2007-11-01T09:20:56Z")

</div>

Hi ALL, Greetings!!! It’s been great to see you all sharing/discussing/suggestions the topics about Ruby on Rails (RoR). About US: Before that, I’ve introduced myself. I’m K.Saravana Kumar, HR for one of the upgrow…

---

## [Error edit user view page](https://www.ruby-forum.com/t/error-edit-user-view-page/118908)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 9:12am UTC](https://www.ruby-forum.com/t/error-edit-user-view-page/118908 "2007-11-01T09:12:31Z")

</div>

Hi there… I have created a table and a join table class CreateArrangements \< ActiveRecord::Migration def self.up create\_table :arrangements do |t| t.column :name, :string end end def self.down drop\_table :arrang…

---

## [Session for Multi-Page Flow and complex objects](https://www.ruby-forum.com/t/session-for-multi-page-flow-and-complex-objects/118906)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 8:40am UTC](https://www.ruby-forum.com/t/session-for-multi-page-flow-and-complex-objects/118906 "2007-11-01T08:40:16Z")

</div>

I have a multi-step flow where the primary model has a number of “has\_many” relationships. I’ve read of people storing their Model in the session for multi-step forms, but for some reason I feel dirty when I do this. …

---

## [Time/Date prior to 1970 into negative milliseconds/seconds](https://www.ruby-forum.com/t/time-date-prior-to-1970-into-negative-milliseconds-seconds/118870)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 5\
**Last updated:** [November 1, 2007, 6:19am UTC](https://www.ruby-forum.com/t/time-date-prior-to-1970-into-negative-milliseconds-seconds/118870 "2007-11-01T06:19:49Z")

</div>

Anyone know how to take a date or time prior to 1970 and convert it into negative seconds or milliseconds? I know there is time.to\_i, but a Time object can’t be prior to 1970 or else it will throw an error.

---

## [Problem with lighttpd exiting hourly](https://www.ruby-forum.com/t/problem-with-lighttpd-exiting-hourly/118895)

<div class="topic-metadata">

**Author:** [@b0rdslide](https://www.ruby-forum.com/u/b0rdslide)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 4:46am UTC](https://www.ruby-forum.com/t/problem-with-lighttpd-exiting-hourly/118895 "2007-11-01T04:46:37Z")

</div>

This is my first rails project so I am not sure if this is normal but for some reason my lighttpd keeps resetting on the hour every hour and not restarting correctly. I am not sure if its supposed to restart like this…

---

## [Does HAProxy need Apache](https://www.ruby-forum.com/t/does-haproxy-need-apache/118894)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 1\
**Last updated:** [November 1, 2007, 4:43am UTC](https://www.ruby-forum.com/t/does-haproxy-need-apache/118894 "2007-11-01T04:43:39Z")

</div>

Hi, I’ve just been reading about Rubyworks and HAProxy etc. Does HAProxy take Apache right out of the loop or does it sit behind Apache. Sorry if this is a silly question but it is not imediatly apparent on the Ruby…

---

## [Re-running js after ajax call](https://www.ruby-forum.com/t/re-running-js-after-ajax-call/118887)

<div class="topic-metadata">

**Author:** [@Matthew\_Swasey](https://www.ruby-forum.com/u/Matthew_Swasey)\
**Replies:** 2\
**Last updated:** [November 1, 2007, 3:27am UTC](https://www.ruby-forum.com/t/re-running-js-after-ajax-call/118887 "2007-11-01T03:27:03Z")

</div>

Ok, so say you have a page, and when it loads, it runs everything in application.js. Here, there is some code in between: Event.observe(window, ‘load’, function(){ // Code goes here. }) Does anyone know, how you co…

---

## [Another question about acts\_as\_rateable](https://www.ruby-forum.com/t/another-question-about-acts-as-rateable/118886)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 1, 2007, 12:32am UTC](https://www.ruby-forum.com/t/another-question-about-acts-as-rateable/118886 "2007-11-01T00:32:23Z")

</div>

I’ve been trying to add some rating capabilities to a site I’m working on, I’ve been following a few tutorials (one being http:// Acts As Rateable Plugin | Juixe Techknow) and I keep seeing something that’s confusing …

---

## [Gem update of rails GemNotFoundExpection](https://www.ruby-forum.com/t/gem-update-of-rails-gemnotfoundexpection/118873)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/gem-update-of-rails-gemnotfoundexpection/118873 "2007-10-31T23:53:12Z")

</div>

I am trying to update rails on a live box of mine and its bauking at me. Is anyone else seeing a problem I am doing a gem update -v 1.2.3 --include-dependencies. Its giving me an error: Attempting to remote update o…

---

## [Wierd timeout with apache mod\_proxy](https://www.ruby-forum.com/t/wierd-timeout-with-apache-mod-proxy/118883)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/wierd-timeout-with-apache-mod-proxy/118883 "2007-10-31T23:53:12Z")

</div>

Hi I may have posted this in the wrong place: apologies if I have. I currently have a setup with Apache proxying requests to mongrels. Occassionally, in the apache logs I get an error that looks like \[Tue Oct 30 12:…

---

## [Associated Totals with Eager Loading](https://www.ruby-forum.com/t/associated-totals-with-eager-loading/118876)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/associated-totals-with-eager-loading/118876 "2007-10-31T23:45:02Z")

</div>

I have the following. @sales = Sale.find(:all, :include =\> \[:sale\_items\]) I want totals on the sale items. It works if I code it like this. @sale\_item\_total = 0 @sales.each do |sale| @sale\_item\_total += @sale.sale\_…

---

## [Apache, Fast CGI, Capistrano (Newbie)](https://www.ruby-forum.com/t/apache-fast-cgi-capistrano-newbie/118810)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 5\
**Last updated:** [October 31, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/apache-fast-cgi-capistrano-newbie/118810 "2007-10-31T21:48:40Z")

</div>

Hi guys, So, I’ve built my first rails application and it’s time to upload it. I’ve asked the web hosting to provide me with a server port number for the application and also about the server configuration, which is: …

---

## [Leopard Hiccups?](https://www.ruby-forum.com/t/leopard-hiccups/118689)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 7\
**Last updated:** [October 31, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/leopard-hiccups/118689 "2007-10-31T20:59:41Z")

</div>

Ok, I’m presently chicken rather than Leopard. I can’t get my work done without my development Mac, so I’ve been waiting patiently for you guys to bring up and solve all of the problems before I go over to the Mac st…

---

## [Error when starting rails, what does it mean?](https://www.ruby-forum.com/t/error-when-starting-rails-what-does-it-mean/118874)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/error-when-starting-rails-what-does-it-mean/118874 "2007-10-31T20:50:10Z")

</div>

Hi, Can anyone tell me what the below error means when I’m trying to start rails? I’m using Fedora LInux Core 5. After visiting the rails setup page (Ruby on Rails — A web-app framework that includes everything need…

---

## [Route.rb parameters](https://www.ruby-forum.com/t/route-rb-parameters/118872)

<div class="topic-metadata">

**Author:** [@ken.ingram](https://www.ruby-forum.com/u/ken.ingram)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/route-rb-parameters/118872 "2007-10-31T20:40:12Z")

</div>

I set up VirtualHost in Apache which works fine to the “public” directory, however attempting to connect to the app/controller is problematic. i.e. The page returns this: Routing Error no route found to match “/musi…

---

## [Rspec autotest setup for plugins](https://www.ruby-forum.com/t/rspec-autotest-setup-for-plugins/115374)

<div class="topic-metadata">

**Author:** [@henster](https://www.ruby-forum.com/u/henster)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/rspec-autotest-setup-for-plugins/115374 "2007-10-31T19:51:36Z")

</div>

Hey, Anyone writing specs for plugins? I’m trying to write a spec for a plugin and can’t find the preferred method to set up autotest. I see the rails rspec plugin has a rake task called spec:plugins which feels ver…

---

## [Denormalizing in Rails](https://www.ruby-forum.com/t/denormalizing-in-rails/118866)

<div class="topic-metadata">

**Author:** [@binkly](https://www.ruby-forum.com/u/binkly)\
**Replies:** 2\
**Last updated:** [October 31, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/denormalizing-in-rails/118866 "2007-10-31T19:49:53Z")

</div>

Hello All, I saw the following code in a slide deck and was hoping someone could help me out trying to understand it. def self.up add\_column “users”, “friends\_ids”, :text end class Friendship \< AR::Base belongs t…

---

## [How does table\_name static method work?](https://www.ruby-forum.com/t/how-does-table-name-static-method-work/118864)

<div class="topic-metadata">

**Author:** [@uncle](https://www.ruby-forum.com/u/uncle)\
**Replies:** 1\
**Last updated:** [October 31, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/how-does-table-name-static-method-work/118864 "2007-10-31T19:41:41Z")

</div>

There has to be a simple explanation for this. I can do this to get the table name behind a model User.table\_name =\> “users” Great. But looking at the table\_name code in active\_record/base.rb, the table\_name me…

---

## [Session vars vs hidden form values](https://www.ruby-forum.com/t/session-vars-vs-hidden-form-values/118868)

<div class="topic-metadata">

**Author:** [@John\_M\_Lauck](https://www.ruby-forum.com/u/John_M_Lauck)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/session-vars-vs-hidden-form-values/118868 "2007-10-31T19:31:10Z")

</div>

Considering a new web app that uses both ajax and standard http post forms depending on the situation, is it bad to use session vars to store user input data? The alternative to using session vars is to use a hidden …

---

## [Update\_by\_sql?](https://www.ruby-forum.com/t/update-by-sql/118727)

<div class="topic-metadata">

**Author:** [@peri](https://www.ruby-forum.com/u/peri)\
**Replies:** 8\
**Last updated:** [October 31, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/update-by-sql/118727 "2007-10-31T18:22:39Z")

</div>

Has anyone come across documentation on how to execute an update\_by\_sql function on an ActiveRecord object? This would be similar to X.find\_by\_sql. Any help would be greatly appreciated!

---

## [Question for rails multidomain application design](https://www.ruby-forum.com/t/question-for-rails-multidomain-application-design/118857)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/question-for-rails-multidomain-application-design/118857 "2007-10-31T18:18:34Z")

</div>

Hi to all, I would design an application for multidomain support and my question is what is the best practice to do this kind of application ? Eg.: I think to write my application handling the multidomain into routin…

---

## [Create post method error](https://www.ruby-forum.com/t/create-post-method-error/118787)

<div class="topic-metadata">

**Author:** [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Replies:** 3\
**Last updated:** [October 31, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/create-post-method-error/118787 "2007-10-31T17:41:05Z")

</div>

Hi I am having trouble with a submit code for a form. I don’t get errors or anything. it just goes to the redirect and it dosen’t show anything def create @comment = ForumComment.new(params\[:post\]) @comment.user\_id …

---

## [Image Tag without extension](https://www.ruby-forum.com/t/image-tag-without-extension/118837)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 2\
**Last updated:** [October 31, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/image-tag-without-extension/118837 "2007-10-31T17:36:59Z")

</div>

I’ve got a Rails action that generates images from a DB, and it works just fine. The url is like property/pictures/234234?n=1. It spits out the image just fine. However when I put this URL in an image\_tag, it works bu…

---

## [Is this possible? select unique records from multiple joins](https://www.ruby-forum.com/t/is-this-possible-select-unique-records-from-multiple-joins/118753)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 5\
**Last updated:** [October 31, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/is-this-possible-select-unique-records-from-multiple-joins/118753 "2007-10-31T17:00:08Z")

</div>

This will return articles includings its multiple assets @articles = Article.find\_by\_sql(“select articles.id,articles.title,articles.summary,articles.body,” + “articles.created\_at,articles.updated\_at,articles.created\_…

---

## [Problem installing rails through gems on Windows XP behind a firewall](https://www.ruby-forum.com/t/problem-installing-rails-through-gems-on-windows-xp-behind-a-firewall/118179)

<div class="topic-metadata">

**Author:** [@mukesh23singh](https://www.ruby-forum.com/u/mukesh23singh)\
**Replies:** 3\
**Last updated:** [October 31, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/problem-installing-rails-through-gems-on-windows-xp-behind-a-firewall/118179 "2007-10-31T16:40:10Z")

</div>

I am trying to install Ruby On Rails on my office computer which runs Windows XP Professional Edition. I get this error: C:\>gem install rails --remote ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) Ba…

---

## [EOFError: bad content body](https://www.ruby-forum.com/t/eoferror-bad-content-body/118847)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 0\
**Last updated:** [October 31, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/eoferror-bad-content-body/118847 "2007-10-31T16:34:32Z")

</div>

I get the following issue while uploading a file using hidden-iframe in ajaxscaffold. I couldn’t guess or determine the type of the error…? I use ajaxscaffold to load the initial page and load the form while creating…

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

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