# Rails

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

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

---

## [Allowing Mediapartners-google, denying others](https://www.ruby-forum.com/t/allowing-mediapartners-google-denying-others/140107)

<div class="topic-metadata">

**Author:** [@silkcom](https://www.ruby-forum.com/u/silkcom)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/allowing-mediapartners-google-denying-others/140107 "2008-06-10T23:28:33Z")

</div>

Anyone have any examples that will disallow all robots, except mediapartners-google. Also, my site is password protected, but I’d like to allow mediapartners-google to view condensed versions of the content, how can …

---

## [Request.path\_info doesn't work in tests](https://www.ruby-forum.com/t/request-path-info-doesnt-work-in-tests/139983)

<div class="topic-metadata">

**Author:** [@bcm](https://www.ruby-forum.com/u/bcm)\
**Replies:** 2\
**Last updated:** [June 10, 2008, 10:19pm UTC](https://www.ruby-forum.com/t/request-path-info-doesnt-work-in-tests/139983 "2008-06-10T22:19:10Z")

</div>

Hi all, I’m having a problem with my tests. In my application.rb, I’ve got the following: before\_filter :record\_current\_page def record\_current\_page unless request.path\_info == session\[:current\_page\] session\[:prev…

---

## [Mongrel Apache file uploads](https://www.ruby-forum.com/t/mongrel-apache-file-uploads/140100)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/mongrel-apache-file-uploads/140100 "2008-06-10T21:13:25Z")

</div>

Hi, In development i am using webrick to upload files via Ajax without any problems. I have since deployed the code to live but when i upload certain files word documents, excel sheets, csv its adding an extra exten…

---

## [What would be the best way to get next and previous record?](https://www.ruby-forum.com/t/what-would-be-the-best-way-to-get-next-and-previous-record/140097)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/what-would-be-the-best-way-to-get-next-and-previous-record/140097 "2008-06-10T20:50:21Z")

</div>

Let’s say I have a class Post and I do a simple find for a record, like Post.find(16). Given this AR instance what would be the best way to get the previous and next records? I can’t just use ids (15, 17 in this examp…

---

## [Is there a Rails portlet like plugin/framework? (i.e. just basic to allow users to move windows arou](https://www.ruby-forum.com/t/is-there-a-rails-portlet-like-plugin-framework-i-e-just-basic-to-allow-users-to-move-windows-arou/139942)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [June 10, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/is-there-a-rails-portlet-like-plugin-framework-i-e-just-basic-to-allow-users-to-move-windows-arou/139942 "2008-06-10T19:52:29Z")

</div>

Hi, Just wondering if there is a Rails Plugin/GEM/Framework to aid in letting users move around (adjust) where the main page windows are. Perhaps maximize and minimize. I guess this pretty much sounds like a portl…

---

## [ActiveRecord update\_attributes with nested hash](https://www.ruby-forum.com/t/activerecord-update-attributes-with-nested-hash/140077)

<div class="topic-metadata">

**Author:** [@mrrobert](https://www.ruby-forum.com/u/mrrobert)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/activerecord-update-attributes-with-nested-hash/140077 "2008-06-10T19:44:48Z")

</div>

Can the parameter hash passed to update\_attributes include nested hashes for child models related through has\_many? For example, if A has many B, can the parameter hash passed to A include a nested hash for B? It se…

---

## [Advanced testing tutorials on Web?](https://www.ruby-forum.com/t/advanced-testing-tutorials-on-web/140072)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 2\
**Last updated:** [June 10, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/advanced-testing-tutorials-on-web/140072 "2008-06-10T19:44:12Z")

</div>

Everyone talks testing, but I don’t see much about it. I have been searching the web for about 5 hours and I can’t seem to find a good, advanced tutorial on the latest trends in testing. Everything is either outdated …

---

## [Why is my ActiveRecord model's state not saved during unit test?](https://www.ruby-forum.com/t/why-is-my-activerecord-models-state-not-saved-during-unit-test/139757)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 10\
**Last updated:** [June 10, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/why-is-my-activerecord-models-state-not-saved-during-unit-test/139757 "2008-06-10T19:13:03Z")

</div>

I’m a rails noob, still working on my first test and seeing strange behavior - the state of the model that is changed during the method being tested is appearing to not be saved. I’m assuming I’m missing something ba…

---

## [Params from %amp; spererated url not coming through to the controller](https://www.ruby-forum.com/t/params-from-amp-spererated-url-not-coming-through-to-the-controller/140088)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 7:01pm UTC](https://www.ruby-forum.com/t/params-from-amp-spererated-url-not-coming-through-to-the-controller/140088 "2008-06-10T19:01:49Z")

</div>

Hi. I am using fusion charts and passing a data\_url. The data\_url param pairs are linked with the normal & character. However, the flash object url encodes the data\_url before calling it, so my rails app is hit with …

---

## [Working more efficiently in RoR](https://www.ruby-forum.com/t/working-more-efficiently-in-ror/140078)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 3\
**Last updated:** [June 10, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/working-more-efficiently-in-ror/140078 "2008-06-10T18:52:58Z")

</div>

This may be a useful tool to better understand & find RoR concepts: http://www.yoyobrain.com/cardboxes/preview/863 Add flashcards to your studies then click on cram with the learning wizard… We’re building this site …

---

## [\[ANN\] BIND DLZ on Rails](https://www.ruby-forum.com/t/ann-bind-dlz-on-rails/140076)

<div class="topic-metadata">

**Author:** [@kennethkalmer](https://www.ruby-forum.com/u/kennethkalmer)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/ann-bind-dlz-on-rails/140076 "2008-06-10T17:09:24Z")

</div>

Hi all Announcement: http://www.opensourcery.co.za/2008/06/10/bind-dlz-on-rails-first-preview-pushed-to-github/ Excerpt from README Bind is the defacto DNS server out there, and the bind-dlz extensions enhances it e…

---

## [Prototype.js](https://www.ruby-forum.com/t/prototype-js/140074)

<div class="topic-metadata">

**Author:** [@simon780](https://www.ruby-forum.com/u/simon780)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 4:55pm UTC](https://www.ruby-forum.com/t/prototype-js/140074 "2008-06-10T16:55:08Z")

</div>

I have made use of the Prototype.js to handle the updating of innerHtml in IE. This is in use on a customers network and when viewing the pages from outside their network there are no issue. But when viewing the same …

---

## [Issue when creating an new action in my routes.rb](https://www.ruby-forum.com/t/issue-when-creating-an-new-action-in-my-routes-rb/140062)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/issue-when-creating-an-new-action-in-my-routes-rb/140062 "2008-06-10T15:16:01Z")

</div>

Hello, Hello, I have an issue when I try to setup a new action in my resources. I have the following definition in my routes.rb file where I try to add the “validate” action map.resources :buildings do |building| b…

---

## [Threading in ruby/rails](https://www.ruby-forum.com/t/threading-in-ruby-rails/196708)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [June 10, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/threading-in-ruby-rails/196708 "2008-06-10T15:16:01Z")

</div>

Hi I have succesfully send mail from my rails application…I did it like below.What I am doing is send a mail to an assignee. def after\_transfer code-------- code------ send\_mail\_to\_primary\_assignee(assignee\_id) en…

---

## [Scaffold in rails 2.0 - more info required](https://www.ruby-forum.com/t/scaffold-in-rails-2-0-more-info-required/140012)

<div class="topic-metadata">

**Author:** [@nellboy](https://www.ruby-forum.com/u/nellboy)\
**Replies:** 2\
**Last updated:** [June 10, 2008, 3:06pm UTC](https://www.ruby-forum.com/t/scaffold-in-rails-2-0-more-info-required/140012 "2008-06-10T15:06:51Z")

</div>

Hi Guys, this is my first time posting a question in this group… so you guessed right, i’m a noob (although I have programmed a bit in other languages - mostly Java)… anyway, it goes back to that classic first problem…

---

## [Validation of models](https://www.ruby-forum.com/t/validation-of-models/140063)

<div class="topic-metadata">

**Author:** [@sweetpete](https://www.ruby-forum.com/u/sweetpete)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/validation-of-models/140063 "2008-06-10T14:59:28Z")

</div>

I have 2 models; Question : has\_and\_belongs\_to\_many :domains Domain : has\_and\_belongs\_to\_many :questions When a user submits a new question, the domains appear as a list of check boxes to select, here is the ne…

---

## [Feed an .csv file up to server for importing data, then throw away?](https://www.ruby-forum.com/t/feed-an-csv-file-up-to-server-for-importing-data-then-throw-away/136189)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 10, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/feed-an-csv-file-up-to-server-for-importing-data-then-throw-away/136189 "2008-06-10T14:53:00Z")

</div>

I’ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I’ve import…

---

## [Multipart mail](https://www.ruby-forum.com/t/multipart-mail/140051)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 2:53pm UTC](https://www.ruby-forum.com/t/multipart-mail/140051 "2008-06-10T14:53:00Z")

</div>

Hello, I do i define the content\_type if i want to send multipart mail through rails. Also, I some cases i want to send multipart mail (with attachments) and in other cases i just want the content\_type to be text/htm…

---

## [Crystal report with ruby on rails](https://www.ruby-forum.com/t/crystal-report-with-ruby-on-rails/106327)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 7\
**Last updated:** [June 10, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/crystal-report-with-ruby-on-rails/106327 "2008-06-10T14:46:17Z")

</div>

We have a bunch of crystal reports and we would like to use those on our ruby on rails app. I was wondering if it was possible? Is there a plugin of some sort or crystal report viewer for ruby? I would appreciate any …

---

## [Comparing two number](https://www.ruby-forum.com/t/comparing-two-number/140054)

<div class="topic-metadata">

**Author:** [@Shawn\_B](https://www.ruby-forum.com/u/Shawn_B)\
**Replies:** 5\
**Last updated:** [June 10, 2008, 2:27pm UTC](https://www.ruby-forum.com/t/comparing-two-number/140054 "2008-06-10T14:27:03Z")

</div>

I am trying to do this conditional statement \<% if(@company.id == params\[:id\]) %\> Do This \<% end %\> The numbers that it is comparing are the same in the example that I am trying but it always equates to false. Why w…

---

## [Privacy setting like facebook](https://www.ruby-forum.com/t/privacy-setting-like-facebook/140057)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/privacy-setting-like-facebook/140057 "2008-06-10T14:21:46Z")

</div>

Can anyone suggest me the database design for privacy setting like facebook…

---

## [Not existing website](https://www.ruby-forum.com/t/not-existing-website/140046)

<div class="topic-metadata">

**Author:** [@dimitar](https://www.ruby-forum.com/u/dimitar)\
**Replies:** 3\
**Last updated:** [June 10, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/not-existing-website/140046 "2008-06-10T12:28:28Z")

</div>

Hello, I’ve got the following problem, I hope someone can help me. The following code doesn’t work properly: \<% form\_for :loesungen, @loesungen, :url =\> {:controller =\> ‘spiel’, :action =\> ‘loesung\_auswerten’}, :html …

---

## [About .html and .rhtml,database](https://www.ruby-forum.com/t/about-html-and-rhtml-database/139738)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 5\
**Last updated:** [June 10, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/about-html-and-rhtml-database/139738 "2008-06-10T12:06:03Z")

</div>

how do i make a .html file in the root directory,for example,there is a cart project,how do make a index.html file containing the link to access the files that are in the app directory? when deploy a project,where the…

---

## [Injection attacks](https://www.ruby-forum.com/t/injection-attacks/139989)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 10, 2008, 11:47am UTC](https://www.ruby-forum.com/t/injection-attacks/139989 "2008-06-10T11:47:47Z")

</div>

Hi, I have this pice of SQL, in my ROR app I have two models article and category, and I’m trying to do a search of public articles in a selected category. I am using a find\_by\_sql, and this leaves me open to an inje…

---

## [Understanding MVC and relationships among them - any schema?](https://www.ruby-forum.com/t/understanding-mvc-and-relationships-among-them-any-schema/139731)

<div class="topic-metadata">

**Author:** [@pepa007](https://www.ruby-forum.com/u/pepa007)\
**Replies:** 12\
**Last updated:** [June 10, 2008, 11:23am UTC](https://www.ruby-forum.com/t/understanding-mvc-and-relationships-among-them-any-schema/139731 "2008-06-10T11:23:18Z")

</div>

Hi, I’m about 1 month into RoR but still haven’t managed to google out some schematic summary of the RoR philosophy (maybe I’m just rubbish with google): which function/method goes where (M/C/helper), what is the ru…

---

## [Using a secondary gems repository](https://www.ruby-forum.com/t/using-a-secondary-gems-repository/140037)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Vanegas](https://www.ruby-forum.com/u/Rodrigo_Vanegas)\
**Replies:** 0\
**Last updated:** [June 10, 2008, 10:07am UTC](https://www.ruby-forum.com/t/using-a-secondary-gems-repository/140037 "2008-06-10T10:07:28Z")

</div>

How do I configure my Rails project to look for gems in a secondary gems repository. I imagine I should add something to config/environment.rb, but I can’t seem to figure it out. – Rodrigo Vanegas removed\_email\_ad…

---

## [NameError in AdminController, uninitialized constant](https://www.ruby-forum.com/t/nameerror-in-admincontroller-uninitialized-constant/140017)

<div class="topic-metadata">

**Author:** [@dynamethod](https://www.ruby-forum.com/u/dynamethod)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 10:05am UTC](https://www.ruby-forum.com/t/nameerror-in-admincontroller-uninitialized-constant/140017 "2008-06-10T10:05:41Z")

</div>

Hi there basically following the “Agile Web D. With Rails, 2nd Edition” i followed the tutorial exaclty, worked fine, so i decided to change one thing on page 74 instead of: ruby script/generate model product i use…

---

## [Select list for Pragmatic multiple models one form tutorial](https://www.ruby-forum.com/t/select-list-for-pragmatic-multiple-models-one-form-tutorial/140019)

<div class="topic-metadata">

**Author:** [@Jeff\_Lee](https://www.ruby-forum.com/u/Jeff_Lee)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 7:49am UTC](https://www.ruby-forum.com/t/select-list-for-pragmatic-multiple-models-one-form-tutorial/140019 "2008-06-10T07:49:11Z")

</div>

After going through the multiple models one form tutorial at Pragmatic (http://media.pragprog.com/titles/fr\_arr/multiple\_models\_one\_form.pdf) and the one from Rails casts, I’ve chosen to use the one at Pragmatic for i…

---

## [Model Generation problems](https://www.ruby-forum.com/t/model-generation-problems/140008)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 7:42am UTC](https://www.ruby-forum.com/t/model-generation-problems/140008 "2008-06-10T07:42:08Z")

</div>

Hi guys, I’m getting this error when trying to generate a model, /Users/stillmotion/sandbox/rails/perx/vendor/rails/activerecord/ lib/…/…/activesupport/lib/active\_support/dependencies.rb:491:in \`const\_missing’: unini…

---

## [Rails 2 and Oracle](https://www.ruby-forum.com/t/rails-2-and-oracle/139830)

<div class="topic-metadata">

**Author:** [@rainer](https://www.ruby-forum.com/u/rainer)\
**Replies:** 1\
**Last updated:** [June 10, 2008, 7:25am UTC](https://www.ruby-forum.com/t/rails-2-and-oracle/139830 "2008-06-10T07:25:06Z")

</div>

Anybody know if exists any problem about using rails 2 and oracle (10g) or specific configuration? my app connects to an oracle database 10g successfully, but, when i create an item in my app, the record fields are fi…

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

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