# Rails

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

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

---

## [Problem with checkboxes updating table](https://www.ruby-forum.com/t/problem-with-checkboxes-updating-table/225987)

<div class="topic-metadata">

**Author:** [@weloki](https://www.ruby-forum.com/u/weloki)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/problem-with-checkboxes-updating-table/225987 "2008-01-09T23:15:34Z")

</div>

I’m having issues getting checkboxes to update a cross-reference table correctly. I keep seeing entries in the locations\_users table, for location\_id and user\_id, “11” and “2”, respectively. The user id is fine, but t…

---

## [\[ANN\] dike-0.0.4.rb](https://www.ruby-forum.com/t/ann-dike-0-0-4-rb/125530)

<div class="topic-metadata">

**Author:** [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/ann-dike-0-0-4-rb/125530 "2008-01-09T23:02:21Z")

</div>

NAME dike SYNOPSIS a simple memory leak detector for ruby with preconfigured rails hooks. INSTALL gem install dike URIS http://www.codeforpeople.com/lib/ruby/ http://rubyforge.org/projects/codeforpeople/ DESCRI…

---

## [How to test sending mails in model](https://www.ruby-forum.com/t/how-to-test-sending-mails-in-model/124867)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/how-to-test-sending-mails-in-model/124867 "2008-01-09T22:58:01Z")

</div>

Hi all, I have this model (see the attachment). I has an after\_save filter which sends mail. But I don’t know how to test it. Most things I find about testing the sending of e-mails is about the ActionMailer class. D…

---

## [Deleting HABTM](https://www.ruby-forum.com/t/deleting-habtm/125522)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/deleting-habtm/125522 "2008-01-09T22:37:41Z")

</div>

Hi, I’ve got a design which allows two objects in a HABTM, for example, an artist and cd’s; in that the artist can appear on many cds and many cds have the artist. to make the association i’ve been using @cd.artist \<…

---

## [Strange testing situation](https://www.ruby-forum.com/t/strange-testing-situation/125513)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/strange-testing-situation/125513 "2008-01-09T22:32:25Z")

</div>

I have a number of functional tests that check the response that was created by the JavaScriptGenerator for some redirects. ie: render :update do |page| page.redirect\_to comment\_path(@comment) end The tests’ asserti…

---

## [Vendor/plugins help](https://www.ruby-forum.com/t/vendor-plugins-help/125524)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/vendor-plugins-help/125524 "2008-01-09T22:30:04Z")

</div>

Monday I was working in a project and having no problems. Today I fire it up and suddenly none of the items in vendor/plugins are being found. I know I can force it, but I’d rather find the root cause. Any hints as …

---

## [Can I call a function from app/controller/application.rb into app/models?](https://www.ruby-forum.com/t/can-i-call-a-function-from-app-controller-application-rb-into-app-models/125520)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/can-i-call-a-function-from-app-controller-application-rb-into-app-models/125520 "2008-01-09T22:15:54Z")

</div>

Can I call a function from app/controller/application.rb in app/ models? because when I run test units, I got “NoMethodError: undefined method \`get\_person’ for #Class:0x6aec8f0” but I define get\_person into applicat…

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125514)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 9:40pm UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125514 "2008-01-09T21:40:29Z")

</div>

hi, since i use protect\_from\_forgery in my code i got sometime some “ActionController::InvalidAuthenticityToken” exception. In rescue\_action\_in\_public in application.rb, i handle this exception with a redirect but it …

---

## [Problem with association](https://www.ruby-forum.com/t/problem-with-association/125491)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/problem-with-association/125491 "2008-01-09T21:10:25Z")

</div>

i have 2 models: class User \< ActiveRecord::Base has\_many :mails end class Mail \< ActiveRecord::Base belongs\_to :receiver ,:class\_name =\> ‘User’,:foreign\_key =\> ‘receiver\_id’ belongs\_to :sender,:class\_name =\> ‘Use…

---

## [Ajax Confusion](https://www.ruby-forum.com/t/ajax-confusion/125402)

<div class="topic-metadata">

**Author:** [@JonathanB](https://www.ruby-forum.com/u/JonathanB)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/ajax-confusion/125402 "2008-01-09T21:07:36Z")

</div>

Ok, there’s two versions to this question, the short one and the long one. Short Version: Is there anything special you have to do to get Ajax to work in Rails on IE that you don’t have to do to get it work in FF? Lo…

---

## [Acts\_as\_list index has to be :position?](https://www.ruby-forum.com/t/acts-as-list-index-has-to-be-position/125106)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/acts-as-list-index-has-to-be-position/125106 "2008-01-09T20:52:58Z")

</div>

I’m using MessageBoard (child) to acts\_as\_list for Forum (parent). The models looks as such: class Forum \< ActiveRecord::Base #This is a superset of message boards has\_many :message\_boards, :order =\> :order, :depende…

---

## [Table relationship question](https://www.ruby-forum.com/t/table-relationship-question/125502)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 8:17pm UTC](https://www.ruby-forum.com/t/table-relationship-question/125502 "2008-01-09T20:17:34Z")

</div>

if I want to allow users to rate each other… would this be the way to do it? rating model: belongs\_to :users foriegn\_key=\>‘rated\_user\_id’ belongs\_to :users foriegn\_key=\>‘rating\_user\_id’ user model: has\_many :ratin…

---

## [Move data from popup back to main window](https://www.ruby-forum.com/t/move-data-from-popup-back-to-main-window/125496)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 5\
**Last updated:** [January 9, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/move-data-from-popup-back-to-main-window/125496 "2008-01-09T19:44:03Z")

</div>

Anyway to do this without using an rjs file? Otherwise, I’m guessing AJAX is the only way.

---

## [Paginate with acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/paginate-with-acts-as-taggable-on-steroids/125116)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/paginate-with-acts-as-taggable-on-steroids/125116 "2008-01-09T19:42:23Z")

</div>

How can I do that? I have downloaded will\_paginate but seems it wont work together. I tried this approach: options=Post.find\_options\_for\_find\_tagged\_with(“en, news”).merge(:page=\>1) posts=Post.paginate(options) but…

---

## [Insert into with only filfull fields](https://www.ruby-forum.com/t/insert-into-with-only-filfull-fields/125432)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 8\
**Last updated:** [January 9, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/insert-into-with-only-filfull-fields/125432 "2008-01-09T19:39:25Z")

</div>

Hello, when i create a record, User.create(:login=\>‘john’, :password =\> ‘password’), active record behaviour is to include every of my fields in the SQL query : INSERT INTO users (“login”, “password”, “another\_column…

---

## [Status on jquery compatibility with rails?](https://www.ruby-forum.com/t/status-on-jquery-compatibility-with-rails/125501)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/status-on-jquery-compatibility-with-rails/125501 "2008-01-09T19:37:05Z")

</div>

I haven’t been able to find any recent threads on the compatibility between jquery and prototype and I was wondering if anyone knows anything about this. In a screencast I watched, it was mentioned that there is now a…

---

## [\*\*Full-time Ruby on Rails Programmer Job Opp in Nashville, TN\*\*](https://www.ruby-forum.com/t/full-time-ruby-on-rails-programmer-job-opp-in-nashville-tn/125499)

<div class="topic-metadata">

**Author:** [@Lauren](https://www.ruby-forum.com/u/Lauren)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/full-time-ruby-on-rails-programmer-job-opp-in-nashville-tn/125499 "2008-01-09T18:49:19Z")

</div>

Hello All, My name is Lauren Wulf and I am a technical recruiter for Brooksouce in Nashville, TN. I have a client here in Nashville that is looking for a Full-time Ruby on Rails programmer. This client is in the heal…

---

## [Problems with widgEditor (HTML rich text editor)](https://www.ruby-forum.com/t/problems-with-widgeditor-html-rich-text-editor/125467)

<div class="topic-metadata">

**Author:** [@fernan2](https://www.ruby-forum.com/u/fernan2)\
**Replies:** 4\
**Last updated:** [January 9, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/problems-with-widgeditor-html-rich-text-editor/125467 "2008-01-09T18:22:40Z")

</div>

Hello, I need a HTML rich text editor for a field, and widgEditor seems to be just what I need: http://www.themaninblue.com/experiment/widgEditor/ I’ve installed it, following the Aidanf.net’s post: http://www.aidanf…

---

## [Nginx Rewrite Questions](https://www.ruby-forum.com/t/nginx-rewrite-questions/125460)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 6:01pm UTC](https://www.ruby-forum.com/t/nginx-rewrite-questions/125460 "2008-01-09T18:01:25Z")

</div>

okay, well here’s the prob: I have a current site at domain.tld that site is now redirecting to forums.domain.tld; the rails app is planned to reside on domain.tld but all old urls domain.tld/forumdisplay.php? =5 for …

---

## [Shared partial and controller helper](https://www.ruby-forum.com/t/shared-partial-and-controller-helper/125494)

<div class="topic-metadata">

**Author:** [@rubeez](https://www.ruby-forum.com/u/rubeez)\
**Replies:** 2\
**Last updated:** [January 9, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/shared-partial-and-controller-helper/125494 "2008-01-09T17:42:45Z")

</div>

Hi all, I have a shared partial that calls a helper function render\_foo. I also have render\_foo defined in Control1Helper and Control2Helper (each slightly different) However, rails seems to only use the render\_foo v…

---

## [Find.all Question](https://www.ruby-forum.com/t/find-all-question/125495)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/find-all-question/125495 "2008-01-09T17:35:06Z")

</div>

Hi, I’ve heard that it’s preferred not to use Model\_Name.find(:all, :conditions =\> \[“blah = 2”\] And that using something like Model\_Name.find\_by\_blah(2) is better. If that’s the case, how would I do this? @all\_apple…

---

## [How to hide a toggling page element by default](https://www.ruby-forum.com/t/how-to-hide-a-toggling-page-element-by-default/125447)

<div class="topic-metadata">

**Author:** [@athem](https://www.ruby-forum.com/u/athem)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/how-to-hide-a-toggling-page-element-by-default/125447 "2008-01-09T17:23:14Z")

</div>

I have a link in an rhtml template: \<%= link\_to\_remote “Edit”, :url =\> {:action =\> :toggle\_edit\_campaign} %\> that executes an action to toggle a page element (edit\_campaign): def toggle\_edit\_campaign render :update …

---

## [What is the optimal number of controllers for this?](https://www.ruby-forum.com/t/what-is-the-optimal-number-of-controllers-for-this/125487)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/what-is-the-optimal-number-of-controllers-for-this/125487 "2008-01-09T16:23:24Z")

</div>

Hi, I’m still adjusting to Ruby on Rails and the MVC model. But I wanted to query the group on what the best design is – i.e. how many controllers should I have for the following. A customer will register on our si…

---

## [Installing pagination problem?](https://www.ruby-forum.com/t/installing-pagination-problem/125431)

<div class="topic-metadata">

**Author:** [@marclafia](https://www.ruby-forum.com/u/marclafia)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/installing-pagination-problem/125431 "2008-01-09T16:15:10Z")

</div>

I am trying to work through agile web development on rails , I have created a controller with just the following: scaffold :product I get “undefined method scaffold” error from the browswer. so i installed script/p…

---

## [Beginner: How to use data from external Database](https://www.ruby-forum.com/t/beginner-how-to-use-data-from-external-database/125486)

<div class="topic-metadata">

**Author:** [@styrmis](https://www.ruby-forum.com/u/styrmis)\
**Replies:** 0\
**Last updated:** [January 9, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/beginner-how-to-use-data-from-external-database/125486 "2008-01-09T15:55:35Z")

</div>

Hi, im new to RoR so sorry if the questions sounds stupid to you. Im trying to build a tool for a browsergame. The game allows access to its database and the db looks like this: table villages: id int(9) unsigned NO…

---

## [Don't show form fields](https://www.ruby-forum.com/t/dont-show-form-fields/125484)

<div class="topic-metadata">

**Author:** [@fcano](https://www.ruby-forum.com/u/fcano)\
**Replies:** 1\
**Last updated:** [January 9, 2008, 3:47pm UTC](https://www.ruby-forum.com/t/dont-show-form-fields/125484 "2008-01-09T15:47:04Z")

</div>

Hi! I have just changed to Rails 2.0. I have red how the new scaffold is used. But while reading and doing a guide, I have this problem. After creating a scaffold of my model I implement the migration and rake it. I …

---

## [Trouble with controller caching](https://www.ruby-forum.com/t/trouble-with-controller-caching/115184)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 13\
**Last updated:** [January 9, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/trouble-with-controller-caching/115184 "2008-01-09T15:40:33Z")

</div>

Hi All! I have an application with a frontend and admin backend. In both sections there are controllers with the same name (e.g. CampaignsController and Admin::CampaignsController). The front and backend controllers …

---

## [Firedraw: Sample Flow Diagram](https://www.ruby-forum.com/t/firedraw-sample-flow-diagram/125483)

<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:17pm UTC](https://www.ruby-forum.com/t/firedraw-sample-flow-diagram/125483 "2008-01-09T15:17:06Z")

</div>

Dear Friends, Kindly view a sample “File Share” flow diagram drawn using Firedraw at follwoing llink http://www.firedraw.org/firedraw/quick\_view?doc\_id=25\_1199249308.00296 This link is extracted from File share email…

---

## [Paginate is deprecated ---- help needed!](https://www.ruby-forum.com/t/paginate-is-deprecated-help-needed/124980)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 4\
**Last updated:** [January 9, 2008, 3:15pm UTC](https://www.ruby-forum.com/t/paginate-is-deprecated-help-needed/124980 "2008-01-09T15:15:57Z")

</div>

Hi all, when i went to run my test in ROR it gives a error as DEPRECATION WARNING: paginate is deprecated and will be removed from Rails 2.0 (Pagination is moving to a plugin in Rails 2.0: script/plugin install svn:/…

---

## [Trouble with Acts\_as\_list::move\_higher/lower](https://www.ruby-forum.com/t/trouble-with-acts-as-list-move-higher-lower/125476)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 3\
**Last updated:** [January 9, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/trouble-with-acts-as-list-move-higher-lower/125476 "2008-01-09T15:14:10Z")

</div>

I have the model MessageBoard acts\_as\_list for Forum, but for some reason, the function move\_higher/lower doesn’t seem to do its job in the test file I wrote for forum\_test.rb: def test\_board\_up forum = Forum.new(:tit…

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

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