# Rails

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

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

---

## [Validating integer in controller](https://www.ruby-forum.com/t/validating-integer-in-controller/136680)

<div class="topic-metadata">

**Author:** [@sschunselaar](https://www.ruby-forum.com/u/sschunselaar)\
**Replies:** 7\
**Last updated:** [May 13, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/validating-integer-in-controller/136680 "2008-05-13T16:54:58Z")

</div>

I’m teaching Ruby on Rails right now, and I will save some values to a plain text file. That works, but I want to validate the variables. Normally I put the validation in the model, but right now I want to check the v…

---

## [What are folks using these days for "paranoid" deletion?](https://www.ruby-forum.com/t/what-are-folks-using-these-days-for-paranoid-deletion/137431)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 5\
**Last updated:** [May 13, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/what-are-folks-using-these-days-for-paranoid-deletion/137431 "2008-05-13T16:41:24Z")

</div>

Just curious what people are recommending these days for referential integrity, etc. when it comes to record deletion. A while back I looked at acts\_as\_paranoid and it looked promising but there were a few issues wit…

---

## [Bounces](https://www.ruby-forum.com/t/bounces/137438)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 4\
**Last updated:** [May 13, 2008, 4:33pm UTC](https://www.ruby-forum.com/t/bounces/137438 "2008-05-13T16:33:10Z")

</div>

removed\_email\_address@domain.invalid has a full mailbox, can someone please unsubscribe that address? – Greg D. http://destiney.com/

---

## [Onchange error - InvalidAuthenticityToken](https://www.ruby-forum.com/t/onchange-error-invalidauthenticitytoken/136835)

<div class="topic-metadata">

**Author:** [@OhMyRuby](https://www.ruby-forum.com/u/OhMyRuby)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/onchange-error-invalidauthenticitytoken/136835 "2008-05-13T16:28:19Z")

</div>

VIEW: \<select id=“hello” name=“me” onchange ="new Ajax.Request(’…’)\> \<option value = "344" selected="selected\>\</option\> \<p\>Can you enclosed this onchange here dynamically?\</p\> \<p\>the Ajax.Request i post come back with …

---

## [ActiveRecord::StatementInvalid Mysql::Error](https://www.ruby-forum.com/t/activerecord-statementinvalid-mysql-error/137368)

<div class="topic-metadata">

**Author:** [@suja](https://www.ruby-forum.com/u/suja)\
**Replies:** 4\
**Last updated:** [May 13, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/activerecord-statementinvalid-mysql-error/137368 "2008-05-13T16:20:03Z")

</div>

Hi, I was deploying my application on my server, when i test my application i can see this error ActiveRecord::StatementInvalid (Mysql::Error: MySQL client ran out of memory: SELECT \* FROM contacts ): /usr/local/lib…

---

## [Associations Not Based off ID](https://www.ruby-forum.com/t/associations-not-based-off-id/137437)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/associations-not-based-off-id/137437 "2008-05-13T16:04:41Z")

</div>

I’m trying to create an association that is not based off a table’s ID column. For example, Product ID (int) SKU (string) Inventory ID (int) SKU (string) I want to be able to create the association using th…

---

## [MyDecisionHelper.com Beta 7](https://www.ruby-forum.com/t/mydecisionhelper-com-beta-7/136922)

<div class="topic-metadata">

**Author:** [@mydecisionhelper](https://www.ruby-forum.com/u/mydecisionhelper)\
**Replies:** 3\
**Last updated:** [May 13, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/mydecisionhelper-com-beta-7/136922 "2008-05-13T15:58:45Z")

</div>

Hi Let me introduce Decision Engine, written in Ruby on Rails http://www.mydecisionhelper.com When? if you… having a difficult time making a decision… need some help organizing your thoughts… could use some insight…

---

## [Managing plugins](https://www.ruby-forum.com/t/managing-plugins/137472)

<div class="topic-metadata">

**Author:** [@ahead](https://www.ruby-forum.com/u/ahead)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/managing-plugins/137472 "2008-05-13T14:15:40Z")

</div>

What is the prefered way of managing plugins and gems required by a rails app? I have my rails folder in CVS but I don’t like the idea of committing stuff under vendor/plugins… I have read about “svn\_externals” and Pi…

---

## [Extreme memory leak](https://www.ruby-forum.com/t/extreme-memory-leak/137467)

<div class="topic-metadata">

**Author:** [@radamanthus](https://www.ruby-forum.com/u/radamanthus)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/extreme-memory-leak/137467 "2008-05-13T13:34:41Z")

</div>

Hi folks, I have a production setup that isn’t live yet (\<500 visitors per day) but the mongrels are already misbehaving. monit has been configured to restart mongrels that are consuming more than 170MB. What I obser…

---

## [Pagination in single public page](https://www.ruby-forum.com/t/pagination-in-single-public-page/137468)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 1:34pm UTC](https://www.ruby-forum.com/t/pagination-in-single-public-page/137468 "2008-05-13T13:34:30Z")

</div>

I’m trying to show my blog to another logged in user, the blog is paginated and only present on one page (where everything else is presented about that specific user). My problem is that the paginate functio does not …

---

## [Hiring a Juniro Ruby on Rails Developer in Wellington, New Zealand](https://www.ruby-forum.com/t/hiring-a-juniro-ruby-on-rails-developer-in-wellington-new-zealand/137454)

<div class="topic-metadata">

**Author:** [@Walter\_McGinnis](https://www.ruby-forum.com/u/Walter_McGinnis)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 10:52am UTC](https://www.ruby-forum.com/t/hiring-a-juniro-ruby-on-rails-developer-in-wellington-new-zealand/137454 "2008-05-13T10:52:34Z")

</div>

Hello everyone, Katipo is looking to expand its Kete open source application team again. You can find a job description here: http://katipo.co.nz/about-us/news/nr1210650373.shtml Here are a few examples of Kete in th…

---

## [SessionTimeout plugin - anybody gotten it to work?](https://www.ruby-forum.com/t/sessiontimeout-plugin-anybody-gotten-it-to-work/72152)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 14\
**Last updated:** [May 13, 2008, 10:52am UTC](https://www.ruby-forum.com/t/sessiontimeout-plugin-anybody-gotten-it-to-work/72152 "2008-05-13T10:52:33Z")

</div>

I’ve just found Luke R.'s SessionTimeout plugin. From the writeup, it looks like it will do exactly what I need. Unfortunately, from my experience so far, it looks like it doesn’t do a dang thing!!! :wink: I’m sure…

---

## [Dynamic models](https://www.ruby-forum.com/t/dynamic-models/137154)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 6\
**Last updated:** [May 13, 2008, 10:27am UTC](https://www.ruby-forum.com/t/dynamic-models/137154 "2008-05-13T10:27:53Z")

</div>

Hi In my app , a user can create a set of question then a table is dynamily created , in the database,to store the answers of the questions. the name of the table is answers\_x (x is the id of the questionniare). Is …

---

## [How extend ActionController?](https://www.ruby-forum.com/t/how-extend-actioncontroller/137406)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 6\
**Last updated:** [May 13, 2008, 10:26am UTC](https://www.ruby-forum.com/t/how-extend-actioncontroller/137406 "2008-05-13T10:26:01Z")

</div>

I have some code in ApplicationController to initialize a logging system I use to help write new complex stuff and trace exactly what’s going on during development. It’s just a few little extra steps added to the basi…

---

## [Sql\_session\_store on rails2](https://www.ruby-forum.com/t/sql-session-store-on-rails2/137428)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 10:15am UTC](https://www.ruby-forum.com/t/sql-session-store-on-rails2/137428 "2008-05-13T10:15:18Z")

</div>

Hi We’re in the midst of upgrading our rails 1.2.6 app to rails 2.0. We have been using the sql\_session\_store plugin for our sessions. I wondering if anyone is still using SqlSessionStore on their rails 2 apps? Is…

---

## [Plugin to scale the database](https://www.ruby-forum.com/t/plugin-to-scale-the-database/137457)

<div class="topic-metadata">

**Author:** [@Brian\_Durand](https://www.ruby-forum.com/u/Brian_Durand)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 10:11am UTC](https://www.ruby-forum.com/t/plugin-to-scale-the-database/137457 "2008-05-13T10:11:09Z")

</div>

If anyone’s interested, I’ve recently released the seamless\_database\_pool plugin which adds an adapter for using a master/ slave database cluster with ActiveRecord. The emphasis of the code is to make it trivial to ad…

---

## [Rails console with spanish keyboard](https://www.ruby-forum.com/t/rails-console-with-spanish-keyboard/137452)

<div class="topic-metadata">

**Author:** [@masylum](https://www.ruby-forum.com/u/masylum)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 9:47am UTC](https://www.ruby-forum.com/t/rails-console-with-spanish-keyboard/137452 "2008-05-13T09:47:53Z")

</div>

Hey, I installed instant rails in my laptop but I’m not able to use specials characters like ‘{’, ‘}’. I need them if in order to some code (specially those with blocks). I think the problem is that my keyboard is sp…

---

## [Problem with ferret gem](https://www.ruby-forum.com/t/problem-with-ferret-gem/137447)

<div class="topic-metadata">

**Author:** [@JoeRails](https://www.ruby-forum.com/u/JoeRails)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 8:20am UTC](https://www.ruby-forum.com/t/problem-with-ferret-gem/137447 "2008-05-13T08:20:00Z")

</div>

hi i am having trouble getting the ferret gem to start in my sever here is the error: i’ve installed both version 1.1.6 and .4 and non work anybod have any experience with this? thanks, jonathan

---

## [Help re manual RubyGems update?](https://www.ruby-forum.com/t/help-re-manual-rubygems-update/196680)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 8:04am UTC](https://www.ruby-forum.com/t/help-re-manual-rubygems-update/196680 "2008-05-13T08:04:37Z")

</div>

Hi, I’m installing on Windows latest version of Ruby (on-click). Then I’m downloading the RubyGems zip and installing per http://docs.rubygems.org/read/chapter/3#page13, i.e. “ruby setup.rb”. (as I have a firewall …

---

## [Rspec with cookies, testing authentication controller](https://www.ruby-forum.com/t/rspec-with-cookies-testing-authentication-controller/137445)

<div class="topic-metadata">

**Author:** [@xwordguy](https://www.ruby-forum.com/u/xwordguy)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 7:59am UTC](https://www.ruby-forum.com/t/rspec-with-cookies-testing-authentication-controller/137445 "2008-05-13T07:59:53Z")

</div>

I am trying use Rspec to test our authentication, this requires me to set a cookie and pass it in the header. when I inspect the headers the cookie is blank Any ideas why this is not working? — The Spec it “should …

---

## [Stumped by Ajax + Session + Saving Model + Private Method](https://www.ruby-forum.com/t/stumped-by-ajax-session-saving-model-private-method/137429)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 9\
**Last updated:** [May 13, 2008, 7:53am UTC](https://www.ruby-forum.com/t/stumped-by-ajax-session-saving-model-private-method/137429 "2008-05-13T07:53:26Z")

</div>

Got stumped by this one… Had a working form\_remote\_tag that used rjs to toggle between a static view of the data and a form with inputs. Saving that form updated an ActiveRecord model. Then I realized I needed to move…

---

## [Starting server yields \[BUG\] Bus Error](https://www.ruby-forum.com/t/starting-server-yields-bug-bus-error/137348)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 7:48am UTC](https://www.ruby-forum.com/t/starting-server-yields-bug-bus-error/137348 "2008-05-13T07:48:06Z")

</div>

Hi, When I type script/server, I get the following errors: /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.bundle: \[BUG\] Bus Error ruby 1.8.6 (2007-09-24) \[i686-darwin9.2.0\] script/server webrick returns the same err…

---

## [Signup Form](https://www.ruby-forum.com/t/signup-form/137435)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 7:35am UTC](https://www.ruby-forum.com/t/signup-form/137435 "2008-05-13T07:35:46Z")

</div>

Hi, Im creating a user registration form for an application.I dont want that the user to enter the password during the signing up, but he should enter his password only after he clicks on the activation link from the …

---

## [Unable to save a pdf in production](https://www.ruby-forum.com/t/unable-to-save-a-pdf-in-production/137396)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 6:52am UTC](https://www.ruby-forum.com/t/unable-to-save-a-pdf-in-production/137396 "2008-05-13T06:52:58Z")

</div>

I am using Mod\_Rails in Debian, with production. In development I am able to save a pdf file, but I can’t in production and I don’t get any message.

---

## [How would you program "You have posted 5 days in a row..."?](https://www.ruby-forum.com/t/how-would-you-program-you-have-posted-5-days-in-a-row/137349)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [May 13, 2008, 6:42am UTC](https://www.ruby-forum.com/t/how-would-you-program-you-have-posted-5-days-in-a-row/137349 "2008-05-13T06:42:15Z")

</div>

If you want to show the number of consecutive days a user has posted (e.g. “You have posted 5 days in a row”), how would you do it? I have no idea how to do this. I’m guessing it’s something along the lines of current…

---

## [Has anyone used the thumb nail generator plugin](https://www.ruby-forum.com/t/has-anyone-used-the-thumb-nail-generator-plugin/137331)

<div class="topic-metadata">

**Author:** [@luke001](https://www.ruby-forum.com/u/luke001)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 6:26am UTC](https://www.ruby-forum.com/t/has-anyone-used-the-thumb-nail-generator-plugin/137331 "2008-05-13T06:26:00Z")

</div>

I just installed this thumbnail generator http://www.cleverleap.com/ruby-thumbnail-generator/ and with it gd2 and the gd2 ruby binding library. Has anyone used this. I am trying to create thumbnails from my images a…

---

## [Delete data from 2 different models](https://www.ruby-forum.com/t/delete-data-from-2-different-models/137192)

<div class="topic-metadata">

**Author:** [@RoR\_Nb](https://www.ruby-forum.com/u/RoR_Nb)\
**Replies:** 7\
**Last updated:** [May 13, 2008, 6:20am UTC](https://www.ruby-forum.com/t/delete-data-from-2-different-models/137192 "2008-05-13T06:20:45Z")

</div>

I have this code inside the account controller in the “destroy” method def destroy @account = Account.find(params\[:id\]) @portal = Portal.find(:all, :conditions =\> \[‘account\_id = ?’, @account.id \]) @portal.destroy @…

---

## [Rails + Apache + php](https://www.ruby-forum.com/t/rails-apache-php/137346)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 5:42am UTC](https://www.ruby-forum.com/t/rails-apache-php/137346 "2008-05-13T05:42:07Z")

</div>

Hi … I am trying to integrate word press with rails I created php file in public folder of rails… Whenever i try to open that file… using http://localhost/abc.php a dialogue box appears …but i want the php file to …

---

## [Problem installing rails](https://www.ruby-forum.com/t/problem-installing-rails/137357)

<div class="topic-metadata">

**Author:** [@pReload](https://www.ruby-forum.com/u/pReload)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 5:11am UTC](https://www.ruby-forum.com/t/problem-installing-rails/137357 "2008-05-13T05:11:06Z")

</div>

Hi, I’m installing rails on osx 10.3 (an old ibook) and I’ve this error: $ sudo gem install rails --include-dependencies Password: INFO: gem install -y is now default and will be removed INFO: use --ignore-depende…

---

## [File\_field throws exception when field is left blank](https://www.ruby-forum.com/t/file-field-throws-exception-when-field-is-left-blank/137403)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 5:06am UTC](https://www.ruby-forum.com/t/file-field-throws-exception-when-field-is-left-blank/137403 "2008-05-13T05:06:59Z")

</div>

hi - I’m adapting a file upload from the Agile book. I have two models, Challenge and MediaFile. The form looks like this: \<%form\_for :challenge, :url =\> {:action =\>:create}, :html=\>{:multipart=\>true} do |f|%\> \<%f…

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

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