# Rails

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

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

---

## [Rails 3 beta plugins](https://www.ruby-forum.com/t/rails-3-beta-plugins/185648)

<div class="topic-metadata">

**Author:** [@kfmfe04](https://www.ruby-forum.com/u/kfmfe04)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/rails-3-beta-plugins/185648 "2010-03-24T15:49:27Z")

</div>

Has anyone actually installed a plugin? I have used rails plugin install git://github.com/binarylogic/authlogic.git I reacts too fast - doesn’t complain but you can’t find the plugin anywhere. I have seen people giv…

---

## [Passenger Error in apache2](https://www.ruby-forum.com/t/passenger-error-in-apache2/185675)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/passenger-error-in-apache2/185675 "2010-03-24T15:12:29Z")

</div>

I installed Passenger successfully . After installing I have added below three lines in apache2.conf. LoadModule passenger\_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod\_passenger.so PassengerRoo…

---

## [FCKeditor.ReplaceAllTextareas() error](https://www.ruby-forum.com/t/fckeditor-replacealltextareas-error/185672)

<div class="topic-metadata">

**Author:** [@salma](https://www.ruby-forum.com/u/salma)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/fckeditor-replacealltextareas-error/185672 "2010-03-24T14:38:10Z")

</div>

Hi, First sorry for my bad English. I’m trying to use the method ReplaceAllTextareas(). I put the following line in the layout/aplication.html.erb \<!body onLoad=“javascript: FCKeditor.ReplaceAllTextareas()”\> when I…

---

## [Problem Installing Passenger](https://www.ruby-forum.com/t/problem-installing-passenger/185667)

<div class="topic-metadata">

**Author:** [@droopy](https://www.ruby-forum.com/u/droopy)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/problem-installing-passenger/185667 "2010-03-24T14:21:39Z")

</div>

Hi there, I’m trying to install passenger on a hosted server which has Ubuntu 9.04 Ruby 1.8.6 Rails 2.3.5 Apache 2 I had some trouble with gem install passenger, but went through after installing build-essential w…

---

## [Fixtures and Associations](https://www.ruby-forum.com/t/fixtures-and-associations/185628)

<div class="topic-metadata">

**Author:** [@pazuzu](https://www.ruby-forum.com/u/pazuzu)\
**Replies:** 8\
**Last updated:** [March 24, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/fixtures-and-associations/185628 "2010-03-24T14:17:28Z")

</div>

I have a concrete table with an associated join table and I’m trying to load up some test data but cannot seem to get the fixtures file correct. The parent/child relationship works great but the fixtures fail to load. …

---

## [HTTP 505 Error](https://www.ruby-forum.com/t/http-505-error/185669)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 1\
**Last updated:** [March 24, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/http-505-error/185669 "2010-03-24T13:51:47Z")

</div>

I am trying to make a GET request to the below listed url which should return an XML. When I put the compete url in my browser, I get the intended XML. http://axml.travelnow.com/external/xmlinterface.jsp?cid=1&resType…

---

## [Add contacts in those excel file to contact list](https://www.ruby-forum.com/t/add-contacts-in-those-excel-file-to-contact-list/185655)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 12:27pm UTC](https://www.ruby-forum.com/t/add-contacts-in-those-excel-file-to-contact-list/185655 "2010-03-24T12:27:31Z")

</div>

hi i wanted to upload a file using file uploader. alsoi wanted to add those contacts in those excel file to contact list how i can do this in rails.pls help

---

## [Rendering simple html from view/controller](https://www.ruby-forum.com/t/rendering-simple-html-from-view-controller/184989)

<div class="topic-metadata">

**Author:** [@adedip](https://www.ruby-forum.com/u/adedip)\
**Replies:** 10\
**Last updated:** [March 24, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/rendering-simple-html-from-view-controller/184989 "2010-03-24T12:09:49Z")

</div>

I start apologies for the silly question…but: how do I show the content of a view in a controller by url I mean why, with the starting rails conf and I simple scaffold done, i can’t do root/:controller/:action and see…

---

## [Regular expression](https://www.ruby-forum.com/t/regular-expression/185609)

<div class="topic-metadata">

**Author:** [@mmmjr1](https://www.ruby-forum.com/u/mmmjr1)\
**Replies:** 7\
**Last updated:** [March 24, 2010, 10:44am UTC](https://www.ruby-forum.com/t/regular-expression/185609 "2010-03-24T10:44:28Z")

</div>

Hi, IÂ´m trying to write a regular expression to get the substring “block” in: “module$block.item” IÂ´ve reached the obvious /$.\*./ witch returns “$block.” substring. How do I get directly the “block” substring?

---

## [Attr\_accessor as boolean](https://www.ruby-forum.com/t/attr-accessor-as-boolean/185656)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 9:50am UTC](https://www.ruby-forum.com/t/attr-accessor-as-boolean/185656 "2010-03-24T09:50:37Z")

</div>

Hi I have in my user model attr\_accessor :no\_password\_validation\_needed with\_options :unless =\> :no\_password\_validation\_needed do |p| p.validates\_length\_of :password, :minimum =\> 6 p.validates\_confirmation\_of :passw…

---

## [How to move ruby from /usr/bin/ to /usr/local/bin/ on OSX Snow leopard 10.6](https://www.ruby-forum.com/t/how-to-move-ruby-from-usr-bin-to-usr-local-bin-on-osx-snow-leopard-10-6/185638)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 9:09am UTC](https://www.ruby-forum.com/t/how-to-move-ruby-from-usr-bin-to-usr-local-bin-on-osx-snow-leopard-10-6/185638 "2010-03-24T09:09:03Z")

</div>

Hi i’m a beginner to ruby on rails and I am trying to start a tutorial but having trouble making sure ruby is in the right place. When i use the terminal and ask “which ruby” it comes back with /usr/bin/ whilst I thi…

---

## [Avoid web-service delay on an action](https://www.ruby-forum.com/t/avoid-web-service-delay-on-an-action/185305)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 3\
**Last updated:** [March 24, 2010, 5:41am UTC](https://www.ruby-forum.com/t/avoid-web-service-delay-on-an-action/185305 "2010-03-24T05:41:51Z")

</div>

Hello all, In a controller action, there is a call to Twitter’s update. While it works as expected, it indoubtedly added some delay to the action processing time. What I would like to do is push this twitter update …

---

## [Virtual/dynamic tables?](https://www.ruby-forum.com/t/virtual-dynamic-tables/185647)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:57am UTC](https://www.ruby-forum.com/t/virtual-dynamic-tables/185647 "2010-03-24T02:57:58Z")

</div>

Hi, I’m trying to figure out a way for my users to create their own forms and store the data collected into their own customized table. For an example (though unlikely), say they want to create their own variant of a…

---

## [Form\_for with nested shallow route](https://www.ruby-forum.com/t/form-for-with-nested-shallow-route/185644)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 0\
**Last updated:** [March 24, 2010, 2:23am UTC](https://www.ruby-forum.com/t/form-for-with-nested-shallow-route/185644 "2010-03-24T02:23:26Z")

</div>

Let’s say I have: map.resources :teams do |team| team.resources :squads, :shallow =\> true end When I want to generate a form\_for a squad, I need both the team and squad for new/create, but only the squad for edit. T…

---

## [Simple Backup?](https://www.ruby-forum.com/t/simple-backup/185456)

<div class="topic-metadata">

**Author:** [@nshenry03](https://www.ruby-forum.com/u/nshenry03)\
**Replies:** 5\
**Last updated:** [March 23, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/simple-backup/185456 "2010-03-23T22:01:50Z")

</div>

I am simply trying to backup a ruby on rails app… I have created an archive of the entire database and application folders on server A… I then restore the database and application folders on server B… Server B is exac…

---

## [Sorting forum topics by the most recent replies](https://www.ruby-forum.com/t/sorting-forum-topics-by-the-most-recent-replies/185631)

<div class="topic-metadata">

**Author:** [@DanC](https://www.ruby-forum.com/u/DanC)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/sorting-forum-topics-by-the-most-recent-replies/185631 "2010-03-23T21:54:13Z")

</div>

I have built a simple forum but am having difficult getting the topics to display in the order of their latest reply. The associations are as follows: class Forum \< ActiveRecord::Base has\_many :topics, :order =\> “sti…

---

## [:has\_many and :controller specified in routes.rb](https://www.ruby-forum.com/t/has-many-and-controller-specified-in-routes-rb/185627)

<div class="topic-metadata">

**Author:** [@gsw](https://www.ruby-forum.com/u/gsw)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/has-many-and-controller-specified-in-routes-rb/185627 "2010-03-23T21:46:02Z")

</div>

Have an app using older version of Rails (2.3.2) that I need some routing assistance with if anyone has a minute. The app was originally designed to be purely html view, and an xml and json api was hacked on. To keep …

---

## [NoMethodError in AdminController#index](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/185586)

<div class="topic-metadata">

**Author:** [@dwhitekiss](https://www.ruby-forum.com/u/dwhitekiss)\
**Replies:** 3\
**Last updated:** [March 23, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/185586 "2010-03-23T21:41:56Z")

</div>

I am newb in ror. I’ve googled and found no concrete answer to my problem below: NoMethodError in AdminController#index undefined method \`scaffold’ for AdminController:Class RAILS\_ROOT: /home/darwin/Sites/music\_libra…

---

## [Blank Log Files - New to RoR - Ubuntu Server 9.10](https://www.ruby-forum.com/t/blank-log-files-new-to-ror-ubuntu-server-9-10/185525)

<div class="topic-metadata">

**Author:** [@justin](https://www.ruby-forum.com/u/justin)\
**Replies:** 9\
**Last updated:** [March 23, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/blank-log-files-new-to-ror-ubuntu-server-9-10/185525 "2010-03-23T20:53:56Z")

</div>

Hi - I’ve got what seems to be a solid installation of Ubuntu Server 9.10 with the latest version of ruby, rails, etc. I followed the Ubuntu installation guide. I set up a Virtual Site with Apache. The Welcome Aboar…

---

## [How do I set defaults for view parameters?](https://www.ruby-forum.com/t/how-do-i-set-defaults-for-view-parameters/185558)

<div class="topic-metadata">

**Author:** [@Civ2boss](https://www.ruby-forum.com/u/Civ2boss)\
**Replies:** 12\
**Last updated:** [March 23, 2010, 8:20pm UTC](https://www.ruby-forum.com/t/how-do-i-set-defaults-for-view-parameters/185558 "2010-03-23T20:20:34Z")

</div>

So I am making a rails app that lets users search logs by date. So in my controller I have set it to look for logs from the DB using the parameters. However when it first loads, there are no parameters passed to the c…

---

## [Submit form in popup and send value back to the main page](https://www.ruby-forum.com/t/submit-form-in-popup-and-send-value-back-to-the-main-page/185621)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/submit-form-in-popup-and-send-value-back-to-the-main-page/185621 "2010-03-23T19:22:38Z")

</div>

I made a popup within object1’s form to show another form to create a new document object to associate with object1. When I click the submit button I want the document object to be created the popup to close the val…

---

## [Rails 3 + Different ORM](https://www.ruby-forum.com/t/rails-3-different-orm/185623)

<div class="topic-metadata">

**Author:** [@cult\_hero](https://www.ruby-forum.com/u/cult_hero)\
**Replies:** 1\
**Last updated:** [March 23, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/rails-3-different-orm/185623 "2010-03-23T18:25:50Z")

</div>

I’m migrating an old project (not Rails) over to Rails 3. I’ve been using Sequel as my ORM and I’m quite happy with it. However, when I add Sequel models to my app/model directory, they don’t seem to load on their own…

---

## [Displaying a nested field as a label](https://www.ruby-forum.com/t/displaying-a-nested-field-as-a-label/185582)

<div class="topic-metadata">

**Author:** [@andrew](https://www.ruby-forum.com/u/andrew)\
**Replies:** 9\
**Last updated:** [March 23, 2010, 6:12pm UTC](https://www.ruby-forum.com/t/displaying-a-nested-field-as-a-label/185582 "2010-03-23T18:12:22Z")

</div>

There is what I’m doing: I want to display a series of text\_area fields (read only) of which each has a checkbox. Is this the best way to do it? \<% form\_for (@section), :url =\>{:action =\> “save\_comments”} do |f| %\> \<…

---

## [How to reference a select\_tag within a form](https://www.ruby-forum.com/t/how-to-reference-a-select-tag-within-a-form/185570)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 7\
**Last updated:** [March 23, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/how-to-reference-a-select-tag-within-a-form/185570 "2010-03-23T18:05:55Z")

</div>

Hi All, Inside my app\\views\\expenses\\new.html.erb file, I had the code: \<% form\_for(@expense) do |f| %\> \[snip\] \<%= f.label :vendor %\> \<%= f.text\_field :vendor %\> true} %\> It brought up…

---

## [Change column to allow null](https://www.ruby-forum.com/t/change-column-to-allow-null/185617)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 3\
**Last updated:** [March 23, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/change-column-to-allow-null/185617 "2010-03-23T17:24:56Z")

</div>

how do I change the column in a table to allow null? I have change\_column :docs, :orga, :null in my migration file but I get an error: Mysql::Error: You have an error in your SQL syntax; check the manual that cor…

---

## [Missing number of assertions in test output](https://www.ruby-forum.com/t/missing-number-of-assertions-in-test-output/185616)

<div class="topic-metadata">

**Author:** [@thiel](https://www.ruby-forum.com/u/thiel)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/missing-number-of-assertions-in-test-output/185616 "2010-03-23T16:38:42Z")

</div>

Hi, I did a number of test runs from the book Agile Web D. with Rails, third edition, (chapter 14, Task T: Testing). I use Netbeans 6.8 as IDE. All the test output runs are missing the number of assertions. For exa…

---

## [Frozen hash problem](https://www.ruby-forum.com/t/frozen-hash-problem/185615)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 0\
**Last updated:** [March 23, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/frozen-hash-problem/185615 "2010-03-23T16:34:36Z")

</div>

I’d like to delete some records before saving them. I ran this experiment: before\_save :prune\_lab\_datas def prune\_lab\_datas lab\_datas.each do |lab\_data| lab\_data.destroy end raise lab\_datas.to\_yaml end But noth…

---

## [Default pricing and custom client pricing](https://www.ruby-forum.com/t/default-pricing-and-custom-client-pricing/185552)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 9\
**Last updated:** [March 23, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/default-pricing-and-custom-client-pricing/185552 "2010-03-23T16:22:54Z")

</div>

Hi all, I have a personal project I’m planning and I came to a small hurdle. I want to have an item with a price that will be the default for all clients/users. However, in my business I have some clients that are gr…

---

## [ActiveMerchant, Authorize.net and Email Receipts](https://www.ruby-forum.com/t/activemerchant-authorize-net-and-email-receipts/185573)

<div class="topic-metadata">

**Author:** [@aawilson](https://www.ruby-forum.com/u/aawilson)\
**Replies:** 2\
**Last updated:** [March 23, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/activemerchant-authorize-net-and-email-receipts/185573 "2010-03-23T14:02:02Z")

</div>

I’ve posted this on RailsForum.com and in the ActiveMerchant talk group, and haven’t received an answer, so I figure I’ll try here. Hello. I’ve been searching for information on this for a while, but my google fu is e…

---

## [Newbie needing help on some tricky associations](https://www.ruby-forum.com/t/newbie-needing-help-on-some-tricky-associations/185591)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 4\
**Last updated:** [March 23, 2010, 1:59pm UTC](https://www.ruby-forum.com/t/newbie-needing-help-on-some-tricky-associations/185591 "2010-03-23T13:59:28Z")

</div>

Hello, I’m stuck on some associations that I think may be more complex than I originally anticipated. Not really straightforward stuff for my first Rails app so if you have a chance to point me in the right direction …

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

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