# Rails

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

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

---

## [I Need Your Help Promoting Software Craftsmanship](https://www.ruby-forum.com/t/i-need-your-help-promoting-software-craftsmanship/193853)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/i-need-your-help-promoting-software-craftsmanship/193853 "2010-08-25T16:44:09Z")

</div>

Hi everyone, I need your help. The purpose of Acts as Conference 2010 is to continue the momentum of the software craftsmanship movement, something we in the Ruby on Rails community care a lot about. I need your help…

---

## [Threads in rails](https://www.ruby-forum.com/t/threads-in-rails/193840)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 2\
**Last updated:** [August 25, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/threads-in-rails/193840 "2010-08-25T16:25:20Z")

</div>

Hi, I have to use the threads in my application . Can anyone point me to any available tutorial of threads? Thanks, Mike

---

## [ActiveScaffold search problem](https://www.ruby-forum.com/t/activescaffold-search-problem/193845)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 2\
**Last updated:** [August 25, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/activescaffold-search-problem/193845 "2010-08-25T15:27:26Z")

</div>

Ok so I have two problems with activescaffold and searching. The first is an error I get when trying to search with the advance active scaffold search plugin. nothing happens and I get this error on the page: ActionCo…

---

## [Email functionality](https://www.ruby-forum.com/t/email-functionality/193850)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/email-functionality/193850 "2010-08-25T15:06:58Z")

</div>

Hi All, I need my application to have a module with email functionality. This will have all functionalities of an email client. Each user will have an inbox, outbox, sent folder, custom folders, sub folders etc. They…

---

## [How to have to a filter in activescaffold list](https://www.ruby-forum.com/t/how-to-have-to-a-filter-in-activescaffold-list/193803)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 7\
**Last updated:** [August 25, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/how-to-have-to-a-filter-in-activescaffold-list/193803 "2010-08-25T12:31:47Z")

</div>

What i want to do is allow only user created records to appear in the list and thus make them only able to edit their own. How would I do this? Many thanks, jakx12.

---

