# Rails

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

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

---

## [Password needed to view atom feed](https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536)

<div class="topic-metadata">

**Author:** [@adsouzp](https://www.ruby-forum.com/u/adsouzp)\
**Replies:** 1\
**Last updated:** [July 5, 2009, 6:14am UTC](https://www.ruby-forum.com/t/password-needed-to-view-atom-feed/171536 "2009-07-05T06:14:02Z")

</div>

I have a before\_filter in the controller where the atom feed is coming from. I want it to check the password when entering that area but not when a user wants to view the rss feed. Is there a way I can use the :except…

---

## [RJS error ("Can't find variable: point") not providing sufficient information](https://www.ruby-forum.com/t/rjs-error-cant-find-variable-point-not-providing-sufficient-information/171556)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [July 5, 2009, 5:53am UTC](https://www.ruby-forum.com/t/rjs-error-cant-find-variable-point-not-providing-sufficient-information/171556 "2009-07-05T05:53:00Z")

</div>

Hi All, I’m having an issue with rails involving javascript. Basically, I have the following code: \<ul id="all-points"\> \<%for point in Point.find(:all)%\> \<%domid = "point\[all\]\[#{point.id}\]"%\> \<li class="available…

---

## [JavaScript validation](https://www.ruby-forum.com/t/javascript-validation/171507)

<div class="topic-metadata">

**Author:** [@iamdonquixote](https://www.ruby-forum.com/u/iamdonquixote)\
**Replies:** 6\
**Last updated:** [July 5, 2009, 4:44am UTC](https://www.ruby-forum.com/t/javascript-validation/171507 "2009-07-05T04:44:38Z")

</div>

Hi Folks, I’m relatively new to Rails, but am very enamored with it for the most part so far. I have a contacts page where the User enters his/her personal information. I’m using the server-side validates\_presence\_of…

---

## [Add a new locale using raul's translate\_routes plug-in](https://www.ruby-forum.com/t/add-a-new-locale-using-rauls-translate-routes-plug-in/171552)

<div class="topic-metadata">

**Author:** [@Great\_Kindness](https://www.ruby-forum.com/u/Great_Kindness)\
**Replies:** 0\
**Last updated:** [July 5, 2009, 1:55am UTC](https://www.ruby-forum.com/t/add-a-new-locale-using-rauls-translate-routes-plug-in/171552 "2009-07-05T01:55:51Z")

</div>

I just started using Raul M.'s translate\_routes plug-in. It’s great. Now what I can’t understand is how to add a new locale (in my case, French). I figured that I could just add a new section to my translation file (t…

---

## [Routing URL REST or not REST](https://www.ruby-forum.com/t/routing-url-rest-or-not-rest/171520)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [July 5, 2009, 12:14am UTC](https://www.ruby-forum.com/t/routing-url-rest-or-not-rest/171520 "2009-07-05T00:14:49Z")

</div>

my question is maybe silly… but it’s already July 4th … and I am tired… until now I have been using in my tests the following routes (simplified version) map.resources :academies do |academies| academies.resources …

---

## [Msdd update](https://www.ruby-forum.com/t/msdd-update/171547)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 1\
**Last updated:** [July 5, 2009, 12:06am UTC](https://www.ruby-forum.com/t/msdd-update/171547 "2009-07-05T00:06:38Z")

</div>

I must be missing something. I have a list of values returned (id’s to my ‘associates’ table) and I want to update all of those in the list. Presently, I iterate through the list, updating each one (see below). Isn;t…

---

## [Ajax request and redirection](https://www.ruby-forum.com/t/ajax-request-and-redirection/171548)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [July 4, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/ajax-request-and-redirection/171548 "2009-07-04T23:58:26Z")

</div>

This is most likely my lack of understanding of Ajax concepts, but I cannot find an answer on the web for the following question: “Should an ajax request triggered by a specific page must come back to the same page?” …

---

## [Find Composite Primary Keys](https://www.ruby-forum.com/t/find-composite-primary-keys/171528)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [July 4, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/find-composite-primary-keys/171528 "2009-07-04T23:23:45Z")

</div>

I have a problem running find using composite primary keys. I have the following models: Code : - fold - unfold class Stat \< ActiveRecord::Base set\_primary\_keys :user\_id, :score\_aspect belongs\_to :user Code…

---

## [:all or noop operator for find\_all\_by\_\*?](https://www.ruby-forum.com/t/all-or-noop-operator-for-find-all-by/171518)

<div class="topic-metadata">

**Author:** [@Felix\_SchSSS\_fer](https://www.ruby-forum.com/u/Felix_SchSSS_fer)\
**Replies:** 3\
**Last updated:** [July 4, 2009, 8:43pm UTC](https://www.ruby-forum.com/t/all-or-noop-operator-for-find-all-by/171518 "2009-07-04T20:43:21Z")

</div>

Hello, I’ve been looking for a way to noop a find\_all\_by. Use case: I have a function that takes a hash called options as argument, and that operates on a subset of Host objects as such: “”" client\_id = options\[:cli…

---

## [Beginner needs help](https://www.ruby-forum.com/t/beginner-needs-help/171444)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 6\
**Last updated:** [July 4, 2009, 8:19pm UTC](https://www.ruby-forum.com/t/beginner-needs-help/171444 "2009-07-04T20:19:34Z")

</div>

Hi, I am trying to follow the book ‘Beginning Ruby on Rails e-commerce’ examples. When I come to unit testing I get an error message: C:/Ruby/bin/ruby.exe -I"lib;test" “C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/r…

---

## [Table Inheritance based on a function](https://www.ruby-forum.com/t/table-inheritance-based-on-a-function/171245)

<div class="topic-metadata">

**Author:** [@bernd-vdb](https://www.ruby-forum.com/u/bernd-vdb)\
**Replies:** 4\
**Last updated:** [July 4, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/table-inheritance-based-on-a-function/171245 "2009-07-04T17:14:51Z")

</div>

Hello, we have a problem in a CMS project that we believe is basic for RoR developement and could concern others as well - or have already: RoR implements the ‘Single Table Inheritance’ (STI) Pattern: http://www.mart…

---

## [IOError while rendering and redirecting](https://www.ruby-forum.com/t/ioerror-while-rendering-and-redirecting/171537)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 1\
**Last updated:** [July 4, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/ioerror-while-rendering-and-redirecting/171537 "2009-07-04T15:49:00Z")

</div>

HI all, I am getting IOError while rendering view or redirecting. If i refresh the page the actual page is displaying. Please tell me wht is the problem and how to solve the problem. Regards, Raju

---

## [Scaffolding](https://www.ruby-forum.com/t/scaffolding/171541)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 3\
**Last updated:** [July 4, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/scaffolding/171541 "2009-07-04T15:47:47Z")

</div>

hi , i used the folllwing command to scaffold, G:\\my\\webblog\>ruby script/generate scaffold webblog id:integer title:string body :text created\_at:datetime after when i migrate with the follwing command rake db:migrat…

---

## [I'm stumped by this stupid newbie error I'm seeing... trying to figure out where to "look" next](https://www.ruby-forum.com/t/im-stumped-by-this-stupid-newbie-error-im-seeing-trying-to-figure-out-where-to-look-next/171529)

<div class="topic-metadata">

**Author:** [@rick](https://www.ruby-forum.com/u/rick)\
**Replies:** 5\
**Last updated:** [July 4, 2009, 3:44pm UTC](https://www.ruby-forum.com/t/im-stumped-by-this-stupid-newbie-error-im-seeing-trying-to-figure-out-where-to-look-next/171529 "2009-07-04T15:44:03Z")

</div>

On one of my new.html.erb files backed by a “matches\_controller” I’m getting the error: undefined method \`matches\_path’ for #ActionView::Base:0x2cfc748 I don’t understand where to start looking to try to understand wh…

---

## [How to dynamically load plugin files on every request?](https://www.ruby-forum.com/t/how-to-dynamically-load-plugin-files-on-every-request/171510)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 7\
**Last updated:** [July 4, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/how-to-dynamically-load-plugin-files-on-every-request/171510 "2009-07-04T15:31:50Z")

</div>

Hi, I have been developing a Rails plugin recently, and I have realised that for every change I make into files of my plugin, I have to restart the server to make changes take effect. While changes at application’s o…

---

## [Rake db:create == Protocol error](https://www.ruby-forum.com/t/rake-db-create-protocol-error/171505)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 9\
**Last updated:** [July 4, 2009, 3:28pm UTC](https://www.ruby-forum.com/t/rake-db-create-protocol-error/171505 "2009-07-04T15:28:08Z")

</div>

Hi, I’m attempting to follow this tutorial: To create a simple RoR app connected to a MySQL database. When I get to the point where I have to run “rake db:create” I get the error “Protocol error - db:migrate”. E.g: …

---

## [Problem for authorize.net in service merchant plugin](https://www.ruby-forum.com/t/problem-for-authorize-net-in-service-merchant-plugin/171545)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [July 4, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/problem-for-authorize-net-in-service-merchant-plugin/171545 "2009-07-04T14:37:39Z")

</div>

Hello, I used service merchant plugin in my application. using “paypal getway” it works fine. But when i tried authorize.net as a getway, it dose not work. It gives error StandardError in SubscriptionsController#su…

---

## [Error Messages while entering data in 2 tables with one form](https://www.ruby-forum.com/t/error-messages-while-entering-data-in-2-tables-with-one-form/171500)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 4\
**Last updated:** [July 4, 2009, 11:43am UTC](https://www.ruby-forum.com/t/error-messages-while-entering-data-in-2-tables-with-one-form/171500 "2009-07-04T11:43:38Z")

</div>

Hi All, I want to enter parameters in 2 tables which are submitted using one form. Following is the relation of models. In UserInfo.rb has\_one :user validates\_associated :user validates\_presence\_of :city In User.…

---

## [Trouble with email delivery](https://www.ruby-forum.com/t/trouble-with-email-delivery/171525)

<div class="topic-metadata">

**Author:** [@nathannever](https://www.ruby-forum.com/u/nathannever)\
**Replies:** 11\
**Last updated:** [July 4, 2009, 9:08am UTC](https://www.ruby-forum.com/t/trouble-with-email-delivery/171525 "2009-07-04T09:08:50Z")

</div>

Over the past few days I’ve been going crazy trying to get email delivery to work using RoR. From what I’ve read, settings look right, I have no clue what is wrong. I’m hoping the community can give me some insight on…

---

## [Compose\_primary\_keys](https://www.ruby-forum.com/t/compose-primary-keys/171443)

<div class="topic-metadata">

**Author:** [@Augustus\_C](https://www.ruby-forum.com/u/Augustus_C)\
**Replies:** 2\
**Last updated:** [July 4, 2009, 1:38am UTC](https://www.ruby-forum.com/t/compose-primary-keys/171443 "2009-07-04T01:38:28Z")

</div>

IÂ´m looking for a way to work with compose primary keys. I alredy know that plugin http://compositekeys.rubyforge.org/ but it doesnÂ´t have examples. Please help =\] – Horus Augustus C. C. Lima Sagarana Tech Mobil…

---

## [Results from Model.connection.execute](https://www.ruby-forum.com/t/results-from-model-connection-execute/171526)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [July 4, 2009, 1:37am UTC](https://www.ruby-forum.com/t/results-from-model-connection-execute/171526 "2009-07-04T01:37:53Z")

</div>

I am having trouble finding documentations on what this methods returns. I know for a SELECT query it will return an iterable object (although I can’t find any documentation on that). I am doing a DELETE query. When…

---

## [Generate model Test stats:hash/array? Is it possible?](https://www.ruby-forum.com/t/generate-model-test-stats-hash-array-is-it-possible/171523)

<div class="topic-metadata">

**Author:** [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Replies:** 1\
**Last updated:** [July 4, 2009, 1:37am UTC](https://www.ruby-forum.com/t/generate-model-test-stats-hash-array-is-it-possible/171523 "2009-07-04T01:37:18Z")

</div>

Is it possible to generate a model that way? Instead of, Test stat1:string stat2:integer stat3:string, is there a way to store arrays/hashes? Would I just use ‘integer\[\]’ or etc? What if I wanted an array of differen…

---

## [Tracking website sections](https://www.ruby-forum.com/t/tracking-website-sections/171475)

<div class="topic-metadata">

**Author:** [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Replies:** 3\
**Last updated:** [July 4, 2009, 12:22am UTC](https://www.ruby-forum.com/t/tracking-website-sections/171475 "2009-07-04T00:22:30Z")

</div>

I’d like some advise on how you handle marking website menus as ‘selected’ so that you can show different states based on which section of a site you’re in. An example is using tabs like the illustration below. When i…

---

## [A copy of ApplicationController has been removed from the module tree but is still active](https://www.ruby-forum.com/t/a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/171470)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 2\
**Last updated:** [July 4, 2009, 12:19am UTC](https://www.ruby-forum.com/t/a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/171470 "2009-07-04T00:19:35Z")

</div>

Hi, I’ve been getting weird errors like the title ever since using rufus- scheduler, although I haven’t conclusively proven it to be the problem. I also noticed, though, that rufus schedule gave errors like “undefine…

---

## [Wrong number of arguments (0 for 1) in \[\]](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-in/171474)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 2\
**Last updated:** [July 3, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/wrong-number-of-arguments-0-for-1-in/171474 "2009-07-03T23:29:19Z")

</div>

I am creating a multiple-selection list box with : \<% form\_\_list1 = \[\] %\> \<%= select\_tag, options\_for\_select(\[“A”,“B”,“C”,“D”\], selected =“A”), html\_options = {“size” =\> 5, “multiple” =\> true}) %\> I get wrong number…

---

## [Jruby + SQLServer](https://www.ruby-forum.com/t/jruby-sqlserver/171494)

<div class="topic-metadata">

**Author:** [@Augustus\_C](https://www.ruby-forum.com/u/Augustus_C)\
**Replies:** 4\
**Last updated:** [July 3, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/jruby-sqlserver/171494 "2009-07-03T22:51:36Z")

</div>

Hi, IÂ´m using jruby and sqladapter.jar to conect in my sql server. but this integration dont work well yet. my database.yml config: host: localhost adapter: jdbc username: sasa password: senha driver: com.microsoft.s…

---

## [Drag and Drop with Scriptaculous](https://www.ruby-forum.com/t/drag-and-drop-with-scriptaculous/171517)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 0\
**Last updated:** [July 3, 2009, 9:52pm UTC](https://www.ruby-forum.com/t/drag-and-drop-with-scriptaculous/171517 "2009-07-03T21:52:01Z")

</div>

I have two side by side lists on a page, form\_\_list1 and form\_\_list2. I want to drag ffrom list 1 to list 2. I am terribly confused on what I must set up to make this drag and drop with Scritpaculous occur (and where …

---

## [Rails and Git: Rails code to serve git repositories?](https://www.ruby-forum.com/t/rails-and-git-rails-code-to-serve-git-repositories/171488)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 3\
**Last updated:** [July 3, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/rails-and-git-rails-code-to-serve-git-repositories/171488 "2009-07-03T19:58:38Z")

</div>

rails and git people, I am searching for some Rails code I can use to serve git repositories. Please alert me if you know of any projects which have this use-case. In other words I want to create my own github. than…

---

## [Plugin for personal messages system?](https://www.ruby-forum.com/t/plugin-for-personal-messages-system/171506)

<div class="topic-metadata">

**Author:** [@rubyfox](https://www.ruby-forum.com/u/rubyfox)\
**Replies:** 1\
**Last updated:** [July 3, 2009, 7:03pm UTC](https://www.ruby-forum.com/t/plugin-for-personal-messages-system/171506 "2009-07-03T19:03:42Z")

</div>

Hi all, I’m kind of surprised there is no maintained plugin which can get me out-of-the box personal messages system. The only two close things google cames up with is GitHub - psergi/acts\_as\_messageable: private mes…

---

## [Application doesn't work on two different machines](https://www.ruby-forum.com/t/application-doesnt-work-on-two-different-machines/171445)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 15\
**Last updated:** [July 3, 2009, 6:49pm UTC](https://www.ruby-forum.com/t/application-doesnt-work-on-two-different-machines/171445 "2009-07-03T18:49:05Z")

</div>

Hello, I’ve got an application which I am developing on a Windows machine and everything works just fine. Once I upload it on my server (Debian) and test it I get following error: ActionView::TemplateError (undefined…

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

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