# Rails

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

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

---

## [Habtm question](https://www.ruby-forum.com/t/habtm-question/131087)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/habtm-question/131087 "2008-03-07T16:31:19Z")

</div>

hi, i have 2 tables on a external database which i want to integrate in my rails-app. class External \< ActiveRecord::Base establish\_connection :extern end class Land \< External set\_table\_name “landen” end class …

---

## [View current plugins and version numbers?](https://www.ruby-forum.com/t/view-current-plugins-and-version-numbers/131277)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/view-current-plugins-and-version-numbers/131277 "2008-03-07T16:20:19Z")

</div>

Hey all, now that I have been toying around with a small app, I need to be able to go in and look at my currently installed plugins and their version numbers. I no longer have the default rails screen index that allow…

---

## [Search Engines are throwing 'illegal' SHOW requests?](https://www.ruby-forum.com/t/search-engines-are-throwing-illegal-show-requests/131273)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/search-engines-are-throwing-illegal-show-requests/131273 "2008-03-07T15:31:53Z")

</div>

Now that I’ve finally got all of my websites deployed I find interesting Exception\_Notification messages being generated when the ‘spiders’ ask for illegal requests on my website. For example: I have a nested data str…

---

## [DevBoi offline docs](https://www.ruby-forum.com/t/devboi-offline-docs/77385)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/devboi-offline-docs/77385 "2008-03-07T15:30:07Z")

</div>

I love having DevBoi and the offline docs for Rails (especially for when I’m on the train and have no network), but the available docs are for 1.1.2. I don’t actually know who is supporting the DevBoi Rails docs, but …

---

## [Boolean circles](https://www.ruby-forum.com/t/boolean-circles/131255)

<div class="topic-metadata">

