# Rails

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

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

---

## [Problems with scriptaculous](https://www.ruby-forum.com/t/problems-with-scriptaculous/167344)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 3\
**Last updated:** [May 7, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/problems-with-scriptaculous/167344 "2009-05-07T16:23:35Z")

</div>

for some reason, i am having the hardest time with the simplest possible use of a visual effect… i have done this a million times, and this is first time i have had this much trouble. here’s what i am trying to do: …

---

## [ActionMailer - which object has perform\_delivery\_test method](https://www.ruby-forum.com/t/actionmailer-which-object-has-perform-delivery-test-method/167411)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/actionmailer-which-object-has-perform-delivery-test-method/167411 "2009-05-07T16:19:46Z")

</div>

How do I determine where the method perform\_delivery\_test(mail) is located? This method is defined as part of ActionMailer::Base as a private method but I cannot find it defined when I do this in the console: prin…

---

## [Add class to "form\_for"](https://www.ruby-forum.com/t/add-class-to-form-for/167377)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 3\
**Last updated:** [May 7, 2009, 3:49pm UTC](https://www.ruby-forum.com/t/add-class-to-form-for/167377 "2009-05-07T15:49:18Z")

</div>

Hi, How can I add a class to a form generated thus: \<% form\_for :applicant, :url=\> {:action =\> “index”} do |f| %\> I tried: \<% form\_for :applicant, :url=\> {:action =\> “index”}, :class =\> ‘test’ do |f| %\> but this di…

---

## [Path problem](https://www.ruby-forum.com/t/path-problem/167096)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/path-problem/167096 "2009-05-07T12:08:40Z")

</div>

Hi all, I am trying to create a mobile version of my application and for example for the mobile forums in routes.rb is: map.resources :forums, :controller =\> ‘mobile/forums’, :path\_prefix =\> ‘/mobile’, :name\_prefix…

---

## [Problems with MySQL libraries while upgrading rails](https://www.ruby-forum.com/t/problems-with-mysql-libraries-while-upgrading-rails/167393)

<div class="topic-metadata">

**Author:** [@simonr](https://www.ruby-forum.com/u/simonr)\
**Replies:** 0\
**Last updated:** [May 7, 2009, 11:57am UTC](https://www.ruby-forum.com/t/problems-with-mysql-libraries-while-upgrading-rails/167393 "2009-05-07T11:57:28Z")

</div>

I’ve just upgraded to Rails 2.3.2 on a RedHat Linux machine, but I had a lot of problems. Eventually I got there. I’ve seen other people posting questions about similar problems, but no answers so far, so here goes. …

---

## [Windows Server 2003/2208 with IIS : How to make it as RoR web server?](https://www.ruby-forum.com/t/windows-server-2003-2208-with-iis-how-to-make-it-as-ror-web-server/167317)

<div class="topic-metadata">

**Author:** [@nobodybutca](https://www.ruby-forum.com/u/nobodybutca)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 9:32am UTC](https://www.ruby-forum.com/t/windows-server-2003-2208-with-iis-how-to-make-it-as-ror-web-server/167317 "2009-05-07T09:32:38Z")

</div>

Hi guys, Been busy researching yesterday on how to create a RoR development web server environment, on a box running on Windows 2003 or 2008 with IIS enable. 2nd, I am downloading a Ubuntu, trying to create a linux b…

---

## [How to convert the model\_name to table\_name in ruby on rails](https://www.ruby-forum.com/t/how-to-convert-the-model-name-to-table-name-in-ruby-on-rails/167375)

<div class="topic-metadata">

**Author:** [@venkat\_ruby](https://www.ruby-forum.com/u/venkat_ruby)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 8:18am UTC](https://www.ruby-forum.com/t/how-to-convert-the-model-name-to-table-name-in-ruby-on-rails/167375 "2009-05-07T08:18:04Z")

</div>

Hi, Can anyone help me “to convert the model\_name to table\_name in ruby on rails” Example: CustomerDetail to customer\_details Regards,

---

## [Save doesn't work in migration](https://www.ruby-forum.com/t/save-doesnt-work-in-migration/167372)

<div class="topic-metadata">

**Author:** [@eric99](https://www.ruby-forum.com/u/eric99)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 7:40am UTC](https://www.ruby-forum.com/t/save-doesnt-work-in-migration/167372 "2009-05-07T07:40:33Z")

</div>

I’m writing a migration to merge my first and last name fields into a single name field. However, writing to the new name column doesn’t work within the migration. Why is this so? def self.up add\_column :users, :na…

---

## [How hidden field](https://www.ruby-forum.com/t/how-hidden-field/167269)

<div class="topic-metadata">

**Author:** [@ple\_mazako](https://www.ruby-forum.com/u/ple_mazako)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 6:37am UTC](https://www.ruby-forum.com/t/how-hidden-field/167269 "2009-05-07T06:37:14Z")

</div>

Dear all, i wrote script in view like this, \<% form\_for :seq do |form| %\> Source Information User ID \<%= form.text\_field :user\_id, :value =\> session \[:user\_id\],:size=\>10 %\> \<% end %\> and i want hide …

---

## [PDFs prawn gem freeze into the app](https://www.ruby-forum.com/t/pdfs-prawn-gem-freeze-into-the-app/163622)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 6\
**Last updated:** [May 7, 2009, 6:31am UTC](https://www.ruby-forum.com/t/pdfs-prawn-gem-freeze-into-the-app/163622 "2009-05-07T06:31:22Z")

</div>

I was having great success with creating PDFs with prawn, I followed Ryan B. latest screencast. All good. Trouble is when i come to deploy the app on my webhost I ran into trouble. Rails 2.3 app. I did, “sudo rake g…

---

## [Restful\_authentication, Internet Explorer, and unwanted http basic dialog](https://www.ruby-forum.com/t/restful-authentication-internet-explorer-and-unwanted-http-basic-dialog/141565)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 6:06am UTC](https://www.ruby-forum.com/t/restful-authentication-internet-explorer-and-unwanted-http-basic-dialog/141565 "2009-05-07T06:06:22Z")

</div>

I have a fairly bog-standard installation of restful\_authentication and run my app in Rails 2.1. Internet Explorer 6 and 7 are popping up an http basic authentication dialog instead of doing what all other browsers do…

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/167341)

<div class="topic-metadata">

**Author:** [@sktib](https://www.ruby-forum.com/u/sktib)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 4:52am UTC](https://www.ruby-forum.com/t/routing-error/167341 "2009-05-07T04:52:59Z")

</div>

Folks, I am a little lost on a Routing error in accessing my javascripts and stylesheets files on production and hopefully someone can help me. Part of what is confusing me is that the same code that works fine on my …

---

## [Confused about REST and custom actions](https://www.ruby-forum.com/t/confused-about-rest-and-custom-actions/167213)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 11\
**Last updated:** [May 7, 2009, 4:35am UTC](https://www.ruby-forum.com/t/confused-about-rest-and-custom-actions/167213 "2009-05-07T04:35:27Z")

</div>

I am new to the whole RESTful idea and I am trying to use it in a new version of my app. I might be totally missing the ball here, but this is what I am trying to do. I have an application that is 95% read-only to t…

---

## [Link\_to :back problem](https://www.ruby-forum.com/t/link-to-back-problem/167323)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 4:27am UTC](https://www.ruby-forum.com/t/link-to-back-problem/167323 "2009-05-07T04:27:01Z")

</div>

Hello, I have used \<%= link\_to “Back”, :back %\> many times with no issues. This time I am getting this error: Unknown action No action responded to index. Actions: access\_denied, check\_roles, create, new, role\_requi…

---

## [No sql in the controller guideline](https://www.ruby-forum.com/t/no-sql-in-the-controller-guideline/167243)

<div class="topic-metadata">

**Author:** [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Replies:** 9\
**Last updated:** [May 7, 2009, 4:05am UTC](https://www.ruby-forum.com/t/no-sql-in-the-controller-guideline/167243 "2009-05-07T04:05:46Z")

</div>

hello. i just checked Chad F.'s post “20 Rails Development No-No’s” and one guideline caught my attention. it says: “Nothing that looks at all like SQL should go into a controller, view, or helper.” it really came a…

---

## [Generate dynamic PDFs from RoR apps](https://www.ruby-forum.com/t/generate-dynamic-pdfs-from-ror-apps/167239)

<div class="topic-metadata">

**Author:** [@Kevin\_Kaiser](https://www.ruby-forum.com/u/Kevin_Kaiser)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 3:33am UTC](https://www.ruby-forum.com/t/generate-dynamic-pdfs-from-ror-apps/167239 "2009-05-07T03:33:03Z")

</div>

Forgive me for the shameless promotion but I’m posting because I think you guys might find this useful. I’d like to spread the word to the PHP community about a new website that we’ve launched called Online PDF Printe…

---

## [Hardcode database record reference into model](https://www.ruby-forum.com/t/hardcode-database-record-reference-into-model/167363)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 3\
**Last updated:** [May 7, 2009, 3:11am UTC](https://www.ruby-forum.com/t/hardcode-database-record-reference-into-model/167363 "2009-05-07T03:11:45Z")

</div>

Hi, I have a table containing system account types (“Income”, “Ordered”, “Available” etc) which are created as seed data during application installation. class InventoryAccountType \< ActiveRecord::Base has\_many :inv…

---

## [Page.visual\_effect](https://www.ruby-forum.com/t/page-visual-effect/167361)

<div class="topic-metadata">

**Author:** [@jsmecham](https://www.ruby-forum.com/u/jsmecham)\
**Replies:** 5\
**Last updated:** [May 7, 2009, 2:59am UTC](https://www.ruby-forum.com/t/page-visual-effect/167361 "2009-05-07T02:59:20Z")

</div>

I have something similar to a blog post that users can add comments to. I’m use a partial to render the list of comments and a form that submits a new comment via AJAX to update the list. The AJAX call uses the same p…

---

## [Cannot connect to MySql](https://www.ruby-forum.com/t/cannot-connect-to-mysql/145283)

<div class="topic-metadata">

**Author:** [@sriharshanamala](https://www.ruby-forum.com/u/sriharshanamala)\
**Replies:** 2\
**Last updated:** [May 7, 2009, 2:41am UTC](https://www.ruby-forum.com/t/cannot-connect-to-mysql/145283 "2009-05-07T02:41:49Z")

</div>

HI Everyone, me new to Ruby on Rails, For me its getting difficult to connect To Database . Previously i followed some tutorial and installed sqlite , Now when i change the configuration file (database.yml)configurat…

---

## [Booting rails](https://www.ruby-forum.com/t/booting-rails/167359)

<div class="topic-metadata">

**Author:** [@slava](https://www.ruby-forum.com/u/slava)\
**Replies:** 1\
**Last updated:** [May 7, 2009, 1:28am UTC](https://www.ruby-forum.com/t/booting-rails/167359 "2009-05-07T01:28:06Z")

</div>

I need to use an activerecord model in a ruby script that is run from outside rails, so I need to boot rails from my script, otherwise I get uninitialized constant ActiveRecord I tried adding require ‘config/boot’ …

---

## [Problem caching Model instances on a constant in Rails](https://www.ruby-forum.com/t/problem-caching-model-instances-on-a-constant-in-rails/167327)

<div class="topic-metadata">

**Author:** [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/problem-caching-model-instances-on-a-constant-in-rails/167327 "2009-05-06T23:53:21Z")

</div>

I am using Single-Table Inheritance (STI) on one of my models for a Rails App and I am having problems storing model objects on a constant. I have isolated the problem into a sample project and submitted it to GitHub:…

---

## ["You are being redirected" message - please help!](https://www.ruby-forum.com/t/you-are-being-redirected-message-please-help/167353)

<div class="topic-metadata">

**Author:** [@maven22](https://www.ruby-forum.com/u/maven22)\
**Replies:** 0\
**Last updated:** [May 6, 2009, 11:21pm UTC](https://www.ruby-forum.com/t/you-are-being-redirected-message-please-help/167353 "2009-05-06T23:21:01Z")

</div>

Hi - I’ve inherited some old code that I’m must get working with Rails 2.3.2 as soon as possible. Unfortunately, the previous developer didn’t take much regard to the documentation surrounding render\_component (and …

---

## [N:m relationship, joining table record creation issue](https://www.ruby-forum.com/t/n-m-relationship-joining-table-record-creation-issue/166947)

<div class="topic-metadata">

**Author:** [@Ahad\_LSAmdani](https://www.ruby-forum.com/u/Ahad_LSAmdani)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/n-m-relationship-joining-table-record-creation-issue/166947 "2009-05-06T23:13:15Z")

</div>

Hey all, I have an n:m relationship between lpl\_short\_form\_apps and practice\_areas. The joining table is called practices. The definitions are as follows (minus validation/business logic): LPLSFAs Model: class LPLSh…

---

## [Validating non-model forms - a predicament](https://www.ruby-forum.com/t/validating-non-model-forms-a-predicament/156750)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 4\
**Last updated:** [May 6, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/validating-non-model-forms-a-predicament/156750 "2009-05-06T23:01:40Z")

</div>

Hey folks, I have encountered what’s beginning to look like a classic problem with Rails: validating non-model forms. Under what circumstances do you need to use non-model components in a model-backed form? I need to …

---

## [Routing every request to same action](https://www.ruby-forum.com/t/routing-every-request-to-same-action/164289)

<div class="topic-metadata">

**Author:** [@umair](https://www.ruby-forum.com/u/umair)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 10:44pm UTC](https://www.ruby-forum.com/t/routing-every-request-to-same-action/164289 "2009-05-06T22:44:43Z")

</div>

Hi, I have some problem, I want to route every request from URL to an action in my one controller. Like if I enter localhost:3000/rac .Here it will take the ‘rac’ as a controller name and then route it to the ‘index’…

---

## [Specifying Order for Application & Plugin Routes](https://www.ruby-forum.com/t/specifying-order-for-application-plugin-routes/167342)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 9:58pm UTC](https://www.ruby-forum.com/t/specifying-order-for-application-plugin-routes/167342 "2009-05-06T21:58:50Z")

</div>

I see that with the latest version of Rails & Engines (http://www.rails-engines.org/news/2009/04/20/edge-engines-now-compatible-with-rails-2-3/) the plugin routes are to be moved to plugin\_root/config/routes.rb and Ra…

---

## [Json formatting](https://www.ruby-forum.com/t/json-formatting/167303)

<div class="topic-metadata">

**Author:** [@lyntaff](https://www.ruby-forum.com/u/lyntaff)\
**Replies:** 3\
**Last updated:** [May 6, 2009, 9:54pm UTC](https://www.ruby-forum.com/t/json-formatting/167303 "2009-05-06T21:54:09Z")

</div>

I’m really new to rendering formats with rails and would appreciate a little help with a json issue. I have created a booking model in which I would like to sync with a jquery calendar called “full calendar” through j…

---

## [Accessing database model from generator?](https://www.ruby-forum.com/t/accessing-database-model-from-generator/167329)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 9:27pm UTC](https://www.ruby-forum.com/t/accessing-database-model-from-generator/167329 "2009-05-06T21:27:09Z")

</div>

i’m writing my own generator :slight\_smile: basically a custom scaffolding type thing to make my life easier when creating new resources. instead of doing something like script/generate custom\_scaffold MyResource name…

---

## [How to extend ActionMailer](https://www.ruby-forum.com/t/how-to-extend-actionmailer/167338)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [May 6, 2009, 9:19pm UTC](https://www.ruby-forum.com/t/how-to-extend-actionmailer/167338 "2009-05-06T21:19:47Z")

</div>

I wish to extend ActionMailer::Base by method chaining a class instance variable: module ActionMailer class Base class \<\< self def method\_name … What is the magic incantation to accomplish this? I cannot get this…

---

## [How should I test this?](https://www.ruby-forum.com/t/how-should-i-test-this/167291)

<div class="topic-metadata">

**Author:** [@dr\_gavin](https://www.ruby-forum.com/u/dr_gavin)\
**Replies:** 4\
**Last updated:** [May 6, 2009, 8:38pm UTC](https://www.ruby-forum.com/t/how-should-i-test-this/167291 "2009-05-06T20:38:26Z")

</div>

Hi all In my app I’d like to send a request to google sitemaps indexer after a new post is created. This would take place in the post\_observer and would look something like this: require ‘net/http’ require ‘uri’ c…

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

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