# Rails

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

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

---

## [Problems with SQL Server 2008 and migrations using activerecord-odbc-adapter gem](https://www.ruby-forum.com/t/problems-with-sql-server-2008-and-migrations-using-activerecord-odbc-adapter-gem/157135)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 7\
**Last updated:** [February 9, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/problems-with-sql-server-2008-and-migrations-using-activerecord-odbc-adapter-gem/157135 "2009-02-09T22:39:29Z")

</div>

Can any one else please help me to confirm that migrations are broken against SQL Server 2008? I’m running Rails 2.2.2 and activerecord-odbc- adapter 2.0 gem. I’ve created a system DSN to my test database using an aut…

---

## [Rails Colo in Pacific Northwest?](https://www.ruby-forum.com/t/rails-colo-in-pacific-northwest/159685)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 9, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/rails-colo-in-pacific-northwest/159685 "2009-02-09T22:13:31Z")

</div>

Does anyone have any experience with or knowledge of a Rails-savvy colocation facility in the vicinity of the Pacific Northwest? Thanks! Bill

---

## [Textile, markdown suggestions](https://www.ruby-forum.com/t/textile-markdown-suggestions/114773)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 10\
**Last updated:** [February 9, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/textile-markdown-suggestions/114773 "2009-02-09T21:58:08Z")

</div>

I have a text area in one of my scaffolds that is inserted into a div element on one of my rails pages. Right now I can white HTML in the text area and have it show with the respective formatting when I view my page. …

---

## [Image rotator plugin](https://www.ruby-forum.com/t/image-rotator-plugin/159902)

<div class="topic-metadata">

