# Rails

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

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

---

## [Ubuntu 9.10 / Sql Server 2005 / ODBC connectivity problem](https://www.ruby-forum.com/t/ubuntu-9-10-sql-server-2005-odbc-connectivity-problem/180144)

<div class="topic-metadata">

**Author:** [@matthew106](https://www.ruby-forum.com/u/matthew106)\
**Replies:** 0\
**Last updated:** [December 13, 2009, 9:28am UTC](https://www.ruby-forum.com/t/ubuntu-9-10-sql-server-2005-odbc-connectivity-problem/180144 "2009-12-13T09:28:28Z")

</div>

Hi, I’ve followed the instruction at http://wiki.rubyonrails.org/database-support/ms-sql in order to get RoR talking to Sql Server but having followed the various steps and running rake db:create using a DSN-less con…

---

## [Undefined method \`relative\_url\_root'](https://www.ruby-forum.com/t/undefined-method-relative-url-root/180132)

<div class="topic-metadata">

**Author:** [@bigbagball](https://www.ruby-forum.com/u/bigbagball)\
**Replies:** 0\
**Last updated:** [December 12, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/undefined-method-relative-url-root/180132 "2009-12-12T13:40:51Z")

</div>

Anyone has come across the problem? I’m using rails 2.3.4 I’ve searching by the google. I found someone come across the problem with 2.2.2. they’ve solve this problem in their version. But I can’t solve it by doing …

---

## [Calculations on arrays?](https://www.ruby-forum.com/t/calculations-on-arrays/125559)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 8\
**Last updated:** [December 12, 2009, 5:07am UTC](https://www.ruby-forum.com/t/calculations-on-arrays/125559 "2009-12-12T05:07:37Z")

</div>

Hi everyone, I was wondering if there’s an easy way to grab the sum of a column in an array in ruby? Something that would work like @posts.sum(:column\_name). I know there’s one for Classes, but is there something simi…

---

## [Ruby Conefernce India first time](https://www.ruby-forum.com/t/ruby-conefernce-india-first-time/180122)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [December 12, 2009, 4:36am UTC](https://www.ruby-forum.com/t/ruby-conefernce-india-first-time/180122 "2009-12-12T04:36:02Z")

</div>

Hi See details http://rubyconfindia.org/ Sijo

---

## [Assert\_redirected help](https://www.ruby-forum.com/t/assert-redirected-help/179907)

<div class="topic-metadata">

**Author:** [@sanjanad](https://www.ruby-forum.com/u/sanjanad)\
**Replies:** 3\
**Last updated:** [December 12, 2009, 3:35am UTC](https://www.ruby-forum.com/t/assert-redirected-help/179907 "2009-12-12T03:35:25Z")

</div>

assert\_redirected\_to category\_path(assigns(:category)) this line for example…when i use it in my code def test\_should\_create\_category login\_as :admin assert\_difference Category, :count, 1 do post :create, :category …

---

## [How to use open\_uri with cookies info?](https://www.ruby-forum.com/t/how-to-use-open-uri-with-cookies-info/197115)

<div class="topic-metadata">

**Author:** [@yumiu](https://www.ruby-forum.com/u/yumiu)\
**Replies:** 0\
**Last updated:** [December 12, 2009, 12:31am UTC](https://www.ruby-forum.com/t/how-to-use-open-uri-with-cookies-info/197115 "2009-12-12T00:31:07Z")

</div>

Hi, I need to send a request with cookies info. I tried open(url,“Cookie” =\> cookies) it gives me NoMethodError Exception: undefined method \`strip’ for #ActionController::CookieJar:0x1344a558 Can anyone give me so…

---

## [How to build a website using ruby on rails](https://www.ruby-forum.com/t/how-to-build-a-website-using-ruby-on-rails/180115)

<div class="topic-metadata">

**Author:** [@sanjanad](https://www.ruby-forum.com/u/sanjanad)\
**Replies:** 2\
**Last updated:** [December 11, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/how-to-build-a-website-using-ruby-on-rails/180115 "2009-12-11T23:29:30Z")

</div>

how do i build a website using ruby on rails any suggestions… about the tutorials…sample code…books…or open source tools available… thank you

---

## [Undefined Method Refresh Token in AuthenticatedSystem](https://www.ruby-forum.com/t/undefined-method-refresh-token-in-authenticatedsystem/180024)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 2\
**Last updated:** [December 11, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-token-in-authenticatedsystem/180024 "2009-12-11T23:28:41Z")

</div>

On my site, I have a series of protected tabs and a series of public tabs. Depending on the level of authentication, the tabs are viewable to specific groups. I’ve encountered an old issue and I feel it’s time to co…

---

## [RoR on a cloud provider?](https://www.ruby-forum.com/t/ror-on-a-cloud-provider/180023)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 10\
**Last updated:** [December 11, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/ror-on-a-cloud-provider/180023 "2009-12-11T21:31:50Z")

</div>

Hi ;), I am brand spanking new to RoR, but after just taking classes on PHP, Python, C#, and Ruby, I have decided I want to try and build my new business/website using RoR. Having also just completed a (fairly poor …

---

## [How to auto-generate functional tests based on rake routes](https://www.ruby-forum.com/t/how-to-auto-generate-functional-tests-based-on-rake-routes/180105)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 3\
**Last updated:** [December 11, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/how-to-auto-generate-functional-tests-based-on-rake-routes/180105 "2009-12-11T19:23:24Z")

</div>

I am trying to handle a rather large Rails project, that has almost no testing at the moment. I would like to start by adding functional tests that ensures, that all actions return the right the “200 OK” return value. …

---

## [Searching help](https://www.ruby-forum.com/t/searching-help/180110)

<div class="topic-metadata">

**Author:** [@beev](https://www.ruby-forum.com/u/beev)\
**Replies:** 0\
**Last updated:** [December 11, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/searching-help/180110 "2009-12-11T18:51:17Z")

</div>

I am reaching out to get some help/ideas about our current search implementation. We are currently using Ferret as our search engine and its not keeping up with our needs… we are quite needy ;). We have about 5m+ docu…

---

## [Authlogic - Authentication with 2 login fields](https://www.ruby-forum.com/t/authlogic-authentication-with-2-login-fields/180101)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [December 11, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/authlogic-authentication-with-2-login-fields/180101 "2009-12-11T16:02:24Z")

</div>

Hello I need to authenticate a user based on two database fields living in two different tables. So far I have: class UserSession \< Authlogic::Session::Base … login\_field :employee\_code # the login attr\_accessor …

---

## [Link\_to internal link](https://www.ruby-forum.com/t/link-to-internal-link/180085)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [December 11, 2009, 5:51am UTC](https://www.ruby-forum.com/t/link-to-internal-link/180085 "2009-12-11T05:51:31Z")

</div>

How do i use a link\_to remote to go to a specific ID on a page normally if i wanted to go to the “whatever\_id” on a page i could use \<a href="http://www.example.com/mypage#whatever\_id\>Click Here, but i would like to u…

---

## [Button / link to run a method](https://www.ruby-forum.com/t/button-link-to-run-a-method/180072)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/button-link-to-run-a-method/180072 "2009-12-10T23:14:19Z")

</div>

There are two questions - one, is this possible, two, is this a good idea (and if not, then three : how is it a good idea to implement this). I have a ruby method in a file under lib/ . It is included in environment…

---

## [Array](https://www.ruby-forum.com/t/array/180063)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 5\
**Last updated:** [December 10, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/array/180063 "2009-12-10T18:28:29Z")

</div>

I’m making a sample library of songs. Table name is ‘Songs’. Columns are appropriate with Artist, Album etc. I have a show page for each record which displays information about the song. I want the list to display in …

---

## [Error while overloading the '/' operator](https://www.ruby-forum.com/t/error-while-overloading-the-operator/179935)

<div class="topic-metadata">

**Author:** [@lune9](https://www.ruby-forum.com/u/lune9)\
**Replies:** 3\
**Last updated:** [December 10, 2009, 4:55pm UTC](https://www.ruby-forum.com/t/error-while-overloading-the-operator/179935 "2009-12-10T16:55:41Z")

</div>

Hi, I tried to overload the operator ‘/’ with float figures : class Float def /(dividande) if (self.to\_f == 0.0 or dividande.to\_f == 0.0) return 0.0 else return self.div(dividande) end end end But when I use i…

---

## [Passing variables in to page objects](https://www.ruby-forum.com/t/passing-variables-in-to-page-objects/180040)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/passing-variables-in-to-page-objects/180040 "2009-12-10T16:49:03Z")

</div>

I am very new to Ruby and Rails and have the following question. Can you pass a ruby variable into a page object? I am using some Ajax and am using the following code in my .rjs file page\[:status\].visual\_effect :highl…

---

## [Mocha stub and assert\_raises](https://www.ruby-forum.com/t/mocha-stub-and-assert-raises/180064)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 3:33pm UTC](https://www.ruby-forum.com/t/mocha-stub-and-assert-raises/180064 "2009-12-10T15:33:52Z")

</div>

Hello all, Im trying to test that my controller can handle a RuntimeError exception which may be thrown by one of my model methods. Ive stubbed, with mocha, the model method to raise such an error but my assert\_raise …

---

## [How far do you bullet proof your code?](https://www.ruby-forum.com/t/how-far-do-you-bullet-proof-your-code/180001)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [December 10, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/how-far-do-you-bullet-proof-your-code/180001 "2009-12-10T15:23:43Z")

</div>

Im looking at my controllers and ive got loads of stuff like user = User.find(params\[:user\_id\]) dotted around. If for some unknown obscure reason an invalid user\_id is passed in the params then, judign by what happen…

---

## [RCov with Rails](https://www.ruby-forum.com/t/rcov-with-rails/180055)

<div class="topic-metadata">

**Author:** [@shakor](https://www.ruby-forum.com/u/shakor)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/rcov-with-rails/180055 "2009-12-10T14:35:12Z")

</div>

I installed the rcov gem and it installed just fine but when I try and run: rcov test/unit/\*.rb I get: No file to analyze was found. All the files loaded by rcov matched one of the following expressions, and were t…

---

## [Phusion passenger Redirect](https://www.ruby-forum.com/t/phusion-passenger-redirect/180058)

<div class="topic-metadata">

**Author:** [@ganeshguna](https://www.ruby-forum.com/u/ganeshguna)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 1:59pm UTC](https://www.ruby-forum.com/t/phusion-passenger-redirect/180058 "2009-12-10T13:59:56Z")

</div>

hi , I have installed all the things needed for phusion passenger. My site also working fine. But i am not getting how it is redirecting the site url without configuring in /etc/hosts file Advance thanks

---

## [RAILS ./script/server ERROR](https://www.ruby-forum.com/t/rails-script-server-error/180046)

<div class="topic-metadata">

**Author:** [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 11:55am UTC](https://www.ruby-forum.com/t/rails-script-server-error/180046 "2009-12-10T11:55:48Z")

</div>

I have received the following error. Please any one help me to to recover this. bksystems@shire:~/public\_html/FMS-Phonebook/src/fms-phonebook$ ./script/server =\> Booting WEBrick… ./script/…/config/…/vendor/rails/rai…

---

## [How to use the files generated by wsdl2ruby comand](https://www.ruby-forum.com/t/how-to-use-the-files-generated-by-wsdl2ruby-comand/180048)

<div class="topic-metadata">

**Author:** [@sreevarshini\_k](https://www.ruby-forum.com/u/sreevarshini_k)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 10:50am UTC](https://www.ruby-forum.com/t/how-to-use-the-files-generated-by-wsdl2ruby-comand/180048 "2009-12-10T10:50:34Z")

</div>

Hi, after running the wsdl2ruby command on a wsdl file following 4 files are generated AdaptivePaymentsClient.rb default.rb defaultDriver.rb defaultMappingRegistry.rb but i dont know how to use these files and mak…

---

## [Link\_to\_remote and partial rendering](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998)

<div class="topic-metadata">

**Author:** [@elvenwhite](https://www.ruby-forum.com/u/elvenwhite)\
**Replies:** 2\
**Last updated:** [December 10, 2009, 10:30am UTC](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998 "2009-12-10T10:30:56Z")

</div>

hello, I’m trying to make my link\_to\_remote to render a partial in a . my view code follows: \<%= link\_to\_remote “Show”, :url =\> {:controller =\> “cards”, :action =\> “show\_preview”}, …

---

## [Mysql Database Storeprocdure](https://www.ruby-forum.com/t/mysql-database-storeprocdure/180044)

<div class="topic-metadata">

**Author:** [@periyasamy](https://www.ruby-forum.com/u/periyasamy)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 8:20am UTC](https://www.ruby-forum.com/t/mysql-database-storeprocdure/180044 "2009-12-10T08:20:40Z")

</div>

Hi, I have an performance issue in my inner join so i used Stored procedure its working fast and fine but i am unable to call that from my ruby on rails (2.3.2) projects.I am getting error “Mysql::Error: PROCEDURE Wo…

---

## [Authlogic & ActionMailer](https://www.ruby-forum.com/t/authlogic-actionmailer/180037)

<div class="topic-metadata">

**Author:** [@scrozier](https://www.ruby-forum.com/u/scrozier)\
**Replies:** 1\
**Last updated:** [December 10, 2009, 6:06am UTC](https://www.ruby-forum.com/t/authlogic-actionmailer/180037 "2009-12-10T06:06:02Z")

</div>

I’m experimenting with Authlogic’s activation tutorial, and in it you add some code that enables the user to get an email when they create a new account (containing a link to activate their account). I’m currently wor…

---

## [Which is the best book to buy for rails testing?](https://www.ruby-forum.com/t/which-is-the-best-book-to-buy-for-rails-testing/180018)

<div class="topic-metadata">

**Author:** [@sanjanad](https://www.ruby-forum.com/u/sanjanad)\
**Replies:** 4\
**Last updated:** [December 10, 2009, 5:32am UTC](https://www.ruby-forum.com/t/which-is-the-best-book-to-buy-for-rails-testing/180018 "2009-12-10T05:32:17Z")

</div>

is there any particular book that deals withh only testing…the entire book…please let me know… thanks

---

## [Java script problem in IE](https://www.ruby-forum.com/t/java-script-problem-in-ie/180029)

<div class="topic-metadata">

**Author:** [@mayur\_sk](https://www.ruby-forum.com/u/mayur_sk)\
**Replies:** 0\
**Last updated:** [December 10, 2009, 12:30am UTC](https://www.ruby-forum.com/t/java-script-problem-in-ie/180029 "2009-12-10T00:30:56Z")

</div>

i have a drop down and i populate it by java script and it looks like this as below . the problem is in line “dd.add(new Option(arr\[i\],arr\[i\]), null);” the error in IE is type mismatch. in Mozilla it works fine … ja…

---

## [Group\_by](https://www.ruby-forum.com/t/group-by/180027)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 0\
**Last updated:** [December 9, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/group-by/180027 "2009-12-09T23:41:18Z")

</div>

Hi! I’m hoping somebody may be able to help with my group\_by problems using some information that I imported from Google Analytics. I’ve been trying to accomplish two things: Inside the Stat table, I’ve been trying …

---

## [\[activerecord\] How to generate table like this?](https://www.ruby-forum.com/t/activerecord-how-to-generate-table-like-this/180011)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 10\
**Last updated:** [December 9, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/activerecord-how-to-generate-table-like-this/180011 "2009-12-09T22:39:26Z")

</div>

Hello! Here is my data model: == Schema Information Table name: messages id :integer(4) not null, primary key spam :boolean(1) not null duplicate :boolean(1) not null ignore :boo…

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

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