## [Can not connect to the mysql database](https://www.ruby-forum.com/t/can-not-connect-to-the-mysql-database/193691)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 9\
**Last updated:** [August 25, 2010, 12:20pm UTC](https://www.ruby-forum.com/t/can-not-connect-to-the-mysql-database/193691 "2010-08-25T12:20:06Z")

</div>

Hi, I am novice to rails and recently I started learning rails. Still um in the zero point…As I started making a project in rails following the book “Agile Web Developement with rails” I cant con not configure my ap…

---

## [Can not execute ruby script/generate scaffold Product Admin](https://www.ruby-forum.com/t/can-not-execute-ruby-script-generate-scaffold-product-admin/193789)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 3\
**Last updated:** [August 25, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/can-not-execute-ruby-script-generate-scaffold-product-admin/193789 "2010-08-25T12:19:31Z")

</div>

in my depot application, i need to execute this command correctly…but I can not do anything! the command could not execute as it is stated and figured in the book. if there is an equivalent command for creating and M…

---

## [Custom Layout Folder](https://www.ruby-forum.com/t/custom-layout-folder/193838)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 11:41am UTC](https://www.ruby-forum.com/t/custom-layout-folder/193838 "2010-08-25T11:41:28Z")

</div>

Hi all, I have a need to have another folder called custom-layouts which would have some of the layout files. My doubt is that,is it possible to have a folder like this and configure rails to look into this custom fo…

---

## [Abstract superclass for model](https://www.ruby-forum.com/t/abstract-superclass-for-model/193829)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [August 25, 2010, 9:08am UTC](https://www.ruby-forum.com/t/abstract-superclass-for-model/193829 "2010-08-25T09:08:41Z")

</div>

Hi, I am using ‘set\_table\_name’ in all my models, I want one abstract class which extends from ActiveRecord::Base and all my model should extends from this abstract class. i will write setter method in abstrct class …

---

## [Existing "old" plugins - usable with rails 3?](https://www.ruby-forum.com/t/existing-old-plugins-usable-with-rails-3/193827)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 1\
**Last updated:** [August 25, 2010, 8:55am UTC](https://www.ruby-forum.com/t/existing-old-plugins-usable-with-rails-3/193827 "2010-08-25T08:55:13Z")

</div>

Can one use current plugins (existing for rails 2.x) also for rails 3 applications ? or will there be new versions of them ? Thanks dani

---

## [How to disable character escaping in collection\_select](https://www.ruby-forum.com/t/how-to-disable-character-escaping-in-collection-select/193828)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 7:06am UTC](https://www.ruby-forum.com/t/how-to-disable-character-escaping-in-collection-select/193828 "2010-08-25T07:06:09Z")

</div>

I have a drop down using collection\_select \<%= form.collection\_select(:country,@countries, :name, :name,options ={:prompt =\> t(‘services.req\_form.country\_prompt’)}, :escape =\> false ) %\> I read somewhere that putting…

---

## [Rails 2.3.8 to Rails 3 - nested layouts](https://www.ruby-forum.com/t/rails-2-3-8-to-rails-3-nested-layouts/193825)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 4:05am UTC](https://www.ruby-forum.com/t/rails-2-3-8-to-rails-3-nested-layouts/193825 "2010-08-25T04:05:36Z")

</div>

The following code works great in Rails 2.3.8 layouts/application.html.haml … .secondary-navigation = yield :secondary\_nav .clear … layouts/admin.html.haml content\_for :secondary\_nav do = n…

---

## [Validate\_block gem as mentioned at urug](https://www.ruby-forum.com/t/validate-block-gem-as-mentioned-at-urug/193820)

<div class="topic-metadata">

**Author:** [@xunker](https://www.ruby-forum.com/u/xunker)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 3:55am UTC](https://www.ruby-forum.com/t/validate-block-gem-as-mentioned-at-urug/193820 "2010-08-25T03:55:33Z")

</div>

The github link to the ‘validate\_block’ gem I went over is at: Go forth and laugh at the code.

---

## [PgWest 2010 (second call)](https://www.ruby-forum.com/t/pgwest-2010-second-call/193819)

<div class="topic-metadata">

**Author:** [@Joshua\_DSDrake](https://www.ruby-forum.com/u/Joshua_DSDrake)\
**Replies:** 0\
**Last updated:** [August 25, 2010, 1:15am UTC](https://www.ruby-forum.com/t/pgwest-2010-second-call/193819 "2010-08-25T01:15:07Z")

</div>

Following on the smashing success of PostgreSQL Conference East, PostgreSQL Conference West, The PostgreSQL Conference for Decision Makers, End Users and Developers, is being held at the Sir Francis Drake Hotel in San…

---

## [\[JOBS\] Rails developer wanted in Wellington, New Zealand](https://www.ruby-forum.com/t/jobs-rails-developer-wanted-in-wellington-new-zealand/193818)

<div class="topic-metadata">

**Author:** [@Walter\_McGinnis](https://www.ruby-forum.com/u/Walter_McGinnis)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/jobs-rails-developer-wanted-in-wellington-new-zealand/193818 "2010-08-24T23:50:11Z")

</div>

Hi everyone, Apologies for the cross posting. We’re looking for an up and coming Rails developer (great position for recent/soon-to-be grad or someone switching to career in programming) that wants to make a name for…

---

## [NearMe, new site made with Ruby on Rails](https://www.ruby-forum.com/t/nearme-new-site-made-with-ruby-on-rails/193817)

<div class="topic-metadata">

**Author:** [@strube](https://www.ruby-forum.com/u/strube)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 11:29pm UTC](https://www.ruby-forum.com/t/nearme-new-site-made-with-ruby-on-rails/193817 "2010-08-24T23:29:46Z")

</div>

±---------------------±------±------±--------±--------±----±------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | ±---------------------±------±------±--------±--------±----±------+ | Cont…

---

## [Link\_to underlying urls/paths are showing in the actual view](https://www.ruby-forum.com/t/link-to-underlying-urls-paths-are-showing-in-the-actual-view/185690)

<div class="topic-metadata">

**Author:** [@Adler\_Santos](https://www.ruby-forum.com/u/Adler_Santos)\
**Replies:** 18\
**Last updated:** [August 24, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/link-to-underlying-urls-paths-are-showing-in-the-actual-view/185690 "2010-08-24T22:12:24Z")

</div>

for example I have the following simple code in my views: \<%= link\_to “Here”, :controller =\> ‘home’, :action =\> ‘inside\_here’ %\> I get the “actual” view in the page looking like this: Here (/home/inside\_here) where t…

---

## [Modeling shmodelling!](https://www.ruby-forum.com/t/modeling-shmodelling/193810)

<div class="topic-metadata">

**Author:** [@mattb](https://www.ruby-forum.com/u/mattb)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 9:40pm UTC](https://www.ruby-forum.com/t/modeling-shmodelling/193810 "2010-08-24T21:40:35Z")

</div>

Hi! I’m designing a Rails app that imports data from external sources, and would really appreciate some suggestions on the best way to achieve the following: Two models: Products & Categories, where the product deta…

---

## [Configuring the Server (Ruby on Rails: Up and Running 1st Edition)](https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811)

<div class="topic-metadata">

**Author:** [@Sze\_C](https://www.ruby-forum.com/u/Sze_C)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 8:35pm UTC](https://www.ruby-forum.com/t/configuring-the-server-ruby-on-rails-up-and-running-1st-edition/193811 "2010-08-24T20:35:13Z")

</div>

Hi everybody, I am trying to configure the server so that WEBrick runs on a different Port and IP Address. The Book Ruby on Rails: Up and Running 1st Edition says to change script/server OPTIONS = { :port =\> …

---

## [Rendering a different Javascript file in respond\_to](https://www.ruby-forum.com/t/rendering-a-different-javascript-file-in-respond-to/193668)

<div class="topic-metadata">

**Author:** [@spitfire](https://www.ruby-forum.com/u/spitfire)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/rendering-a-different-javascript-file-in-respond-to/193668 "2010-08-24T18:47:23Z")

</div>

Hi everyone, I am stuck in an (apparently) simple problem. In my event\_controller I have the i\_like\_it action: def i\_like\_it @event = Event.find(params\[:id\]) ... # logic respond\_to do |format| format.js end end I…

---

## [Rails 3 Observer: No support for after\_commit?](https://www.ruby-forum.com/t/rails-3-observer-no-support-for-after-commit/193806)

<div class="topic-metadata">

**Author:** [@IAmNan](https://www.ruby-forum.com/u/IAmNan)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 6:14pm UTC](https://www.ruby-forum.com/t/rails-3-observer-no-support-for-after-commit/193806 "2010-08-24T18:14:07Z")

</div>

Rails 3 adds after\_commit and after\_rollback callbacks, but it appears they are not available as methods in an Observer. Is that the way it’s supposed to be, an oversight, or am I doing it wrong? Thanks.

---

## [Rails to replace old 3270 terminal system](https://www.ruby-forum.com/t/rails-to-replace-old-3270-terminal-system/193801)

<div class="topic-metadata">

**Author:** [@Rasmus\_Bergholdt](https://www.ruby-forum.com/u/Rasmus_Bergholdt)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/rails-to-replace-old-3270-terminal-system/193801 "2010-08-24T18:07:26Z")

</div>

Hi. We have a large setup of 2000 apps running on AIX using DB2, CICS, MQ, TWS and SFS. The programs that currently run on the system are. HP3000 Cobol converted to VAG Ksh and Perl scripts (mostly converted from HP…

---

## [ActiveRecord display different text for attribute on validation](https://www.ruby-forum.com/t/activerecord-display-different-text-for-attribute-on-validation/193802)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/activerecord-display-different-text-for-attribute-on-validation/193802 "2010-08-24T17:16:09Z")

</div>

What is the best way to tell rails to output a different name in the validation presented to the user than the actual attribute? I have a field “trade\_attached\_pdf” Which AR creates the error message “Trade attached p…

---

## [Rails 3: Error saving an object with no useful information](https://www.ruby-forum.com/t/rails-3-error-saving-an-object-with-no-useful-information/193702)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 7\
**Last updated:** [August 24, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/rails-3-error-saving-an-object-with-no-useful-information/193702 "2010-08-24T16:39:51Z")

</div>

Hey, I’m kinda desperate cause I’m getting an error and have no idea how to fix this since it doesn’t give me any information hinting where the problem is: irb(main):054:0\> reload!;User.last.save! Reloading… NameEr…

---

## [Will\_paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/193776)

<div class="topic-metadata">

**Author:** [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Replies:** 10\
**Last updated:** [August 24, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/will-paginate-problem/193776 "2010-08-24T16:05:17Z")

</div>

Hi I am using rails 2.3.8 & ruby 1.3.7 & will\_paginate 2.3.14 I have table name books. I am doing this code for pagination, In book\_controller @@@@books = Book.paginate :page =\> params\[:page\], :per\_page =\> 10@@@@ & …

---

## [Will\_paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/193797)

<div class="topic-metadata">

**Author:** [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/will-paginate-problem/193797 "2010-08-24T15:55:20Z")

</div>

hello my problem is not solved till now… my configaration is like that C:\\InstantRails-2.0-win\_2 rails\_apps\\pagination\>gem list will\_paginate \*\*\* LOCAL GEMS \*\*\* will\_paginate (2.3.14) C:\\InstantRails-2.0-win\_2…

---

## [Rails hosting in Canada?](https://www.ruby-forum.com/t/rails-hosting-in-canada/193795)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [August 24, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/rails-hosting-in-canada/193795 "2010-08-24T14:55:36Z")

</div>

Anyone have any recommendations for Rails hosting in Canada? It needs to be solid hosting, on the level of EngineYard and Blue Box Group. Thanks

---

## [Unable to upload images using native rails file upload](https://www.ruby-forum.com/t/unable-to-upload-images-using-native-rails-file-upload/193745)

<div class="topic-metadata">

**Author:** [@MrSWinnymann](https://www.ruby-forum.com/u/MrSWinnymann)\
**Replies:** 3\
**Last updated:** [August 24, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/unable-to-upload-images-using-native-rails-file-upload/193745 "2010-08-24T13:58:49Z")

</div>

I am a rails newbie and am trying to build my first app. I have a jobs and categories controller and models respectively. CONTROLLER: def new @job = Job.new @catergory = Catergory.all respond\_to do |format| forma…

---

## [Rails 2.3.8 or Rails 3?](https://www.ruby-forum.com/t/rails-2-3-8-or-rails-3/193731)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 11\
**Last updated:** [August 24, 2010, 11:13am UTC](https://www.ruby-forum.com/t/rails-2-3-8-or-rails-3/193731 "2010-08-24T11:13:42Z")

</div>

Hi, If I’m going to start developing a new rails based web application, should I go for Rails 3 or Rails 2.3.8 ? why this and not the other ? Thank you. Dani

---

## [Advice for tests](https://www.ruby-forum.com/t/advice-for-tests/193783)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 1\
**Last updated:** [August 24, 2010, 11:03am UTC](https://www.ruby-forum.com/t/advice-for-tests/193783 "2010-08-24T11:03:10Z")

</div>

Hallo. I’m using rails with jruby for my applications but until now I never used tests. Now I want start to integrate tests during my applications development. Do you suggest some suites or frameworks to automate and…

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

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