# Rails

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

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

---

## [Can I update session variable in a new thread?](https://www.ruby-forum.com/t/can-i-update-session-variable-in-a-new-thread/168816)

<div class="topic-metadata">

**Author:** [@sudhi](https://www.ruby-forum.com/u/sudhi)\
**Replies:** 6\
**Last updated:** [May 30, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/can-i-update-session-variable-in-a-new-thread/168816 "2009-05-30T19:52:07Z")

</div>

Hi, I have a controller code which does the following t1= Thread.new { #some code session\[:executing\] = “done” } Then in one of the periodic update methods if I access the session\[:executing\] it is not updated to …

---

## [Rails: concurrency question](https://www.ruby-forum.com/t/rails-concurrency-question/168895)

<div class="topic-metadata">

**Author:** [@steveybaby](https://www.ruby-forum.com/u/steveybaby)\
**Replies:** 3\
**Last updated:** [May 30, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/rails-concurrency-question/168895 "2009-05-30T19:26:40Z")

</div>

If I have a singleton class (by using the Singleton mixin), I understand it’s thread-safe in that it ensures only a single instance of this class will be created (by putting a mutex around the instance method). BUT (…

---

## [Rails and YUI](https://www.ruby-forum.com/t/rails-and-yui/169167)

<div class="topic-metadata">

**Author:** [@koz](https://www.ruby-forum.com/u/koz)\
**Replies:** 0\
**Last updated:** [May 30, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/rails-and-yui/169167 "2009-05-30T18:55:44Z")

</div>

I would like make use of YUI and Rails but I am not having much luck putting them together. Does anyone have a small application that combines some small aspect of YUI in a simple rails app as an example? I seem to be…

---

## [Is there a rails equivalent of \<body onload="do\_stuff()"\>](https://www.ruby-forum.com/t/is-there-a-rails-equivalent-of-body-onload-do-stuff/169153)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 4\
**Last updated:** [May 30, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/is-there-a-rails-equivalent-of-body-onload-do-stuff/169153 "2009-05-30T18:29:40Z")

</div>

Hi, I want to call a javascript function after my page has loaded. Currently I am using: Is there a neater / tidier way to do this using any rails specific commands? I found this: document.observe(‘dom:loaded’, func…

---

## [Can't use :update =\> in form\_tag?](https://www.ruby-forum.com/t/cant-use-update-in-form-tag/169165)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/cant-use-update-in-form-tag/169165 "2009-05-30T18:22:36Z")

</div>

Is this because a form submission REQUIRES the server to follow with a new page? Ie. it is impossible to submit a form, and have the view returned used in a div (as with “link\_to :update”); that view MUST become a fr…

---

## [Converting Acts\_As\_Tree to Acts\_As\_Nested\_Set](https://www.ruby-forum.com/t/converting-acts-as-tree-to-acts-as-nested-set/160551)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 8\
**Last updated:** [May 30, 2009, 4:38pm UTC](https://www.ruby-forum.com/t/converting-acts-as-tree-to-acts-as-nested-set/160551 "2009-05-30T16:38:42Z")

</div>

Hello, I have a tree structure that needs to be converted into a nested set. A great deal of work has already been done on the tree items, so maintaining the integrity of the id’s is mandatory. However I need the ab…

---

## [ANNOUNCE: textmagic gem for easy SMS features integration](https://www.ruby-forum.com/t/announce-textmagic-gem-for-easy-sms-features-integration/169159)

<div class="topic-metadata">

**Author:** [@VladimSSS\_r\_BobeSSS](https://www.ruby-forum.com/u/VladimSSS_r_BobeSSS)\
**Replies:** 0\
**Last updated:** [May 30, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/announce-textmagic-gem-for-easy-sms-features-integration/169159 "2009-05-30T13:45:30Z")

</div>

textmagic gem is a Ruby interface to the TextMagicâ€™s Bulk SMS Gateway. It can be used to easily integrate SMS features into your application. It supports sending messages, receiving replies and more. Teaser: api = …

---

## [Why won't my ActionMailer work inside the controller?](https://www.ruby-forum.com/t/why-wont-my-actionmailer-work-inside-the-controller/169063)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/why-wont-my-actionmailer-work-inside-the-controller/169063 "2009-05-30T12:14:50Z")

</div>

I’ve got a basic mailer setup and am simply trying to get a Hello message through. If I go into script/console and execute Emailer.deliver\_message(“removed\_email\_address@domain.invalid”,“My subject”, “My message”) i…

---

## [Getting values from multiple select](https://www.ruby-forum.com/t/getting-values-from-multiple-select/169030)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [May 30, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/getting-values-from-multiple-select/169030 "2009-05-30T12:11:54Z")

</div>

I try to get the values from a multiple select without luck. This is my select: \<%= select “product”, “items”, @options, {}, { :multiple =\> true } %\> If I add it directly to a column in the db I get: !binary | xGd…

---

## [Book Shelf app in 'Ruby on Rails Bible' book](https://www.ruby-forum.com/t/book-shelf-app-in-ruby-on-rails-bible-book/169116)

<div class="topic-metadata">

**Author:** [@rails\_n00b](https://www.ruby-forum.com/u/rails_n00b)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/book-shelf-app-in-ruby-on-rails-bible-book/169116 "2009-05-30T12:04:18Z")

</div>

I’m trying to follow through with the Book Shelf app that’s in the ‘Ruby on Rails Bible’ book and I’m at a point where I’m trying to install Ruby/Amazon. I downloaded the Ruby/Amazon and extracted it as instructed. No…

---

## [Rake aborted! EMULTIHOP (Reserved)](https://www.ruby-forum.com/t/rake-aborted-emultihop-reserved/169152)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [May 30, 2009, 11:08am UTC](https://www.ruby-forum.com/t/rake-aborted-emultihop-reserved/169152 "2009-05-30T11:08:53Z")

</div>

Hi, I am using netbeans 6.5.1 IDE for development,(On fedora operating system) I have installed mysql and given proper sock file path in the database.yml file. But still I am getting this error when i am trying to m…

---

## [Assert method is not visible?](https://www.ruby-forum.com/t/assert-method-is-not-visible/169119)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 9:32am UTC](https://www.ruby-forum.com/t/assert-method-is-not-visible/169119 "2009-05-30T09:32:10Z")

</div>

Hi, test “is\_admin method is not visible” do get :is\_admin assert\_??? end is\_admin is protected and should stay that way forever. What assertion do I use? M.

---

## [Ruby 1.9.1, cygwin & rails 2.3.2: undefined method camelize](https://www.ruby-forum.com/t/ruby-1-9-1-cygwin-rails-2-3-2-undefined-method-camelize/168865)

<div class="topic-metadata">

**Author:** [@dmack](https://www.ruby-forum.com/u/dmack)\
**Replies:** 4\
**Last updated:** [May 30, 2009, 9:17am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-cygwin-rails-2-3-2-undefined-method-camelize/168865 "2009-05-30T09:17:33Z")

</div>

I tried to get this working and ran into a problem: latest cygwin ruby 1.9.1p129 (same problem with p0). install in /opt/ruby19 rails 2.3.2 Installed ruby 1.9.1p129 with: --prefix=/opt/ruby19. No errors or prob…

---

## [Asking for help with operating on data](https://www.ruby-forum.com/t/asking-for-help-with-operating-on-data/169079)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 3\
**Last updated:** [May 30, 2009, 8:47am UTC](https://www.ruby-forum.com/t/asking-for-help-with-operating-on-data/169079 "2009-05-30T08:47:35Z")

</div>

I have a few thousand rows of stock market data - one row for each day. I’m using ActiveRecord to perform database operations. I’m interested in performing a calculation on each row while incorporating the result of t…

---

## [How to create gem](https://www.ruby-forum.com/t/how-to-create-gem/126193)

<div class="topic-metadata">

**Author:** [@teena](https://www.ruby-forum.com/u/teena)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 8:12am UTC](https://www.ruby-forum.com/t/how-to-create-gem/126193 "2009-05-30T08:12:06Z")

</div>

hi friends, i need help on creating a gem. Am following the Dr. Nic tutorial “http://drnicwilliams.com/2006/10/11/generating-new-gems/#newgem\_remote” i started with installation of the new gem step 1)—\> gem install …

---

## [Help on my validation](https://www.ruby-forum.com/t/help-on-my-validation/169148)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 0\
**Last updated:** [May 30, 2009, 7:38am UTC](https://www.ruby-forum.com/t/help-on-my-validation/169148 "2009-05-30T07:38:55Z")

</div>

Hi… I use text field with auto complete for my authority\_name field which will be fetched from userinfo table and the field name is login. Authority Name ------------ \<%=text\_field\_with\_auto\_complete :userinfo, :logi…

---

## [Strange behaviour in ActiveRecord transaction](https://www.ruby-forum.com/t/strange-behaviour-in-activerecord-transaction/169004)

<div class="topic-metadata">

**Author:** [@farmerss](https://www.ruby-forum.com/u/farmerss)\
**Replies:** 5\
**Last updated:** [May 30, 2009, 7:10am UTC](https://www.ruby-forum.com/t/strange-behaviour-in-activerecord-transaction/169004 "2009-05-30T07:10:44Z")

</div>

Hi, I’m using an ActiveRecord transaction in a Rails app, and one of the changes made during the transaction is reverted as the transaction finishes, whilst the other changes are preserved. The code is like: def sw…

---

## [Question on Hosting and Rails](https://www.ruby-forum.com/t/question-on-hosting-and-rails/169145)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [May 30, 2009, 5:28am UTC](https://www.ruby-forum.com/t/question-on-hosting-and-rails/169145 "2009-05-30T05:28:30Z")

</div>

My current host is gatorhost.com. They use Ruby 1.85 and rails 2.3.2 I use Ruby 1.9.1 and rails 2.3.2. Will I have a problem with any of my rails environment apps if I use them on my hosted domain?

---

## [Sql -\> migrations?](https://www.ruby-forum.com/t/sql-migrations/169108)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 1\
**Last updated:** [May 30, 2009, 1:28am UTC](https://www.ruby-forum.com/t/sql-migrations/169108 "2009-05-30T01:28:45Z")

</div>

Is there a way to take a db schema (say, as sql statements) and reverse that back into files to use for migrations? how do you handle legacy db’s – do you have to go and write the migration files yourself from scratch…

---

## [Forum integration](https://www.ruby-forum.com/t/forum-integration/169133)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/forum-integration/169133 "2009-05-29T22:22:28Z")

</div>

Hello , Is there any plugin or gem for rails 1.2.\* which can be integrate in existing application.

---

## [Full text search on Rails using the acts\_as\_solr plugin](https://www.ruby-forum.com/t/full-text-search-on-rails-using-the-acts-as-solr-plugin/169126)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/full-text-search-on-rails-using-the-acts-as-solr-plugin/169126 "2009-05-29T20:41:43Z")

</div>

Hi everyone, We’ve just released our “fork” of the acts\_as\_solr plugin that we’ve been using for a while now to power the full text search on our projects. The fork features some changes to the way configurations are …

---

## [Under MVC, business rules belong in the \_\_\_\_\_\_\_\_\_\_](https://www.ruby-forum.com/t/under-mvc-business-rules-belong-in-the/168935)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 23\
**Last updated:** [May 29, 2009, 8:20pm UTC](https://www.ruby-forum.com/t/under-mvc-business-rules-belong-in-the/168935 "2009-05-29T20:20:12Z")

</div>

Railsters: I heard a rumor that the incorrect answer, “Controller”, was in circulation out there. The C should be as thin as possible, like a telephone patch-board. The View should be thick, but only with Viewey th…

---

## [I need a lot of advice here - let's start from the beginning](https://www.ruby-forum.com/t/i-need-a-lot-of-advice-here-lets-start-from-the-beginning/169067)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 17\
**Last updated:** [May 29, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/i-need-a-lot-of-advice-here-lets-start-from-the-beginning/169067 "2009-05-29T18:29:06Z")

</div>

Hi Everyone, I’ll try to make my opening summary as short as possible. I work as a hobbyist in web development (using Dreamweaver CS4, Photoshop CS4, PHP, Swishmax2(flash)). My dominant sites are all on “linux/unix”…

---

## [Tests problem - NoMethodError: private method \`gsub' called for 117681882:Fixnum](https://www.ruby-forum.com/t/tests-problem-nomethoderror-private-method-gsub-called-for-117681882-fixnum/169107)

<div class="topic-metadata">

**Author:** [@Piotr\_Szmielew](https://www.ruby-forum.com/u/Piotr_Szmielew)\
**Replies:** 1\
**Last updated:** [May 29, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/tests-problem-nomethoderror-private-method-gsub-called-for-117681882-fixnum/169107 "2009-05-29T17:45:35Z")

</div>

Hi, i got very strange problem connected to tests in Rails. I got the same application code version as my team has, and on their computer all tests pass, and on my laptop (debian 5, ruby 1.8.6/1.8.7 (tried both), rail…

---

## [Rails site on CD](https://www.ruby-forum.com/t/rails-site-on-cd/169109)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 4\
**Last updated:** [May 29, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/rails-site-on-cd/169109 "2009-05-29T17:26:47Z")

</div>

Hi All I’ve been asked to provide a copy of a site I’ve just put together on a CD so that it can be tailed in with a Powerpoint presentation (I presume links from the presentation to a local copy of the site). Does a…

---

## [\[JOB\] Exciting funded NYC startup seeking Ruby developers](https://www.ruby-forum.com/t/job-exciting-funded-nyc-startup-seeking-ruby-developers/169113)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/job-exciting-funded-nyc-startup-seeking-ruby-developers/169113 "2009-05-29T17:01:51Z")

</div>

Fast-growing tech startup is seeking an expert Ruby on Rails developer to join our intimate tech team in a key role. Successful candidate will have a minimum of two years experience deploying scalable RoR applications…

---

## [Sinatra](https://www.ruby-forum.com/t/sinatra/169101)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 2\
**Last updated:** [May 29, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/sinatra/169101 "2009-05-29T16:46:56Z")

</div>

Is anyone familiar with Sinatra? Is it a framework used in lieu of Rails – or within it (I cannnot really tell from the docs). Anyone’s thoughts on this, pro and con?

---

## [Assert\_valid in unit tests after upgrade to rails 2.3 doesn't work](https://www.ruby-forum.com/t/assert-valid-in-unit-tests-after-upgrade-to-rails-2-3-doesnt-work/164901)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 3\
**Last updated:** [May 29, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/assert-valid-in-unit-tests-after-upgrade-to-rails-2-3-doesnt-work/164901 "2009-05-29T16:41:39Z")

</div>

def test\_valid assert\_valid State.first end Error: test\_valid(StateTest): NoMethodError: undefined method \`assert\_valid’ for #\<StateTest: 0x7f0d60750318\> I see that test\_valid is now in ActionController::Assertio…

---

## [Steps for creating rails engine?](https://www.ruby-forum.com/t/steps-for-creating-rails-engine/169106)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [May 29, 2009, 3:00pm UTC](https://www.ruby-forum.com/t/steps-for-creating-rails-engine/169106 "2009-05-29T15:00:27Z")

</div>

Hi all, I want to create a small rails engine (like community engine) which require me in future’s project also. but I don’t know how? Is it same as creating a rails application and merge that in another application…

---

## [Import unicode characters](https://www.ruby-forum.com/t/import-unicode-characters/169097)

<div class="topic-metadata">

**Author:** [@lecielbleu](https://www.ruby-forum.com/u/lecielbleu)\
**Replies:** 3\
**Last updated:** [May 29, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/import-unicode-characters/169097 "2009-05-29T14:30:15Z")

</div>

Hi , i have a problem while importing unicode characters (üºçöetc…). i have scaffold categories model then i try create new categorie using CRUD scenario so it worked , but when i use csv\_import controller , character…

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

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