**Author:** [@Shockmeister](https://www.ruby-forum.com/u/Shockmeister)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:48pm UTC](https://www.ruby-forum.com/t/image-rotator-plugin/159902 "2009-02-09T21:48:03Z")

</div>

Hi all, Has anyone used farooq ali’s rails plugin for media applications? (see link below) I am trying to create a simple slideshow on my site and I am using farooq’s plugin for image rotator (http://www.longtailvi…

---

## [Flickraw: flickr.tags.getListUserRaw](https://www.ruby-forum.com/t/flickraw-flickr-tags-getlistuserraw/159899)

<div class="topic-metadata">

**Author:** [@hawe](https://www.ruby-forum.com/u/hawe)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/flickraw-flickr-tags-getlistuserraw/159899 "2009-02-09T21:29:59Z")

</div>

Hi! I need to call the flickr.tags.getListUserRaw API method (Flickr Services: Flickr API: flickr.tags.getListUserRaw) with the flickraw gem. Unfortunately there is no documentation how to authenticate and then call…

---

## [Ferret - mysql server has gone away](https://www.ruby-forum.com/t/ferret-mysql-server-has-gone-away/159897)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/ferret-mysql-server-has-gone-away/159897 "2009-02-09T21:25:23Z")

</div>

I’ve problem with ferret (acts\_as\_ferret). search-engine and webserver are on the same machine. I use acts\_as\_ferret :field =\> … to define which columns are indexed. I recreate the index with Search.rebuild\_index (Sea…

---

## [Diff tool in Ruby with HTML output](https://www.ruby-forum.com/t/diff-tool-in-ruby-with-html-output/159789)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/diff-tool-in-ruby-with-html-output/159789 "2009-02-09T21:01:51Z")

</div>

Hello, Anyone knows of any tool that can generate a diff between two files and output HTML code that i could use in a page? Doesn’t need to be a Ruby tool, any Unix compatible tool would do the trick, I just need it …

---

## [Classpath Issue](https://www.ruby-forum.com/t/classpath-issue/159891)

<div class="topic-metadata">

**Author:** [@ganeshk](https://www.ruby-forum.com/u/ganeshk)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 8:33pm UTC](https://www.ruby-forum.com/t/classpath-issue/159891 "2009-02-09T20:33:05Z")

</div>

I am new to Ruby/RoR and would appreciate any help on the issue I am trying to resolve far past 2 days. I have a java application as a jar and I have included in the controller as below. require ‘java’ require ‘C:/D…

---

## [Submit\_to\_remote change from 2.1 to 2.2 now gives wrong number of arguments](https://www.ruby-forum.com/t/submit-to-remote-change-from-2-1-to-2-2-now-gives-wrong-number-of-arguments/159886)

<div class="topic-metadata">

**Author:** [@Andres\_Paglayan](https://www.ruby-forum.com/u/Andres_Paglayan)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 7:56pm UTC](https://www.ruby-forum.com/t/submit-to-remote-change-from-2-1-to-2-2-now-gives-wrong-number-of-arguments/159886 "2009-02-09T19:56:40Z")

</div>

Hi, this snippet \<%= submit\_to\_remote('create\_button', 'Add Phone', :submit =\> “phone\_form”, :url =\> send( “#{@phonable\_type.to\_s.downcase.singularize}\_phones\_path”, …

---

## [How to set a root URL?](https://www.ruby-forum.com/t/how-to-set-a-root-url/159856)

<div class="topic-metadata">

**Author:** [@Pierre\_L](https://www.ruby-forum.com/u/Pierre_L)\
**Replies:** 5\
**Last updated:** [February 9, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/how-to-set-a-root-url/159856 "2009-02-09T18:57:48Z")

</div>

Hello, My server installation of RoR is working but I still have a problem with routes. I would like the root URL of my site to be some thing like mydomain.com/mysite/ . But this is not working since Rails include th…

---

## [Help needed in rails project](https://www.ruby-forum.com/t/help-needed-in-rails-project/159871)

<div class="topic-metadata">

**Author:** [@manisha](https://www.ruby-forum.com/u/manisha)\
**Replies:** 9\
**Last updated:** [February 9, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/help-needed-in-rails-project/159871 "2009-02-09T17:25:17Z")

</div>

Hi friends, I need to create some additional ruby files for some other functions inside a rails project. So I created another folder and put those files inside it.In this case one file needs to call the classes in oth…

---

## [Uploading error with attachment\_fu and rmagick](https://www.ruby-forum.com/t/uploading-error-with-attachment-fu-and-rmagick/134983)

<div class="topic-metadata">

**Author:** [@jose\_d](https://www.ruby-forum.com/u/jose_d)\
**Replies:** 9\
**Last updated:** [February 9, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/uploading-error-with-attachment-fu-and-rmagick/134983 "2009-02-09T17:14:56Z")

</div>

I wrote a small app, rails 2.0.2 using attachment\_fu and rmagick to upload files. Everthing works fine in my dev machine ( windows XP ). I can upload with no problem. I am using deprec/capistrano to deploy to my slice…

---

## [Custom gem doesn't work](https://www.ruby-forum.com/t/custom-gem-doesnt-work/159770)

<div class="topic-metadata">

**Author:** [@cbmeeks](https://www.ruby-forum.com/u/cbmeeks)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/custom-gem-doesnt-work/159770 "2009-02-09T16:31:27Z")

</div>

I’m a Ruby/Rails newbie. I’ve just created my first Ruby gem called GameFake. It’s like Faker for video games. Anyway, the gem works great in the irb. But when I fire up the Rails console (./script/console) and try…

---

## [Property of text area in readonly mode](https://www.ruby-forum.com/t/property-of-text-area-in-readonly-mode/159511)

<div class="topic-metadata">

**Author:** [@savitha](https://www.ruby-forum.com/u/savitha)\
**Replies:** 10\
**Last updated:** [February 9, 2009, 4:15pm UTC](https://www.ruby-forum.com/t/property-of-text-area-in-readonly-mode/159511 "2009-02-09T16:15:58Z")

</div>

Hi all, How to make an html textarea read only in one mode and make the same textfield as editable in other mode? can anyone give me a solution for this? Thanks in advance

---

## [Insight on creating an online file editor (create, edit files, browse tree structure)](https://www.ruby-forum.com/t/insight-on-creating-an-online-file-editor-create-edit-files-browse-tree-structure/159813)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/insight-on-creating-an-online-file-editor-create-edit-files-browse-tree-structure/159813 "2009-02-09T15:53:29Z")

</div>

Hello guys, Can anyone give any ideas on how to start working to do an online file editor. I want the user to create his/her own directory on the server an be able to create new text files and edit them online. A file…

---

## [Forms that mix new and old records](https://www.ruby-forum.com/t/forms-that-mix-new-and-old-records/159867)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/forms-that-mix-new-and-old-records/159867 "2009-02-09T15:52:54Z")

</div>

I’m trying to create a form/view that displays a mix of records that exist in the database and records that the user is working on but that don’t yet exist in the database. I want to leverage all of rails’ nice form h…

---

## [Export images to excel rails](https://www.ruby-forum.com/t/export-images-to-excel-rails/159864)

<div class="topic-metadata">

**Author:** [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 3:18pm UTC](https://www.ruby-forum.com/t/export-images-to-excel-rails/159864 "2009-02-09T15:18:47Z")

</div>

Hi, I have generated bar graphs using Gruff. There are around 30-35 graphs, now the problem is I want to export the bar graph images to excel and place each 1 of them in different sheets. Is this posiible? if yes ple…

---

## [Acts\_as\_tree](https://www.ruby-forum.com/t/acts-as-tree/159862)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 3:16pm UTC](https://www.ruby-forum.com/t/acts-as-tree/159862 "2009-02-09T15:16:25Z")

</div>

i’m using the command script/plugin install acts\_as\_tree but i’m still having Plugin not found: \[“acts\_as\_tree”\] any helps!!!

---

## [Live\_tree](https://www.ruby-forum.com/t/live-tree/159860)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/live-tree/159860 "2009-02-09T14:55:29Z")

</div>

please how to install live\_tree on rails 2.0.2

---

## [Testing on Linux VM on winXP 3 times faster than XP](https://www.ruby-forum.com/t/testing-on-linux-vm-on-winxp-3-times-faster-than-xp/159796)

<div class="topic-metadata">

**Author:** [@itsastickup](https://www.ruby-forum.com/u/itsastickup)\
**Replies:** 5\
**Last updated:** [February 9, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/testing-on-linux-vm-on-winxp-3-times-faster-than-xp/159796 "2009-02-09T13:56:47Z")

</div>

Hello, Informational post in case any windows developers are interested. I had heard that ruby on a linux VM running on windows can be faster than on that same install of windows. I recently got fed up waiting 1min & …

---

## [Problem in before\_filter](https://www.ruby-forum.com/t/problem-in-before-filter/159848)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 12:34pm UTC](https://www.ruby-forum.com/t/problem-in-before-filter/159848 "2009-02-09T12:34:22Z")

</div>

Hi, I’ve a session data that is generated when a user logs in. I’m trying to access that session data, in before\_filter, in a different controller for passing parameter to the before\_filter function. before\_filter :o…

---

## [Sorting a has\_many collection](https://www.ruby-forum.com/t/sorting-a-has-many-collection/159843)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 5\
**Last updated:** [February 9, 2009, 12:19pm UTC](https://www.ruby-forum.com/t/sorting-a-has-many-collection/159843 "2009-02-09T12:19:16Z")

</div>

Can’t quite figure this one, I have a School (has\_many reviews) and a Review (belongs\_to school). I’m rendering my reviews per school like this “@School.reviews” Which renders the “\_review.html.erb” multiple times for…

---

## [How to style currently active link](https://www.ruby-forum.com/t/how-to-style-currently-active-link/159841)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 6\
**Last updated:** [February 9, 2009, 11:59am UTC](https://www.ruby-forum.com/t/how-to-style-currently-active-link/159841 "2009-02-09T11:59:47Z")

</div>

I have four links on a page generated with link\_to . I want to style the currently active link differently than the other 3. I tried passing :class =\> “selected” to link\_to but it adds this tag to all 4 links, not jus…

---

## [Rails 2.2.2 server console SQL no statements](https://www.ruby-forum.com/t/rails-2-2-2-server-console-sql-no-statements/159844)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 11:32am UTC](https://www.ruby-forum.com/t/rails-2-2-2-server-console-sql-no-statements/159844 "2009-02-09T11:32:37Z")

</div>

I have recently installed rails 2.2.2 and have now noticed that in the server console I no longer see the SQL statements, I just see the HTTP requests. Has something changed? And is there a setting I can set to see th…

---

## [Logic for a search method](https://www.ruby-forum.com/t/logic-for-a-search-method/159724)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 5\
**Last updated:** [February 9, 2009, 11:08am UTC](https://www.ruby-forum.com/t/logic-for-a-search-method/159724 "2009-02-09T11:08:58Z")

</div>

I’m trying to ask users for a name and a place and then give them a list of all the names OR all the places OR the names in that place, if you get me? This is my flawed attempt, I’m passing params correctly so it’s ju…

---

## [Mail return value](https://www.ruby-forum.com/t/mail-return-value/159839)

<div class="topic-metadata">

**Author:** [@spacemeli](https://www.ruby-forum.com/u/spacemeli)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 11:07am UTC](https://www.ruby-forum.com/t/mail-return-value/159839 "2009-02-09T11:07:32Z")

</div>

Hi I’m using this method to send emails def send\_report(name, email, content) recipients email subject “My subject” from “removed\_email\_address@domain.invalid” body :content =\> content conte…

---

## [Uploading Files](https://www.ruby-forum.com/t/uploading-files/159832)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 10:58am UTC](https://www.ruby-forum.com/t/uploading-files/159832 "2009-02-09T10:58:16Z")

</div>

I would like to upload an image into rails application. so can anybody send me the details for starter like me.

---

## [How to upload data using huge .sql file](https://www.ruby-forum.com/t/how-to-upload-data-using-huge-sql-file/159763)

<div class="topic-metadata">

**Author:** [@hitesh](https://www.ruby-forum.com/u/hitesh)\
**Replies:** 8\
**Last updated:** [February 9, 2009, 10:39am UTC](https://www.ruby-forum.com/t/how-to-upload-data-using-huge-sql-file/159763 "2009-02-09T10:39:16Z")

</div>

Hi, I am using Ruby - 1.8.6 and Rails- 1.2.6. When I trying to upload data using the .sql file through my code I got “Mysql::Error: Lost connection to MySQL server during query: rollback;” File size is 6 MB. The co…

---

## [Prepend\_view\_path and layouts](https://www.ruby-forum.com/t/prepend-view-path-and-layouts/159632)

<div class="topic-metadata">

**Author:** [@joost](https://www.ruby-forum.com/u/joost)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 10:19am UTC](https://www.ruby-forum.com/t/prepend-view-path-and-layouts/159632 "2009-02-09T10:19:20Z")

</div>

When using prepend\_view\_path in a before\_filter in application\_controller it renders all views correctly from the added view path. However layouts are still from the default location… Any ideas?

---

## [Restful Controllers session state and custom actions](https://www.ruby-forum.com/t/restful-controllers-session-state-and-custom-actions/159834)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:34am UTC](https://www.ruby-forum.com/t/restful-controllers-session-state-and-custom-actions/159834 "2009-02-09T09:34:33Z")

</div>

hi, i’m working with a model with a has\_many association. i’m using the complex forms (ala ryan bates) design. it’s been straight forward i’ve just followed that particular design, using a map.resources route, & 7 ac…

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

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