# Rails

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

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

---

## [Can't get lighty to compress static rails files](https://www.ruby-forum.com/t/cant-get-lighty-to-compress-static-rails-files/104952)

<div class="topic-metadata">

**Author:** [@ben](https://www.ruby-forum.com/u/ben)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 9:20am UTC](https://www.ruby-forum.com/t/cant-get-lighty-to-compress-static-rails-files/104952 "2007-05-24T09:20:32Z")

</div>

Hi there, I posted this in the lighttpd forum a few days ago, but didn’t get any responses. I’ve been trying to get lighty to compress my html, css, and javascript using mod\_compress. My config (see below) works perf…

---

## [Rails model validation: Can I create my own validations?](https://www.ruby-forum.com/t/rails-model-validation-can-i-create-my-own-validations/104845)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [May 24, 2007, 8:53am UTC](https://www.ruby-forum.com/t/rails-model-validation-can-i-create-my-own-validations/104845 "2007-05-24T08:53:05Z")

</div>

Hi, Is it possible to create my own validations within the Rails model validation framework? In particular I’m interesting in being able to create a global (i.e. not associated with a particular field) business logic…

---

## [Acts\_as\_searchable versus acts\_as\_solr](https://www.ruby-forum.com/t/acts-as-searchable-versus-acts-as-solr/104950)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 8:52am UTC](https://www.ruby-forum.com/t/acts-as-searchable-versus-acts-as-solr/104950 "2007-05-24T08:52:04Z")

</div>

Which would one prefer between acts\_as\_solr versus acts\_as\_searchable for connecting to solr? Its currently connecting via acts\_as\_searchable and im wondering if on the next app its worth upgrading to acts\_as\_solr… A…

---

## [Asset tag helper](https://www.ruby-forum.com/t/asset-tag-helper/104949)

<div class="topic-metadata">

**Author:** [@zephyr](https://www.ruby-forum.com/u/zephyr)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 8:46am UTC](https://www.ruby-forum.com/t/asset-tag-helper/104949 "2007-05-24T08:46:04Z")

</div>

Is it possible to add another asset tag helper (ActionView::Helpers::AssetTagHelper ) ?? coz i’m using the ActionController::Base.asset\_host = “http:// assets.example.com” for my static files… and I want my app to get …

---

## [Help needed : Regarding correct use of Models](https://www.ruby-forum.com/t/help-needed-regarding-correct-use-of-models/104948)

<div class="topic-metadata">

**Author:** [@zenith](https://www.ruby-forum.com/u/zenith)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 8:46am UTC](https://www.ruby-forum.com/t/help-needed-regarding-correct-use-of-models/104948 "2007-05-24T08:46:03Z")

</div>

Hi all , I am fairly new to Ruby as well as Rails . Although I have made an application on RoR , I am still not sure if I have put the correct code at the correct place . Its a web-service client side app which does…

---

## [Change location of Ruby installation](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937)

<div class="topic-metadata">

**Author:** [@seanstewart](https://www.ruby-forum.com/u/seanstewart)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 8:39am UTC](https://www.ruby-forum.com/t/change-location-of-ruby-installation/104937 "2007-05-24T08:39:03Z")

</div>

My local ruby installation is located in /usr/local/bin/ruby and my server’s installation is located in /usr/bin/ruby. It is a pain changing the location in dispatch.fcgi, dispatch.cgi, and dispatch.rb so I figure th…

---

## [Asset tag helpers](https://www.ruby-forum.com/t/asset-tag-helpers/104947)

<div class="topic-metadata">

**Author:** [@zephyr](https://www.ruby-forum.com/u/zephyr)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 8:31am UTC](https://www.ruby-forum.com/t/asset-tag-helpers/104947 "2007-05-24T08:31:02Z")

</div>

Is it possible to add another asset tag helper (ActionView::Helpers::AssetTagHelper ) ?? coz i’m using the ActionController::Base.asset\_host = “http:// assets.example.com” for my static files… and I want my app to get …

---

## [Rails Dictonary](https://www.ruby-forum.com/t/rails-dictonary/104944)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 7:05am UTC](https://www.ruby-forum.com/t/rails-dictonary/104944 "2007-05-24T07:05:12Z")

</div>

Is there any dictonary to integrate with rail application?

---

## [Where to start programming?](https://www.ruby-forum.com/t/where-to-start-programming/104828)

<div class="topic-metadata">

**Author:** [@iNeedHelp](https://www.ruby-forum.com/u/iNeedHelp)\
**Replies:** 7\
**Last updated:** [May 24, 2007, 6:53am UTC](https://www.ruby-forum.com/t/where-to-start-programming/104828 "2007-05-24T06:53:56Z")

</div>

I already learned and know enough about rails, now Iwant to start developing my 2.0 web site, but… where should I start, what should I do first, and then?.. and then?? Please help me :slight\_smile: thanks

---

## [\[RJS\] How can i reload a script](https://www.ruby-forum.com/t/rjs-how-can-i-reload-a-script/104942)

<div class="topic-metadata">

**Author:** [@sishen](https://www.ruby-forum.com/u/sishen)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 6:23am UTC](https://www.ruby-forum.com/t/rjs-how-can-i-reload-a-script/104942 "2007-05-24T06:23:55Z")

</div>

I met a problem about reloading a script. Below is the source code. display.rhtml: {{{ \<%= text\_field\_tag :title %\> \<%= observe\_field :title, :frequency =\> 0.5, :url =\> { :action =\> “update” }, :with =\> “title” %\> …

---

## [:join not working](https://www.ruby-forum.com/t/join-not-working/104935)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 4:27am UTC](https://www.ruby-forum.com/t/join-not-working/104935 "2007-05-24T04:27:47Z")

</div>

I have a table called emails and a table called codes. emails have columns email\_addr and type\_cd and codes have columns family\_name, code, code\_desc and rank. For example: –emails– email\_addr : removed\_email\_addre…

---

## [Habtm - stack too deep error](https://www.ruby-forum.com/t/habtm-stack-too-deep-error/104540)

<div class="topic-metadata">

**Author:** [@Siddharth\_Karandika](https://www.ruby-forum.com/u/Siddharth_Karandika)\
**Replies:** 8\
**Last updated:** [May 24, 2007, 4:09am UTC](https://www.ruby-forum.com/t/habtm-stack-too-deep-error/104540 "2007-05-24T04:09:45Z")

</div>

Hi all, I am trying to create many-to-many relationship between models “Topic” and “Category” I am trying following in rails console which gives me exception. t1 = Topic.new(:title =\> “t1”) c1 = Category.new(:name…

---

## [Newbie having trouble with RubyGems](https://www.ruby-forum.com/t/newbie-having-trouble-with-rubygems/104940)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [May 24, 2007, 3:29am UTC](https://www.ruby-forum.com/t/newbie-having-trouble-with-rubygems/104940 "2007-05-24T03:29:41Z")

</div>

I am in the process of installing Ruby on Rails on AIX 5L 5.2. I was unable to compile Ruby but successfully found a set of binaries for AIX 5.1 which I deployed and tested. The Ruby tutorial I walked through using …

---

## [Works on intial show, but not after validation error](https://www.ruby-forum.com/t/works-on-intial-show-but-not-after-validation-error/104822)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 2:45am UTC](https://www.ruby-forum.com/t/works-on-intial-show-but-not-after-validation-error/104822 "2007-05-24T02:45:49Z")

</div>

I have a shipment model with a method called returnable? If a shipment has been delivered, it figures out what the last returnable date is, delivery date + 14 days. In Shipment Model def returnable? if last\_return\_d…

---

## [Recreate a CMS from PHP](https://www.ruby-forum.com/t/recreate-a-cms-from-php/95243)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 1:53am UTC](https://www.ruby-forum.com/t/recreate-a-cms-from-php/95243 "2007-05-24T01:53:04Z")

</div>

I’ve built a kind of cms in php, and I wonder if someone could give me some hints on how to do this in RoR. Doesn’t have to be much, just so I can get an idea of what I should learn and tackle as a new user of both Ru…

---

## [Migrations add\_index](https://www.ruby-forum.com/t/migrations-add-index/104924)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 1:08am UTC](https://www.ruby-forum.com/t/migrations-add-index/104924 "2007-05-24T01:08:09Z")

</div>

Hi all, If I have the following migration: class CreateDocuments \< ActiveRecord::Migration def self.up create\_table :documents do |t| t.column :created\_at, :datetime t.column :identifier, :string t.column :file\_fo…

---

## [Automated operations on a database](https://www.ruby-forum.com/t/automated-operations-on-a-database/104932)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 1\
**Last updated:** [May 24, 2007, 12:39am UTC](https://www.ruby-forum.com/t/automated-operations-on-a-database/104932 "2007-05-24T00:39:32Z")

</div>

Hello, i have a question about a problem i can’t figure out how to solve. I have a standard RoR application made with the classic MVC model, and I need to (for example) edit a value in a table with a time-based rule. …

---

## [Limiting text tinput](https://www.ruby-forum.com/t/limiting-text-tinput/104929)

<div class="topic-metadata">

**Author:** [@raj\_ma](https://www.ruby-forum.com/u/raj_ma)\
**Replies:** 3\
**Last updated:** [May 24, 2007, 12:27am UTC](https://www.ruby-forum.com/t/limiting-text-tinput/104929 "2007-05-24T00:27:39Z")

</div>

I want to limit blog entry to 500 words. How do I do and handle it. Thank you. PS: new bee.

---

## [Function definition inside script in remote call](https://www.ruby-forum.com/t/function-definition-inside-script-in-remote-call/104931)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/function-definition-inside-script-in-remote-call/104931 "2007-05-23T23:37:26Z")

</div>

I’m using remote request to update a div with a table. At the end of the table I have some javascript where I define a function start table.rhtml etc... end table.rhtml But when I try to call that function i got t…

---

## [How to create archive list?](https://www.ruby-forum.com/t/how-to-create-archive-list/104911)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/how-to-create-archive-list/104911 "2007-05-23T22:59:02Z")

</div>

Hello, I want to do archive list like in any blogs? But I cannot really think how it’s done? Do they group the created\_at and then extract the column, but this would work since created\_at have different dates all the…

---

## [User Login (process\_login)](https://www.ruby-forum.com/t/user-login-process-login/104895)

<div class="topic-metadata">

**Author:** [@kobrakai](https://www.ruby-forum.com/u/kobrakai)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 10:58pm UTC](https://www.ruby-forum.com/t/user-login-process-login/104895 "2007-05-23T22:58:22Z")

</div>

Hiya - before I start let me tell you i’m a Nuby on Rails. I’ve created a user registration within my application that requires email validation and that seems to be working fine. I’m now creating the user login page …

---

## [Issues with searching custom fields with acts\_as\_ferret](https://www.ruby-forum.com/t/issues-with-searching-custom-fields-with-acts-as-ferret/132491)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/issues-with-searching-custom-fields-with-acts-as-ferret/132491 "2007-05-23T22:42:21Z")

</div>

Hey all, I’m using acts\_as\_ferret this way: class Job \< ActiveRecord::Base acts\_as\_ferret :fields =\> \[:title, :workers\_name\] def workers\_name return self.workers.inject("") {|names,b| names + " " + b.first\_name}.to…

---

## [Config.plugins doesn't work](https://www.ruby-forum.com/t/config-plugins-doesnt-work/104253)

<div class="topic-metadata">

**Author:** [@Parker\_T](https://www.ruby-forum.com/u/Parker_T)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/config-plugins-doesnt-work/104253 "2007-05-23T22:41:20Z")

</div>

Hi, I see references to using config.plugins like so: config.plugins = \[ ‘plugin\_dependencies’, “\*” \] in the engines and appable plugins worlds (et al). Reading the initializer code I just can’t see how this wou…

---

## [Alias\_method in a plugin](https://www.ruby-forum.com/t/alias-method-in-a-plugin/104824)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 7\
**Last updated:** [May 23, 2007, 10:07pm UTC](https://www.ruby-forum.com/t/alias-method-in-a-plugin/104824 "2007-05-23T22:07:14Z")

</div>

Hi all, I’m trying to override some method of a class. I’ve created an acts\_as\_money method. The first parameter is the method name that should be overridden. For example: I have a model with an attribute “amount”. I…

---

## [Mongrel and RubyInline](https://www.ruby-forum.com/t/mongrel-and-rubyinline/104920)

<div class="topic-metadata">

**Author:** [@Bosko\_M](https://www.ruby-forum.com/u/Bosko_M)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/mongrel-and-rubyinline/104920 "2007-05-23T21:45:06Z")

</div>

If you have a Rails application which requires the RubyInline gem (either directly or through something else like ImageScience), then you might have problems if you are using sudo in capistrano or doing a ‘mongrel\_clu…

---

## [More case studies added to Rails For All](https://www.ruby-forum.com/t/more-case-studies-added-to-rails-for-all/104919)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [May 23, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/more-case-studies-added-to-rails-for-all/104919 "2007-05-23T21:42:05Z")

</div>

Hey all, We have added two new case studies to the Rails For All site (http:// www.railsforall.org). They are ordered by date so check em out. More are on the way along with interviews following Railsconf. If you have …

---

## [Where do 'logger.debug' statements go in a production enviro](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826)

<div class="topic-metadata">

**Author:** [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/where-do-logger-debug-statements-go-in-a-production-enviro/104826 "2007-05-23T21:38:04Z")

</div>

Specifically within the dreamhost environment (fastcgi)? (that’s the only place I’ve attempted deploying out to). I’ve placed a few logger.debug statements in my application but don’t see them popping up anywhere - pr…

---

## [Is it possible to track third-party clickthroughs via a fram](https://www.ruby-forum.com/t/is-it-possible-to-track-third-party-clickthroughs-via-a-fram/104910)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-track-third-party-clickthroughs-via-a-fram/104910 "2007-05-23T21:28:03Z")

</div>

Does anyone know if the following is possible with a framed page? Basically, we would frame a web page allow the user to navigate to third party sites. Every time the user clicks through to links within that other si…

---

## [Find :last](https://www.ruby-forum.com/t/find-last/104916)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [May 23, 2007, 9:23pm UTC](https://www.ruby-forum.com/t/find-last/104916 "2007-05-23T21:23:02Z")

</div>

I don’t seem to be able to find ‘last’ record but only first record even though I can ‘order’ Placement.find(:first, :conditions =\> \[“client\_id = ? AND discharge\_date IS NULL”, self\], :order =\> ‘admission\_date DESC’).…

---

## [Development Mode: Class reloading gone nuts!](https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912)

<div class="topic-metadata">

**Author:** [@bramski](https://www.ruby-forum.com/u/bramski)\
**Replies:** 1\
**Last updated:** [May 23, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/development-mode-class-reloading-gone-nuts/104912 "2007-05-23T20:40:58Z")

</div>

This is mostly that I’ve gone a bit crazy, but I’m looking for an explanation of how class reloading works so I can try and debug this issue… I have a class… class Event before\_create :bootstrap\_current\_user def bo…

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

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