# Rails

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

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

---

## [Changing types in single inheritance](https://www.ruby-forum.com/t/changing-types-in-single-inheritance/138704)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 7\
**Last updated:** [May 29, 2008, 2:05pm UTC](https://www.ruby-forum.com/t/changing-types-in-single-inheritance/138704 "2008-05-29T14:05:28Z")

</div>

I’m trying to write an application that involves with three kinds of inherited models: The lowest is Person, a model merely used as records, and nothing else of importance. Officer inherits from Person, and unlike Pe…

---

## [Associations question](https://www.ruby-forum.com/t/associations-question/138934)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 1:37pm UTC](https://www.ruby-forum.com/t/associations-question/138934 "2008-05-29T13:37:08Z")

</div>

Hey everyone, I have a quick question on a tricky model for the app I’m working on. I have a Tasks model, and a Task can be assigned to a User; a Task should also know the User who assigned (created) it, and be updata…

---

## [Room available at RailsConf](https://www.ruby-forum.com/t/room-available-at-railsconf/138903)

<div class="topic-metadata">

**Author:** [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/room-available-at-railsconf/138903 "2008-05-29T13:07:01Z")

</div>

Due to some interesting complications and the kindness of friends, I have a room reserved at the DoubleTree (starting tomorrow night) but don’t need it. Rather than have to pay cancellation fees, I’d like to transfer …

---

## [Error Message is not coming in Validations](https://www.ruby-forum.com/t/error-message-is-not-coming-in-validations/138763)

<div class="topic-metadata">

**Author:** [@divyesh\_kumar](https://www.ruby-forum.com/u/divyesh_kumar)\
**Replies:** 11\
**Last updated:** [May 29, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/error-message-is-not-coming-in-validations/138763 "2008-05-29T12:59:00Z")

</div>

Hi, I am using validations in my website .the problem is that the error message is not coming while giving wrong inputs or while validations.But the validations are working fine,what I mean that while giving wrong in…

---

## [How do i do to make my local project run on the server](https://www.ruby-forum.com/t/how-do-i-do-to-make-my-local-project-run-on-the-server/138600)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 6\
**Last updated:** [May 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/how-do-i-do-to-make-my-local-project-run-on-the-server/138600 "2008-05-29T12:39:54Z")

</div>

I have finished my project locally and got a webhost whose domain is: http://omega.phost.ws:2082/.Now i have to use cpanel to deploy my project.But i don’t know how to. 1.All the files in my project have to be upload …

---

## [Ruby's simple\_format method is not working for spaces](https://www.ruby-forum.com/t/rubys-simple-format-method-is-not-working-for-spaces/138945)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 4\
**Last updated:** [May 29, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/rubys-simple-format-method-is-not-working-for-spaces/138945 "2008-05-29T12:11:45Z")

</div>

Ruby’s simple\_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces?

---

## [Install rails 2.0.2 without using network](https://www.ruby-forum.com/t/install-rails-2-0-2-without-using-network/138957)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 11:59am UTC](https://www.ruby-forum.com/t/install-rails-2-0-2-without-using-network/138957 "2008-05-29T11:59:59Z")

</div>

hi, friends i want to install rails 2.0.2 to a windows/linux system which is not in the network. first i downloaded the instant rails for windows, since it is using rails lower version then … i have downloaded all …

---

## [Deployment/Database Error](https://www.ruby-forum.com/t/deployment-database-error/138959)

<div class="topic-metadata">

**Author:** [@Craig\_O\_Connor](https://www.ruby-forum.com/u/Craig_O_Connor)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 11:46am UTC](https://www.ruby-forum.com/t/deployment-database-error/138959 "2008-05-29T11:46:57Z")

</div>

Hi, I’m trying to deploy a ruby project and I keep getting the following error ./script/…/config/…/vendor/rails/activerecord/lib/active\_record/ connection\_adapters/abstract/connection\_specification.rb:204:in establis…

---

## [Pagination joining more than two tables](https://www.ruby-forum.com/t/pagination-joining-more-than-two-tables/138834)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [May 29, 2008, 11:09am UTC](https://www.ruby-forum.com/t/pagination-joining-more-than-two-tables/138834 "2008-05-29T11:09:51Z")

</div>

Hi I have three tables groups,user\_groups and contacts… user\_group table contains fields contact\_id,group\_id Now i have to findout the contacts .I have the groupid (params\[:group\_id\].So at first from user\_groups get …

---

## [Rails security issue](https://www.ruby-forum.com/t/rails-security-issue/138837)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 10:59am UTC](https://www.ruby-forum.com/t/rails-security-issue/138837 "2008-05-29T10:59:01Z")

</div>

I know this is not a REAL security issue, but I think it could be and this seems very “unrails” like. What’s to keep a user from modifying the post hash they send to the server to set ANY attributes they want for an A…

---

## [Javascripts controller Not Called](https://www.ruby-forum.com/t/javascripts-controller-not-called/138845)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 6\
**Last updated:** [May 29, 2008, 10:42am UTC](https://www.ruby-forum.com/t/javascripts-controller-not-called/138845 "2008-05-29T10:42:23Z")

</div>

I am trying to make a javascripts controller work. The only resource I can find on this is here : #88 Dynamic Select Menus - RailsCasts I have tried everything in the tutorial and the comments including May 22 08 comm…

---

## [Params\[:id\] not working right?](https://www.ruby-forum.com/t/params-id-not-working-right/138940)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 10:41am UTC](https://www.ruby-forum.com/t/params-id-not-working-right/138940 "2008-05-29T10:41:47Z")

</div>

something very odd is going on, when I put in the url http://mysite/blabla/bla/21 it will only see the 2 and ignore the 1 instead of getting the full id “21” obviously this is causing a lot of issues in my applicatio…

---

## [Can Javascript code be called from with \<%= %\> tags](https://www.ruby-forum.com/t/can-javascript-code-be-called-from-with-tags/138955)

<div class="topic-metadata">

**Author:** [@JeffB](https://www.ruby-forum.com/u/JeffB)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 10:39am UTC](https://www.ruby-forum.com/t/can-javascript-code-be-called-from-with-tags/138955 "2008-05-29T10:39:25Z")

</div>

I want to make a call to remote\_function with 1 of the parameters derived from a javascript call. For example: \<%= remote\_function(:url =\> {:action = “xyz”, :id =\> getId()}, :update =\> ‘main\_content’) %\> getId() is …

---

## [Speeding Up](https://www.ruby-forum.com/t/speeding-up/138952)

<div class="topic-metadata">

**Author:** [@NKNKNK](https://www.ruby-forum.com/u/NKNKNK)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 10:35am UTC](https://www.ruby-forum.com/t/speeding-up/138952 "2008-05-29T10:35:52Z")

</div>

Hey all, I’ve been profiling my app and noticed that Date.\_parse is eating up a lot of time in some of my requests. I’m attempting to pull the date from MySQL w/o ActiveRecord’s typecasting, but just can’t seem to be…

---

## [Build mission coordination system for volunteer pilots (PT or FT project)](https://www.ruby-forum.com/t/build-mission-coordination-system-for-volunteer-pilots-pt-or-ft-project/138953)

<div class="topic-metadata">

**Author:** [@Michael\_Gilbert](https://www.ruby-forum.com/u/Michael_Gilbert)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 10:27am UTC](https://www.ruby-forum.com/t/build-mission-coordination-system-for-volunteer-pilots-pt-or-ft-project/138953 "2008-05-29T10:27:00Z")

</div>

Hi – I’m looking for someone - a person, rather than a firm (though they could have other business - to be the lead developer on a web application for a nationwide network of organizations that coordinate charity mis…

---

## [REST - Nested Resources](https://www.ruby-forum.com/t/rest-nested-resources/137686)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 23\
**Last updated:** [May 29, 2008, 10:27am UTC](https://www.ruby-forum.com/t/rest-nested-resources/137686 "2008-05-29T10:27:00Z")

</div>

Hi I am trying to use RESTful design practices, but I have areas of the design which seem to suggest that I should have more than one level of nesting. Now, all of the reading I have done, tells me that this is a ver…

---

## [Job offers/positions and searching for Ruby developers](https://www.ruby-forum.com/t/job-offers-positions-and-searching-for-ruby-developers/138788)

<div class="topic-metadata">

**Author:** [@Clever\_N](https://www.ruby-forum.com/u/Clever_N)\
**Replies:** 6\
**Last updated:** [May 29, 2008, 8:38am UTC](https://www.ruby-forum.com/t/job-offers-positions-and-searching-for-ruby-developers/138788 "2008-05-29T08:38:15Z")

</div>

I wanted to ask the more senior members of the group whether job postings and the like are frowned-upon here. It’s just a little difficult to find Ruby programmers in a general job searching. Alternatively, if anyone…

---

## [How use simple format](https://www.ruby-forum.com/t/how-use-simple-format/138644)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 8:16am UTC](https://www.ruby-forum.com/t/how-use-simple-format/138644 "2008-05-29T08:16:42Z")

</div>

I want to show paragraph breaks appear in the event description just as the user typed them on , how to do in ruby?

---

## [Params question](https://www.ruby-forum.com/t/params-question/138942)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 7:59am UTC](https://www.ruby-forum.com/t/params-question/138942 "2008-05-29T07:59:21Z")

</div>

I have a question regarding params usage. I have a view that uses a number of params hashes to display some information. I also have some links and when I click on these links I want to have a back button to return …

---

## [Attempting to Insert File into DB But MYSQL "Goes away"](https://www.ruby-forum.com/t/attempting-to-insert-file-into-db-but-mysql-goes-away/138943)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 7:58am UTC](https://www.ruby-forum.com/t/attempting-to-insert-file-into-db-but-mysql-goes-away/138943 "2008-05-29T07:58:14Z")

</div>

I am trying to upload a file to the DB but I am apparently unable to do so for the following reason : ActiveRecord::StatementInvalid in StoragesController#create Mysql::Error: MySQL server has gone away: INSERT INTO s…

---

## [Extracting email header](https://www.ruby-forum.com/t/extracting-email-header/138938)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 6:19am UTC](https://www.ruby-forum.com/t/extracting-email-header/138938 "2008-05-29T06:19:36Z")

</div>

Hi, I got problem in extracting email header like From: removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Subject: jjjjjjj Actually i already fetch a the received mail using fectmail to…

---

## [RESTful Authentication for external clients](https://www.ruby-forum.com/t/restful-authentication-for-external-clients/138842)

<div class="topic-metadata">

**Author:** [@sameera](https://www.ruby-forum.com/u/sameera)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 5:52am UTC](https://www.ruby-forum.com/t/restful-authentication-for-external-clients/138842 "2008-05-29T05:52:10Z")

</div>

Hi All, I have created a RESTful web api and it works fine. I have manage to use RESTFul authentication also. My problem is, how can i implement authentication for external clients. Ex : If my Web service is consumed…

---

## [Rjs behaving oddly in IE - POST performed after the GET](https://www.ruby-forum.com/t/rjs-behaving-oddly-in-ie-post-performed-after-the-get/138714)

<div class="topic-metadata">

**Author:** [@amirj26](https://www.ruby-forum.com/u/amirj26)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 5:39am UTC](https://www.ruby-forum.com/t/rjs-behaving-oddly-in-ie-post-performed-after-the-get/138714 "2008-05-29T05:39:52Z")

</div>

I’m not sure if this is an IE-only thing, but it seems to only happen in IE. My view has a simple submit\_tag which calls an action ‘generate’ on my controller which I’ll call ‘foo’. At the end of the generate method, …

---

## [Dashes in RESTful resource](https://www.ruby-forum.com/t/dashes-in-restful-resource/138927)

<div class="topic-metadata">

**Author:** [@bunsenator](https://www.ruby-forum.com/u/bunsenator)\
**Replies:** 2\
**Last updated:** [May 29, 2008, 3:15am UTC](https://www.ruby-forum.com/t/dashes-in-restful-resource/138927 "2008-05-29T03:15:20Z")

</div>

true false 2008-05-22T19:53:59Z 652 Funny Stuff 0.00 13197 2008-05-28T23:49:26Z 232 I have a resource that I am communicating with fine, but I am unable to process certain elements, particularly elements with dashes …

---

## [Bug?! remote\_form\_for does not provide ajax](https://www.ruby-forum.com/t/bug-remote-form-for-does-not-provide-ajax/138933)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 3:13am UTC](https://www.ruby-forum.com/t/bug-remote-form-for-does-not-provide-ajax/138933 "2008-05-29T03:13:50Z")

</div>

Hi guys, I’ve downloaded the liveValidation JavaScript from www.livevalidation.com. I found that the remote\_form\_for does not work with the js. The necessary AJAX code in the “onsubmit” part of the tag is missing S…

---

## [\[ANN\]\[ADV\] One week left on the Ruby Hoedown CFP!](https://www.ruby-forum.com/t/ann-adv-one-week-left-on-the-ruby-hoedown-cfp/138827)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 2:25am UTC](https://www.ruby-forum.com/t/ann-adv-one-week-left-on-the-ruby-hoedown-cfp/138827 "2008-05-29T02:25:36Z")

</div>

Hello all, You’ve got just about a week left to get your proposals in for a talk at the Ruby Hoedown, the South’s regional Ruby conference. You can find any information you need here: http://www.rubyhoedown.com/cfp.…

---

## [How to Have Form Contents Submitted to Another Action?](https://www.ruby-forum.com/t/how-to-have-form-contents-submitted-to-another-action/138916)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 3\
**Last updated:** [May 29, 2008, 1:35am UTC](https://www.ruby-forum.com/t/how-to-have-form-contents-submitted-to-another-action/138916 "2008-05-29T01:35:30Z")

</div>

I have a form auto generated like this : \<% form\_for(@role) do |f| %\> Rolename \<%= f.text\_field :rolename %\> Level \<%= f.text\_field :level %\> \<%= f.submit "Update" %\> \<%= link\_to(image\_tag(…

---

## [Scruffy Stacked Bar Chart](https://www.ruby-forum.com/t/scruffy-stacked-bar-chart/130604)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 1:31am UTC](https://www.ruby-forum.com/t/scruffy-stacked-bar-chart/130604 "2008-05-29T01:31:23Z")

</div>

Hi- Trying to do a stacked bar chart, but nothing is rendering when I add more then 1 bar: This works: graph = Scruffy::Graph.new(:title =\> “My Chart”) graph.add :stacked do |stack| stack.add(:bar, ‘Stack1’, \[10,10…

---

## [\[ANN\] Kete 1.0](https://www.ruby-forum.com/t/ann-kete-1-0/138924)

<div class="topic-metadata">

**Author:** [@Walter\_McGinnis](https://www.ruby-forum.com/u/Walter_McGinnis)\
**Replies:** 0\
**Last updated:** [May 29, 2008, 1:02am UTC](https://www.ruby-forum.com/t/ann-kete-1-0/138924 "2008-05-29T01:02:28Z")

</div>

Horowhenua Library Trust and Katipo Communications announce the release of Kete 1.0. Kete is a full Ruby on Rails application. This is an open source project for enabling communities to build their own online librar…

---

## [Capistrano mongrel\_rails cluster::restart problem](https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [May 29, 2008, 12:56am UTC](https://www.ruby-forum.com/t/capistrano-mongrel-rails-cluster-restart-problem/138870 "2008-05-29T00:56:02Z")

</div>

Hi, I have a rails on ubuntu deployment stack which consists of: locally: cap 2.3.0 and all latest deps server side: apache 2.3, mongrel\_cluster, mod\_proxy and git on the same host. I am connecting via ssh with agen…

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

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