# Rails

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

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

---

## [Setting classes and ids](https://www.ruby-forum.com/t/setting-classes-and-ids/138918)

<div class="topic-metadata">

**Author:** [@brownerthanu](https://www.ruby-forum.com/u/brownerthanu)\
**Replies:** 5\
**Last updated:** [May 29, 2008, 12:49am UTC](https://www.ruby-forum.com/t/setting-classes-and-ids/138918 "2008-05-29T00:49:54Z")

</div>

is there a way to set the classes and ids of html elements made via helpers. for instance i want to create a link that results in the following html: Home is there a way to do it, or will i have to do it the old htm…

---

## [Re: Which free RoR IDE would you recommend?](https://www.ruby-forum.com/t/re-which-free-ror-ide-would-you-recommend/138912)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/re-which-free-ror-ide-would-you-recommend/138912 "2008-05-28T22:57:26Z")

</div>

I asked this a few months ago and the result was about: Netbeans - 6 Others (I forget which one)- 1 ----- Original Message ---- From: John Y. removed\_email\_address@domain.invalid To: Ruby on Rails: Talk removed\_ema…

---

## [$25-$50/hour contractorship](https://www.ruby-forum.com/t/25-50-hour-contractorship/138868)

<div class="topic-metadata">

**Author:** [@Josh.B](https://www.ruby-forum.com/u/Josh.B)\
**Replies:** 13\
**Last updated:** [May 28, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/25-50-hour-contractorship/138868 "2008-05-28T22:20:54Z")

</div>

I’m looking for a skilled Ruby on Rails developer to pick up some slack on one of my company’s most interesting projects. Knowledge of SQL and javascript, and significant web-development experience are a must. In ad…

---

## [Display a page using 2 controllers](https://www.ruby-forum.com/t/display-a-page-using-2-controllers/138769)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/display-a-page-using-2-controllers/138769 "2008-05-28T21:56:33Z")

</div>

Hi everybody, I’m currently trying to write my own blog on Rails 2. In this way, I had create 2 models and 3 tables: articles tags articles\_tags After this, I had generated a scaffold of Article in order to use the …

---

## [Anyone use freemium?](https://www.ruby-forum.com/t/anyone-use-freemium/138910)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/anyone-use-freemium/138910 "2008-05-28T21:53:12Z")

</div>

Hey is anyone using freemium? I would love to see a bare-bones app that uses it

---

## [Weather api](https://www.ruby-forum.com/t/weather-api/138881)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/weather-api/138881 "2008-05-28T21:43:13Z")

</div>

Hi all, I’m looking for a weather service that I can query for weather forcasts. It 's imoprtant that it works for European countries. Idealy I would send it a timedate and postcode and it would send me the weather. …

---

## [Functional testing joins table problem](https://www.ruby-forum.com/t/functional-testing-joins-table-problem/138900)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/functional-testing-joins-table-problem/138900 "2008-05-28T20:52:26Z")

</div>

I have models/controllers Class Facility has\_many :facilities\_services, :dependent =\> :delete\_all Class Service has\_many :facilities\_services, :dependent =\> :delete\_all Class FacilitiesServices belongs\_to :facility …

---

## [GiT and Edge/Trunk Rails](https://www.ruby-forum.com/t/git-and-edge-trunk-rails/136080)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 16\
**Last updated:** [May 28, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/git-and-edge-trunk-rails/136080 "2008-05-28T20:52:25Z")

</div>

I have a sub-application project that I had previously converted to edge rails under svn. Originally, vendor/rails was set up with svn:externals so that an svn update at the project’s root would pull the latest trunk …

---

## [OT: Redmine and GIT](https://www.ruby-forum.com/t/ot-redmine-and-git/134401)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 5\
**Last updated:** [May 28, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/ot-redmine-and-git/134401 "2008-05-28T20:20:17Z")

</div>

If anyone has experience with using Redmine (http://www.redmine.org/) with GIT for project management then I would appreciate your thoughts on it. Particularly if you have had precious experience with Trac/Subversion…

---

## [Can I insert a string into my model after save?](https://www.ruby-forum.com/t/can-i-insert-a-string-into-my-model-after-save/138588)

<div class="topic-metadata">

**Author:** [@yaphi](https://www.ruby-forum.com/u/yaphi)\
**Replies:** 6\
**Last updated:** [May 28, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/can-i-insert-a-string-into-my-model-after-save/138588 "2008-05-28T19:48:57Z")

</div>

So I am following the directions on the RoR wiki for uploading images (the new 2.0.2 directions) : http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles The files upload beautifully, but I don’t know how to access …

---

## [Help with output](https://www.ruby-forum.com/t/help-with-output/138884)

<div class="topic-metadata">

**Author:** [@Shawn\_B](https://www.ruby-forum.com/u/Shawn_B)\
**Replies:** 15\
**Last updated:** [May 28, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/help-with-output/138884 "2008-05-28T19:29:16Z")

</div>

I am having problems trying to get the output to work in an application I have. Here is the example THIS GIVES ME THE CORRECT VALUES \<% if(params\[:flooring\]) %\> \<tr\>\<td colspan="4"\>\<h2\>F…

---

## [Postgres & Foxy Fixtures](https://www.ruby-forum.com/t/postgres-foxy-fixtures/124094)

<div class="topic-metadata">

**Author:** [@devaulw](https://www.ruby-forum.com/u/devaulw)\
**Replies:** 6\
**Last updated:** [May 28, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/postgres-foxy-fixtures/124094 "2008-05-28T19:02:42Z")

</div>

I love foxy fixtures!!! However, when I rake my fixtures into my db the ID’s start out at 2million. Has any experienced this issue and have a work-around? Thanks, Bill

---

## [Announcing:Custom Migrator for Multi Developer Environment](https://www.ruby-forum.com/t/announcing-custom-migrator-for-multi-developer-environment/138895)

<div class="topic-metadata">

**Author:** [@pbn](https://www.ruby-forum.com/u/pbn)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/announcing-custom-migrator-for-multi-developer-environment/138895 "2008-05-28T18:50:56Z")

</div>

Hi, I wrote a custom migrator which I think is helpful in multi-developer environment. Please try it out and let me know if you have any feedback and/or features to be added. Here’s the link to the project and doc. h…

---

## [Posts/gets to other servers inside of action?](https://www.ruby-forum.com/t/posts-gets-to-other-servers-inside-of-action/138804)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/posts-gets-to-other-servers-inside-of-action/138804 "2008-05-28T18:17:44Z")

</div>

Hi all, We are in a ‘web-service-like’ scenario in which a controller action needs to save some things to the database and issue a couple of POSTS/GETS to other servers. These aren’t web services, per se, but rather…

---

## [MarsEdit and custom blog](https://www.ruby-forum.com/t/marsedit-and-custom-blog/138872)

<div class="topic-metadata">

**Author:** [@kishba](https://www.ruby-forum.com/u/kishba)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/marsedit-and-custom-blog/138872 "2008-05-28T18:13:48Z")

</div>

If I were to recreate my blog with Rails, is it possible to interface with MarsEdit?

---

## [OpenVZ versus Xen or others](https://www.ruby-forum.com/t/openvz-versus-xen-or-others/84924)

<div class="topic-metadata">

**Author:** [@raul](https://www.ruby-forum.com/u/raul)\
**Replies:** 12\
**Last updated:** [May 28, 2008, 5:20pm UTC](https://www.ruby-forum.com/t/openvz-versus-xen-or-others/84924 "2008-05-28T17:20:41Z")

</div>

Hi again. All the great assistance so far has moved me along. I’m still a Linux noob but I’ve settled on CentOS 4.4 and have it up and running on a test server right now. I’ll be testing two scenarios: one with Ap…

---

## [Comparing and copying objects](https://www.ruby-forum.com/t/comparing-and-copying-objects/138856)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [May 28, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/comparing-and-copying-objects/138856 "2008-05-28T16:22:49Z")

</div>

Hi, I wonder if there is a quick way to do this. companyA has 2 employees “a”, “b” companyB has 3 employees “a”, “b”, “c” I basically want to merge companyA employess with companyB employees so when i look at compan…

---

## [Getting gmail contact details in RoR by using atom feed](https://www.ruby-forum.com/t/getting-gmail-contact-details-in-ror-by-using-atom-feed/138866)

<div class="topic-metadata">

**Author:** [@Raj\_4\_PHP\_and\_RoR](https://www.ruby-forum.com/u/Raj_4_PHP_and_RoR)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/getting-gmail-contact-details-in-ror-by-using-atom-feed/138866 "2008-05-28T15:10:20Z")

</div>

Hi, I’ve got my gmail contacts Atom feed with the one time valid token by using following http get request in Ruby. Now I want to get the details like phone no., Photos, address etc. I’ve parsed atom feed and have go…

---

## [Attachment\_fu, polymorphism and customization](https://www.ruby-forum.com/t/attachment-fu-polymorphism-and-customization/138859)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/attachment-fu-polymorphism-and-customization/138859 "2008-05-28T15:00:55Z")

</div>

Hi, I got Image model that has\_attachment and belongs\_to 2 other models via polymorphic association. The problem is that I’d like to customize has\_attachment options (resize image) depending on which model the Image …

---

## [Creating account and user at same time](https://www.ruby-forum.com/t/creating-account-and-user-at-same-time/138857)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/creating-account-and-user-at-same-time/138857 "2008-05-28T14:55:35Z")

</div>

hi all I’m trying to find a the best way of creating an account and a user at the same time (the restful way). When a user wants to register, he needs to create an account first. So he gives his account info, at the …

---

## [Any application examples?](https://www.ruby-forum.com/t/any-application-examples/138821)

<div class="topic-metadata">

**Author:** [@alby](https://www.ruby-forum.com/u/alby)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/any-application-examples/138821 "2008-05-28T14:47:52Z")

</div>

I’m curious about Rails. But I couldn’t find sample, or real, applications. Just so I can see how it “looks”. Where can I download some apps? Whatever subject, and they don’t actually have to work.

---

## [Encrypt or password protect PDF document created with Ruport](https://www.ruby-forum.com/t/encrypt-or-password-protect-pdf-document-created-with-ruport/138381)

<div class="topic-metadata">

**Author:** [@bhushangahire](https://www.ruby-forum.com/u/bhushangahire)\
**Replies:** 4\
**Last updated:** [May 28, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/encrypt-or-password-protect-pdf-document-created-with-ruport/138381 "2008-05-28T14:29:27Z")

</div>

I am using Ruport and Rupdf to create PDF document, I want to encrypt the PDF document with some password. I have gone through the PDF::Write#encrypt method, But I am not able to use it with Ruport. If anyone already…

---

## [What is the best hosting provider for an enterprise scale Rails application?](https://www.ruby-forum.com/t/what-is-the-best-hosting-provider-for-an-enterprise-scale-rails-application/138858)

<div class="topic-metadata">

**Author:** [@Ivan\_V](https://www.ruby-forum.com/u/Ivan_V)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/what-is-the-best-hosting-provider-for-an-enterprise-scale-rails-application/138858 "2008-05-28T14:27:40Z")

</div>

We have just finished the early stages of testing our application and are looking to roll it out to our customers in the coming weeks (approx 12000 of them), our application manages financial transactions and has a hu…

---

## [URL parameters](https://www.ruby-forum.com/t/url-parameters/138860)

<div class="topic-metadata">

**Author:** [@Shawn\_B](https://www.ruby-forum.com/u/Shawn_B)\
**Replies:** 3\
**Last updated:** [May 28, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/url-parameters/138860 "2008-05-28T13:45:06Z")

</div>

Can someone help me please. I have a form on one page that is functioning as a search form. After I get the results on the next page I would like to be also able to read the search options selected which are in the UR…

---

## [Load fixtures for each methode](https://www.ruby-forum.com/t/load-fixtures-for-each-methode/138848)

<div class="topic-metadata">

**Author:** [@eddy\_b](https://www.ruby-forum.com/u/eddy_b)\
**Replies:** 2\
**Last updated:** [May 28, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/load-fixtures-for-each-methode/138848 "2008-05-28T12:30:26Z")

</div>

Hi, officially Rails load for each test the fixures file into the database but in my case Rails load the fixures only on the begining of the class and so I get strange side effects. An example: country\_test.rb: requ…

---

## [Video uploading in youtube](https://www.ruby-forum.com/t/video-uploading-in-youtube/137466)

<div class="topic-metadata">

**Author:** [@soumyavenukumar](https://www.ruby-forum.com/u/soumyavenukumar)\
**Replies:** 1\
**Last updated:** [May 28, 2008, 11:43am UTC](https://www.ruby-forum.com/t/video-uploading-in-youtube/137466 "2008-05-28T11:43:13Z")

</div>

Hi, I am having troubles with direct API working, I am using net/http and net/https and am getting a Connection reset by peer error. I am including the full program code below and I hope somebody can spot what I am …

---

## [URL and params with %E4](https://www.ruby-forum.com/t/url-and-params-with-e4/138853)

<div class="topic-metadata">

**Author:** [@emeratius](https://www.ruby-forum.com/u/emeratius)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 11:32am UTC](https://www.ruby-forum.com/t/url-and-params-with-e4/138853 "2008-05-28T11:32:18Z")

</div>

I got an url I like http://localhost:3000/article?text?n�sta When I read the parameter params\[:text\] I only get nÃ¤a. It deletes the two characters after %E4. In my log i can see the parameter: Parameters: {“text”=\>“…

---

## [Ultrasphinx : Geo-location look-up returns NAN](https://www.ruby-forum.com/t/ultrasphinx-geo-location-look-up-returns-nan/138849)

<div class="topic-metadata">

**Author:** [@vikki](https://www.ruby-forum.com/u/vikki)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 11:23am UTC](https://www.ruby-forum.com/t/ultrasphinx-geo-location-look-up-returns-nan/138849 "2008-05-28T11:23:08Z")

</div>

Hi all, I’m trying to use geo-location based search using ultrasphinx, Here my search query. @search = Ultrasphinx::Search.new(:sort\_mode =\> ‘extended’, :sort\_by =\> ‘distance’, :location =\> {:units =\> ‘degrees’, :lat…

---

## [Tests fail through rake](https://www.ruby-forum.com/t/tests-fail-through-rake/138844)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 0\
**Last updated:** [May 28, 2008, 10:08am UTC](https://www.ruby-forum.com/t/tests-fail-through-rake/138844 "2008-05-28T10:08:08Z")

</div>

Hi! I have a strange problem. I have three controllers of same name EntitiesController. One is under rest/entities\_controller.rb and is called Rest::EntitiesController, the other is under admin/ entities\_controller.r…

---

## [How to make rails wait](https://www.ruby-forum.com/t/how-to-make-rails-wait/138723)

<div class="topic-metadata">

**Author:** [@fanz](https://www.ruby-forum.com/u/fanz)\
**Replies:** 5\
**Last updated:** [May 28, 2008, 9:28am UTC](https://www.ruby-forum.com/t/how-to-make-rails-wait/138723 "2008-05-28T09:28:15Z")

</div>

Hi,everyone.Here’s my situation: I have a controller like this: class FooController \< ApplicationController def delay sleep 10 render :text=\>“ok” end def normal render :text=\>"ok" end end but I…

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

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