**Author:** [@Fredrik\_K](https://www.ruby-forum.com/u/Fredrik_K)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/boolean-circles/131255 "2008-03-07T15:22:26Z")

</div>

Hi, This is just kindof a RoR question, but since you all potentially do the same things as I do, I thought I’ll ask here… Im trying to use the boolean type in the database. Migrations is no problem, it even converts…

---

## [How to deploy Rails apps on Servage.net](https://www.ruby-forum.com/t/how-to-deploy-rails-apps-on-servage-net/131269)

<div class="topic-metadata">

**Author:** [@foxbunny](https://www.ruby-forum.com/u/foxbunny)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/how-to-deploy-rails-apps-on-servage-net/131269 "2008-03-07T15:02:18Z")

</div>

Okay, so I’ve had quite a bit of struggle with the tech support before the app deployed. So I’ll post my experiences here if anyone’s looking for info about deploying Rails apps on Servage. First off, Servage has grea…

---

## [How to declare home page using my current setup](https://www.ruby-forum.com/t/how-to-declare-home-page-using-my-current-setup/131266)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/how-to-declare-home-page-using-my-current-setup/131266 "2008-03-07T14:45:32Z")

</div>

I have a database table ‘pages’ that is called for the specific pages of the website. Now that I am starting to implement the project I am looking into how I can have a home page that is called everytime just as the h…

---

## [Qustion about upload image](https://www.ruby-forum.com/t/qustion-about-upload-image/131267)

<div class="topic-metadata">

**Author:** [@beexk](https://www.ruby-forum.com/u/beexk)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/qustion-about-upload-image/131267 "2008-03-07T14:42:11Z")

</div>

Hi friends, I use attachment\_fu and rmagick to upload and resize image. but sometimes it can work, sometimes it can only upload image and can’t resize. does anyone meet that? os: windows xp ruby: 1.8.6 rails: 1.2.6 …

---

## [Windows Mobile 2005 - RESTful Javascript Issues](https://www.ruby-forum.com/t/windows-mobile-2005-restful-javascript-issues/131251)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/windows-mobile-2005-restful-javascript-issues/131251 "2008-03-07T14:02:38Z")

</div>

Hi, I’m developing a warehouse management app that is partly accessed via Windows Mobile 2005 devices. Unfortunately I’m having trouble with the links generated for DELETE and PUT resource requests. In generating the…

---

## [Mongrel vs. fcgi](https://www.ruby-forum.com/t/mongrel-vs-fcgi/131150)

<div class="topic-metadata">

**Author:** [@maerzbow](https://www.ruby-forum.com/u/maerzbow)\
**Replies:** 6\
**Last updated:** [March 7, 2008, 1:59pm UTC](https://www.ruby-forum.com/t/mongrel-vs-fcgi/131150 "2008-03-07T13:59:40Z")

</div>

I have a virtual root server (monthly $10) running some RoR projects with mediocre traffic by using MONGREL. It ROCKS. But with every new mongrel instance I am getting closer to run out of system resources. The web …

---

## [Vanilla in rails routing](https://www.ruby-forum.com/t/vanilla-in-rails-routing/131260)

<div class="topic-metadata">

**Author:** [@megax](https://www.ruby-forum.com/u/megax)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/vanilla-in-rails-routing/131260 "2008-03-07T13:42:10Z")

</div>

I wanted a forum in my rails app but after wrestling with beast, savage beast and el derado I have heard vanilla is easy to integrate but I needs some help with routing. Can anyone tell me how to do it or where to fin…

---

## [Lazy-load model class variable hash](https://www.ruby-forum.com/t/lazy-load-model-class-variable-hash/131249)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 11:20am UTC](https://www.ruby-forum.com/t/lazy-load-model-class-variable-hash/131249 "2008-03-07T11:20:10Z")

</div>

Hi, I have a number of models which contain almost static data. I don’t want to hit to db when accessing a row, nor do I want to hit memcached. I am hoping to use a lazy-loaded model class variable hash. This will en…

---

## [ActiveRecord and SQL Regular Expressions](https://www.ruby-forum.com/t/activerecord-and-sql-regular-expressions/131045)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 10:58am UTC](https://www.ruby-forum.com/t/activerecord-and-sql-regular-expressions/131045 "2008-03-07T10:58:21Z")

</div>

Hi, I have the following code: @my\_things = MyThing.find( :all, :select =\> "ID, CODE", :conditions =\> conditions\_list) conditions\_list is an array, with the following elements : \[0\] code like ? and comp\_cas\_no…

---

## [What's slowing my app down?](https://www.ruby-forum.com/t/whats-slowing-my-app-down/131223)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 10:38am UTC](https://www.ruby-forum.com/t/whats-slowing-my-app-down/131223 "2008-03-07T10:38:16Z")

</div>

What is so slow here? The render takes up 8% and the queries take up 1%. That leaves 91% unaccounted for. Completed in 0.06477 (15 reqs/sec) | Rendering: 0.00574 (8%) | DB: 0.00087 (1%) | 200 OK \[http://localhost/\] A…

---

## [Calling Javascript Function](https://www.ruby-forum.com/t/calling-javascript-function/131202)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 10:35am UTC](https://www.ruby-forum.com/t/calling-javascript-function/131202 "2008-03-07T10:35:20Z")

</div>

Hello Everyone, I was wondering if it’s possible to do the following: I have an array of model objects(lets say items in my form) I would like to loop through this array and call a javascript function(that returns a …

---

## [Installing plugins](https://www.ruby-forum.com/t/installing-plugins/131243)

<div class="topic-metadata">

**Author:** [@ewo](https://www.ruby-forum.com/u/ewo)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 10:32am UTC](https://www.ruby-forum.com/t/installing-plugins/131243 "2008-03-07T10:32:21Z")

</div>

A couple of simple questions about plugins: Is the rapt plugin installer tool actively in use? I like the idea of the plugin pack and keyword searching, but it doesn’t seem like there is much activity on this projec…

---

## [\[ANN\] RScribd - Stream documents on your website](https://www.ruby-forum.com/t/ann-rscribd-stream-documents-on-your-website/129591)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 9:58am UTC](https://www.ruby-forum.com/t/ann-rscribd-stream-documents-on-your-website/129591 "2008-03-07T09:58:40Z")

</div>

RScribd is a Ruby gem that lets you stream documents (typically PDF’s, but also Word docs, presentations, RTF files, and more) on your website. It leverages Scribd’s API and iPaper viewer to present a document viewing…

---

## [How to read raw post data?](https://www.ruby-forum.com/t/how-to-read-raw-post-data/131246)

<div class="topic-metadata">

**Author:** [@ipipip](https://www.ruby-forum.com/u/ipipip)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 9:32am UTC](https://www.ruby-forum.com/t/how-to-read-raw-post-data/131246 "2008-03-07T09:32:13Z")

</div>

Hi all, I’m trying to get SWFupload to work in Rails 2. Since flash does not send cookies (containing session\_id) to rails, my session id is sent as a post parameter. I tried to override CGI::Session’s initialize met…

---

## [Test for Library Classes](https://www.ruby-forum.com/t/test-for-library-classes/131153)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 5\
**Last updated:** [March 7, 2008, 8:50am UTC](https://www.ruby-forum.com/t/test-for-library-classes/131153 "2008-03-07T08:50:25Z")

</div>

Hi Experts, Sorry if this questions makes you irritate. how do we write test for library classes? for ex: i’ve class testing.rb in lib folder. regards, Bala

---

## [\[Ann\] The MOle reloaded!](https://www.ruby-forum.com/t/ann-the-mole-reloaded/131241)

<div class="topic-metadata">

**Author:** [@derailed](https://www.ruby-forum.com/u/derailed)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 7:23am UTC](https://www.ruby-forum.com/t/ann-the-mole-reloaded/131241 "2008-03-07T07:23:27Z")

</div>

All, The MOle (originally a rails plugin) has been re-released as a gem . The MOle allows you to closely monitor how your users are interacting with your applications Whether you’re releasing a new application or enh…

---

## [Replace content\_for?](https://www.ruby-forum.com/t/replace-content-for/131233)

<div class="topic-metadata">

**Author:** [@jfaulkenberry](https://www.ruby-forum.com/u/jfaulkenberry)\
**Replies:** 4\
**Last updated:** [March 7, 2008, 6:07am UTC](https://www.ruby-forum.com/t/replace-content-for/131233 "2008-03-07T06:07:18Z")

</div>

I’ve been using content\_for a lot to put things in the header like extra stylesheets or javascript includes, which is great because it just appends it all and it all works nicely. I have a problem where I want to decl…

---

## [Layouts - Header Integration](https://www.ruby-forum.com/t/layouts-header-integration/131180)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [March 7, 2008, 5:58am UTC](https://www.ruby-forum.com/t/layouts-header-integration/131180 "2008-03-07T05:58:31Z")

</div>

Basically, a layout wraps various snipits of html body-element code with a constant-content wrapper. Accordingly, it is the layout that contains the html element associated with the respective snipits and the eleme…

---

## [Observe\_field for two fields](https://www.ruby-forum.com/t/observe-field-for-two-fields/131235)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 7, 2008, 5:22am UTC](https://www.ruby-forum.com/t/observe-field-for-two-fields/131235 "2008-03-07T05:22:46Z")

</div>

Hi I have now three select boxes(This is my current structure of program) Priority \<%= select( "sd\_ticket", "sd\_priority\_id", SdPriority.find(:all).collect {|p| \[ p.name, p.id \] }) %\> \<th width="%"\>\<label for…

---

## [Radiant CMS](https://www.ruby-forum.com/t/radiant-cms/131121)

<div class="topic-metadata">

**Author:** [@srinivasraopala](https://www.ruby-forum.com/u/srinivasraopala)\
**Replies:** 2\
**Last updated:** [March 7, 2008, 4:53am UTC](https://www.ruby-forum.com/t/radiant-cms/131121 "2008-03-07T04:53:10Z")

</div>

Hi, Could Please tell me how can we use radiant CMS in our application. Is this radiant cms is famous for ROR? Is there any other way to create CMS ror application. Thank you, srinivas rao.pala

---

## [Rails Social Networking](https://www.ruby-forum.com/t/rails-social-networking/131097)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 7\
**Last updated:** [March 7, 2008, 4:47am UTC](https://www.ruby-forum.com/t/rails-social-networking/131097 "2008-03-07T04:47:22Z")

</div>

Good day to all of you, thanks for keeping this platform evolving and making the great sites we interact with daily on the web. I have hand written the specs (drawings and all) of a social networking site, and I wante…

---

## [Composed\_of no longer works with Rail 2.02](https://www.ruby-forum.com/t/composed-of-no-longer-works-with-rail-2-02/130754)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 4\
**Last updated:** [March 7, 2008, 4:32am UTC](https://www.ruby-forum.com/t/composed-of-no-longer-works-with-rail-2-02/130754 "2008-03-07T04:32:37Z")

</div>

I created a data aggregation using the activerecord composed\_of method. It worked fine with rails 1.2.3 but after I recently upgraded to rails 2.0.2 I get the following error when I try to access it: NoMethodError: un…

---

## [Really simple question - how do I call information from the](https://www.ruby-forum.com/t/really-simple-question-how-do-i-call-information-from-the/130837)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 7\
**Last updated:** [March 7, 2008, 3:34am UTC](https://www.ruby-forum.com/t/really-simple-question-how-do-i-call-information-from-the/130837 "2008-03-07T03:34:46Z")

</div>

I know how to create controllers and models. However what I do not know is how to call information into the front end of the site - particularly I do not know how to even place the graphic design into the site. I imag…

---

## [Application Controller Errors](https://www.ruby-forum.com/t/application-controller-errors/131228)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [March 7, 2008, 3:31am UTC](https://www.ruby-forum.com/t/application-controller-errors/131228 "2008-03-07T03:31:15Z")

</div>

Hello, I am just curious as to why I can’t put the following code in the application controller: if session\[:date2use\] else @get\_latestbill = Prov.connection.select\_all(" SELECT prov\_bills.bill\_cycle\_date AS cd F…

---

## [Validate 2 models in 1 form?](https://www.ruby-forum.com/t/validate-2-models-in-1-form/131203)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 6\
**Last updated:** [March 7, 2008, 1:20am UTC](https://www.ruby-forum.com/t/validate-2-models-in-1-form/131203 "2008-03-07T01:20:48Z")

</div>

I have 2 models, an artist and song model I have the validates\_presence\_of on each of the models (for checking title, artist name, and etc). They validate fine when you add items on their own controller (1 form for ea…

---

## [Okay, another pretty obvious beginner question](https://www.ruby-forum.com/t/okay-another-pretty-obvious-beginner-question/131211)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 5\
**Last updated:** [March 7, 2008, 1:01am UTC](https://www.ruby-forum.com/t/okay-another-pretty-obvious-beginner-question/131211 "2008-03-07T01:01:13Z")

</div>

So this is another obvious question, but if you’re referring to something using Erb, such as \<%=@page.title%\>, and you need to put that into a link\_to tag, how would you do it? I have: \<%= link\_to(post.title, :action…

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

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