# Rails

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

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

---

## [VMWare, Webrick nooby question](https://www.ruby-forum.com/t/vmware-webrick-nooby-question/155245)

<div class="topic-metadata">

**Author:** [@ChasManRors](https://www.ruby-forum.com/u/ChasManRors)\
**Replies:** 1\
**Last updated:** [December 9, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/vmware-webrick-nooby-question/155245 "2008-12-09T21:29:53Z")

</div>

RoR vmware question (I have cross posted): Trying to web-browse my Webrick server running Llinux on vmware Guest from Windows host. Clearly I can’t do an http://localhost:3000/. So how can I access my Linux Webrick s…

---

## [Creating instance of ActionMailer for testing](https://www.ruby-forum.com/t/creating-instance-of-actionmailer-for-testing/155244)

<div class="topic-metadata">

**Author:** [@Dmitry\_Ratnikov](https://www.ruby-forum.com/u/Dmitry_Ratnikov)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/creating-instance-of-actionmailer-for-testing/155244 "2008-12-09T21:18:36Z")

</div>

Hi all, I am writing an action mailer test and am trying to snatch contents of the @body hash provided for the template for testing. Specifically, my plan is to do something like: FooMailer.class\_eval do attr\_access…

---

## [Cleaning session variables when going to another link of the website](https://www.ruby-forum.com/t/cleaning-session-variables-when-going-to-another-link-of-the-website/155252)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 9:16pm UTC](https://www.ruby-forum.com/t/cleaning-session-variables-when-going-to-another-link-of-the-website/155252 "2008-12-09T21:16:50Z")

</div>

Hi there! I wish to set my session variables to null when click on a link of my Rails website. My major problem is this: when I click on a link and then return to the previous view, my session variables still remain, …

---

## [Getting from geolocation (lat/long) to Time.zone](https://www.ruby-forum.com/t/getting-from-geolocation-lat-long-to-time-zone/155229)

<div class="topic-metadata">

**Author:** [@tikay](https://www.ruby-forum.com/u/tikay)\
**Replies:** 3\
**Last updated:** [December 9, 2008, 8:53pm UTC](https://www.ruby-forum.com/t/getting-from-geolocation-lat-long-to-time-zone/155229 "2008-12-09T20:53:17Z")

</div>

Has anyone found a good solution for setting the Rails Time.zone from a lat/long pair? I’ve been wrestling around with this. The closest I can come is using the geonames API, but the problem is I haven’t found anythin…

---

## [Problem extending ActiveRecord with custom validations](https://www.ruby-forum.com/t/problem-extending-activerecord-with-custom-validations/155243)

<div class="topic-metadata">

**Author:** [@gaveeno](https://www.ruby-forum.com/u/gaveeno)\
**Replies:** 4\
**Last updated:** [December 9, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/problem-extending-activerecord-with-custom-validations/155243 "2008-12-09T20:49:46Z")

</div>

I’m having a problem extending ActiveRecord with custom validations based on the “Write Custom Validations” recipe from Advanced Rails Recipes. As far as I can tell, I’ve followed the instructions exactly but for som…

---

## [HABTM checkboxes insert but don't delete](https://www.ruby-forum.com/t/habtm-checkboxes-insert-but-dont-delete/155234)

<div class="topic-metadata">

**Author:** [@tecregio](https://www.ruby-forum.com/u/tecregio)\
**Replies:** 4\
**Last updated:** [December 9, 2008, 7:26pm UTC](https://www.ruby-forum.com/t/habtm-checkboxes-insert-but-dont-delete/155234 "2008-12-09T19:26:08Z")

</div>

I have a problem related with the HABTM relationships with checkboxes. I’ve got a profile and a service model, both related with has\_and\_belongs\_to\_many. The problem is that i can insert new data in the profiles\_servi…

---

## [Form submitting to /foo/bar](https://www.ruby-forum.com/t/form-submitting-to-foo-bar/155237)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/form-submitting-to-foo-bar/155237 "2008-12-09T19:12:03Z")

</div>

Hi guys. I have a form which submits to the “show” action of a controller. However, when the form is submitted, it directs the browser to URLs in this format: /foo/show?id=bar Is it possible to configure a form to di…

---

## [Unterminated string literal, how to properly send strings](https://www.ruby-forum.com/t/unterminated-string-literal-how-to-properly-send-strings/155232)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/unterminated-string-literal-how-to-properly-send-strings/155232 "2008-12-09T18:39:11Z")

</div>

I have a line like the following in my Rails view/template (generating JavaScript): Because some of the error\_descs have newlines, the browser is receiving page code that looks like this: y = escape(‘Information abo…

---

## [To get the id value from parent table to child table](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/196858)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 3\
**Last updated:** [December 9, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/196858 "2008-12-09T18:35:12Z")

</div>

Hi Im using 5 tables and one parent table and 4 child tables To get the id value from parent table to child table.To store the values in databases and display the bugs parent table id is compare to child table is re…

---

## [Problems with getting correct id from query involving two tables](https://www.ruby-forum.com/t/problems-with-getting-correct-id-from-query-involving-two-tables/155230)

<div class="topic-metadata">

**Author:** [@ken](https://www.ruby-forum.com/u/ken)\
**Replies:** 3\
**Last updated:** [December 9, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/problems-with-getting-correct-id-from-query-involving-two-tables/155230 "2008-12-09T18:32:06Z")

</div>

I have a query that is intended to find all “transfers” based on a condition the uses a second table. In the controller, it looks like this: def find\_protocols @transfers = Transfer.find(:all, :from =\> “transfers, p…

---

## [Grab content from RSS feed](https://www.ruby-forum.com/t/grab-content-from-rss-feed/155218)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 1\
**Last updated:** [December 9, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/grab-content-from-rss-feed/155218 "2008-12-09T18:19:11Z")

</div>

I’m looking for a simple way to periodically (maybe daily) grab stuff out of an RSS feed drop it into a database and then display it in my app. Any tips / walkthroughs?

---

## [Paginating\_find losing scope](https://www.ruby-forum.com/t/paginating-find-losing-scope/155178)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/paginating-find-losing-scope/155178 "2008-12-09T17:50:58Z")

</div>

Hello, I’m having a problem with paginating\_find losing the context of the array it’s paginating. For example, URL: http://localhost:3000/companies/1/users/1 \<% @tickets = @user.tickets.find(:all, page =\> {:size =\> …

---

## [Has\_many :through fails on n-way join](https://www.ruby-forum.com/t/has-many-through-fails-on-n-way-join/155231)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/has-many-through-fails-on-n-way-join/155231 "2008-12-09T17:50:58Z")

</div>

I think this is a Rails bug, but I’d like to describe it here first - in case I’m doing something wrong. When using an n-way (has\_many :through) join, the wrong model attr is selected when evaluating the join relation…

---

## [Rails and Ruby behind proxy](https://www.ruby-forum.com/t/rails-and-ruby-behind-proxy/155201)

<div class="topic-metadata">

**Author:** [@Nicolas\_Alpi\_aka\_Sp](https://www.ruby-forum.com/u/Nicolas_Alpi_aka_Sp)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/rails-and-ruby-behind-proxy/155201 "2008-12-09T17:12:47Z")

</div>

Hi there, I’ve a little problem. On my code, I use the flickraw gem. On the application.rb there is a require ‘flickraw’ who create a new instance, and for that need to pass the net. It works at home, but in my offi…

---

## [PHP Developer Job Opportunity](https://www.ruby-forum.com/t/php-developer-job-opportunity/155151)

<div class="topic-metadata">

**Author:** [@heathers](https://www.ruby-forum.com/u/heathers)\
**Replies:** 5\
**Last updated:** [December 9, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/php-developer-job-opportunity/155151 "2008-12-09T17:06:20Z")

</div>

PHP Developer Capital Thought, a growing technology and consulting firm, is ready to hire an experienced and talented PHP Developer who is equally passionate about Ruby on Rails and other cutting edge languages and fr…

---

## [Add a column "on the fly"](https://www.ruby-forum.com/t/add-a-column-on-the-fly/155153)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 5\
**Last updated:** [December 9, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/add-a-column-on-the-fly/155153 "2008-12-09T15:52:38Z")

</div>

Hi people, Does anybody know if it is possible to create columns on the fly… so wihout a migration. I would like to do this so that my customers can create multiple languages whitout me generating that language for t…

---

## [Installing ruby gem mysql](https://www.ruby-forum.com/t/installing-ruby-gem-mysql/155079)

<div class="topic-metadata">

**Author:** [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Replies:** 4\
**Last updated:** [December 9, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/installing-ruby-gem-mysql/155079 "2008-12-09T14:56:23Z")

</div>

Hi All; I am new to RoR and have a new MacBook Pro with OS X 10.5.5 This is what I have on it. bash-3.2$ cd /usr/local bash-3.2$ ls mysql mysql-5.1.30-osx10.5-x86 bash-3.2$ ruby -v ruby 1…

---

## [Script/generate not recognizing I18n](https://www.ruby-forum.com/t/script-generate-not-recognizing-i18n/155217)

<div class="topic-metadata">

**Author:** [@Data](https://www.ruby-forum.com/u/Data)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/script-generate-not-recognizing-i18n/155217 "2008-12-09T14:49:30Z")

</div>

Hi, After creating a new, clean Rails-2.2.2 project and inserting I18n.default\_locale = "de" in config/environment.rb, the command script/generate ends with .../config/environment.rb:76: uninitialized constant I18n…

---

## [Ruby Developer for Krakow/Poland](https://www.ruby-forum.com/t/ruby-developer-for-krakow-poland/155216)

<div class="topic-metadata">

**Author:** [@aniamodis](https://www.ruby-forum.com/u/aniamodis)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/ruby-developer-for-krakow-poland/155216 "2008-12-09T14:47:45Z")

</div>

For the international company I am looking for Ruby P.mer with 1-3 years commercial experience and communicative English and Polish. removed\_email\_address@domain.invalid

---

## [Creating run time objects](https://www.ruby-forum.com/t/creating-run-time-objects/155215)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [December 9, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/creating-run-time-objects/155215 "2008-12-09T14:44:10Z")

</div>

Hi, I have a user and album object. Depending on the condition I want to create a new object which have some values from user object and some from album object. Is this possible? Can anyone help me? Thanks & Regard…

---

## [I am facing problem when i am running my rails app](https://www.ruby-forum.com/t/i-am-facing-problem-when-i-am-running-my-rails-app/155191)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 3\
**Last updated:** [December 9, 2008, 12:43pm UTC](https://www.ruby-forum.com/t/i-am-facing-problem-when-i-am-running-my-rails-app/155191 "2008-12-09T12:43:12Z")

</div>

hi have upgraded my version from 2.0.2 to 2.2.2.but the application which i have created from rails 2.0.2 is not getting started. Throwing ruby script/server /usr/local/lib/site\_ruby/1.8/rubygems.rb:149:in activate':…

---

## [Edit the form](https://www.ruby-forum.com/t/edit-the-form/155205)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 1\
**Last updated:** [December 9, 2008, 11:40am UTC](https://www.ruby-forum.com/t/edit-the-form/155205 "2008-12-09T11:40:59Z")

</div>

Hi Im using the 5 views and one controller.To edit the form and produced Couldn’t find ResortBasic without an ID View code …editresortbasic.html.erb \<% form\_tag :action =\> ‘editresortbasic’,:controller=\>‘Wizard’ do …

---

## [Exceptions\_logger](https://www.ruby-forum.com/t/exceptions-logger/155158)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 10:48am UTC](https://www.ruby-forum.com/t/exceptions-logger/155158 "2008-12-09T10:48:39Z")

</div>

Hi, I am trying to use exception logger plugin, but I am getting this error: undefined method \`paginate’ for #\<LoggedExceptionsController: and I cant figure out why. I have generated migration, included the Exception…

---

## [Multiple search using ajax](https://www.ruby-forum.com/t/multiple-search-using-ajax/155197)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 9:54am UTC](https://www.ruby-forum.com/t/multiple-search-using-ajax/155197 "2008-12-09T09:54:09Z")

</div>

hi , I have an application to search table entries using ajax helper: the table tnries are : name resolution framerate bitrate : in controller i have code like: @streams= Stream.find( :all, :conditions =\> \[ …

---

## [Uninitialized constant ApplicationController](https://www.ruby-forum.com/t/uninitialized-constant-applicationcontroller/100521)

<div class="topic-metadata">

**Author:** [@sutch](https://www.ruby-forum.com/u/sutch)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 8:16am UTC](https://www.ruby-forum.com/t/uninitialized-constant-applicationcontroller/100521 "2008-12-09T08:16:12Z")

</div>

Hey, I am getting a weird error that doesn’t give much helpful debug output because the application controller can not be found. The actual error output actually shows up in the webrick server, i’m trying right now w…

---

## [Should I be using UTF-8 mysql tables/database?](https://www.ruby-forum.com/t/should-i-be-using-utf-8-mysql-tables-database/155103)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 4\
**Last updated:** [December 9, 2008, 7:42am UTC](https://www.ruby-forum.com/t/should-i-be-using-utf-8-mysql-tables-database/155103 "2008-12-09T07:42:55Z")

</div>

Hi, Should I be using mysql tables/daatbase encoded in UTF-8 instead of the default latin1? What are the benefits of one vs. the other? There is the possibility of needing to support other languages in the future. W…

---

## [Map.connect or map.resources?](https://www.ruby-forum.com/t/map-connect-or-map-resources/155185)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 6:42am UTC](https://www.ruby-forum.com/t/map-connect-or-map-resources/155185 "2008-12-09T06:42:40Z")

</div>

Quick question: Would it be better to use this?: map.resources :maps, :only =\> \[:index\] or this?: map.connect ‘/maps’, :controller =\> :maps, :action =\> :index Cheers, Nick

---

## [Undefined method 'render\_file' for class 'ActionView::Base'](https://www.ruby-forum.com/t/undefined-method-render-file-for-class-actionview-base/155134)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 2\
**Last updated:** [December 9, 2008, 4:32am UTC](https://www.ruby-forum.com/t/undefined-method-render-file-for-class-actionview-base/155134 "2008-12-09T04:32:53Z")

</div>

I need some help with SimpleLog I have SimpleLog running at HostingRails. I want to develope and test new themes stuff on my local system. I getting the error from actionview\_ex.rb:12 undefined method ‘render\_file’ f…

---

## [:has\_one and migrating production data base](https://www.ruby-forum.com/t/has-one-and-migrating-production-data-base/155182)

<div class="topic-metadata">

**Author:** [@minka](https://www.ruby-forum.com/u/minka)\
**Replies:** 1\
**Last updated:** [December 9, 2008, 3:06am UTC](https://www.ruby-forum.com/t/has-one-and-migrating-production-data-base/155182 "2008-12-09T03:06:18Z")

</div>

I am leery of migrating my perfectly stable and fine production data base. But I need to add some customer info to my system. I am adding a new model backed by a database for the new customer info. Thus I’m assuming…

---

## [Asset\_host with HTTPS problem, or possibly layout being cached?](https://www.ruby-forum.com/t/asset-host-with-https-problem-or-possibly-layout-being-cached/155179)

<div class="topic-metadata">

**Author:** [@LemmingJoel](https://www.ruby-forum.com/u/LemmingJoel)\
**Replies:** 0\
**Last updated:** [December 9, 2008, 1:51am UTC](https://www.ruby-forum.com/t/asset-host-with-https-problem-or-possibly-layout-being-cached/155179 "2008-12-09T01:51:28Z")

</div>

I’m having some trouble with either the asset\_host feature or possible something to do with layout caching. I have this in my environment/production.rb: ActionController::Base.asset\_host = Proc.new do |source, request…

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

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