# Rails

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

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

---

## [Search words and sessions](https://www.ruby-forum.com/t/search-words-and-sessions/173626)

<div class="topic-metadata">

**Author:** [@Trausti\_Thor\_J](https://www.ruby-forum.com/u/Trausti_Thor_J)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/search-words-and-sessions/173626 "2009-08-12T15:24:58Z")

</div>

Hi All, I am implementing a search for my blog. I have it as you can type in tags and words, and I keep them as session variables. I was just thinking if this was a good idea ? I saw on learning ruby on rails, tha…

---

## [Rails .2.1 and before versions](https://www.ruby-forum.com/t/rails-2-1-and-before-versions/173638)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/rails-2-1-and-before-versions/173638 "2009-08-12T14:54:31Z")

</div>

hi guys, i want to know the differences between rails2.1 and before versions.please urgent

---

## [Joining tables but not on the default ID field](https://www.ruby-forum.com/t/joining-tables-but-not-on-the-default-id-field/173636)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 6\
**Last updated:** [August 12, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/joining-tables-but-not-on-the-default-id-field/173636 "2009-08-12T14:50:25Z")

</div>

I’ve got a working app, at its core I have a rake task that pulls in the resort data from a CSV file (which a data provider will give me annually). Thanks to the help here it’s all working fine. I think I’ve made a ba…

---

## [Read error: #\<Errno::ECONNABORTED: An established connection was aborted by the software in your ho](https://www.ruby-forum.com/t/read-error-errno-an-established-connection-was-aborted-by-the-software-in-your-ho/173629)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/read-error-errno-an-established-connection-was-aborted-by-the-software-in-your-ho/173629 "2009-08-12T14:33:02Z")

</div>

Hi I am getting this error when i run Wed Aug 12 14:00:28 +0530 2009: Read error: #\<Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.\> D:/ruby/lib/ruby/gems/1.8/gems/mo…

---

## [Tinymce // problem with underline and strikethrough](https://www.ruby-forum.com/t/tinymce-problem-with-underline-and-strikethrough/173635)

<div class="topic-metadata">

**Author:** [@webstic](https://www.ruby-forum.com/u/webstic)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/tinymce-problem-with-underline-and-strikethrough/173635 "2009-08-12T13:21:22Z")

</div>

as my title said! i use tinymce pluging from: http://tinymcehammer.lanalot.com/ i have successfully loaded and use it but nderline and strikethrough didnt work for me! any suggestions ? thanks a lot philip g.

---

## [STI with legacy table](https://www.ruby-forum.com/t/sti-with-legacy-table/173634)

<div class="topic-metadata">

**Author:** [@kevtufc](https://www.ruby-forum.com/u/kevtufc)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 1:17pm UTC](https://www.ruby-forum.com/t/sti-with-legacy-table/173634 "2009-08-12T13:17:55Z")

</div>

I maintain a rails app which uses a lot of data from a commercial system (a student records system) and adds much functionality. I’m having to make some changes to make the system work with upcoming changes to their d…

---

## [Git, Capistrano, Passenger, and Apache Questions](https://www.ruby-forum.com/t/git-capistrano-passenger-and-apache-questions/173582)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 10\
**Last updated:** [August 12, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/git-capistrano-passenger-and-apache-questions/173582 "2009-08-12T12:47:29Z")

</div>

First, I’m trying to do the legwork with utilizing all 4 together because many people say it’s a good combination to use. I already have apache setup (was using it with the PHP version of my site formerly). I’ve inst…

---

## [Open source rails 2 books](https://www.ruby-forum.com/t/open-source-rails-2-books/173416)

<div class="topic-metadata">

**Author:** [@fla](https://www.ruby-forum.com/u/fla)\
**Replies:** 7\
**Last updated:** [August 12, 2009, 11:02am UTC](https://www.ruby-forum.com/t/open-source-rails-2-books/173416 "2009-08-12T11:02:35Z")

</div>

Hello, where can I find open source rails 2 books? Thank you in advance. Cheers,

---

## [Svn Integration with Rails application](https://www.ruby-forum.com/t/svn-integration-with-rails-application/173558)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 10:39am UTC](https://www.ruby-forum.com/t/svn-integration-with-rails-application/173558 "2009-08-12T10:39:34Z")

</div>

Hi I am trying to implement a svn browser type of function in my application.I have installed the subversion bindings for Ruby and I am following http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-fina…

---

## [Lightbox ajax problem](https://www.ruby-forum.com/t/lightbox-ajax-problem/173625)

<div class="topic-metadata">

**Author:** [@wap](https://www.ruby-forum.com/u/wap)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 9:12am UTC](https://www.ruby-forum.com/t/lightbox-ajax-problem/173625 "2009-08-12T09:12:04Z")

</div>

Hello All, I have rails 2.3.3 i want to use light box ajax for display image and other things.if any one having idea about it lease help me. Thanks

---

## [Getting Error with a plugin in Production](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 9:00am UTC](https://www.ruby-forum.com/t/getting-error-with-a-plugin-in-production/173622 "2009-08-12T09:00:22Z")

</div>

Error message: undefined method \`acts\_as\_textiled’ for #Class:0x7f057c4dc988 I receive this error from passenger. I am using capistrano/passenger/apache and initially when I cap deployed the plugins were missing. S…

---

## [Pagination counting upwards](https://www.ruby-forum.com/t/pagination-counting-upwards/173624)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 8:59am UTC](https://www.ruby-forum.com/t/pagination-counting-upwards/173624 "2009-08-12T08:59:47Z")

</div>

Hey I have a question on paginations. I got it working on the part of my application in which users submit posts, but I want it to be used in a way that counts up, so that the first post would always be on page one, …

---

## [Creating a new record without uploading an image- paperclip](https://www.ruby-forum.com/t/creating-a-new-record-without-uploading-an-image-paperclip/173623)

<div class="topic-metadata">

**Author:** [@jbadlands](https://www.ruby-forum.com/u/jbadlands)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 8:27am UTC](https://www.ruby-forum.com/t/creating-a-new-record-without-uploading-an-image-paperclip/173623 "2009-08-12T08:27:17Z")

</div>

My users have the ability to upload a profile picture, but I don’t want to require this upon registration. I have a model called User, for auth and each User has\_ one a Profile The profiles model is where I’ve put my …

---

## [Hi doubt in unit testing](https://www.ruby-forum.com/t/hi-doubt-in-unit-testing/173064)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 23\
**Last updated:** [August 12, 2009, 7:23am UTC](https://www.ruby-forum.com/t/hi-doubt-in-unit-testing/173064 "2009-08-12T07:23:46Z")

</div>

def test\_check\_for\_validity post=County.new(:name=\>“myname”,:description=\>“mydesc”) assert post.save end above is the method and when i run unit test it is saying as Failure: test\_check\_for\_validity(CountyTest) \[/…

---

## [Thinking\_sphinx](https://www.ruby-forum.com/t/thinking-sphinx/173563)

<div class="topic-metadata">

**Author:** [@fisa](https://www.ruby-forum.com/u/fisa)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 6:40am UTC](https://www.ruby-forum.com/t/thinking-sphinx/173563 "2009-08-12T06:40:47Z")

</div>

hi all, I installed sphinx and thinking\_sphinx correctly.But When i am running rake thinking\_sphinx:index it showing error rake aborted! undefined method \`configuration’ for Rails:Module I can’t recognize it…Plz hel…

---

## [Ajax file upload question](https://www.ruby-forum.com/t/ajax-file-upload-question/173393)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 8\
**Last updated:** [August 12, 2009, 5:38am UTC](https://www.ruby-forum.com/t/ajax-file-upload-question/173393 "2009-08-12T05:38:59Z")

</div>

I have the file upload working, I have to place it outside my main form. Is there a way so I can have somewhere other than outside my form? This below is all after the submit button: \<%= render :partial =\> '/rsl/sit…

---

## [Hiding views before using toggle](https://www.ruby-forum.com/t/hiding-views-before-using-toggle/173604)

<div class="topic-metadata">

**Author:** [@cmidler](https://www.ruby-forum.com/u/cmidler)\
**Replies:** 5\
**Last updated:** [August 12, 2009, 4:20am UTC](https://www.ruby-forum.com/t/hiding-views-before-using-toggle/173604 "2009-08-12T04:20:53Z")

</div>

Hi, I want to hide some of my html in my view before toggling. In my css I tried setting the display:none; but then when I would run my toggle function it wouldn’t toggle. Is there an easy solution out there beside…

---

## [Activerecord-sqlserver-adapter nvarchar datatype length](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-nvarchar-datatype-length/173617)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 0\
**Last updated:** [August 12, 2009, 3:57am UTC](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-nvarchar-datatype-length/173617 "2009-08-12T03:57:10Z")

</div>

I’ve recently installed this adapter in hope that I can work with utf-8 encoding using the SQL Server nvarchar data type. I’ve installed and followed the steps detailed at this uri: http://github.com/adzap/rails-sql…

---

## [How to Access a Callback Return Value](https://www.ruby-forum.com/t/how-to-access-a-callback-return-value/173609)

<div class="topic-metadata">

**Author:** [@rwhiten1](https://www.ruby-forum.com/u/rwhiten1)\
**Replies:** 3\
**Last updated:** [August 12, 2009, 2:59am UTC](https://www.ruby-forum.com/t/how-to-access-a-callback-return-value/173609 "2009-08-12T02:59:13Z")

</div>

I have an Image model that is supported by a Binary model. The latter contains metadata about a physical file and performs all operations related to the physical file (I will eventually have other models for different…

---

## [Page.insert\_html using element select instead of id?](https://www.ruby-forum.com/t/page-insert-html-using-element-select-instead-of-id/173051)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 12\
**Last updated:** [August 12, 2009, 2:52am UTC](https://www.ruby-forum.com/t/page-insert-html-using-element-select-instead-of-id/173051 "2009-08-12T02:52:24Z")

</div>

Hello there, I’m trying to do something like in a rjs file: page.insert\_html :bottom, page.literal(" $(‘comments\_list’).down(0) "), :partial =\> “comments/comment\_list”, :object =\> @comment The problem is that I alway…

---

## [Any good places to look for offsite Rails work?](https://www.ruby-forum.com/t/any-good-places-to-look-for-offsite-rails-work/173603)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 2\
**Last updated:** [August 12, 2009, 12:17am UTC](https://www.ruby-forum.com/t/any-good-places-to-look-for-offsite-rails-work/173603 "2009-08-12T00:17:07Z")

</div>

I’ve been busy working for one client for almost a year. Looking for a new gig now and many of the places I used to look seem to have closed down or changed quite a bit. Can anyone recommend some good places to look …

---

## [Best Practicies: Combining Polymorphic Results?](https://www.ruby-forum.com/t/best-practicies-combining-polymorphic-results/173606)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 1\
**Last updated:** [August 12, 2009, 12:13am UTC](https://www.ruby-forum.com/t/best-practicies-combining-polymorphic-results/173606 "2009-08-12T00:13:43Z")

</div>

Hi, I am trying to combine results on two related associations and was wondering if there were a best practicies way to do this. I basically have VendorCodes that are matched to both Vendors and VendorStaff. vendors…

---

## [CSV upload to database](https://www.ruby-forum.com/t/csv-upload-to-database/173596)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 3\
**Last updated:** [August 11, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/csv-upload-to-database/173596 "2009-08-11T23:03:29Z")

</div>

Hello all, I’m a newbie with Ruby on Rails. So far, 3 weeks and counting. I’m really a PHP guy with a department that changed its development platform. But enough of the chit chat. My project consists of a “Project” …

---

## [Activerecord-sqlserver-adapter nvarchar datatype length](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-nvarchar-datatype-length/173602)

<div class="topic-metadata">

**Author:** [@calvin98115](https://www.ruby-forum.com/u/calvin98115)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-nvarchar-datatype-length/173602 "2009-08-11T22:53:21Z")

</div>

I’ve recently installed this adapter in hope that I can work with utf-8 encoding using the SQL Server nvarchar data type. I’ve installed and followed the steps detailed at this uri: http://github.com/adzap/rails-sqls…

---

## [Passing option to helper](https://www.ruby-forum.com/t/passing-option-to-helper/173601)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 0\
**Last updated:** [August 11, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/passing-option-to-helper/173601 "2009-08-11T22:07:26Z")

</div>

Hi I’m a bit stumped as to how to pass options to these helpers: helpers def generate\_html(form\_builder, method, options = {}) options\[:object\] ||= form\_builder.object.class.reflect\_on\_association(method).klass.new …

---

## [Rake db:schema:load insists on querying my database for data I haven't loaded](https://www.ruby-forum.com/t/rake-dbload-insists-on-querying-my-database-for-data-i-havent-loaded/173541)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 3\
**Last updated:** [August 11, 2009, 10:05pm UTC](https://www.ruby-forum.com/t/rake-dbload-insists-on-querying-my-database-for-data-i-havent-loaded/173541 "2009-08-11T22:05:21Z")

</div>

Rails 2.3.2. Ruby 1.8.7. MySQL 5.x I have used “rake db:schema:dump” to generate a migration structure to go from development to production. I want to use “rake db:schema:load” to load it into my new database. Sou…

---

## [Problem with deploying (can't activate rails)](https://www.ruby-forum.com/t/problem-with-deploying-cant-activate-rails/173586)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-cant-activate-rails/173586 "2009-08-11T21:28:38Z")

</div>

Hi all, I have a problem with deploying rails via capistrano. (updated capistrano) \*\*\* \[err :: www.teamgeisthq.com\] /usr/local/lib/site\_ruby/1.8/ rubygems.rb:149:in activate' \*\*\* \[err :: www.teamgeisthq.com\] : \*\*\* \[e…

---

## [A copy of ApplicationController has been removed from the module tree but is still active!](https://www.ruby-forum.com/t/a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/173511)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 2\
**Last updated:** [August 11, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/173511 "2009-08-11T21:14:25Z")

</div>

Yes, more dependencies.rb fun! As far as I’m able to ascertain, these errors started appearing after upgrading from Rails 2.3.1 to 2.3.2 and persist in 2.3.3. They’re highly nonderministic and appear rather sporadical…

---

## [Assert\_recognizes example throws syntax error](https://www.ruby-forum.com/t/assert-recognizes-example-throws-syntax-error/173531)

<div class="topic-metadata">

**Author:** [@Cynthia\_K](https://www.ruby-forum.com/u/Cynthia_K)\
**Replies:** 3\
**Last updated:** [August 11, 2009, 6:36pm UTC](https://www.ruby-forum.com/t/assert-recognizes-example-throws-syntax-error/173531 "2009-08-11T18:36:57Z")

</div>

I am trying to test some restful routes and the example from the API docs (suitably munged) is failing. What am I not seeing? Example from API docs on api.rubyonrails.com Check the default route (i.e., the index act…

---

## [Submit Link](https://www.ruby-forum.com/t/submit-link/173568)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [August 11, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/submit-link/173568 "2009-08-11T18:32:51Z")

</div>

Hello Champs Actually the thing is that i am submitting an form using a submit tag… also i am passing an hidden id using it as well … Code style is like this:- form action-- id – hidden field – submit\_tag – end N…

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

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