# Rails

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

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

---

## [How to get atoms of data from the DB](https://www.ruby-forum.com/t/how-to-get-atoms-of-data-from-the-db/116502)

<div class="topic-metadata">

**Author:** [@eeby](https://www.ruby-forum.com/u/eeby)\
**Replies:** 5\
**Last updated:** [October 6, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-get-atoms-of-data-from-the-db/116502 "2007-10-06T18:44:18Z")

</div>

I’d like to get single values from the DB. For example… SELECT COUNT(\*) freaks WHERE status=‘freaky’; I’m not sure how to approach that in Rails. Seems like ActiveRecord is all about getting an object or array of obje…

---

## [Is there an adapater for the free MS SQL Express that works with RoR](https://www.ruby-forum.com/t/is-there-an-adapater-for-the-free-ms-sql-express-that-works-with-ror/116497)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 1\
**Last updated:** [October 6, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/is-there-an-adapater-for-the-free-ms-sql-express-that-works-with-ror/116497 "2007-10-06T17:13:13Z")

</div>

Hi Is there an adapater for the free MS SQL Express that works with RoR ?

---

## [A Frustrated Beginner](https://www.ruby-forum.com/t/a-frustrated-beginner/116500)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 3\
**Last updated:** [October 6, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/a-frustrated-beginner/116500 "2007-10-06T16:24:22Z")

</div>

I have tried everything in my power to get this program up and running and it is not working for me. I have installed RoR on my Windows XP machine. I have Instant Rails and Ruby on Rails and I am using Instant Rails t…

---

## [HowTo use mysql in cygwin?](https://www.ruby-forum.com/t/howto-use-mysql-in-cygwin/115934)

<div class="topic-metadata">

**Author:** [@nonocast](https://www.ruby-forum.com/u/nonocast)\
**Replies:** 3\
**Last updated:** [October 6, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/howto-use-mysql-in-cygwin/115934 "2007-10-06T14:43:43Z")

</div>

the shell in windows is so … idiot so i use cygwin instead when I try to “rake db:migrate” in cygwin. No such file or dir. -/tmp/mysql.sock @Ubuntu, I use ‘link -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock’, it wo…

---

## [Cap deploy errors](https://www.ruby-forum.com/t/cap-deploy-errors/115972)

<div class="topic-metadata">

**Author:** [@luke001](https://www.ruby-forum.com/u/luke001)\
**Replies:** 1\
**Last updated:** [October 6, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/cap-deploy-errors/115972 "2007-10-06T14:15:40Z")

</div>

I am getting an error when running a cap deploy in dreamhost. I set up a rails project and checked it into a respository. I ran cap setup which created my directory structure and then ran cap deploy. It looks like…

---

## [Association headaches](https://www.ruby-forum.com/t/association-headaches/116505)

<div class="topic-metadata">

**Author:** [@David\_Zentgraf](https://www.ruby-forum.com/u/David_Zentgraf)\
**Replies:** 4\
**Last updated:** [October 6, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/association-headaches/116505 "2007-10-06T14:07:28Z")

</div>

Hi, I’m trying to wrap my head around an association problem. create\_table :events do |t| t.column :name, :text t.column :place, :text end create\_table :users do |t| t.column :name, :text end create\_tabl…

---

## [Ror](https://www.ruby-forum.com/t/ror/116508)

<div class="topic-metadata">

**Author:** [@Ruby\_Roker](https://www.ruby-forum.com/u/Ruby_Roker)\
**Replies:** 2\
**Last updated:** [October 6, 2007, 12:12pm UTC](https://www.ruby-forum.com/t/ror/116508 "2007-10-06T12:12:49Z")

</div>

hae … This is narayana perumal gurusamy. as want know about ror and anybody having a good books. if there please inform are please send a file to mail. thanks for advance

---

## [Instant Rails mySQL Error](https://www.ruby-forum.com/t/instant-rails-mysql-error/116509)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 6\
**Last updated:** [October 6, 2007, 12:10pm UTC](https://www.ruby-forum.com/t/instant-rails-mysql-error/116509 "2007-10-06T12:10:02Z")

</div>

I have tried everything in my power to get this program up and running and it is not working for me. I have installed RoR on my Windows XP machine. I have Instant Rails and Ruby on Rails and I am using Instant Rails t…

---

## [Rspec couldn't find?](https://www.ruby-forum.com/t/rspec-couldnt-find/116475)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [October 6, 2007, 10:47am UTC](https://www.ruby-forum.com/t/rspec-couldnt-find/116475 "2007-10-06T10:47:09Z")

</div>

Hello, I just installed rspec C:\\Instantrails\\rails\_apps\>gem install rspec Successfully installed rspec-1.0.8 Installing ri documentation for rspec-1.0.8… Installing RDoc documentation for rspec-1.0.8… C:\\Instantra…

---

## [TemplateError (index 58729 out of string)](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451)

<div class="topic-metadata">

**Author:** [@jmark](https://www.ruby-forum.com/u/jmark)\
**Replies:** 3\
**Last updated:** [October 6, 2007, 8:26am UTC](https://www.ruby-forum.com/t/templateerror-index-58729-out-of-string/116451 "2007-10-06T08:26:39Z")

</div>

Could someone please explain to me the meaning of this error? ActionView::TemplateError (index 58729 out of string) on line #2 : 1: \<%= form\_remote\_tag(:update =\> “update\_form”, 2: :url =\> { :a…

---

## [Post processing of generated HTML](https://www.ruby-forum.com/t/post-processing-of-generated-html/116506)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 8:05am UTC](https://www.ruby-forum.com/t/post-processing-of-generated-html/116506 "2007-10-06T08:05:05Z")

</div>

Hi there! (noob here, so this q may be really dumb) I’ve got a function that generates some HTML to assist the developers (very similar to the form\_tag ones): def lozenge\_bar ( black=false, blue=false, id="", &block …

---

## [File posts in integration test](https://www.ruby-forum.com/t/file-posts-in-integration-test/116495)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [October 6, 2007, 4:48am UTC](https://www.ruby-forum.com/t/file-posts-in-integration-test/116495 "2007-10-06T04:48:45Z")

</div>

It seems that my file data is being treating as a string or something. Has anybody been able to do a file post in an integration test? NoMethodError (undefined method original\_filename' for "#\<File: 0x316c300\>":String)…

---

## [Google search plugin for ruby?](https://www.ruby-forum.com/t/google-search-plugin-for-ruby/116498)

<div class="topic-metadata">

**Author:** [@rickportega](https://www.ruby-forum.com/u/rickportega)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 4:08am UTC](https://www.ruby-forum.com/t/google-search-plugin-for-ruby/116498 "2007-10-06T04:08:22Z")

</div>

Im trying to make an application which involved downloading the results of a google search into an sqlite database. Are there any ruby plugins out there that will allow me to do this?

---

## [Render and redirect right use](https://www.ruby-forum.com/t/render-and-redirect-right-use/196479)

<div class="topic-metadata">

**Author:** [@asclepios](https://www.ruby-forum.com/u/asclepios)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 3:58am UTC](https://www.ruby-forum.com/t/render-and-redirect-right-use/196479 "2007-10-06T03:58:36Z")

</div>

Estoy interesado en el tema de los renders, la verdad he leido mucho sobre el tema pero aun no logro saber la diferencia entre render y redirect (Mi primer inconveniente). Lo que me ha llevado a instruirme sobre el te…

---

## [Pointers/Help for testing action\_view based plugins?](https://www.ruby-forum.com/t/pointers-help-for-testing-action-view-based-plugins/116490)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 0\
**Last updated:** [October 6, 2007, 1:56am UTC](https://www.ruby-forum.com/t/pointers-help-for-testing-action-view-based-plugins/116490 "2007-10-06T01:56:47Z")

</div>

Hi all - Writing my first plugin that overwrites stylesheet\_link\_tag. In trying to be good I even borrowed the tests for the original method and put them into my plugin’s testing code. But to make it all work I end…

---

## [Installing rspec in Windows](https://www.ruby-forum.com/t/installing-rspec-in-windows/91868)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [October 6, 2007, 1:14am UTC](https://www.ruby-forum.com/t/installing-rspec-in-windows/91868 "2007-10-06T01:14:06Z")

</div>

Hi all, I’m trying to install rspec and I’m having a problem. C:\\Users\\Nathan\\Documents\\rails\\myproject\> gem install rspec Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rspec-0.…

---

## [Test/partials problem](https://www.ruby-forum.com/t/test-partials-problem/116405)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/test-partials-problem/116405 "2007-10-05T23:57:28Z")

</div>

hi, i have a partial that works fine in my application but when i run functional tests they fail when my partial references any locals that I have passed in. if i change references to ‘locals’ in the partial to have …

---

## [REST link\_to and PUT question](https://www.ruby-forum.com/t/rest-link-to-and-put-question/116470)

<div class="topic-metadata">

**Author:** [@pallan](https://www.ruby-forum.com/u/pallan)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/rest-link-to-and-put-question/116470 "2007-10-05T22:55:29Z")

</div>

Hi all, I am learning how to think RESTfully and in my quest for improvement I need help with the issue I am facing. I have a RESTful model “User” and I want to add a link on the listing (index) page that is a one-cl…

---

## [Associating 2 Users in 1 modeled join table](https://www.ruby-forum.com/t/associating-2-users-in-1-modeled-join-table/116254)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 12\
**Last updated:** [October 5, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/associating-2-users-in-1-modeled-join-table/116254 "2007-10-05T22:28:34Z")

</div>

I’m having trouble getting this right (ActiveRecord associations are my weakness). Given two models: Racers: :racer\_id :name TandemRacers: :racer\_1\_id :racer\_2\_id :start (datetime) :return (datetime) How do I a…

---

## [Can you reproduce this error?](https://www.ruby-forum.com/t/can-you-reproduce-this-error/116478)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/can-you-reproduce-this-error/116478 "2007-10-05T21:59:21Z")

</div>

Generate a model with a property named ‘y’ of any type. You should end up with a migration something like this: class CreateYTests \< ActiveRecord::Migration def self.up create\_table :y\_tests do |t| t.integer :y en…

---

## [Scaling wiki available](https://www.ruby-forum.com/t/scaling-wiki-available/116468)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 8:39pm UTC](https://www.ruby-forum.com/t/scaling-wiki-available/116468 "2007-10-05T20:39:36Z")

</div>

For all of you with your amazing “scaling rails” tips it looks like there is a wiki page available at http://wiki.rubyonrails.org/rails/pages/HowtoScale so feel free to edit it and share your knowledge. Take care. -…

---

## [Script/about shows wrong rails version](https://www.ruby-forum.com/t/script-about-shows-wrong-rails-version/116460)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/script-about-shows-wrong-rails-version/116460 "2007-10-05T20:28:37Z")

</div>

I just ran rake:rails:freeze:edge then ran script/about and it reports this: alex-eggs-computer:~/sites/mms-service eggie5$ script/about \* config.breakpoint\_server has been deprecated and has no effect. \* About …

---

## [Looking for a rails guru,cleveland,ohio,USA](https://www.ruby-forum.com/t/looking-for-a-rails-guru-cleveland-ohio-usa/116322)

<div class="topic-metadata">

**Author:** [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/looking-for-a-rails-guru-cleveland-ohio-usa/116322 "2007-10-05T19:48:45Z")

</div>

…anybody living in or around cleveland, ohio USA who knows Rails???..tia dave

---

## [Edge rails](https://www.ruby-forum.com/t/edge-rails/116454)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 7:32pm UTC](https://www.ruby-forum.com/t/edge-rails/116454 "2007-10-05T19:32:25Z")

</div>

Hi guys! I’ve been playing a bit around with rails, and there are a few things I like, and a few I don’t. Don’t really care about that. I gotta use the right tool for each job, isn’t it? Now… it seems like there’s qu…

---

## [Any database performance test for rails?](https://www.ruby-forum.com/t/any-database-performance-test-for-rails/116368)

<div class="topic-metadata">

**Author:** [@maul](https://www.ruby-forum.com/u/maul)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/any-database-performance-test-for-rails/116368 "2007-10-05T18:45:14Z")

</div>

hey guys, Our company use Asterisk and MS SQL for an IVR application. Our application is based heavly on MS SQL. But we want to change to a linux server with Asterisk+RAGI (rails AGI)and a database but I dont know wh…

---

## [LDAP bind error](https://www.ruby-forum.com/t/ldap-bind-error/116452)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/ldap-bind-error/116452 "2007-10-05T17:59:22Z")

</div>

i am new to rails … in java ldap server is connecting without problem username="" password="" LDAPConnection ld = new LDAPConnection(); ld.connect( “192.168.1.1”, 389); con=ld.authenticate ( “uid=”+username+",ou=P…

---

## [What is ferret\_index](https://www.ruby-forum.com/t/what-is-ferret-index/116425)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/what-is-ferret-index/116425 "2007-10-05T17:28:16Z")

</div>

hi, Any one knows what is ferret\_index

---

## [Design Question](https://www.ruby-forum.com/t/design-question/116446)

<div class="topic-metadata">

**Author:** [@jrm](https://www.ruby-forum.com/u/jrm)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/design-question/116446 "2007-10-05T17:18:53Z")

</div>

Hi, I am building an app that contains a mix of functionality that will be accessed via the browser and a range of backend processes that I envisage will be run with script\\runner. I am puzzled where to put code for …

---

## [Assertion doesn't make sense (to me)](https://www.ruby-forum.com/t/assertion-doesnt-make-sense-to-me/116440)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 4\
**Last updated:** [October 5, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/assertion-doesnt-make-sense-to-me/116440 "2007-10-05T17:17:22Z")

</div>

Hi, I am just starting out writing unit tests, and perhaps someone could be kind enough to explain why I am seeing this behaviour: First, my model looks like this: Author \<-HABTM-\> Paper With a model named ‘authors\_p…

---

## [Using wildcards in ActiveRecord Bind parameters](https://www.ruby-forum.com/t/using-wildcards-in-activerecord-bind-parameters/116448)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/using-wildcards-in-activerecord-bind-parameters/116448 "2007-10-05T17:02:27Z")

</div>

I am trying to have ActiveRecord do the following: Select \* from myTable where ( ucase(name) like ‘%findname%’ ) But when I do this in: @resultList = Entity.find(:all, :conditions =\> \[“ucase(name) like ?”, “%name%”\]…

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

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