# Rails

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

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

---

## [Instant Rails Ruby Component](https://www.ruby-forum.com/t/instant-rails-ruby-component/194126)

<div class="topic-metadata">

**Author:** [@webdr](https://www.ruby-forum.com/u/webdr)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/instant-rails-ruby-component/194126 "2010-08-30T19:07:21Z")

</div>

Hello, I would like to update Ruby in instant rails from 1.8.6 to 1.9.2, but it is not just simple to extract and replace into ruby folder because i loose all gems like actionmailer etc… also i can’t replace only rub…

---

## [How to get rid of automatic orthography corrections?](https://www.ruby-forum.com/t/how-to-get-rid-of-automatic-orthography-corrections/194073)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 4\
**Last updated:** [August 30, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/how-to-get-rid-of-automatic-orthography-corrections/194073 "2010-08-30T18:58:57Z")

</div>

In my template, I wrote: \<%= f.label 'GnuPlot-Anweisungen:' %\> And rails converts this label to Gnuplot anweisungen: How to get rid of this feature? By the way: this behaviour is hated by german users of MS Office a…

---

## [How to properly define constants in helpers?](https://www.ruby-forum.com/t/how-to-properly-define-constants-in-helpers/194112)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [August 30, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/how-to-properly-define-constants-in-helpers/194112 "2010-08-30T18:41:22Z")

</div>

Let’s say I have a helper module like this module ThingsHelper DEFAULT\_OPTIONS = { … }.freeze def my\_helper(options = {}) options.reverse\_merge!(DEFAULT\_OPTIONS) … end end Then, in development environment, I get …

---

## [Linking Models](https://www.ruby-forum.com/t/linking-models/194019)

<div class="topic-metadata">

**Author:** [@crashbangboom](https://www.ruby-forum.com/u/crashbangboom)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/linking-models/194019 "2010-08-30T18:32:12Z")

</div>

Hi… I’m just starting with Rails 3.0.0.rc and am trying to get my models to link as I did in previous rails releases… I.e… I used to be able to tell the model: belongs\_to :districts then in the controller: def ind…

---

## [Update from Rails RC to Rails 3](https://www.ruby-forum.com/t/update-from-rails-rc-to-rails-3/194109)

<div class="topic-metadata">

**Author:** [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/update-from-rails-rc-to-rails-3/194109 "2010-08-30T16:53:29Z")

</div>

If I have rails 3 RC (–pre) currently installed on Windows (I know I am using windows :frowning: ) Do I need to uninstall Rails 3 pre-release before updating to Rails 3?

---

## [Prawnto question: how to attach a pdf (from a show action) in the mailer](https://www.ruby-forum.com/t/prawnto-question-how-to-attach-a-pdf-from-a-show-action-in-the-mailer/194108)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/prawnto-question-how-to-attach-a-pdf-from-a-show-action-in-the-mailer/194108 "2010-08-30T16:21:24Z")

</div>

Hi I have vacancies, I want to recommend, and if wanted directly attache as pdf. You get the PDF with e.g. /vacancies/9887.pdf How can I attach some thing in a mail? Whats the best pratice here? Sending through Rac…

---

## [WHICH Hosting](https://www.ruby-forum.com/t/which-hosting/194053)

<div class="topic-metadata">

**Author:** [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Replies:** 3\
**Last updated:** [August 30, 2010, 4:16pm UTC](https://www.ruby-forum.com/t/which-hosting/194053 "2010-08-30T16:16:33Z")

</div>

I’m hosting my website on Hostmonster.com, when my website was built on.php it was fast BUT now when I’ve changed it and I’m running Ruby on Rails it loads and refreshes toooooo sloooow, which is THE Best & Cheapest H…

---

## [Can't quit server in Rails 3](https://www.ruby-forum.com/t/cant-quit-server-in-rails-3/194081)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 10\
**Last updated:** [August 30, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/cant-quit-server-in-rails-3/194081 "2010-08-30T15:35:44Z")

</div>

After Rails 3 was just released today, I downloaded it and followed the instructions on Rails Guide for building my first app at Getting Started with Rails Getting Started with Rails — Ruby on Rails Guides Everything …

---

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

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/help-with-routing/194107 "2010-08-30T15:31:03Z")

</div>

From this url: http://localhost:3000/cities/new-york/deals/title-of-deal how can i change it to http://localhost:3000/new-york/foobar ? How do i configure this in my route? Should i be looking at named routes for this…

---

## [Update form text\_field on collection\_select selection](https://www.ruby-forum.com/t/update-form-text-field-on-collection-select-selection/194106)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/update-form-text-field-on-collection-select-selection/194106 "2010-08-30T15:28:42Z")

</div>

I have form and a collection\_select control. I would like to update form fields (text box) when I select an item from the collection\_select box. It’s like selecting template from the collection\_select and the templat…

---

## [Timezone](https://www.ruby-forum.com/t/timezone/194102)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 2:58pm UTC](https://www.ruby-forum.com/t/timezone/194102 "2010-08-30T14:58:51Z")

</div>

I don’t know if timezone really works in rails. In my rails 3 application.rb file I have: config.time\_zone = ‘Rome’ config.i18n.default\_locale = :it config.encoding = “utf-8” My database is postgres. I’ve created s…

---

## [JOBS: ROR Dev needed in Texas](https://www.ruby-forum.com/t/jobs-ror-dev-needed-in-texas/193391)

<div class="topic-metadata">

**Author:** [@Andy\_Kabbe](https://www.ruby-forum.com/u/Andy_Kabbe)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 12:06pm UTC](https://www.ruby-forum.com/t/jobs-ror-dev-needed-in-texas/193391 "2010-08-30T12:06:39Z")

</div>

ROR Developer opening in Texas. Relocation expenses paid for. Direct - permanent employment. Opportunity to join an exceptional development team. Exceptionl benefits and training. Flat organization model. Desire…

---

## [Recording a Live Earning Cast call](https://www.ruby-forum.com/t/recording-a-live-earning-cast-call/193980)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 2\
**Last updated:** [August 30, 2010, 11:34am UTC](https://www.ruby-forum.com/t/recording-a-live-earning-cast-call/193980 "2010-08-30T11:34:31Z")

</div>

Hi all, I am working on a project, in this I am assigned a task, this task consist of recording a live earning cast call when administrator press single button for that event. The Earning cast call are basically conf…

---

## [Form.collection\_select html escaping data from database](https://www.ruby-forum.com/t/form-collection-select-html-escaping-data-from-database/193903)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 3\
**Last updated:** [August 30, 2010, 11:18am UTC](https://www.ruby-forum.com/t/form-collection-select-html-escaping-data-from-database/193903 "2010-08-30T11:18:20Z")

</div>

I have french unicoded coded characters in my database. They use the ê format. When I use form.collection\_select it turns the & into & and then the french character is not displayed. How can I resolve this. Thanks …

---

## [Sending email with attachments](https://www.ruby-forum.com/t/sending-email-with-attachments/194093)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 10:06am UTC](https://www.ruby-forum.com/t/sending-email-with-attachments/194093 "2010-08-30T10:06:41Z")

</div>

Hi Could anyone please give an example of sending mails with attachments in rails using actionmailer? I have a user in users table whose attachments is stored in attachments table it self( Relation is user has\_many …

---

## [How to override a template file in a gem?](https://www.ruby-forum.com/t/how-to-override-a-template-file-in-a-gem/194069)

<div class="topic-metadata">

**Author:** [@Commander\_J](https://www.ruby-forum.com/u/Commander_J)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 8:21am UTC](https://www.ruby-forum.com/t/how-to-override-a-template-file-in-a-gem/194069 "2010-08-30T08:21:57Z")

</div>

Hello, I’m working with Refinery 0.9.6.25 which has a small bug in a partial file. Is there a way to override this file from within my application’s directory as to fix the bugged line of code? The file is, from the …

---

## [In a rails3 - rspec then require 'authlogic/test\_case' and now I broke stuff?](https://www.ruby-forum.com/t/in-a-rails3-rspec-then-require-authlogic-test-case-and-now-i-broke-stuff/194086)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 6:03am UTC](https://www.ruby-forum.com/t/in-a-rails3-rspec-then-require-authlogic-test-case-and-now-i-broke-stuff/194086 "2010-08-30T06:03:15Z")

</div>

I’m a newb here and probably shouldn’t be using Rails3 yet to start with, but for some reason I was feeling adventurous. I’m also learning to use rspec along the way and things ‘were’ working out with my ‘rake spec’…

---

## [Rails 3 - the most annoying deprecation warning](https://www.ruby-forum.com/t/rails-3-the-most-annoying-deprecation-warning/194067)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 5\
**Last updated:** [August 30, 2010, 4:48am UTC](https://www.ruby-forum.com/t/rails-3-the-most-annoying-deprecation-warning/194067 "2010-08-30T04:48:19Z")

</div>

I just successfully converted my Rails 2.3.8 app to Rails 3.0 Release candidate 2! I will post both the apps on my github account for everyone else. I do want to clean up the deprecation warnings as best as I can be…

---

## [Automatically create one child record when parent record is initially created](https://www.ruby-forum.com/t/automatically-create-one-child-record-when-parent-record-is-initially-created/194064)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 6\
**Last updated:** [August 30, 2010, 3:32am UTC](https://www.ruby-forum.com/t/automatically-create-one-child-record-when-parent-record-is-initially-created/194064 "2010-08-30T03:32:14Z")

</div>

Sorry for the newbie question in advance… I’ve got three models, a user, site and user\_site model. A site can have many users and a user can have many sites. The relationship between these two is stored in user\_sit…

---

## [Updating to Rails 3 on Mac OS X](https://www.ruby-forum.com/t/updating-to-rails-3-on-mac-os-x/194080)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 4\
**Last updated:** [August 30, 2010, 1:48am UTC](https://www.ruby-forum.com/t/updating-to-rails-3-on-mac-os-x/194080 "2010-08-30T01:48:38Z")

</div>

Hello, I’m working to install Rails 3 (pre) on my Mac, from the Rails blog post it says to run: gem install rails --pre After running that command I get the following errors: WARNING: Installing to ~/.gem since /Lib…

---

## [Newbie Qs - Authentication Plugin that supports Instances? Also, Rails 2.3 or 3 for Beginners?](https://www.ruby-forum.com/t/newbie-qs-authentication-plugin-that-supports-instances-also-rails-2-3-or-3-for-beginners/194076)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 3\
**Last updated:** [August 30, 2010, 1:37am UTC](https://www.ruby-forum.com/t/newbie-qs-authentication-plugin-that-supports-instances-also-rails-2-3-or-3-for-beginners/194076 "2010-08-30T01:37:33Z")

</div>

Hello, this is my first week with Rails. I’m working to create an app that has Users associated to instances by their email address. For example, like Yammer, those with the email domain “yahoo.com” only see what othe…

---

## [Updated Internet file managers for Rails 2.3.8 and Rails 3.0](https://www.ruby-forum.com/t/updated-internet-file-managers-for-rails-2-3-8-and-rails-3-0/194079)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [August 30, 2010, 12:37am UTC](https://www.ruby-forum.com/t/updated-internet-file-managers-for-rails-2-3-8-and-rails-3-0/194079 "2010-08-30T00:37:16Z")

</div>

Just got done. Enjoy. Bharat

---

## [Sort table by price and print the cheapest price car](https://www.ruby-forum.com/t/sort-table-by-price-and-print-the-cheapest-price-car/193982)

<div class="topic-metadata">

**Author:** [@dakshata](https://www.ruby-forum.com/u/dakshata)\
**Replies:** 7\
**Last updated:** [August 29, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/sort-table-by-price-and-print-the-cheapest-price-car/193982 "2010-08-29T23:18:07Z")

</div>

Hello, I am quite new to ruby. I have coded in Java earlier and the code to fire a query in ruby is a lot different and I am struggling. I have this model create\_table “used\_cars”, :force =\> true do |t| t.string “…

---

## [More deprecation warnings](https://www.ruby-forum.com/t/more-deprecation-warnings/194074)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/more-deprecation-warnings/194074 "2010-08-29T21:15:59Z")

</div>

How can I fix the following code for deprecation warning? def correct\_client\_assignment role = Role.find\_by\_name(‘eclient’) if client\_id.blank? && role\_id == role.id errors.add :client\_id, “must assign an external cl…

---

## [Polymorphic help](https://www.ruby-forum.com/t/polymorphic-help/194063)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/polymorphic-help/194063 "2010-08-29T18:14:59Z")

</div>

With the help of some devs. I was able to list down commends of a specific deal using the “def comments” method in the deal model class. However, what I also need is to display the owner/user who made the comment via…

---

## [Wrong class being returned in association](https://www.ruby-forum.com/t/wrong-class-being-returned-in-association/194057)

<div class="topic-metadata">

**Author:** [@ji123](https://www.ruby-forum.com/u/ji123)\
**Replies:** 4\
**Last updated:** [August 29, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/wrong-class-being-returned-in-association/194057 "2010-08-29T16:44:26Z")

</div>

I’m using Rails 3.0.0rc and have the following models: class User Â has\_many :readings Â has\_many :conversations, :through=\>:readings end class Reading Â belongs\_to :user Â belongs\_to :conversation end class Con…

---

## [Match default verb](https://www.ruby-forum.com/t/match-default-verb/194059)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/match-default-verb/194059 "2010-08-29T15:41:01Z")

</div>

The default verb for match is :any. This means for: match ‘dog/bark(/:num)’ =\> ‘dogs#bark’ # get 3 barks match ‘dog/eat’ =\> ‘dogs#eat’ # post breakfast someone could post on dog/bark with :louder or get on dog/eat …

---

## [Help with prev/next links](https://www.ruby-forum.com/t/help-with-prev-next-links/194058)

<div class="topic-metadata">

**Author:** [@kaspir](https://www.ruby-forum.com/u/kaspir)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/help-with-prev-next-links/194058 "2010-08-29T14:53:45Z")

</div>

I’ve written a Image Gallery app in rails. It contains photo albums, in which you can upload photos, then click on an individual photo to view it’s larger size. When you bring up the larger size, I have previous and n…

---

## [\[ANN\] Troll - A Rails plugin for making webservice mocking easier](https://www.ruby-forum.com/t/ann-troll-a-rails-plugin-for-making-webservice-mocking-easier/194054)

<div class="topic-metadata">

**Author:** [@gnufied](https://www.ruby-forum.com/u/gnufied)\
**Replies:** 0\
**Last updated:** [August 29, 2010, 9:52am UTC](https://www.ruby-forum.com/t/ann-troll-a-rails-plugin-for-making-webservice-mocking-easier/194054 "2010-08-29T09:52:11Z")

</div>

Hi Folks, Troll trumps your existing ActiveResource mocking libraries like inbuilt HttpMock,Fakeweb or Webmock out of water. With Troll, ActiveResource mocking just works, some of its features: Don’t need to mock c…

---

## [Polymorphic associations](https://www.ruby-forum.com/t/polymorphic-associations/194048)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 1\
**Last updated:** [August 29, 2010, 1:30am UTC](https://www.ruby-forum.com/t/polymorphic-associations/194048 "2010-08-29T01:30:40Z")

</div>

Ok, I’ve been on this issue for several hours already. If someone with more RoR experience can help me out. It will be much appreciated. A small description of what I am trying to do. In the deal show view. I want to …

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

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