# Rails

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

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

---

## [Hiding URL params](https://www.ruby-forum.com/t/hiding-url-params/153222)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 11:24pm UTC](https://www.ruby-forum.com/t/hiding-url-params/153222 "2008-11-13T23:24:26Z")

</div>

Hello, How can I hide params on the URL? If I have the following resources, how can I hide the groups resources on the URL when showing posts? map.resources :groups do |groups| groups.resources :posts end Normally …

---

## [IE's session id changes on every request](https://www.ruby-forum.com/t/ies-session-id-changes-on-every-request/153241)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 7\
**Last updated:** [November 13, 2008, 11:13pm UTC](https://www.ruby-forum.com/t/ies-session-id-changes-on-every-request/153241 "2008-11-13T23:13:16Z")

</div>

Hi, I am developing a site with rails 2.1.2. restful\_authentication is used. I can log in with Firefox but not with IE or Safari. I checked the log and found that session ID changes every time for IE. Why does this …

---

## [Error installing rcov gem on ubuntu 7.1](https://www.ruby-forum.com/t/error-installing-rcov-gem-on-ubuntu-7-1/153206)

<div class="topic-metadata">

**Author:** [@Ikenna\_N](https://www.ruby-forum.com/u/Ikenna_N)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/error-installing-rcov-gem-on-ubuntu-7-1/153206 "2008-11-13T22:01:39Z")

</div>

I am running Ubuntu 7.1 and getting the following error when trying to install rcov. What do i do? dev@localhost:~$ sudo gem install rcov Select which gem to install for your platform (i486-linux) rcov 0.8.1.2.0 (ms…

---

## [Sharing view between new and edit actions](https://www.ruby-forum.com/t/sharing-view-between-new-and-edit-actions/153176)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/sharing-view-between-new-and-edit-actions/153176 "2008-11-13T21:46:18Z")

</div>

Hi, I had an argument with the web designer about a philosophical(not very practical) issue. Normally, we have new.html.erb and edit.html.erb and they share \_form.html.erb as a partial render. The designer said that…

---

## [REST API authentication strategies when using OpenID](https://www.ruby-forum.com/t/rest-api-authentication-strategies-when-using-openid/153243)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/rest-api-authentication-strategies-when-using-openid/153243 "2008-11-13T20:51:12Z")

</div>

What sort of mechanisms are people using to expose their APIs to people if they use OpenID? On a recent project, I just generated an email + api key pair for each account and I tell people to use that, then my authen…

---

## [REST with 1.2.3](https://www.ruby-forum.com/t/rest-with-1-2-3/153233)

<div class="topic-metadata">

**Author:** [@Bob\_O](https://www.ruby-forum.com/u/Bob_O)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/rest-with-1-2-3/153233 "2008-11-13T19:59:32Z")

</div>

Hello all, First let me say im a n00b. Im coming into the OOP world from the design world. So far so good. With great resources like this, youre all making my life less painfull. Question - The current project im in…

---

## [Deploying Production Rails on Windows Server](https://www.ruby-forum.com/t/deploying-production-rails-on-windows-server/153218)

<div class="topic-metadata">

**Author:** [@iplat](https://www.ruby-forum.com/u/iplat)\
**Replies:** 11\
**Last updated:** [November 13, 2008, 7:41pm UTC](https://www.ruby-forum.com/t/deploying-production-rails-on-windows-server/153218 "2008-11-13T19:41:21Z")

</div>

Hello Everyone, I’m in need of a good guide that will describe how to deploy Rails in a production environment on windows. Unfortunately, I have no choice on the platform so I need to find something that will help me …

---

## [Fragment caching strangely honors the options I pass to it](https://www.ruby-forum.com/t/fragment-caching-strangely-honors-the-options-i-pass-to-it/153232)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/fragment-caching-strangely-honors-the-options-i-pass-to-it/153232 "2008-11-13T18:45:39Z")

</div>

Hi, In my view I have the following cache: \<%- cache(:controller =\> ‘products’, :action =\> ‘index’, :action\_suffix =\> ‘footer’) do -%\> … \<%- end -%\> And that’s the file generated: tmp/cache/views/www.mysite.com/pr…

---

## [Connection refused](https://www.ruby-forum.com/t/connection-refused/153143)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 3\
**Last updated:** [November 13, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/connection-refused/153143 "2008-11-13T18:00:58Z")

</div>

what is the reason for this error. this return when try to direct web page. No connection could be made because the target machine actively refused it. - connect(2)

---

## [Function reference](https://www.ruby-forum.com/t/function-reference/153221)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/function-reference/153221 "2008-11-13T17:30:27Z")

</div>

Hi I’ve got 2 static functions (self.), playlist function is calling check\_movie function in a loop. I need to have the results stored in myarray and myhash. I don’t know how I can give references of myarray and myha…

---

## [Localized routes with Rails 2.2?](https://www.ruby-forum.com/t/localized-routes-with-rails-2-2/153227)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/localized-routes-with-rails-2-2/153227 "2008-11-13T17:22:17Z")

</div>

I have not yet tested Rails 2.2, but I’d like to know if its i18n framework enables to defines localized routes. For instance is it possible to easily define: English site, mysite.com/products German site, mysite.co…

---

## [Some optimization hacks: your opinion?](https://www.ruby-forum.com/t/some-optimization-hacks-your-opinion/153154)

<div class="topic-metadata">

**Author:** [@Enrico\_Thierbach](https://www.ruby-forum.com/u/Enrico_Thierbach)\
**Replies:** 6\
**Last updated:** [November 13, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/some-optimization-hacks-your-opinion/153154 "2008-11-13T16:48:12Z")

</div>

Hi everyone, I found and tried two optimization hacks; however, I don’t feel too comfortable with them. Therefore I would appreciate your opinion: Caching proc objects, i.e. class Symbol def to\_proc @to\_proc ||= …

---

## [Images / stylesheets not loading](https://www.ruby-forum.com/t/images-stylesheets-not-loading/153069)

<div class="topic-metadata">

**Author:** [@marli03](https://www.ruby-forum.com/u/marli03)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 4:27pm UTC](https://www.ruby-forum.com/t/images-stylesheets-not-loading/153069 "2008-11-13T16:27:19Z")

</div>

when I use image\_tag or a stylesheet tag, the underlying images or stylesheets aren’t loading. Everything used to work properly, but I ran into some errors and have had to change some settings, but nothing relating t…

---

## [Association](https://www.ruby-forum.com/t/association/153194)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/association/153194 "2008-11-13T16:20:03Z")

</div>

Hi… I would like to know what i ve done wrong in my association. I have 4 Models. user\_info company\_info department role Actually i want to get Particular user’s company,and which department he belongs and what r…

---

## [ROR switcher asks "Does ROR offer CRUD form (admin interfaces) auto-generation for databases?"](https://www.ruby-forum.com/t/ror-switcher-asks-does-ror-offer-crud-form-admin-interfaces-auto-generation-for-databases/153107)

<div class="topic-metadata">

**Author:** [@Micheal\_Cooper](https://www.ruby-forum.com/u/Micheal_Cooper)\
**Replies:** 8\
**Last updated:** [November 13, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/ror-switcher-asks-does-ror-offer-crud-form-admin-interfaces-auto-generation-for-databases/153107 "2008-11-13T16:07:39Z")

</div>

I am currently using a very early framework called ERW, and I getting into Ruby so that I can recreate (with paid help) a very large college administration db app in Rails. Until relatively recently, I was going to do…

---

## [Backgroundrb and TzTime](https://www.ruby-forum.com/t/backgroundrb-and-tztime/153215)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-tztime/153215 "2008-11-13T15:15:26Z")

</div>

Hello all, I’m using Backgroundrb on a project that has several time-sensitive parameters. I’m using background.yml to set the schedule for my tasks. I’m also using the TzTime plugin throughout the web site since use…

---

## [What's the cleanest way to add have a start / stop control with EventMachine](https://www.ruby-forum.com/t/whats-the-cleanest-way-to-add-have-a-start-stop-control-with-eventmachine/153151)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/whats-the-cleanest-way-to-add-have-a-start-stop-control-with-eventmachine/153151 "2008-11-13T15:08:24Z")

</div>

Hi there, I’m new to playing with EventMachine and I wondered if anyone has a nice way of backgrounding it and start / stopping it from the command line like an init script. e.g. ./mydaemon start|stop I’ve not seen …

---

## [2.2.1 Target Date](https://www.ruby-forum.com/t/2-2-1-target-date/153213)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/2-2-1-target-date/153213 "2008-11-13T14:40:48Z")

</div>

Hello, I havent seen much noise if any, on the status of 2.2.0 RC1 and an expected 2.2.1 delivery date. http://rails.lighthouseapp.com/projects/8994/milestones/12671-2-2 shows 1 oustanding ticket. Is there an exp…

---

## [Missing template.... wsdl.rhtml](https://www.ruby-forum.com/t/missing-template-wsdl-rhtml/153209)

<div class="topic-metadata">

**Author:** [@g\_pallavi1](https://www.ruby-forum.com/u/g_pallavi1)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/missing-template-wsdl-rhtml/153209 "2008-11-13T13:37:54Z")

</div>

Hi, I am using SOAP4R to provide web services. When I dont mention “expects” and “returns” parameter the wsdl file gets generated but as soon as I specify the “expects” and “returns” parameter I get a template missin…

---

## [RESTful acts\_as\_tree](https://www.ruby-forum.com/t/restful-acts-as-tree/153207)

<div class="topic-metadata">

**Author:** [@cautaro](https://www.ruby-forum.com/u/cautaro)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 12:36pm UTC](https://www.ruby-forum.com/t/restful-acts-as-tree/153207 "2008-11-13T12:36:53Z")

</div>

Hello, I was trying to use the acts\_as\_tree plugin and I got stuck when trying to do it in a RESTful way. I have a Place model that can have and belong to other places. What is the correct method of creating new plac…

---

## [Newbie needing help on Legacy DB Rails Concepts](https://www.ruby-forum.com/t/newbie-needing-help-on-legacy-db-rails-concepts/153188)

<div class="topic-metadata">

**Author:** [@Auch](https://www.ruby-forum.com/u/Auch)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 11:39am UTC](https://www.ruby-forum.com/t/newbie-needing-help-on-legacy-db-rails-concepts/153188 "2008-11-13T11:39:22Z")

</div>

Hi I have limited success with rails and am trying very hard to understand the MVC, DRY and RESTful concepts that Rails supports. What I am trying to do is to automate some data manipulation procedures for legacy sys…

---

## [Migrations - determine all available migration (files)](https://www.ruby-forum.com/t/migrations-determine-all-available-migration-files/153195)

<div class="topic-metadata">

**Author:** [@clemens](https://www.ruby-forum.com/u/clemens)\
**Replies:** 1\
**Last updated:** [November 13, 2008, 11:38am UTC](https://www.ruby-forum.com/t/migrations-determine-all-available-migration-files/153195 "2008-11-13T11:38:11Z")

</div>

Is there a way to determine whether all migrations have been run? ActiveRecord::Migrator.get\_all\_versions only returns the migrations run (but not the ones not yet run). Thx Clemens

---

## [How to get the list of installed plugins?](https://www.ruby-forum.com/t/how-to-get-the-list-of-installed-plugins/153113)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 9:59am UTC](https://www.ruby-forum.com/t/how-to-get-the-list-of-installed-plugins/153113 "2008-11-13T09:59:42Z")

</div>

Hi all, Is there a simple way to get a list of installed plugins in an app? I need name and version of each running plugin. I saw some methods in the API, but related to the loading of plugins. Thanks, Jej

---

## [Form post command?](https://www.ruby-forum.com/t/form-post-command/153189)

<div class="topic-metadata">

**Author:** [@xxmithila](https://www.ruby-forum.com/u/xxmithila)\
**Replies:** 2\
**Last updated:** [November 13, 2008, 4:05am UTC](https://www.ruby-forum.com/t/form-post-command/153189 "2008-11-13T04:05:45Z")

</div>

Help me… error on form post:- ActionController::InvalidAuthenticityToken this is the my code RHTML file CONTROLLER class MsgController \< ApplicationController def confirm @data = params\[:text1\] end e…

---

## [Where to put custmized files in Rails app?](https://www.ruby-forum.com/t/where-to-put-custmized-files-in-rails-app/153071)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [November 13, 2008, 3:35am UTC](https://www.ruby-forum.com/t/where-to-put-custmized-files-in-rails-app/153071 "2008-11-13T03:35:53Z")

</div>

All, This is the first time to play on Rails application. Simple questions: where to locate/store my own \*.rb, and \*.txt files in my Rails app? I put my \*.rb in the components folder so that controllers can see them …

---

## [Controller method/action being called twice (once POST and once GET) for file upload - why?](https://www.ruby-forum.com/t/controller-method-action-being-called-twice-once-post-and-once-get-for-file-upload-why/153178)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [November 13, 2008, 3:08am UTC](https://www.ruby-forum.com/t/controller-method-action-being-called-twice-once-post-and-once-get-for-file-upload-why/153178 "2008-11-13T03:08:58Z")

</div>

I’m uploading a file via the user’s browser. The index method in my controller is: \<%= form\_tag({:action=\>‘receive\_file’}, :multipart =\> true)%\> I get a form with a ‘browse’ button and an ‘upload’ button. I …

---

## [Is Rails Scaffolding Production Ready](https://www.ruby-forum.com/t/is-rails-scaffolding-production-ready/153061)

<div class="topic-metadata">

**Author:** [@Chas\_Lemley](https://www.ruby-forum.com/u/Chas_Lemley)\
**Replies:** 4\
**Last updated:** [November 13, 2008, 2:08am UTC](https://www.ruby-forum.com/t/is-rails-scaffolding-production-ready/153061 "2008-11-13T02:08:10Z")

</div>

Is scaffolding in Rails production ready? I’ve read a few opinions on this, but most were referring to the original style of scaffolding found in rails. Because scaffolding now creates the controller, models, views …

---

## [Preserving sort method for Prev/Next links on show page](https://www.ruby-forum.com/t/preserving-sort-method-for-prev-next-links-on-show-page/153184)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 0\
**Last updated:** [November 13, 2008, 1:12am UTC](https://www.ruby-forum.com/t/preserving-sort-method-for-prev-next-links-on-show-page/153184 "2008-11-13T01:12:02Z")

</div>

I’m using sortable\_column\_headers plugin, and would like to know how I can pull the next and previous objects into the “show” page for moving between the various objects in the db. – Anthony E. 408-656-2473 http://…

---

## [Foreign key question](https://www.ruby-forum.com/t/foreign-key-question/152079)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 5\
**Last updated:** [November 13, 2008, 12:49am UTC](https://www.ruby-forum.com/t/foreign-key-question/152079 "2008-11-13T00:49:43Z")

</div>

Here’s my situation: Let’s say, I have a “members” table that tools like this: id | member\_id | name | and I have a “invitation” table that looks like this: id | member\_id | date | In my case, invitation.member\_id n…

---

## [Can't create has\_one record](https://www.ruby-forum.com/t/cant-create-has-one-record/153173)

<div class="topic-metadata">

**Author:** [@vineire77](https://www.ruby-forum.com/u/vineire77)\
**Replies:** 2\
**Last updated:** [November 12, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/cant-create-has-one-record/153173 "2008-11-12T23:53:39Z")

</div>

Hello all. I have the following code in my Accounts controller: @account = Account.create(params\[:account\]) @website = @account.websites.create(params\[:website\]) @contact = @account.contact.create(params\[:contact\]) M…

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

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