# Rails

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

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

---

## [Rails asset tag helpers outputting invalid xhtml](https://www.ruby-forum.com/t/rails-asset-tag-helpers-outputting-invalid-xhtml/154966)

<div class="topic-metadata">

**Author:** [@asoto](https://www.ruby-forum.com/u/asoto)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/rails-asset-tag-helpers-outputting-invalid-xhtml/154966 "2008-12-05T17:21:50Z")

</div>

I am using Rails 2.1 and HAML for some, but not all, of my templates. All of the self-closing asset tags (, ) output by the rails asset tag helper methods are not being closed at all, thus rendering my pages as invali…

---

## [Parsing excel(.xls) file](https://www.ruby-forum.com/t/parsing-excel-xls-file/154936)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/parsing-excel-xls-file/154936 "2008-12-05T15:29:55Z")

</div>

hi, i am trying for parsing an excel file using parseexcel. it works fine for small set of data containing excel file. but it not work properly on large set of data, and throws error. spreadsheet also cause same erro…

---

## [Problem with booting mongreal](https://www.ruby-forum.com/t/problem-with-booting-mongreal/154826)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/problem-with-booting-mongreal/154826 "2008-12-05T12:52:17Z")

</div>

Hello, When I try to boot my server by ruby script/server, it throws me following error: =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails 2.2.2 application starting on http://0.0.0.0:3000 …

---

## [Multiple Forms and Multiple tables +One Model +One Controller](https://www.ruby-forum.com/t/multiple-forms-and-multiple-tables-one-model-one-controller/154730)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 13\
**Last updated:** [December 5, 2008, 11:21am UTC](https://www.ruby-forum.com/t/multiple-forms-and-multiple-tables-one-model-one-controller/154730 "2008-12-05T11:21:55Z")

</div>

Hi Im using Multiple Forms and Multiple tables +One Model +One Controller in my rails application and give example code Please help me Thanks & Regards Balaji

---

## [Problems installing mysql gem in Rails 2.2.2](https://www.ruby-forum.com/t/problems-installing-mysql-gem-in-rails-2-2-2/154021)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 5\
**Last updated:** [December 5, 2008, 10:51am UTC](https://www.ruby-forum.com/t/problems-installing-mysql-gem-in-rails-2-2-2/154021 "2008-12-05T10:51:21Z")

</div>

Hi’ Rails riders. I having upgraded everything and upgraded to Rails 2.2.2 I now wanted to install the MySQL gem as I am getting the following error when trying to load up the app. no such file to load – mysql Normal…

---

## [Problems on "link\_to"](https://www.ruby-forum.com/t/problems-on-link-to/154917)

<div class="topic-metadata">

**Author:** [@jette](https://www.ruby-forum.com/u/jette)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 10:03am UTC](https://www.ruby-forum.com/t/problems-on-link-to/154917 "2008-12-05T10:03:14Z")

</div>

I have one problem when I create the index page. I have wrote following in index.html.erb: All Blogs \<% @weblogs.each do |page| %\> \<%= link\_to page.title, weblog\_path(@weblogs) %\> \<% end %\> an…

---

## [Rack Usage](https://www.ruby-forum.com/t/rack-usage/154916)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 10:00am UTC](https://www.ruby-forum.com/t/rack-usage/154916 "2008-12-05T10:00:51Z")

</div>

Hi, I have started exploring on Rack. But still, I am not able to find the exact usage of the ‘Rack’. I want to create a sample application with Rack. Can anybody guide me in this? Can you explain the advantage of the …

---

## [Issues with schema.rb](https://www.ruby-forum.com/t/issues-with-schema-rb/154934)

<div class="topic-metadata">

**Author:** [@priya](https://www.ruby-forum.com/u/priya)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 9:59am UTC](https://www.ruby-forum.com/t/issues-with-schema-rb/154934 "2008-12-05T09:59:41Z")

</div>

Hi all, I have some doubts in running test cases for a ROR application. If I create the test DB structure manually and run the individual tests , they are working fine. But when I use rails\_rake and run all the test…

---

## [Various forms and one controller](https://www.ruby-forum.com/t/various-forms-and-one-controller/154933)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 9:59am UTC](https://www.ruby-forum.com/t/various-forms-and-one-controller/154933 "2008-12-05T09:59:41Z")

</div>

Hi i use various forms and one controller. view code \<% form\_tag :action =\> ‘wizard’, :stage =\> @next\_stage do %\> controller code: def wizard if params\[:stage\].nil? … elsif params\[:stage\].to\_i == 1 … elsif para…

---

## [Problems upgrading to Rails 2.2.2](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 9:54am UTC](https://www.ruby-forum.com/t/problems-upgrading-to-rails-2-2-2/154929 "2008-12-05T09:54:59Z")

</div>

Hi all, I’ve just a new macbook and I need to work with rails 2.2 and not the version as installed with leopard. I updated gems to 1.3.1 without any trouble (using gem update --system) but when i try to install rails …

---

## [Issue with string arrays using soap Web Service](https://www.ruby-forum.com/t/issue-with-string-arrays-using-soap-web-service/75309)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 5\
**Last updated:** [December 5, 2008, 9:01am UTC](https://www.ruby-forum.com/t/issue-with-string-arrays-using-soap-web-service/75309 "2008-12-05T09:01:39Z")

</div>

Repost because I can’t find the original… I’m using a soap based web service (Backend in Java XFire web service). I can connect fine and even execute the web service. The issue is that I have 3 fields that are string…

---

## [Get event.target in focusin binding function](https://www.ruby-forum.com/t/get-event-target-in-focusin-binding-function/154930)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 8:21am UTC](https://www.ruby-forum.com/t/get-event-target-in-focusin-binding-function/154930 "2008-12-05T08:21:28Z")

</div>

I am fixing a problem in jQuery.Validator.js. I have to get the current input in the ‘onfocusin’. It seems that the “event.target” is what I needed. But how can I get the event object in the follwing binding function? …

---

## [Should all form elements for a form be in a single div?](https://www.ruby-forum.com/t/should-all-form-elements-for-a-form-be-in-a-single-div/154925)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 1\
**Last updated:** [December 5, 2008, 8:01am UTC](https://www.ruby-forum.com/t/should-all-form-elements-for-a-form-be-in-a-single-div/154925 "2008-12-05T08:01:15Z")

</div>

My layout file is like this… #printing the controller name \<%= yield%\> #THIS IS WHERE THE NEW.HTML.ERB IS RENDERED …

---

## [Bug in schema.rb generation during db:migrate](https://www.ruby-forum.com/t/bug-in-schema-rb-generation-during-db-migrate/154927)

<div class="topic-metadata">

**Author:** [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 7:39am UTC](https://www.ruby-forum.com/t/bug-in-schema-rb-generation-during-db-migrate/154927 "2008-12-05T07:39:34Z")

</div>

I am thinking that I have found a bug in Rails migrations. My app is using UUIDtools to generate guids for primary keys. To do this I pass :id=\>false and then create my own id column as shown below. Next I leverage “e…

---

## [Collection select bug (?)](https://www.ruby-forum.com/t/collection-select-bug/154924)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 7:23am UTC](https://www.ruby-forum.com/t/collection-select-bug/154924 "2008-12-05T07:23:11Z")

</div>

Consider this code \<%= collection\_select :cheque, :salary\_component, Components.find (:all), :value, :name %\> To input the value of a salary component into a Cheque model. salary\_component is an attribute of the Cheq…

---

## [Tricky design problem (collection\_select and Javascript)](https://www.ruby-forum.com/t/tricky-design-problem-collection-select-and-javascript/154922)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 7:22am UTC](https://www.ruby-forum.com/t/tricky-design-problem-collection-select-and-javascript/154922 "2008-12-05T07:22:36Z")

</div>

Im cornered with this problem in one of my apps. Let me define the models first. Paycheck has\_one salstruct, :class\_name =\> ‘Salary\_Structure’ Paycheck belongs\_to employee Adjustment #a model for additions/deductions…

---

## [Subdomains with Rails 2.2](https://www.ruby-forum.com/t/subdomains-with-rails-2-2/154758)

<div class="topic-metadata">

**Author:** [@Perry\_D](https://www.ruby-forum.com/u/Perry_D)\
**Replies:** 4\
**Last updated:** [December 5, 2008, 6:56am UTC](https://www.ruby-forum.com/t/subdomains-with-rails-2-2/154758 "2008-12-05T06:56:52Z")

</div>

I’m pretty new here, but if anybody had ideas on how to go about using subdomains for accounts within Rails 2.2. I had seen the subdomain-fu plugin, but it didn’t look like it plays very well with 2.2. Anyone know of …

---

## [Tagging problem?](https://www.ruby-forum.com/t/tagging-problem/154914)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 5:24am UTC](https://www.ruby-forum.com/t/tagging-problem/154914 "2008-12-05T05:24:29Z")

</div>

Hi , I have a table called streams which contain the columns: id name resolution framerate bitrate i have created a web application which is working fine. Here are my doubts: 1)i want to give a tag to my table to fi…

---

## [How to setup sybase adapter on Windows xp?](https://www.ruby-forum.com/t/how-to-setup-sybase-adapter-on-windows-xp/154912)

<div class="topic-metadata">

**Author:** [@linchat](https://www.ruby-forum.com/u/linchat)\
**Replies:** 0\
**Last updated:** [December 5, 2008, 4:35am UTC](https://www.ruby-forum.com/t/how-to-setup-sybase-adapter-on-windows-xp/154912 "2008-12-05T04:35:24Z")

</div>

Environment : rails 1.2.6 , ruby 1.8.6 , Windows xp I tried to use the command (gem install activerecord-sybase-adapter) to install my adapter, but I got this error message. “database configuration specifies nonexiste…

---

## [Svn not recognized as an internal or external command](https://www.ruby-forum.com/t/svn-not-recognized-as-an-internal-or-external-command/154099)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 2\
**Last updated:** [December 5, 2008, 3:00am UTC](https://www.ruby-forum.com/t/svn-not-recognized-as-an-internal-or-external-command/154099 "2008-12-05T03:00:45Z")

</div>

Hi, I am trying to deploy my app to a repository and encountered the following problem. When I do svn checkout at command prompt , I get this error; ‘svn not recognized as an internal or external command’ I am on Win…

---

## [Rake db:migrate:reset](https://www.ruby-forum.com/t/rake-dbreset/154899)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/rake-dbreset/154899 "2008-12-04T23:23:52Z")

</div>

When I do a “rake db:migrate:reset” does this erase/drop the “schema\_migrations” db so that all the migrations are then rerun or applied in order?

---

## [Problem upgrading from Rails 2.0.2 to 2.2.2](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879 "2008-12-04T22:12:37Z")

</div>

Hey all, I just upgraded a very simple rails based website from Rails 2.0.2 to 2.2.2. When I started up Mongrel however, I got the following error: \*\* Starting Rails with development environment… ExitingC:/InstantRai…

---

## [Help with ruby query!](https://www.ruby-forum.com/t/help-with-ruby-query/154808)

<div class="topic-metadata">

**Author:** [@den1jay](https://www.ruby-forum.com/u/den1jay)\
**Replies:** 10\
**Last updated:** [December 4, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/help-with-ruby-query/154808 "2008-12-04T21:50:52Z")

</div>

I am using Rails 2.0.2 with mysql database I have two tables: book and author Table book has 3 columns: id, isbn, and title Table author has 3 columns: id, name, and age In the models I have: class Book \< ActiveRec…

---

## [MySQL gem 2.7 not finding mysql.so](https://www.ruby-forum.com/t/mysql-gem-2-7-not-finding-mysql-so/154885)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/mysql-gem-2-7-not-finding-mysql-so/154885 "2008-12-04T20:45:36Z")

</div>

ruby 1.8.7 Rails 2.2.2 mysql gem 2.7 Linux 2.6.18-92.el5 Hey guys. The MySQL gem is puzzling me. When I run irb\> require ‘mysql’ I get the error shown below: irb(main):001:0\> require ‘rubygems’ =\> true irb(main):0…

---

## [Problem installing the newest version of Rails](https://www.ruby-forum.com/t/problem-installing-the-newest-version-of-rails/154883)

<div class="topic-metadata">

**Author:** [@frank95a](https://www.ruby-forum.com/u/frank95a)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/problem-installing-the-newest-version-of-rails/154883 "2008-12-04T20:19:10Z")

</div>

Hi, I am just upgrading from 2.0.2 to 2.2.2 and see a lot of changes but nothing on the release notes. The problem I am facing right now is when I use the rake db:migrate to create the tables, I get the following err…

---

## [Thin web server](https://www.ruby-forum.com/t/thin-web-server/154728)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 10\
**Last updated:** [December 4, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/thin-web-server/154728 "2008-12-04T19:13:28Z")

</div>

Hi, Today only I came to know about ‘thin’ web server. I have installed the gem and used it. But I don’t know whether ‘thin’ web server is better than webrick or mongrel. If so, can you please compare these web serve…

---

## [Help with habtm models in one form](https://www.ruby-forum.com/t/help-with-habtm-models-in-one-form/154874)

<div class="topic-metadata">

**Author:** [@Fatih\_GenSSSS](https://www.ruby-forum.com/u/Fatih_GenSSSS)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/help-with-habtm-models-in-one-form/154874 "2008-12-04T19:03:59Z")

</div>

Hi I have a post and a category model class Post \< ActiveRecord::Base has\_and\_belongs\_to\_many :categories end class Category \< ActiveRecord::Base has\_and\_belongs\_to\_many :posts end I created join table migration f…

---

## [\[Jobs\] Computer games /Great Opportunity in Management / Think of "EJB" building that in Ruby / NYC](https://www.ruby-forum.com/t/jobs-computer-games-great-opportunity-in-management-think-of-ejb-building-that-in-ruby-nyc/154875)

<div class="topic-metadata">

**Author:** [@Smiley](https://www.ruby-forum.com/u/Smiley)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/jobs-computer-games-great-opportunity-in-management-think-of-ejb-building-that-in-ruby-nyc/154875 "2008-12-04T18:39:51Z")

</div>

Leading publisher of mobile games and personalization applications is seeking a Director of Server Engineering to lead its server engineering group. The Director of Server Engineering works with the Company’s product …

---

## [I will be offering an online Ruby on Rails class](https://www.ruby-forum.com/t/i-will-be-offering-an-online-ruby-on-rails-class/154870)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/i-will-be-offering-an-online-ruby-on-rails-class/154870 "2008-12-04T18:16:24Z")

</div>

This Spring, I will be teaching a online Ruby on Rails class to cover the basics from 2/2/09 and runs till 5/27/09 (15 weeks). It is a Long Beach Community College Class for credit. See: http://cbis.lbcc.edu/ruby-on-r…

---

## [Image text link instead of image\_for help!](https://www.ruby-forum.com/t/image-text-link-instead-of-image-for-help/154736)

<div class="topic-metadata">

**Author:** [@denver](https://www.ruby-forum.com/u/denver)\
**Replies:** 12\
**Last updated:** [December 4, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/image-text-link-instead-of-image-for-help/154736 "2008-12-04T18:11:04Z")

</div>

Hi Guys, I am using attatchment\_fu to adding images to my rails app, and have the following \<%= article\_image\_for(@article) %\> which displays the image for my article… however i just want a text link to the image in…

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

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