# Rails

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

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

---

## [rSpec, controller, restful route problem](https://www.ruby-forum.com/t/rspec-controller-restful-route-problem/134629)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rspec-controller-restful-route-problem/134629 "2008-04-15T18:26:32Z")

</div>

I’m trying to wrap my brain around bdd, and it’s not going nearly as well as I’d like. I’ve been struggling with it for a few weeks now, and had been doing relatively well at first, while I was doing models. Now I’m…

---

## [Hosting rails app](https://www.ruby-forum.com/t/hosting-rails-app/134796)

<div class="topic-metadata">

**Author:** [@sandeep](https://www.ruby-forum.com/u/sandeep)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/hosting-rails-app/134796 "2008-04-15T18:22:11Z")

</div>

which is the best web server to host web application? and do we can host rails application in india ?

---

## [Model Verification](https://www.ruby-forum.com/t/model-verification/134853)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/model-verification/134853 "2008-04-15T18:08:37Z")

</div>

Why does this not work? validate :must\_exist def must\_exist for team in Team.find(:all) errors.add\_to\_base(“Team must exist. Maybe invite them to register?”) unless opponent == team.name and home != team.name break …

---

## [Help with template](https://www.ruby-forum.com/t/help-with-template/134854)

<div class="topic-metadata">

**Author:** [@atmorell](https://www.ruby-forum.com/u/atmorell)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 6:08pm UTC](https://www.ruby-forum.com/t/help-with-template/134854 "2008-04-15T18:08:02Z")

</div>

Hello, I got my main layout in views/layouts/application.rhtml Now what I would like to do is wrap another template around everything in my messages controller. (all actions) How should I accomplish something like th…

---

## [Heavy queries stall application](https://www.ruby-forum.com/t/heavy-queries-stall-application/134828)

<div class="topic-metadata">

**Author:** [@kusako](https://www.ruby-forum.com/u/kusako)\
**Replies:** 8\
**Last updated:** [April 15, 2008, 5:51pm UTC](https://www.ruby-forum.com/t/heavy-queries-stall-application/134828 "2008-04-15T17:51:21Z")

</div>

Hi, I have a ruby application where part of the functionality means that the application has to run very time-consuming queries against a db slave. My problem is that when these queries are ran, the application stalls …

---

## [Action mailer default template/location - DONT WANT](https://www.ruby-forum.com/t/action-mailer-default-template-location-dont-want/134736)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/action-mailer-default-template-location-dont-want/134736 "2008-04-15T17:31:40Z")

</div>

hello i want to specify my own location of actionmailer template. how can i do this? something like render would be perfect :slight\_smile: thanks fero

---

## [Passing id in multi part form](https://www.ruby-forum.com/t/passing-id-in-multi-part-form/134814)

<div class="topic-metadata">

**Author:** [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/passing-id-in-multi-part-form/134814 "2008-04-15T17:24:10Z")

</div>

Hi Guys, I’m building an application that allows users to first fill in details of a recent trip to the gym, once they click submit these details are saved to a database table and redirects to a form that lets them in…

---

## [Uninitialized Constant](https://www.ruby-forum.com/t/uninitialized-constant/134771)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 15\
**Last updated:** [April 15, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/134771 "2008-04-15T17:22:21Z")

</div>

I have the following models: class Entity \< ActiveRecord::Base … has\_many :locations, :dependent =\> :destroy, :include =\> :sites has\_many :sites, :through =\> :locations class Site \< Active…

---

## [ActiveRecord::StatementInvalid in BlogController#index](https://www.ruby-forum.com/t/activerecord-statementinvalid-in-blogcontroller-index/134797)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 4:52pm UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-in-blogcontroller-index/134797 "2008-04-15T16:52:16Z")

</div>

Hello. I’m trying to do the video tutorial “how to build a blog engine in 15 minutes with ruby on rails” from the main rubyonrails website, and I’m getting an error when I try to use scaffold :post after editing my co…

---

## [NoMethodError in StoreController#add\_to\_cart](https://www.ruby-forum.com/t/nomethoderror-in-storecontroller-add-to-cart/134844)

<div class="topic-metadata">

**Author:** [@korre](https://www.ruby-forum.com/u/korre)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-storecontroller-add-to-cart/134844 "2008-04-15T16:31:42Z")

</div>

I’m trying to set up the Depot app from Agile Web D. and I got this error after C1 - Creating a Cart. The exact error looks like this: NoMethodError in StoreController#add\_to\_cart You have a nil object when you didn…

---

## [Routing problem: map.testroute ":param1/:param2-:param3-:param4.html"](https://www.ruby-forum.com/t/routing-problem-map-testroute-param1-param3-param4-html/134845)

<div class="topic-metadata">

**Author:** [@lowang](https://www.ruby-forum.com/u/lowang)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/routing-problem-map-testroute-param1-param3-param4-html/134845 "2008-04-15T16:23:30Z")

</div>

hi, I’m trying to create meaningful urls with routing extracting all params as specified: map.testroute “:param1/:param2-for-:param3.html” However this approach totally fails - it says Routing Error, No route matche…

---

## [Find record with "null" column](https://www.ruby-forum.com/t/find-record-with-null-column/134840)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/find-record-with-null-column/134840 "2008-04-15T16:10:34Z")

</div>

How do I find a record in my database with a column that is “null” or empty. Right now I am using: @folder = Folder.find(:all, :conditions =\> “folder\_id IS NULL”) Based on this query which is tested to work on my dat…

---

## [XML not rendered after upgrade to 2.0.2](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767 "2008-04-15T15:51:34Z")

</div>

I’ve upgrades from Rails 1.2.6 to 2.0.2 (it’s about time) and am getting render problems on the .xml files. What I get is the XML layout with the HTML contents: logged in Login: logged in: 1 \<\<-- this is …

---

## [Oscommerce modeling question](https://www.ruby-forum.com/t/oscommerce-modeling-question/134675)

<div class="topic-metadata">

**Author:** [@Tubahead](https://www.ruby-forum.com/u/Tubahead)\
**Replies:** 6\
**Last updated:** [April 15, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/oscommerce-modeling-question/134675 "2008-04-15T15:42:37Z")

</div>

All, Many thanks for the previous help I have received from this list … I am hoping someone can point me in the right direction here. I am attempting to bolt on a ROR admin system for an existing oscommerce store, an…

---

## [How to cache dynamic CSS (RCSS)?](https://www.ruby-forum.com/t/how-to-cache-dynamic-css-rcss/134836)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 3:20pm UTC](https://www.ruby-forum.com/t/how-to-cache-dynamic-css-rcss/134836 "2008-04-15T15:20:40Z")

</div>

Hi, I’m using this tutorial: http://blog.hasmanythrough.com/2006/3/23/dirt-simple-rcss-templates to make dynamic CSS files. However I can’t figure out how expire cached CSS files. Here’s my code: Parked at Loopia. M…

---

## [Namespaces - 2 times admin in path](https://www.ruby-forum.com/t/namespaces-2-times-admin-in-path/134835)

<div class="topic-metadata">

**Author:** [@marko.hribersek](https://www.ruby-forum.com/u/marko.hribersek)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/namespaces-2-times-admin-in-path/134835 "2008-04-15T15:06:58Z")

</div>

Hello folks, I have a problem with nested namespaces route and can’t figure what to do. (I hate this clouse :slight\_smile: ) Let’s say I have (for better understanding) posts =\> inv\_ocenas comments =\> inv\_ocena\_post…

---

## [Which server should our Rails website use?](https://www.ruby-forum.com/t/which-server-should-our-rails-website-use/134783)

<div class="topic-metadata">

**Author:** [@AtsoK](https://www.ruby-forum.com/u/AtsoK)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/which-server-should-our-rails-website-use/134783 "2008-04-15T14:04:47Z")

</div>

Hello all, My team and I plan on releasing our Rails startup soon, but we’re not sure which server to use. Nginx? Litespeed? Apache? We’re going to use SliceHost (a 512MB slice) if that helps. I’ve played around with…

---

## [Having trouble running rails 2.0.2 on Leopard](https://www.ruby-forum.com/t/having-trouble-running-rails-2-0-2-on-leopard/134820)

<div class="topic-metadata">

**Author:** [@thomasptacek](https://www.ruby-forum.com/u/thomasptacek)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 2:04pm UTC](https://www.ruby-forum.com/t/having-trouble-running-rails-2-0-2-on-leopard/134820 "2008-04-15T14:04:29Z")

</div>

Hi, I’ve just started getting into rails and up until today (for some reason) I’ve been using Rails 1.2.6 So I updated to Rails 2.0.2 by using gem update, but now I’m not able to run anything at all. Let’s say I crea…

---

## [How to get routing variables in model](https://www.ruby-forum.com/t/how-to-get-routing-variables-in-model/134827)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 1:56pm UTC](https://www.ruby-forum.com/t/how-to-get-routing-variables-in-model/134827 "2008-04-15T13:56:21Z")

</div>

Hi folks, In routes.rb I specified some routing urls, like below, map.login ‘/login’, :controller =\> ‘account’, :action =\> ‘new’ Here I want to use this login\_path in my any one of model, Is it possible, Whether I …

---

## [Redhillonrails\_core plugin with Oracle DB](https://www.ruby-forum.com/t/redhillonrails-core-plugin-with-oracle-db/134822)

<div class="topic-metadata">

**Author:** [@Shashaxe](https://www.ruby-forum.com/u/Shashaxe)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/redhillonrails-core-plugin-with-oracle-db/134822 "2008-04-15T13:11:37Z")

</div>

It looks like the Red Hill core plugin uses an AbstractAdapter and does not have a dedicated Oracle Adapter. Due to this certain migration features offered by this plugin are not useful. Has anyone come across this pr…

---

## [Help with a blog application - search for words and score them](https://www.ruby-forum.com/t/help-with-a-blog-application-search-for-words-and-score-them/134821)

<div class="topic-metadata">

**Author:** [@R3R3R3](https://www.ruby-forum.com/u/R3R3R3)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/help-with-a-blog-application-search-for-words-and-score-them/134821 "2008-04-15T13:01:33Z")

</div>

Hi there everyone I have created a blog using RoR, this being my 4th application that I have created. It’s all a learning curve and I am enjoying the framework much better that JSP. I would like to add onto the appli…

---

## [How to call a java applet in rails application?](https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 1\
**Last updated:** [April 15, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/how-to-call-a-java-applet-in-rails-application/134817 "2008-04-15T12:48:58Z")

</div>

HI, I have a applet file named “Scanner.class” which will scan and upload image to the web server from Scanners. I have couple of doubts in accessing that applet file. How to call this applet from rhtml file, and w…

---

## [How can I exclude email texts from the log?](https://www.ruby-forum.com/t/how-can-i-exclude-email-texts-from-the-log/134815)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/how-can-i-exclude-email-texts-from-the-log/134815 "2008-04-15T12:42:25Z")

</div>

hi does anyone know how to prevent email texts to be written in the logs? date, from, to, cc, bcc, subject, etc should stay in the log, only the body to be excluded. thanks Luma Processing LoginController#register …

---

## [Attributes not being santised](https://www.ruby-forum.com/t/attributes-not-being-santised/134729)

<div class="topic-metadata">

**Author:** [@Farrel](https://www.ruby-forum.com/u/Farrel)\
**Replies:** 7\
**Last updated:** [April 15, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/attributes-not-being-santised/134729 "2008-04-15T12:16:19Z")

</div>

I’m using a postgres database and have run into problems where attributes on a model are not sanitised correctly before being saved. The following code: comment = Comment.new( :item =\> item ) comment.comment = “dog’s…

---

## [Problems getting the scaffold command working properly](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801)

<div class="topic-metadata">

**Author:** [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Replies:** 2\
**Last updated:** [April 15, 2008, 11:52am UTC](https://www.ruby-forum.com/t/problems-getting-the-scaffold-command-working-properly/134801 "2008-04-15T11:52:01Z")

</div>

hello folks!! i am very interested in working on RoR, so what i did was to get started on this framework. So what i did was to get hold of some tutorials…ok let me come to the point first and foremost i created 3 d…

---

## [Magic](https://www.ruby-forum.com/t/magic/134811)

<div class="topic-metadata">

**Author:** [@booobba](https://www.ruby-forum.com/u/booobba)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 11:35am UTC](https://www.ruby-forum.com/t/magic/134811 "2008-04-15T11:35:28Z")

</div>

Can you imitate? http://www.magicalskills.inihu.com/

---

## [Will Rails 2.0 support my 1.2 rails codes](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 11:27am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798 "2008-04-15T11:27:12Z")

</div>

Hello, I am working with rails 1.2, since many books are available for this. I am also learning few new things with rails 2.0 also. I am just confused with this question. Can i deploy my 1.2 codes on the rails 2.0 fr…

---

## [Switching rails versions 2.0.2 \<-\> 1.2.5](https://www.ruby-forum.com/t/switching-rails-versions-2-0-2-1-2-5/134806)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 0\
**Last updated:** [April 15, 2008, 10:29am UTC](https://www.ruby-forum.com/t/switching-rails-versions-2-0-2-1-2-5/134806 "2008-04-15T10:29:28Z")

</div>

I’m migrating my web app to 2.0.2 . Since I needed to switch back to 1.2.5 I set RAILS\_GEM\_VERSION in evinroement.rb: RAILS\_GEM\_VERSION = ‘1.2.5’ But restarting the webserver I get an error related to the 2.0.2 versi…

---

## [Hyphen on columns name.. help](https://www.ruby-forum.com/t/hyphen-on-columns-name-help/134793)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 15, 2008, 9:07am UTC](https://www.ruby-forum.com/t/hyphen-on-columns-name-help/134793 "2008-04-15T09:07:54Z")

</div>

I have a issue that I can’t seen to fix… I search all over… and a lot about how to work with legacy table names but nothing about column names… this will not work because of the hyphen: @vcards = Vcard.find(:all, :se…

---

## [Status bar - while controller action is time intensive](https://www.ruby-forum.com/t/status-bar-while-controller-action-is-time-intensive/134794)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 8:57am UTC](https://www.ruby-forum.com/t/status-bar-while-controller-action-is-time-intensive/134794 "2008-04-15T08:57:51Z")

</div>

Hi, I have a time consuming action in a controller. So when a user clicks on this link to this time consuming action, I would like give users a status bar, saying something like “LOADING…”. How do i do that? I have…

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

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