# Rails

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

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

---

## [Upgrading from rails2.3.5 to rails2.3.8](https://www.ruby-forum.com/t/upgrading-from-rails2-3-5-to-rails2-3-8/192265)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 1\
**Last updated:** [July 27, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/upgrading-from-rails2-3-5-to-rails2-3-8/192265 "2010-07-27T13:44:27Z")

</div>

Hi Please guide me to upgrade my rails application which is 2.3.5 version to 2.3.8 step by step. Thanks for your help Tom

---

## [Rails3: open link in new window](https://www.ruby-forum.com/t/rails3-open-link-in-new-window/191682)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 4\
**Last updated:** [July 27, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/rails3-open-link-in-new-window/191682 "2010-07-27T12:50:23Z")

</div>

I’m having trouble writing the required javascript to open a link in a new browser window in Rails3. Previously, in rails2.3.x I could just do: link\_to "foo", foo\_path(foo), :popup =\> true But now in Rails3, this opt…

---

## [New alternatives for rails/init.rb in Rails 3 gems](https://www.ruby-forum.com/t/new-alternatives-for-rails-init-rb-in-rails-3-gems/192266)

<div class="topic-metadata">

**Author:** [@turkan](https://www.ruby-forum.com/u/turkan)\
**Replies:** 0\
**Last updated:** [July 27, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/new-alternatives-for-rails-init-rb-in-rails-3-gems/192266 "2010-07-27T12:18:47Z")

</div>

In Rails 3 the rails/init.rb in gems is not automatically executed anymore (see https://rails.lighthouseapp.com/projects/8994/tickets/3745-railsinitrb-is-not-being-called-anymore). As I see there a now two options: P…

---

## [Ruby on Rails 3 RC and files in "lib" directory](https://www.ruby-forum.com/t/ruby-on-rails-3-rc-and-files-in-lib-directory/192262)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 4\
**Last updated:** [July 27, 2010, 12:00pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-3-rc-and-files-in-lib-directory/192262 "2010-07-27T12:00:38Z")

</div>

In Rails 3b4 my ruby files in the lib directory of my application were automaticaly loaded/required. In Rails 3rc1, there are not anymore. Is this normal? Where is the commit that changed this? What is the best prefe…

---

## [Rails 3.0.0.rc1 update - issue w Bundler 1.0.0.rc.1 and ruby 1.9.2.rc1](https://www.ruby-forum.com/t/rails-3-0-0-rc1-update-issue-w-bundler-1-0-0-rc-1-and-ruby-1-9-2-rc1/192263)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [July 27, 2010, 11:13am UTC](https://www.ruby-forum.com/t/rails-3-0-0-rc1-update-issue-w-bundler-1-0-0-rc-1-and-ruby-1-9-2-rc1/192263 "2010-07-27T11:13:13Z")

</div>

I upgraded my rails 3 version (now using bundler-1.0.0.rc.1 but bundle install in my test\_app raises an error : bundle install Fetching source index for http://rubygems.org/ Using rake (0.8.7) … Using railties (3.0…

---

## [Trying to pick a model setup without ridiculous routes](https://www.ruby-forum.com/t/trying-to-pick-a-model-setup-without-ridiculous-routes/192123)

<div class="topic-metadata">

**Author:** [@Joel\_K](https://www.ruby-forum.com/u/Joel_K)\
**Replies:** 5\
**Last updated:** [July 27, 2010, 9:57am UTC](https://www.ruby-forum.com/t/trying-to-pick-a-model-setup-without-ridiculous-routes/192123 "2010-07-27T09:57:06Z")

</div>

I am making a site with beer info. I want to have the beer name, brewery and style info for every beer. So they all need to be connected. But, I don’t want two styles, i.e. “Pale Ale”, “pale ale”, “paleale”. So I was …

---

## [Memcache](https://www.ruby-forum.com/t/memcache/191811)

<div class="topic-metadata">

**Author:** [@yani\_engico](https://www.ruby-forum.com/u/yani_engico)\
**Replies:** 9\
**Last updated:** [July 27, 2010, 8:23am UTC](https://www.ruby-forum.com/t/memcache/191811 "2010-07-27T08:23:07Z")

</div>

Hi, I am analysis memcache. Hence would like to know whats the best client for memcache. Have read a lot about memcache-client gem. Is that the most popular and widely used one? Also most of my queries are complex qu…

---

## [Tutorials for virtual rails](https://www.ruby-forum.com/t/tutorials-for-virtual-rails/192252)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 27, 2010, 7:11am UTC](https://www.ruby-forum.com/t/tutorials-for-virtual-rails/192252 "2010-07-27T07:11:27Z")

</div>

I just finished installing virtual box and virtual rails on my laptop running vista os. this is all I know other then a bit of ruby code. im just starting out and learning ROR on my own. Does anyone have recommendat…

---

## [Rails asset cache](https://www.ruby-forum.com/t/rails-asset-cache/192080)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 5\
**Last updated:** [July 27, 2010, 6:49am UTC](https://www.ruby-forum.com/t/rails-asset-cache/192080 "2010-07-27T06:49:53Z")

</div>

I have a of line code like \<%= stylesheet\_link\_tag “styles”,:cache =\> “cache/styles” %\> And it produces source as config.action\_controller.perform\_caching = true My concern is what is 1279620123 after question mark(…

---

## [Loading a partial via AJAX](https://www.ruby-forum.com/t/loading-a-partial-via-ajax/192212)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 27, 2010, 12:39am UTC](https://www.ruby-forum.com/t/loading-a-partial-via-ajax/192212 "2010-07-27T00:39:56Z")

</div>

Hi I accept that partials are not intended to be exposed via a URL However I’d like to load my basic \_form.html.erb partial for my model to build basic AJAX form So one way to do this is to put something like this in…

---

## [Dynamic image](https://www.ruby-forum.com/t/dynamic-image/192244)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [July 26, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/dynamic-image/192244 "2010-07-26T23:24:37Z")

</div>

Hi, I am developing a t-shirt shop. The feature i want to develop is a form where visitors can fill in there name and “on the fly” the name is printed on the t-shirt(image). Has someone what is the best practice to …

---

## [Glasgow Technology Network - Rails Meetup on 01-Sep-2010](https://www.ruby-forum.com/t/glasgow-technology-network-rails-meetup-on-01-sep-2010/192245)

<div class="topic-metadata">

**Author:** [@Ashish\_Kulkarni](https://www.ruby-forum.com/u/Ashish_Kulkarni)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/glasgow-technology-network-rails-meetup-on-01-sep-2010/192245 "2010-07-26T22:58:04Z")

</div>

Dear all, We are having a presentation on Ruby on Rails on 01-Sep-2010 - http://www.glasgowtechnet.com/calendar/14220029/ At Glasgow Technology Network we are committed to having regular events on leading edge and b…

---

## [Fail rollback transaction with manual raise exception](https://www.ruby-forum.com/t/fail-rollback-transaction-with-manual-raise-exception/192098)

<div class="topic-metadata">

**Author:** [@sparkle](https://www.ruby-forum.com/u/sparkle)\
**Replies:** 7\
**Last updated:** [July 26, 2010, 9:19pm UTC](https://www.ruby-forum.com/t/fail-rollback-transaction-with-manual-raise-exception/192098 "2010-07-26T21:19:43Z")

</div>

With : PostgreSQL 8.4 or postgresql-8.3 rails 2.3.4 pg 9.x or pg 8.x I test this code: class NkiBatch \< ActiveRecord::Base Bank.connection.transaction do bank = Bank.new(:name =\> "ddsjdsjdsjk") bank.save! ra…

---

## [Problem installing validation\_reflection plugin](https://www.ruby-forum.com/t/problem-installing-validation-reflection-plugin/192236)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 8:11pm UTC](https://www.ruby-forum.com/t/problem-installing-validation-reflection-plugin/192236 "2010-07-26T20:11:49Z")

</div>

Greetings, I’m having a problem installing the validation\_reflection plugin that I’ve never seen before and wonder if anyone can give me a clue as to what might be going on. C:\\InstantRails\\rails\_apps\\register\>ruby s…

---

## [How to generate jasper reports in rails](https://www.ruby-forum.com/t/how-to-generate-jasper-reports-in-rails/192227)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 26, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/how-to-generate-jasper-reports-in-rails/192227 "2010-07-26T20:04:52Z")

</div>

Hi all, can anyone tell how to generate reports using jasper in rails thanks and regards kiran

---

## [Form date helper with text year](https://www.ruby-forum.com/t/form-date-helper-with-text-year/192221)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 1\
**Last updated:** [July 26, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/form-date-helper-with-text-year/192221 "2010-07-26T18:10:36Z")

</div>

I have a date where the year range is more then I want to define in a select\_date scaffold generated year range. My idea was to have the year entered as a text field and the month and day using something like: \<%= se…

---

## [PDKKIT Issue on Ubuntu](https://www.ruby-forum.com/t/pdkkit-issue-on-ubuntu/192223)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/pdkkit-issue-on-ubuntu/192223 "2010-07-26T17:16:19Z")

</div>

Hi! I have used pdfkit to convert some of my web pages to pdf file. On my development machine (Mac OSX 10.5.8), the pdf files looks perfect. But on the production server (Ubuntu 9), the pdf files is not created prope…

---

## [Re-usable template pattern - yield?](https://www.ruby-forum.com/t/re-usable-template-pattern-yield/192215)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [July 26, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/re-usable-template-pattern-yield/192215 "2010-07-26T16:00:13Z")

</div>

Hi all. I have something that’s like a helper and like a partial but not quite either. Instead of typing this: \<% if (page = ComatosePage.find\_by\_path(“general/explore”)) || current\_user.admin? %\> \<%= page ?…

---

## [Collection\_select not being submitted database](https://www.ruby-forum.com/t/collection-select-not-being-submitted-database/192209)

<div class="topic-metadata">

**Author:** [@harks](https://www.ruby-forum.com/u/harks)\
**Replies:** 6\
**Last updated:** [July 26, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/collection-select-not-being-submitted-database/192209 "2010-07-26T15:56:31Z")

</div>

Hi everybody, I apologize for my student’s english. I got some problem with my Rails app, i got a collection\_select who aren’t submited & save in my database. After 2 days googling and didn’t find anything helpful i’…

---

## [Showing a string to user and saving an integer in the DB](https://www.ruby-forum.com/t/showing-a-string-to-user-and-saving-an-integer-in-the-db/192210)

<div class="topic-metadata">

**Author:** [@alfa-rero](https://www.ruby-forum.com/u/alfa-rero)\
**Replies:** 2\
**Last updated:** [July 26, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/showing-a-string-to-user-and-saving-an-integer-in-the-db/192210 "2010-07-26T15:50:34Z")

</div>

Hi, I would like to know the best practice for following situation: For saving DB space, instead of saving a list of string values (“Implemented”, “Non Implemented”, “Partially Implemented”), I want to save an inte…

---

## [Destroy association in memory](https://www.ruby-forum.com/t/destroy-association-in-memory/192021)

<div class="topic-metadata">

**Author:** [@Anatoliy\_L](https://www.ruby-forum.com/u/Anatoliy_L)\
**Replies:** 4\
**Last updated:** [July 26, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/destroy-association-in-memory/192021 "2010-07-26T15:44:13Z")

</div>

Hi, Does Rails antipode of build method? Build make object in memory, and save it to database when parent object is saved. I need method to destroy object in memory and remove it from database when parent object is …

---

## [\[ANN\] Typo 5.5 for Rails 2.3.8](https://www.ruby-forum.com/t/ann-typo-5-5-for-rails-2-3-8/192220)

<div class="topic-metadata">

**Author:** [@FrSSSSdSSSSric\_de\_V](https://www.ruby-forum.com/u/FrSSSSdSSSSric_de_V)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 3:22pm UTC](https://www.ruby-forum.com/t/ann-typo-5-5-for-rails-2-3-8/192220 "2010-07-26T15:22:34Z")

</div>

Hello, On July 22th, 2010, Typo version 5.5 named for famous photographer Richard Avedon was released to the public. Coming with a new admin and setup, Typo 5.5 runs on Rails 2.3.8. Being around since March 2005, Typ…

---

## [Auto\_complete â€“ create association to anot her model â€“ handle foreign-keys - validation](https://www.ruby-forum.com/t/auto-complete-a-create-association-to-anot-her-model-a-handle-foreign-keys-validation/192214)

<div class="topic-metadata">

**Author:** [@bungart1978](https://www.ruby-forum.com/u/bungart1978)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/auto-complete-a-create-association-to-anot-her-model-a-handle-foreign-keys-validation/192214 "2010-07-26T14:50:56Z")

</div>

Hello, In the app that I’m currently developing I want to use the auto\_complete plugin to create an association from the model “ticket” to the model “customer”. In the new ticket form I created the field “customer na…

---

## [Geneaology Tree](https://www.ruby-forum.com/t/geneaology-tree/192133)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 2\
**Last updated:** [July 26, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/geneaology-tree/192133 "2010-07-26T14:17:57Z")

</div>

Hi Folks, I want to develop a Geneaology tree application for my family, but I’m just wondering if there is an easy way to represent the tree (branches etc…) in html. ? Suggestion for a tool tec…

---

## [Seaches with ajax](https://www.ruby-forum.com/t/seaches-with-ajax/192207)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 12:29pm UTC](https://www.ruby-forum.com/t/seaches-with-ajax/192207 "2010-07-26T12:29:16Z")

</div>

I have problems using ajax in a search field. In view/layouts I have main.html.erb with code: \<?xml version="1.0" encoding="UTF-8"?\> Consegna sacchetti \<%= stylesheet\_link\_tag 'scaffold' %\> \<%= javascript\_include…

---

## [Voting functionality like in YouTube](https://www.ruby-forum.com/t/voting-functionality-like-in-youtube/192206)

<div class="topic-metadata">

**Author:** [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/voting-functionality-like-in-youtube/192206 "2010-07-26T12:14:02Z")

</div>

magine that you’ve created simple weblog by scaffolding and you want to add ‘Vote Up’ and ‘Vote Down’ (or ‘like’ ‘dislike’) functionality just like in YouTube, what steps are required, or someone have done it before o…

---

## [Testing alias of link\_to on Rails 1.2.6](https://www.ruby-forum.com/t/testing-alias-of-link-to-on-rails-1-2-6/192203)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 11:58am UTC](https://www.ruby-forum.com/t/testing-alias-of-link-to-on-rails-1-2-6/192203 "2010-07-26T11:58:06Z")

</div>

I’m trying to write a test for an alias of link\_to on Rails 1.2.6, but it’s always loading: vendor/gems/ruby/1.8/gems/actionpack-1.13.6/lib/action\_view/helpers/url\_helper.rb:67 instead of my version, written in a plug…

---

## [Rake is not working](https://www.ruby-forum.com/t/rake-is-not-working/192012)

<div class="topic-metadata">

**Author:** [@senthilkumar](https://www.ruby-forum.com/u/senthilkumar)\
**Replies:** 8\
**Last updated:** [July 26, 2010, 9:25am UTC](https://www.ruby-forum.com/t/rake-is-not-working/192012 "2010-07-26T09:25:27Z")

</div>

Appreciated any one help I have developed my application 1 year, after then i reinstalled the entire ruby on rails. now i cant able to rake any thing. Rake is in invisible mode. cant able to db:create or anything i r…

---

## [Zipcode validation doesn't work](https://www.ruby-forum.com/t/zipcode-validation-doesnt-work/192191)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 4\
**Last updated:** [July 26, 2010, 2:59am UTC](https://www.ruby-forum.com/t/zipcode-validation-doesnt-work/192191 "2010-07-26T02:59:09Z")

</div>

I am trying to do a very basic zipcode validation(zip is a int field in mysql). validates\_presence\_of :zip, :message =\> “Can’t be blank” validates\_format\_of :zip, :with =\> /^\[0-9\]{5}(-\[0-9\]{4})?$/, :message =\> “Inval…

---

## [\[POST\] - RoR jobs with HowAboutWe.com](https://www.ruby-forum.com/t/post-ror-jobs-with-howaboutwe-com/192193)

<div class="topic-metadata">

**Author:** [@Aaron\_Schildkrout](https://www.ruby-forum.com/u/Aaron_Schildkrout)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 2:44am UTC](https://www.ruby-forum.com/t/post-ror-jobs-with-howaboutwe-com/192193 "2010-07-26T02:44:31Z")

</div>

HowAboutWe.com is a rapidly growing NYC-based dating site - with a very new twist. People propose the actual dates they want to go on. Check us out in the NYTimes: http://www.nytimes.com/2010/07/04/fashion/04date.htm…

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

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