# Rails

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

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

---

## [How do we DELETE this new Rails 2.0 "Cookie Store"?](https://www.ruby-forum.com/t/how-do-we-delete-this-new-rails-2-0-cookie-store/125479)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 3:00pm UTC](https://www.ruby-forum.com/t/how-do-we-delete-this-new-rails-2-0-cookie-store/125479 "2008-01-09T15:00:03Z")

</div>

In the past, I would run this code to clear my session and cookie variables; def clear\_session session\[:user\_id\] = nil cookies\[:user\_id\] = nil cookies\[:password\_hash\] = nil end I would then go into my \\Docs & Sett…

---

## [Stop the output of parameters in the log file?](https://www.ruby-forum.com/t/stop-the-output-of-parameters-in-the-log-file/125477)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/stop-the-output-of-parameters-in-the-log-file/125477 "2008-01-09T14:48:54Z")

</div>

Hi, how does one stop the called parameters being output into production.log? It is rather unsecure!

---

## [SIP Client in Rails App](https://www.ruby-forum.com/t/sip-client-in-rails-app/125464)

<div class="topic-metadata">

**Author:** [@peterbe](https://www.ruby-forum.com/u/peterbe)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 1:53pm UTC](https://www.ruby-forum.com/t/sip-client-in-rails-app/125464 "2008-01-09T13:53:50Z")

</div>

Hey, do you think it could be possible to integrate a SIP or IAX client into a Rails app to use it for VoIP calls directly from the web page by clicking a link without having to download a 3rd party client? Is there …

---

## [Drop down list box button](https://www.ruby-forum.com/t/drop-down-list-box-button/125415)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/drop-down-list-box-button/125415 "2008-01-09T12:12:48Z")

</div>

Is is necessary to have a button here? Repuestos \<% @rp\_parts.each do |rp\_part| %\> \> \<%= rp\_part.name%\> \<% end %\> I want to capture @repair\_ticket.rp\_item without a button.

---

## [What happened to \_form.rhtml partial in rails 2.0?](https://www.ruby-forum.com/t/what-happened-to-form-rhtml-partial-in-rails-2-0/125411)

<div class="topic-metadata">

**Author:** [@resident\_moron](https://www.ruby-forum.com/u/resident_moron)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/what-happened-to-form-rhtml-partial-in-rails-2-0/125411 "2008-01-09T12:11:37Z")

</div>

Just wondering if anyone could point me to a good explanation of why the latest way of doing things does not include using something like \_form.html.erb partials in RESTful rails 2.0?? Why did we move away from parti…

---

## [How to write test case for DataBase search](https://www.ruby-forum.com/t/how-to-write-test-case-for-database-search/125325)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 11:34am UTC](https://www.ruby-forum.com/t/how-to-write-test-case-for-database-search/125325 "2008-01-09T11:34:47Z")

</div>

Hi All i have written codes to do a database search in my appication using the mysql fully text search. it works properly. bt now i have a problem in writing test case for it. so can some body pls help me how to writ…

---

## [Database/program design question](https://www.ruby-forum.com/t/database-program-design-question/125388)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 6\
**Last updated:** [January 9, 2008, 10:25am UTC](https://www.ruby-forum.com/t/database-program-design-question/125388 "2008-01-09T10:25:24Z")

</div>

Hi, I’m a bit new to the MVC design and all the fun stuff that goes along with Ruby on Rails. I just got RoR working on my host (I’m stuck on version 1.1.6, though), and I was looking for advice on how I should design…

---

## [Instance\_eval](https://www.ruby-forum.com/t/instance-eval/125457)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 10:00am UTC](https://www.ruby-forum.com/t/instance-eval/125457 "2008-01-09T10:00:13Z")

</div>

Can anyone explain the use of instance\_eval and provide the example?

---

## [mySQL + ROR connection - please help](https://www.ruby-forum.com/t/mysql-ror-connection-please-help/125462)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 9:47am UTC](https://www.ruby-forum.com/t/mysql-ror-connection-please-help/125462 "2008-01-09T09:47:57Z")

</div>

Hi guys, I have created a ROR web application and i want to it connect to a remote mySql database (in another machine). I was able to connect to the mySQL database through mySqlCilent GUI. But i couldnt connect throu…

---

## [Inconsistent behavior of caches\_page method](https://www.ruby-forum.com/t/inconsistent-behavior-of-caches-page-method/125461)

<div class="topic-metadata">

**Author:** [@Jason\_Y](https://www.ruby-forum.com/u/Jason_Y)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 9:29am UTC](https://www.ruby-forum.com/t/inconsistent-behavior-of-caches-page-method/125461 "2008-01-09T09:29:03Z")

</div>

ruby version : 1.8.6 rails version : 2.0.2 os : ubuntu 7.10 class StoreController \< ApplicationController caches\_page :index def index do something end def expire expire\_page :controller=\>'store', :action…

---

## [Render :update returns js wrapped in a HTML body](https://www.ruby-forum.com/t/render-update-returns-js-wrapped-in-a-html-body/125364)

<div class="topic-metadata">

**Author:** [@wepic](https://www.ruby-forum.com/u/wepic)\
**Replies:** 4\
**Last updated:** [January 9, 2008, 9:16am UTC](https://www.ruby-forum.com/t/render-update-returns-js-wrapped-in-a-html-body/125364 "2008-01-09T09:16:43Z")

</div>

Hi. From what I’m learned the below is suppose to return “alert(‘Im JS’);” to the javascriptGenerator that’s suppose to make the page scream ‘Im JS’…(?) render :update do |page| page.call :alert, “Im JS” end In Ra…

---

## [Help with form remote tag and select name from list](https://www.ruby-forum.com/t/help-with-form-remote-tag-and-select-name-from-list/125408)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 8:59am UTC](https://www.ruby-forum.com/t/help-with-form-remote-tag-and-select-name-from-list/125408 "2008-01-09T08:59:57Z")

</div>

I have this code: \<b\>Repuestos\</b\>\<br /\> \<% @rp\_parts.each do |rp\_part| %\> \> \<%= rp\_part.name%\> \<% end %\> \<% form\_remote\_tag :url =\> { :action =\> :add\_to\_repair, :id =\> @repair\_…

---

## [How to switch to "Production" mode?](https://www.ruby-forum.com/t/how-to-switch-to-production-mode/125149)

<div class="topic-metadata">

**Author:** [@ellils](https://www.ruby-forum.com/u/ellils)\
**Replies:** 7\
**Last updated:** [January 9, 2008, 8:46am UTC](https://www.ruby-forum.com/t/how-to-switch-to-production-mode/125149 "2008-01-09T08:46:18Z")

</div>

Hi guys, This is probably very easy question to answer but is perplexing a newbie ROR guy like me… I have successfully set up a Netbeans, MySQL server and gotten my first RailsApplication1 set up. On my http://localh…

---

## [URGENT | consuming web services with RoR](https://www.ruby-forum.com/t/urgent-consuming-web-services-with-ror/125454)

<div class="topic-metadata">

**Author:** [@Haris\_G](https://www.ruby-forum.com/u/Haris_G)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 8:21am UTC](https://www.ruby-forum.com/t/urgent-consuming-web-services-with-ror/125454 "2008-01-09T08:21:45Z")

</div>

Hello all, If anyone of you has worked on making clients for consuming webservices with RoR, please reply back as soon as possible. I want to consume a webservice that returns XML. Please either direct me to a step …

---

## [Howto install RoR 2.0 on Mac OS X 10.5 Leopard](https://www.ruby-forum.com/t/howto-install-ror-2-0-on-mac-os-x-10-5-leopard/124992)

<div class="topic-metadata">

**Author:** [@jabo](https://www.ruby-forum.com/u/jabo)\
**Replies:** 7\
**Last updated:** [January 9, 2008, 7:59am UTC](https://www.ruby-forum.com/t/howto-install-ror-2-0-on-mac-os-x-10-5-leopard/124992 "2008-01-09T07:59:30Z")

</div>

Is there a (complete, accurate and working) guide on how to install Ruby On Rails on Apple Mac OS X Leopard ? locomotive does not work all the guides I found out there do not work ! If not could you please detail how…

---

## [Problems with defining routes](https://www.ruby-forum.com/t/problems-with-defining-routes/125451)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 7\
**Last updated:** [January 9, 2008, 7:20am UTC](https://www.ruby-forum.com/t/problems-with-defining-routes/125451 "2008-01-09T07:20:54Z")

</div>

hey i am having problems when defining routes like this. map.room ‘room/:name’, :controller =\> ‘room’, :action =\> ‘show’ when i try goto any url such as: /room/123 /room/technology it works fine to goto the show met…

---

## [Large reach of marketing campaign due to Short-code sms](https://www.ruby-forum.com/t/large-reach-of-marketing-campaign-due-to-short-code-sms/125450)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 7:09am UTC](https://www.ruby-forum.com/t/large-reach-of-marketing-campaign-due-to-short-code-sms/125450 "2008-01-09T07:09:12Z")

</div>

Short-code Services \[http://www.vfirst.com/sms-text-shortcode.php\]: A SMS short code is a 5 digit number, provided by mobile network operators, on which data (SMS) can be sent by subscribers of the mobile operators. S…

---

## [SEARCHING - my rails learning project](https://www.ruby-forum.com/t/searching-my-rails-learning-project/125444)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:59am UTC](https://www.ruby-forum.com/t/searching-my-rails-learning-project/125444 "2008-01-09T05:59:05Z")

</div>

I am working on a small webapp as a learning project for rails and I could use a little help getting started please. Essentially I have 2 tables now that I might combine into 1 and I need to build a solid search on th…

---

## [Currently looking for RoR developers](https://www.ruby-forum.com/t/currently-looking-for-ror-developers/125442)

<div class="topic-metadata">

**Author:** [@rorla](https://www.ruby-forum.com/u/rorla)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 5:58am UTC](https://www.ruby-forum.com/t/currently-looking-for-ror-developers/125442 "2008-01-09T05:58:24Z")

</div>

Currently looking for RoR developers in the Glendale Ca area. Please forward your resume to removed\_email\_address@domain.invalid.

---

## [What is to\_js and to\_json?](https://www.ruby-forum.com/t/what-is-to-js-and-to-json/125317)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 5:51am UTC](https://www.ruby-forum.com/t/what-is-to-js-and-to-json/125317 "2008-01-09T05:51:58Z")

</div>

Anyone can explain the method to\_js and to\_json

---

## [Problem integrating with rails2.0](https://www.ruby-forum.com/t/problem-integrating-with-rails2-0/125327)

<div class="topic-metadata">

**Author:** [@aks](https://www.ruby-forum.com/u/aks)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 3:27am UTC](https://www.ruby-forum.com/t/problem-integrating-with-rails2-0/125327 "2008-01-09T03:27:39Z")

</div>

I had my application running fine with rails 1.1.6. I am planning to shift rails 2.0. As recommended I am trying to make sure it works fine with rails 1.2.6. But I get the following message on my browser when I try to…

---

## [How to prevent the same file from being downloaded multiple times?](https://www.ruby-forum.com/t/how-to-prevent-the-same-file-from-being-downloaded-multiple-times/125437)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 3:20am UTC](https://www.ruby-forum.com/t/how-to-prevent-the-same-file-from-being-downloaded-multiple-times/125437 "2008-01-09T03:20:03Z")

</div>

I’m working on RoR site to promote an album that a friend recently released. We’d like to have the whole album streaming from the website, so that listeners can try before they buy. For the streaming audio, I’m usin…

---

## [Issues with move\_higher and move\_lower](https://www.ruby-forum.com/t/issues-with-move-higher-and-move-lower/125278)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 4\
**Last updated:** [January 9, 2008, 3:08am UTC](https://www.ruby-forum.com/t/issues-with-move-higher-and-move-lower/125278 "2008-01-09T03:08:54Z")

</div>

I made sure that my MessageBoards would acts\_as\_list for Forum: class Forum \< ActiveRecord::Base #This is a superset of message boards has\_many :message\_boards, :order =\> ‘position’, :dependent =\> :destroy … end c…

---

## [How do we DELETE this new Rails 2.0 "Cookie Store"?](https://www.ruby-forum.com/t/how-do-we-delete-this-new-rails-2-0-cookie-store/125409)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 2:53am UTC](https://www.ruby-forum.com/t/how-do-we-delete-this-new-rails-2-0-cookie-store/125409 "2008-01-09T02:53:42Z")

</div>

In the past, I would run this code to clear my session and cookie variables; def clear\_session session\[:user\_id\] = nil cookies\[:user\_id\] = nil cookies\[:password\_hash\] = nil end I would then go into my \\Docs & Sett…

---

## [Howto rebuild a object from a received xml hash structure?](https://www.ruby-forum.com/t/howto-rebuild-a-object-from-a-received-xml-hash-structure/125382)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 2:36am UTC](https://www.ruby-forum.com/t/howto-rebuild-a-object-from-a-received-xml-hash-structure/125382 "2008-01-09T02:36:09Z")

</div>

im my web server app , i have an action to be used as a REST web service GET /user/membership.xml?email=emailaddress def membership @user = User.find\_by\_email(params\[:email\]) respond\_to do |format| format.xml { ren…

---

## [Rest: user - membership - group](https://www.ruby-forum.com/t/rest-user-membership-group/125376)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 1:56am UTC](https://www.ruby-forum.com/t/rest-user-membership-group/125376 "2008-01-09T01:56:58Z")

</div>

Hi trying to make sense of some less straightforward restful concepts: If users have groups through memberships - How would the routes look? Im pretty stumped on this one :slight\_smile: Ivor

---

## [Tidy Controllers](https://www.ruby-forum.com/t/tidy-controllers/125424)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 1:14am UTC](https://www.ruby-forum.com/t/tidy-controllers/125424 "2008-01-09T01:14:06Z")

</div>

I’m currently working on tidying up some code, I realized that the controller had a lot of Model logic in it, so naturally I moved it out to the corresponding models. But there’s also a lot of AJAX calls happening in …

---

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

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 12:49am UTC](https://www.ruby-forum.com/t/array-within-an-array/125336 "2008-01-09T00:49:10Z")

</div>

Hi, hoping someone can help, or at least suggest a better way of doing the following. I have two models which have a has\_and\_belongs\_to\_many relationship. for example products and items. On my page view I provide a …

---

## [Populate a table with 100,000 values in random order via migration.. QUE?!](https://www.ruby-forum.com/t/populate-a-table-with-100-000-values-in-random-order-via-migration-que/125428)

<div class="topic-metadata">

**Author:** [@MESSYKILL5000](https://www.ruby-forum.com/u/MESSYKILL5000)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 12:43am UTC](https://www.ruby-forum.com/t/populate-a-table-with-100-000-values-in-random-order-via-migration-que/125428 "2008-01-09T00:43:19Z")

</div>

HOLA! I’ve got the following ruby: arr = (“0”…“99999”).sort{ rand(3) -1 } # shuffle-hack arr.each do | item | while item.length \< 5 item.insert(0, ‘0’) puts item # Wanna see 100,000 numbers with leading zeros? end…

---

## [Counter\_cache through, is this possible?](https://www.ruby-forum.com/t/counter-cache-through-is-this-possible/125419)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 5\
**Last updated:** [January 9, 2008, 12:28am UTC](https://www.ruby-forum.com/t/counter-cache-through-is-this-possible/125419 "2008-01-09T00:28:06Z")

</div>

Say I have A which has many B which has many C, ideally I want the quickest way to get the count of C for A, a counter cache through an association with B would do - but I don’t think that exists. Any ideas?

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

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