# Rails

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

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

---

## [Filtering For A Result - Advice](https://www.ruby-forum.com/t/filtering-for-a-result-advice/140753)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 9:20am UTC](https://www.ruby-forum.com/t/filtering-for-a-result-advice/140753 "2008-06-18T09:20:34Z")

</div>

I’m creating an advanced search form and I have to filter the results based on whether particular rows exist in other tables. For example: Project has\_many ResearchProjects Project.find(:all, :joins =\> “INNER JOIN r…

---

## [Best CMS plug-in](https://www.ruby-forum.com/t/best-cms-plug-in/140750)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 8:42am UTC](https://www.ruby-forum.com/t/best-cms-plug-in/140750 "2008-06-18T08:42:41Z")

</div>

Hi, If you have used the CMS plug-in, kindly let me know why you used that plug-in and is there any other best plug-in. Thanks, Ayyanar. A

---

## [Has\_many through. How to form find](https://www.ruby-forum.com/t/has-many-through-how-to-form-find/140682)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 2\
**Last updated:** [June 18, 2008, 8:37am UTC](https://www.ruby-forum.com/t/has-many-through-how-to-form-find/140682 "2008-06-18T08:37:35Z")

</div>

I have this tipical has\_many :through scenario: class Docs \< ActiveRecord::Base has\_many :doc\_cats has\_many :categories, :through =\> :doc\_cats end class Categories \< ActiveRecord::Base has\_many :doc\_cats …

---

## [Rindex not working with objects from db model](https://www.ruby-forum.com/t/rindex-not-working-with-objects-from-db-model/140712)

<div class="topic-metadata">

**Author:** [@alais](https://www.ruby-forum.com/u/alais)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 7:43am UTC](https://www.ruby-forum.com/t/rindex-not-working-with-objects-from-db-model/140712 "2008-06-18T07:43:11Z")

</div>

I’m sorting a separate list that doesn’t contain a certain user’s attribute, but trying to but that certain user’s attribute on the separate percentile. test\_scores = Testscore.find(:all, :conditions=\> {…}) my\_testsc…

---

## [Anyone integrated with Avalara?](https://www.ruby-forum.com/t/anyone-integrated-with-avalara/140745)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 6:41am UTC](https://www.ruby-forum.com/t/anyone-integrated-with-avalara/140745 "2008-06-18T06:41:07Z")

</div>

I’m building an ecommerce system that aggregates sellers and I’m looking to automate the tax compliance. Since we have people buying from every state, and potentially selling from any state, we can’t just keep up on o…

---

## [Dojo](https://www.ruby-forum.com/t/dojo/140741)

<div class="topic-metadata">

**Author:** [@kisrti](https://www.ruby-forum.com/u/kisrti)\
**Replies:** 0\
**Last updated:** [June 18, 2008, 6:03am UTC](https://www.ruby-forum.com/t/dojo/140741 "2008-06-18T06:03:23Z")

</div>

In my form i’m having two Filtering select. I want to change values in 1 filtering select depending upon selection of other filtering select. Basically i want to change store attribute of Filtering select

---

## [Rails 2.1 - turing off time stamped migrations](https://www.ruby-forum.com/t/rails-2-1-turing-off-time-stamped-migrations/140740)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 5:49am UTC](https://www.ruby-forum.com/t/rails-2-1-turing-off-time-stamped-migrations/140740 "2008-06-18T05:49:38Z")

</div>

I have read that you could turn of time stamped migrations by adding the line “config.active\_record.timestamped\_migrations = false” to your environment.rb. After I add this line I get the following error when running …

---

## [AJAX Action from onchange](https://www.ruby-forum.com/t/ajax-action-from-onchange/140716)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [June 18, 2008, 4:51am UTC](https://www.ruby-forum.com/t/ajax-action-from-onchange/140716 "2008-06-18T04:51:38Z")

</div>

How do I make an Ajax action run by an :onchange in a select?

---

## [Refactoring Large Controllers](https://www.ruby-forum.com/t/refactoring-large-controllers/140732)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 1\
**Last updated:** [June 18, 2008, 3:14am UTC](https://www.ruby-forum.com/t/refactoring-large-controllers/140732 "2008-06-18T03:14:31Z")

</div>

Hi all, I’ve got a Ruby on Rails application where I render a lot of RJS stuff onto a page. Because of this I’ve kept all the logic inside pretty much one controller. This controller is now pretty big with lots of fu…

---

## [Posting files from a Desktop Application](https://www.ruby-forum.com/t/posting-files-from-a-desktop-application/140715)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 12\
**Last updated:** [June 18, 2008, 12:35am UTC](https://www.ruby-forum.com/t/posting-files-from-a-desktop-application/140715 "2008-06-18T00:35:43Z")

</div>

Ok, I have an insanely crazy request, but it’s a request nonetheless. I have a client that wants to me to create an application for viewing photos online. Sounds easy enough, right? Well, here’s the kicker, I devel…

---

## [Populate textarea with Multiple Newlines](https://www.ruby-forum.com/t/populate-textarea-with-multiple-newlines/135550)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 18, 2008, 12:14am UTC](https://www.ruby-forum.com/t/populate-textarea-with-multiple-newlines/135550 "2008-06-18T00:14:34Z")

</div>

I’m having trouble pre-populationg textarea with content that has multiple newlines. It seems to be treating two \\n characters as one \\n character. In fact I believe we have a \\r\\n\\r\\n but for some reason the text a…

---

## [Javascript (or otherwise) "Waiting" page?](https://www.ruby-forum.com/t/javascript-or-otherwise-waiting-page/140724)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 2\
**Last updated:** [June 18, 2008, 12:03am UTC](https://www.ruby-forum.com/t/javascript-or-otherwise-waiting-page/140724 "2008-06-18T00:03:24Z")

</div>

Hi All, I’m trying to figure out the best of a million ways to generate a waiting page. For instance, if I have administrators waiting to approve “Posts” that are in queue, and there are currently no “Posts” waiting…

---

## [Rails Initialization - where to put requires?](https://www.ruby-forum.com/t/rails-initialization-where-to-put-requires/140670)

<div class="topic-metadata">

**Author:** [@Dave\_Grijalva](https://www.ruby-forum.com/u/Dave_Grijalva)\
**Replies:** 1\
**Last updated:** [June 17, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/rails-initialization-where-to-put-requires/140670 "2008-06-17T23:47:34Z")

</div>

While upgrading my app to use Rails 2.1, the clean place to put my gem requires makes my non-gem requires stand out as needing a place to live. Where is the best place to put requires of either libs from my app (in t…

---

## [To\_json and attribute order?](https://www.ruby-forum.com/t/to-json-and-attribute-order/140722)

<div class="topic-metadata">

**Author:** [@dweinand](https://www.ruby-forum.com/u/dweinand)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/to-json-and-attribute-order/140722 "2008-06-17T23:41:07Z")

</div>

hello, is there a reason why my attributes are not in the order as i declare them in my hash? two pasties to see what i mean. code: http://pastie.org/pastes/216649 result: http://pastie.org/pastes/216657 the :id …

---

## [File\_send confused](https://www.ruby-forum.com/t/file-send-confused/140725)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/file-send-confused/140725 "2008-06-17T23:34:37Z")

</div>

Anyone see where I am going wrong here? Error = undefined method \`filename=’ Model class Upload \< ActiveRecord::Base def upload=(upload\_field) self.filename = upload\_field.original\_filename self.content\_type = uplo…

---

## [Hostmonster](https://www.ruby-forum.com/t/hostmonster/140723)

<div class="topic-metadata">

**Author:** [@eduardopa](https://www.ruby-forum.com/u/eduardopa)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 11:34pm UTC](https://www.ruby-forum.com/t/hostmonster/140723 "2008-06-17T23:34:37Z")

</div>

Hi, Has anybody here used hostmonster for a rails application?

---

## [Rails 2.1 migrations default value problem](https://www.ruby-forum.com/t/rails-2-1-migrations-default-value-problem/140720)

<div class="topic-metadata">

**Author:** [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/rails-2-1-migrations-default-value-problem/140720 "2008-06-17T23:27:33Z")

</div>

I am using Rails 2.1 and mysql. I have a very simple migration: class CreateTasks \< ActiveRecord::Migration def self.up create\_table :tasks do |t| t.column :job\_id, :integer, :null =\> false t.column :name, :strin…

---

## [.htaccess and Mongrel](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718)

<div class="topic-metadata">

**Author:** [@histrionics](https://www.ruby-forum.com/u/histrionics)\
**Replies:** 2\
**Last updated:** [June 17, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/htaccess-and-mongrel/140718 "2008-06-17T22:45:03Z")

</div>

I would like to implement a .htaccess security setup like the one referenced here: http://www.0x000000.com/index.php?i=558&bin=1000101110 However, i am using mongrel and it bypasses .htaccess rules. Does anyone have …

---

## [Error in NetBeanse](https://www.ruby-forum.com/t/error-in-netbeanse/140690)

<div class="topic-metadata">

**Author:** [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Replies:** 1\
**Last updated:** [June 17, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/error-in-netbeanse/140690 "2008-06-17T22:27:17Z")

</div>

Hi, when i should migration database to curent version in NetBeanse IDE so do get a error. I have install MySQL and it works, and the database ‘weblogs\_scout’ is okay. development: adapter: mysql encoding: utf8 …

---

## [\[ANN\] Book released "Aptana RadRails: An IDE for Rails Development"](https://www.ruby-forum.com/t/ann-book-released-aptana-radrails-an-ide-for-rails-development/140675)

<div class="topic-metadata">

**Author:** [@javier\_ramirez](https://www.ruby-forum.com/u/javier_ramirez)\
**Replies:** 6\
**Last updated:** [June 17, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/ann-book-released-aptana-radrails-an-ide-for-rails-development/140675 "2008-06-17T22:02:52Z")

</div>

Hi, Some months ago, a person from Packt Publishing posted a message in this list looking for potential Authors/Reviewers for new Ruby on Rails books. Now I’m proud to announce my book \[1\] “Aptana RadRails: An IDE fo…

---

## [Make a clean scaffold](https://www.ruby-forum.com/t/make-a-clean-scaffold/140363)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 11\
**Last updated:** [June 17, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/make-a-clean-scaffold/140363 "2008-06-17T21:39:24Z")

</div>

I use Ajax more and more and I don’t see how a normal Scaffold for Rails 2+ is useful for that â€“ with the ‘respond\_to do |format|’. Or am I missing something? So how do I make a clean scaffold so I get: def index @…

---

## [Take care to ruby 1.8.7 in debian unstable](https://www.ruby-forum.com/t/take-care-to-ruby-1-8-7-in-debian-unstable/139406)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 6\
**Last updated:** [June 17, 2008, 9:27pm UTC](https://www.ruby-forum.com/t/take-care-to-ruby-1-8-7-in-debian-unstable/139406 "2008-06-17T21:27:36Z")

</div>

Hi, Debian users may experience some troubles with Rails and the latest ruby 1.8.7 package into unstable. To keep ruby 1.8.6, few lines are needed into your apt configuration : http://dev.hubiquity.fr/2008/6/3/avoid…

---

## [Rails is misinterpreting model name](https://www.ruby-forum.com/t/rails-is-misinterpreting-model-name/140656)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 6\
**Last updated:** [June 17, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/rails-is-misinterpreting-model-name/140656 "2008-06-17T20:58:34Z")

</div>

I have two models class Ferm \< AR::Base has\_many :daily\_analyses end class DailyAnalysis \< AR::Base belongs\_to :ferm end $ script/console Loading development environment (Rails 2.0.2) f = Ferm.find(:first) =\> …

---

## [RJSdisplayed when using back button?](https://www.ruby-forum.com/t/rjsdisplayed-when-using-back-button/140711)

<div class="topic-metadata">

**Author:** [@andywatts](https://www.ruby-forum.com/u/andywatts)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/rjsdisplayed-when-using-back-button/140711 "2008-06-17T20:26:56Z")

</div>

Given an action that responds to regular requests and XHR requests. Eg. if request.xhr? then render :update do |page| page.visual… end elsif !request.xhr? then render :template =\> … end Using the browser back butt…

---

## [Paginating\_find - selecting 20+ records grouped by date without breaking the day across multiple pa](https://www.ruby-forum.com/t/paginating-find-selecting-20-records-grouped-by-date-without-breaking-the-day-across-multiple-pa/140710)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 0\
**Last updated:** [June 17, 2008, 8:24pm UTC](https://www.ruby-forum.com/t/paginating-find-selecting-20-records-grouped-by-date-without-breaking-the-day-across-multiple-pa/140710 "2008-06-17T20:24:43Z")

</div>

Hi there, I’m using the paginating\_find plugin for one of my more popular apps. I’ve gotten a few requests from users asking not to break records associated with a given date across multiple pages. Right now, I speci…

---

## [How to call the rhtml file from the helper method?](https://www.ruby-forum.com/t/how-to-call-the-rhtml-file-from-the-helper-method/140662)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [June 17, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/how-to-call-the-rhtml-file-from-the-helper-method/140662 "2008-06-17T19:05:41Z")

</div>

Hi, Anyone knows how to call the rhtml file from the helper method? Thanks, Ayyanar. A

---

## [Adding javascript to f.text\_field](https://www.ruby-forum.com/t/adding-javascript-to-f-text-field/140560)

<div class="topic-metadata">

**Author:** [@splashlin](https://www.ruby-forum.com/u/splashlin)\
**Replies:** 1\
**Last updated:** [June 17, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/adding-javascript-to-f-text-field/140560 "2008-06-17T18:59:10Z")

</div>

In a current project of mine I have a div field that is located behind a text\_field that is acting like a row in a table. Whenever someone hovers over the whitespace in the row the background color changes. However, …

---

## [Why is File.Move method Not Found?](https://www.ruby-forum.com/t/why-is-file-move-method-not-found/140630)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 11\
**Last updated:** [June 17, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/why-is-file-move-method-not-found/140630 "2008-06-17T18:55:00Z")

</div>

Ok so I am looking at this api : and I am trying to use the move method here : File.open(movefrompath, "wb") File.move(movefrompath ,movetopath, true) NoMethodError (undefined method move' for File:Class): /…

---

## [Scaffolding broken in Rails 2.1.0](https://www.ruby-forum.com/t/scaffolding-broken-in-rails-2-1-0/140681)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 13\
**Last updated:** [June 17, 2008, 6:30pm UTC](https://www.ruby-forum.com/t/scaffolding-broken-in-rails-2-1-0/140681 "2008-06-17T18:30:15Z")

</div>

Hi, I trying to follow the tutorial in Agile Web D. with Rails Second Ed using Rails 2.1.0. So far I’ve overcome problems with missing scaffolding, missing classic\_pagination, missing svn (required to install classic…

---

## [Another reason to know Ruby better](https://www.ruby-forum.com/t/another-reason-to-know-ruby-better/140693)

<div class="topic-metadata">

**Author:** [@pkoebbe](https://www.ruby-forum.com/u/pkoebbe)\
**Replies:** 3\
**Last updated:** [June 17, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/another-reason-to-know-ruby-better/140693 "2008-06-17T18:29:07Z")

</div>

We’ve heard the more knowledgeable of the community say that we should invest some time into learning and understanding Ruby in our quest to master Rails. This morning, I stumbled on a good reason to do so. So, to the…

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

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