# Rails

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

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

---

## [Setting a callback whose action depends on the previous stat](https://www.ruby-forum.com/t/setting-a-callback-whose-action-depends-on-the-previous-stat/108836)

<div class="topic-metadata">

**Author:** [@maurice-gladwell](https://www.ruby-forum.com/u/maurice-gladwell)\
**Replies:** 4\
**Last updated:** [July 8, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/setting-a-callback-whose-action-depends-on-the-previous-stat/108836 "2007-07-08T23:12:52Z")

</div>

I’ve been reading about ActiveRecord::Callbacks and they’re really cool. But I have a complex need I’m not sure they answer. Let’s say we have a User model. User has a #status attribute, which can be either “active”, …

---

## [Datetime\_select, is creating an instance of the Time class](https://www.ruby-forum.com/t/datetime-select-is-creating-an-instance-of-the-time-class/108853)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 2\
**Last updated:** [July 8, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/datetime-select-is-creating-an-instance-of-the-time-class/108853 "2007-07-08T22:52:34Z")

</div>

Hello It seems that datetime\_select, is creating an instance of the Time class. Why would that be? I found this while building a site where people can create vigils (prayer vigils, peace vigils, etc). When I added a …

---

## [Forum on RoR?](https://www.ruby-forum.com/t/forum-on-ror/108861)

<div class="topic-metadata">

**Author:** [@russiangeek](https://www.ruby-forum.com/u/russiangeek)\
**Replies:** 4\
**Last updated:** [July 8, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/forum-on-ror/108861 "2007-07-08T20:30:47Z")

</div>

Hi all! I am looking for a RoR forum for my site. At the moment, I found only RForum. Are there other options?

---

## [Want to show content of foreign key in rhtml-- Newbie](https://www.ruby-forum.com/t/want-to-show-content-of-foreign-key-in-rhtml-newbie/108701)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 8, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/want-to-show-content-of-foreign-key-in-rhtml-newbie/108701 "2007-07-08T19:21:59Z")

</div>

Hi I have a scaffold CRUD app going and have managed to get my foreign key to populate a select dropdown list in the edit/new \_form.rhtml It seemed logical to have a foreign key with a select list. Unfortunately, I ca…

---

## [How do I run all my unit tests?](https://www.ruby-forum.com/t/how-do-i-run-all-my-unit-tests/108873)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [July 8, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/how-do-i-run-all-my-unit-tests/108873 "2007-07-08T17:03:44Z")

</div>

Sorry for the silly question. I know how to run a single unit test. How do I run them all? Thanks, Perry

---

## [Where is save\_without\_validation?](https://www.ruby-forum.com/t/where-is-save-without-validation/108857)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 3\
**Last updated:** [July 8, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/where-is-save-without-validation/108857 "2007-07-08T16:28:41Z")

</div>

Can someone tell me where this is at or how it gets created? There must be some magic to it. Thank you, Perry

---

## [Globally add spinners to AJAX calls](https://www.ruby-forum.com/t/globally-add-spinners-to-ajax-calls/108870)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 2\
**Last updated:** [July 8, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/globally-add-spinners-to-ajax-calls/108870 "2007-07-08T16:25:40Z")

</div>

Is there any way I can globally add some JS code to all my AJAX calls to implement user feedback - indicating that his action is being processed? Something like automatically disabling the submit button and showing a …

---

## [File Upload](https://www.ruby-forum.com/t/file-upload/108869)

<div class="topic-metadata">

**Author:** [@fernando](https://www.ruby-forum.com/u/fernando)\
**Replies:** 3\
**Last updated:** [July 8, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/file-upload/108869 "2007-07-08T16:00:39Z")

</div>

Hi, I’m still quite new to RoR and I am having trouble uploading files to a file system. I have been following this tutorial: Peak Obsession : 1.2.1. The simplest thing that could possibly work But when I try to sav…

---

## [What are contractor rates for RoR programmers?](https://www.ruby-forum.com/t/what-are-contractor-rates-for-ror-programmers/108822)

<div class="topic-metadata">

**Author:** [@elgringo](https://www.ruby-forum.com/u/elgringo)\
**Replies:** 4\
**Last updated:** [July 8, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/what-are-contractor-rates-for-ror-programmers/108822 "2007-07-08T15:48:31Z")

</div>

I’m in the Bay area, finishing my CS degree part time and learning RoR. I’d love to be able to quit my day job and do RoR contracting in 6 months to 1 year. Just wondering what people are getting paid for contract …

---

## [Modifying error\_messages\_for - I'm completely stuck](https://www.ruby-forum.com/t/modifying-error-messages-for-im-completely-stuck/108359)

<div class="topic-metadata">

**Author:** [@darrenevans](https://www.ruby-forum.com/u/darrenevans)\
**Replies:** 8\
**Last updated:** [July 8, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/modifying-error-messages-for-im-completely-stuck/108359 "2007-07-08T15:33:27Z")

</div>

To cope with languages other than English, it seems to be necessary to modify error\_messages\_for by defining a new application helper. Tricky stuff for a novice like me! I need to get all of the text out so that I can…

---

## [Controller and model strategies](https://www.ruby-forum.com/t/controller-and-model-strategies/108872)

<div class="topic-metadata">

**Author:** [@John\_Gunnarsson](https://www.ruby-forum.com/u/John_Gunnarsson)\
**Replies:** 2\
**Last updated:** [July 8, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/controller-and-model-strategies/108872 "2007-07-08T15:03:33Z")

</div>

Hi, I’m very new to ROR and have aquestion about which stregy to use for using controllers. Lets say i have 3 classes: order order\_lines customer I would like to build an application where i can create customer. …

---

## [Limiting an :include](https://www.ruby-forum.com/t/limiting-an-include/108868)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 1\
**Last updated:** [July 8, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/limiting-an-include/108868 "2007-07-08T14:27:29Z")

</div>

Hello, I have image categories, and each category has an image. In my controller I’m using: @image\_categories = ImageCategory.find(:all, :include =\> :images) and inside the view \<% @image\_categories.each do | catego…

---

## [PHP vs RubyOnRails newbie concerns/questions](https://www.ruby-forum.com/t/php-vs-rubyonrails-newbie-concerns-questions/108506)

<div class="topic-metadata">

**Author:** [@whiterabbit](https://www.ruby-forum.com/u/whiterabbit)\
**Replies:** 18\
**Last updated:** [July 8, 2007, 11:56am UTC](https://www.ruby-forum.com/t/php-vs-rubyonrails-newbie-concerns-questions/108506 "2007-07-08T11:56:14Z")

</div>

Hi all, I’m planning to bring a new app. to market, and I’m more the designer and business manager than the programmer for this project. We are deciding that technologies to use, and so I asked my programmer to take …

---

## [Monit restart -\> poop goes clusters and load balancer](https://www.ruby-forum.com/t/monit-restart-poop-goes-clusters-and-load-balancer/108864)

<div class="topic-metadata">

**Author:** [@eddy](https://www.ruby-forum.com/u/eddy)\
**Replies:** 0\
**Last updated:** [July 8, 2007, 11:46am UTC](https://www.ruby-forum.com/t/monit-restart-poop-goes-clusters-and-load-balancer/108864 "2007-07-08T11:46:28Z")

</div>

hi. this happened to me today. (newb) : monit seemingly resets itself, and in the process, stopped pen and mongrel clusters… so my question then is: is the monit reset interval automatic or is it when something hap…

---

## [UJS and make\_observed](https://www.ruby-forum.com/t/ujs-and-make-observed/108865)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 0\
**Last updated:** [July 8, 2007, 11:23am UTC](https://www.ruby-forum.com/t/ujs-and-make-observed/108865 "2007-07-08T11:23:13Z")

</div>

\<%= text\_field\_tag :user\_search, params\[ :user\_search \] %\> \<%= apply\_behaviour "#user\_search", make\_observed( :field, :update =\> 'contresults', :with =\> "'user\_search=…

---

## [Is it possible to use link\_to\_remote with dynamic links?](https://www.ruby-forum.com/t/is-it-possible-to-use-link-to-remote-with-dynamic-links/108821)

<div class="topic-metadata">

**Author:** [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Replies:** 1\
**Last updated:** [July 8, 2007, 10:06am UTC](https://www.ruby-forum.com/t/is-it-possible-to-use-link-to-remote-with-dynamic-links/108821 "2007-07-08T10:06:37Z")

</div>

As part of a search results page, I’m trying allow users of a particular application to view more details of individual products without 1) having to load a whole new page, 2) loading details through an IFRAME or 3) h…

---

## [ActiveRecord Validations (noob question)](https://www.ruby-forum.com/t/activerecord-validations-noob-question/108855)

<div class="topic-metadata">

**Author:** [@cliffking](https://www.ruby-forum.com/u/cliffking)\
**Replies:** 1\
**Last updated:** [July 8, 2007, 5:28am UTC](https://www.ruby-forum.com/t/activerecord-validations-noob-question/108855 "2007-07-08T05:28:56Z")

</div>

Hey everyone, I’m just beginning rails (and this list) and I am having a little trouble with something. I’m trying to make sure I validate everything that needs to be validated, but I’m having a hard time grasping ho…

---

## [How to cache page using gettext?](https://www.ruby-forum.com/t/how-to-cache-page-using-gettext/108568)

<div class="topic-metadata">

**Author:** [@Ye\_Dingding](https://www.ruby-forum.com/u/Ye_Dingding)\
**Replies:** 2\
**Last updated:** [July 8, 2007, 3:38am UTC](https://www.ruby-forum.com/t/how-to-cache-page-using-gettext/108568 "2007-07-08T03:38:51Z")

</div>

I use gettext to translate my application. But when i want to do caching, i met the problem? How can i cache the page under different language, such as english, chinese. Then it will auto-load the related html file …

---

## [Can helpers manipulate block?](https://www.ruby-forum.com/t/can-helpers-manipulate-block/108842)

<div class="topic-metadata">

**Author:** [@Michael\_Bannister](https://www.ruby-forum.com/u/Michael_Bannister)\
**Replies:** 2\
**Last updated:** [July 8, 2007, 3:18am UTC](https://www.ruby-forum.com/t/can-helpers-manipulate-block/108842 "2007-07-08T03:18:49Z")

</div>

hi, i’m unsure the best way to ask this but i’m wondering if a rails helper can manipulate html. for instance if i had a helper that looked like this: \<% my\_helper do %\> \<% end %\> is there a way i can programati…

---

## [ActionView table renderer](https://www.ruby-forum.com/t/actionview-table-renderer/108844)

<div class="topic-metadata">

**Author:** [@Cow](https://www.ruby-forum.com/u/Cow)\
**Replies:** 0\
**Last updated:** [July 8, 2007, 1:17am UTC](https://www.ruby-forum.com/t/actionview-table-renderer/108844 "2007-07-08T01:17:43Z")

</div>

Hi all, I’ve always been a big fan of writing clean (DRY) code and so I figured that with ruby and rails I’m in the right place. Having some fun with rails for a few months there’s one thing that starts to annoy me. …

---

## [For those of you looking for info FLPR.org](https://www.ruby-forum.com/t/for-those-of-you-looking-for-info-flpr-org/108841)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 0\
**Last updated:** [July 8, 2007, 1:07am UTC](https://www.ruby-forum.com/t/for-those-of-you-looking-for-info-flpr-org/108841 "2007-07-08T01:07:42Z")

</div>

Two years ago I started a website called flpr.org. It was my first tech blog, and had info on using what I considered to be the ultimate web stack - FreeBSD, lighttpd, PostgreSQL, and of course Rails. Since then I’ve …

---

## [Respond\_to for unknown type](https://www.ruby-forum.com/t/respond-to-for-unknown-type/108840)

<div class="topic-metadata">

**Author:** [@Kristoph](https://www.ruby-forum.com/u/Kristoph)\
**Replies:** 0\
**Last updated:** [July 8, 2007, 12:36am UTC](https://www.ruby-forum.com/t/respond-to-for-unknown-type/108840 "2007-07-08T00:36:41Z")

</div>

Greetings, How would I go about handling an unknown type in a respond\_to block? That is, I currently have … respond\_to do | format | format.html { do something } format.xml { do something else } end I would like …

---

## [\[ANN\] Haml 1.7 - Now With Speed!](https://www.ruby-forum.com/t/ann-haml-1-7-now-with-speed/108838)

<div class="topic-metadata">

**Author:** [@Nathan\_Weizenbaum](https://www.ruby-forum.com/u/Nathan_Weizenbaum)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/ann-haml-1-7-now-with-speed/108838 "2007-07-07T23:55:38Z")

</div>

Haml 1.7 has been released! In addition to various bugfixes and plenty of new features, Haml 1.7 is now only 1.8 times slower than ERB. This is down from 1.5, which was 3x slower, and way down from 1.0, which was 8.5x…

---

## [Before\_save returning false does not roll back transaction](https://www.ruby-forum.com/t/before-save-returning-false-does-not-roll-back-transaction/108835)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/before-save-returning-false-does-not-roll-back-transaction/108835 "2007-07-07T23:17:56Z")

</div>

I have models with has\_many and belongs\_to associations. I create a group of three interconnected records and do a save. The last record to be saved does not pass the before\_save criteria and so my before\_save functi…

---

## [Ajax and Rails with two people?](https://www.ruby-forum.com/t/ajax-and-rails-with-two-people/108832)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 3\
**Last updated:** [July 7, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/ajax-and-rails-with-two-people/108832 "2007-07-07T23:13:20Z")

</div>

Hi there, I’m looking for a little guidance for a project I’d like to start. I’m fairly familiar with Rails, but still new to Ajax. I want a part of an app to include a back-and-forth between two people, kind of like …

---

## [Events in view question](https://www.ruby-forum.com/t/events-in-view-question/108837)

<div class="topic-metadata">

**Author:** [@ike](https://www.ruby-forum.com/u/ike)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/events-in-view-question/108837 "2007-07-07T22:58:33Z")

</div>

I have taken an example wherein, using Ajax, the values of a second combobox are populated by a change in the primary combobox. The code is shown below. I realise it will seem as though I am asking someone to write th…

---

## [How to manage errors in ARes?](https://www.ruby-forum.com/t/how-to-manage-errors-in-ares/108834)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/how-to-manage-errors-in-ares/108834 "2007-07-07T22:50:32Z")

</div>

how to manage errors in ARes? Hey all, I have that function: def create @profile = Profile.new(params\[:profile\]) respond\_to do |format| if @profile.save flash\[:notice\] = 'Profile was successfully created.' …

---

## [The Case Against Ruby on Rails](https://www.ruby-forum.com/t/the-case-against-ruby-on-rails/108706)

<div class="topic-metadata">

**Author:** [@whiterabbit](https://www.ruby-forum.com/u/whiterabbit)\
**Replies:** 6\
**Last updated:** [July 7, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/the-case-against-ruby-on-rails/108706 "2007-07-07T22:31:20Z")

</div>

Some blockhead wrote this absurd critique of RoR. Thought some of you might want to comment on his article. Just search that page for “max hodges” to see the reply I posted: http://alterlabs.com/general/articles/blasp…

---

## [SVN login information? (Aptana / RadRails)](https://www.ruby-forum.com/t/svn-login-information-aptana-radrails/108833)

<div class="topic-metadata">

**Author:** [@The\_Deer](https://www.ruby-forum.com/u/The_Deer)\
**Replies:** 0\
**Last updated:** [July 7, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/svn-login-information-aptana-radrails/108833 "2007-07-07T21:56:43Z")

</div>

Hi all, Do you know how I can reinitialize the SVN login information if I am using Aptana RadRails ? I am no longer able to commit (it says permissiond denied) Thank you The Deer

---

## [ActiveRecord bottom half](https://www.ruby-forum.com/t/activerecord-bottom-half/108823)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 6\
**Last updated:** [July 7, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/activerecord-bottom-half/108823 "2007-07-07T21:35:36Z")

</div>

I want a different way of doing polymorphic records. One problem I have is validates\_presence\_of does not work for me – and no one replied to my question. I am finding it hard to make sure the database stays consist…

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

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