# Rails

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

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

---

## [Get paid to surf Ads....its real](https://www.ruby-forum.com/t/get-paid-to-surf-ads-its-real/105757)

<div class="topic-metadata">

**Author:** [@coolguy17111987](https://www.ruby-forum.com/u/coolguy17111987)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 7:51am UTC](https://www.ruby-forum.com/t/get-paid-to-surf-ads-its-real/105757 "2007-06-02T07:51:57Z")

</div>

Hi all Now you can get paid to surf ads…All you need to do is register on their site, surf ads for 30 seconds. And you will be credited with the earning immediately. Ist’nt dat amazing. Many of you must have already …

---

## [Database SSL](https://www.ruby-forum.com/t/database-ssl/105699)

<div class="topic-metadata">

**Author:** [@fredknowles](https://www.ruby-forum.com/u/fredknowles)\
**Replies:** 1\
**Last updated:** [June 2, 2007, 7:37am UTC](https://www.ruby-forum.com/t/database-ssl/105699 "2007-06-02T07:37:56Z")

</div>

Are there any other database adapters other than MySQL that support SSL?

---

## [Where to get list of all ActiveRecord classes](https://www.ruby-forum.com/t/where-to-get-list-of-all-activerecord-classes/105565)

<div class="topic-metadata">

**Author:** [@pcollins](https://www.ruby-forum.com/u/pcollins)\
**Replies:** 3\
**Last updated:** [June 2, 2007, 4:15am UTC](https://www.ruby-forum.com/t/where-to-get-list-of-all-activerecord-classes/105565 "2007-06-02T04:15:42Z")

</div>

Anybody know how to get a list of all your model classes from a rails environment? I’d like to do something like “ActiveRecord::Base.subclasses” but that gives me: pcollins@horatio:~/proj/foobox$ script/console Load…

---

## [Meta helper help](https://www.ruby-forum.com/t/meta-helper-help/105673)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 1\
**Last updated:** [June 2, 2007, 3:40am UTC](https://www.ruby-forum.com/t/meta-helper-help/105673 "2007-06-02T03:40:40Z")

</div>

I’d like to write a helper thats used like this: \<%= template\_info %\> which replaces code like this: \<% if RAILS\_ENV == “development” %\> Template: \<%= \_\_FILE\_\_ %\> \<% end %\> but when i write my helper it outputs …

---

## [Calling a model from a helper](https://www.ruby-forum.com/t/calling-a-model-from-a-helper/105733)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 4\
**Last updated:** [June 2, 2007, 3:31am UTC](https://www.ruby-forum.com/t/calling-a-model-from-a-helper/105733 "2007-06-02T03:31:39Z")

</div>

I recently saw some Rails code where a model was called from a helper function. I was wondering if that is allowed by MVC? Right now I’m working on this: my controller finds a list of projects… @projects = Project.f…

---

## [Acts\_as\_ferret problem](https://www.ruby-forum.com/t/acts-as-ferret-problem/105726)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 2\
**Last updated:** [June 2, 2007, 3:16am UTC](https://www.ruby-forum.com/t/acts-as-ferret-problem/105726 "2007-06-02T03:16:35Z")

</div>

Hi I am trying to work with acts\_as\_ferret gem. On one application everything works fine. On the other app the result array is always empty, whatever i try to search through console even though it should have listed …

---

## [USPS Shipping?](https://www.ruby-forum.com/t/usps-shipping/105743)

<div class="topic-metadata">

**Author:** [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Replies:** 1\
**Last updated:** [June 2, 2007, 2:33am UTC](https://www.ruby-forum.com/t/usps-shipping/105743 "2007-06-02T02:33:34Z")

</div>

Howdy, Does anyone have or know of a plug in or gem that does USPS (US Postal Service) rates based on their Web API? I know the shipping gem does FedEx and UPS, which is awesome, but I haven’t seen anything for USPS …

---

## [Autotest versus Cruisecontrol.rb - Which to start with?](https://www.ruby-forum.com/t/autotest-versus-cruisecontrol-rb-which-to-start-with/105675)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [June 2, 2007, 2:08am UTC](https://www.ruby-forum.com/t/autotest-versus-cruisecontrol-rb-which-to-start-with/105675 "2007-06-02T02:08:34Z")

</div>

Hi, What should I look into re setting up continuous integration? The two I’ve heard about for Ruby on Rails work area AutoTest and CruiseControl.rb. Any advice? Tks

---

## [Extra Model Attributes from DB](https://www.ruby-forum.com/t/extra-model-attributes-from-db/105745)

<div class="topic-metadata">

**Author:** [@PeteSalty](https://www.ruby-forum.com/u/PeteSalty)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 1:31am UTC](https://www.ruby-forum.com/t/extra-model-attributes-from-db/105745 "2007-06-02T01:31:32Z")

</div>

We have two models, Articles and Votes; it’s the typical situation; users can vote on articles so the models look something like this: class Article \< ActiveRecord::Base has\_many :votes end class Vote \< ActiveRecord…

---

## [Special characters in db](https://www.ruby-forum.com/t/special-characters-in-db/96242)

<div class="topic-metadata">

**Author:** [@Johan\_Chaves\_Sabor](https://www.ruby-forum.com/u/Johan_Chaves_Sabor)\
**Replies:** 2\
**Last updated:** [June 2, 2007, 1:19am UTC](https://www.ruby-forum.com/t/special-characters-in-db/96242 "2007-06-02T01:19:22Z")

</div>

This is my first message in this list, so hi everybody!!! (by the way, sorry for my english) I am developing a spanish applications, so some data has special characters (Ã¡, Ã©, Ã±, etc…) in database… The problem i…

---

## [Need Ruby on Rails specialist to join the team (San Jose - S](https://www.ruby-forum.com/t/need-ruby-on-rails-specialist-to-join-the-team-san-jose-s/105742)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 0\
**Last updated:** [June 2, 2007, 12:12am UTC](https://www.ruby-forum.com/t/need-ruby-on-rails-specialist-to-join-the-team-san-jose-s/105742 "2007-06-02T00:12:25Z")

</div>

This is a start up venture. We are looking for Ruby on Rails specialist to join the team working on a new project. We are developing website application based on database using Ajax and Ruby on Rails technology. The p…

---

## ["Exception: stack level too deep" on collection.clear?](https://www.ruby-forum.com/t/exception-stack-level-too-deep-on-collection-clear/105734)

<div class="topic-metadata">

**Author:** [@AndyV](https://www.ruby-forum.com/u/AndyV)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 10:50pm UTC](https://www.ruby-forum.com/t/exception-stack-level-too-deep-on-collection-clear/105734 "2007-06-01T22:50:14Z")

</div>

Without getting too deep into my app I’m wondering if anyone has any clues what might give rise to the error posted below. It occurs when I run my unit tests. class Actor \< AR:Base belongs\_to :court\_case end class…

---

## [Installing plugins that require a username / password](https://www.ruby-forum.com/t/installing-plugins-that-require-a-username-password/105729)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/installing-plugins-that-require-a-username-password/105729 "2007-06-01T22:41:12Z")

</div>

I have an SVN repository that is accessible via http, but it requires a username and password. Any idea how to install this plugin using a username and password? Thanks for your help.

---

## [Easy Question: How to set the day for a Time object?](https://www.ruby-forum.com/t/easy-question-how-to-set-the-day-for-a-time-object/105724)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 8\
**Last updated:** [June 1, 2007, 10:09pm UTC](https://www.ruby-forum.com/t/easy-question-how-to-set-the-day-for-a-time-object/105724 "2007-06-01T22:09:07Z")

</div>

Let’s say I have this: @start\_date = 1.month.from\_now I want to make sure that the “day” for @start\_date is always 1. How can I change the day for @start\_date?

---

## [Edit method: Populating select box values](https://www.ruby-forum.com/t/edit-method-populating-select-box-values/105657)

<div class="topic-metadata">

**Author:** [@reback](https://www.ruby-forum.com/u/reback)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/edit-method-populating-select-box-values/105657 "2007-06-01T21:07:31Z")

</div>

I have an employees table that contains fields that are boolean to control information formatting. The ‘new’ method sets the value of the select box to the default value contained in the table. During the ‘edit’ met…

---

## [Suggestions needed for strange problem on only one mongrel i](https://www.ruby-forum.com/t/suggestions-needed-for-strange-problem-on-only-one-mongrel-i/91106)

<div class="topic-metadata">

**Author:** [@cwt137](https://www.ruby-forum.com/u/cwt137)\
**Replies:** 5\
**Last updated:** [June 1, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/suggestions-needed-for-strange-problem-on-only-one-mongrel-i/91106 "2007-06-01T20:51:08Z")

</div>

I’m about to release my app (was going to today), but have found a last minute bug that I’m have difficulty tying down, never mind fix. It’s occurring sporadically, and is fixed (temporarily) by restarting the instanc…

---

## [Rails does not auto-re-read files in /lib in devel mode?](https://www.ruby-forum.com/t/rails-does-not-auto-re-read-files-in-lib-in-devel-mode/105722)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/rails-does-not-auto-re-read-files-in-lib-in-devel-mode/105722 "2007-06-01T20:13:15Z")

</div>

In development mode my understanding is that Rails re-reads every file each time a client does something in order to make sure any new code is implemented. Bt it doesn’t seem to do this with files in /lib - is there a…

---

## [Array parameter unescaping in Rails 1.2.3](https://www.ruby-forum.com/t/array-parameter-unescaping-in-rails-1-2-3/105723)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/array-parameter-unescaping-in-rails-1-2-3/105723 "2007-06-01T19:49:46Z")

</div>

Has anyone observed strange results with specialized form construction that yields array parameters in Rails? Specifically, I’m having an issue where values aren’t being properly unescaped: … author\_fields.text\_field …

---

## [Rails way to make a tag class active in view?](https://www.ruby-forum.com/t/rails-way-to-make-a-tag-class-active-in-view/105709)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 4\
**Last updated:** [June 1, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/rails-way-to-make-a-tag-class-active-in-view/105709 "2007-06-01T19:46:46Z")

</div>

for example 3 is in active state. right now all i can think of is in each action, just set a variable like @active = ‘active’ or ‘’, but not sure what to do with the span. \<ul\> \<!-- The link you call "active" will s…

---

## [TzTime doesn't get saved in ActiveRecord?](https://www.ruby-forum.com/t/tztime-doesnt-get-saved-in-activerecord/105720)

<div class="topic-metadata">

**Author:** [@Reynard](https://www.ruby-forum.com/u/Reynard)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 7:26pm UTC](https://www.ruby-forum.com/t/tztime-doesnt-get-saved-in-activerecord/105720 "2007-06-01T19:26:44Z")

</div>

after reading Rick’s blog about tztime plugin: http://activereload.net/2007/4/13/dealing-with-timezones It seems that you should be able to set TzTime object to a datetime field, which will automatically converts it t…

---

## [\[ANN\] Calendariffic 0.1.0](https://www.ruby-forum.com/t/ann-calendariffic-0-1-0/105714)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/ann-calendariffic-0-1-0/105714 "2007-06-01T19:02:40Z")

</div>

The Calendariffic plugin allows the user to create a DHTML pop-up calendar and an associated text-box that displays the selected date using 1 Rails function from within a .rhtml file. Like all the other good calendar…

---

## [Page.replace\_html problem](https://www.ruby-forum.com/t/page-replace-html-problem/105694)

<div class="topic-metadata">

**Author:** [@emiliano](https://www.ruby-forum.com/u/emiliano)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/page-replace-html-problem/105694 "2007-06-01T17:50:33Z")

</div>

Hi all, I tried to use ajax in a simple eshop application, but the page.replace\_html fail in strange mode. Controller code: class mycontroller \< ApplicationController Some code def login # Check user existence in d…

---

## [Turning off activerecord transactions](https://www.ruby-forum.com/t/turning-off-activerecord-transactions/105713)

<div class="topic-metadata">

**Author:** [@David\_Balatero](https://www.ruby-forum.com/u/David_Balatero)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 5:50pm UTC](https://www.ruby-forum.com/t/turning-off-activerecord-transactions/105713 "2007-06-01T17:50:33Z")

</div>

I have an import script that uses ActiveRecord, but it is generating a single transaction per SQL query. My import script is also threaded, so I don’t want to use ActiveRecord::Base.transaction {} blocks in my thread…

---

## [Cache\_page does not work](https://www.ruby-forum.com/t/cache-page-does-not-work/105686)

<div class="topic-metadata">

**Author:** [@shawn\_shao](https://www.ruby-forum.com/u/shawn_shao)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/cache-page-does-not-work/105686 "2007-06-01T17:38:31Z")

</div>

Hi guys: i got a problem on caching my pages: in my Sweeper i wrote: class MySweeper \< ActionController::Caching::Sweeper observe Post def after\_save(post) expire\_page(:controller =\> ‘post’, :action =\> ‘show’, :id =\>…

---

## [Switch database based on input request](https://www.ruby-forum.com/t/switch-database-based-on-input-request/105625)

<div class="topic-metadata">

**Author:** [@akull82](https://www.ruby-forum.com/u/akull82)\
**Replies:** 2\
**Last updated:** [June 1, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/switch-database-based-on-input-request/105625 "2007-06-01T17:28:03Z")

</div>

Hi, is there any solution to switch the database for active\_record releated on request input ? i try to code an application, where the user can enter the db connect string for the request in an for. i don’t konwn al…

---

## [Rails For All Offering FREE Intro to Rails Class](https://www.ruby-forum.com/t/rails-for-all-offering-free-intro-to-rails-class/105712)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/rails-for-all-offering-free-intro-to-rails-class/105712 "2007-06-01T17:25:28Z")

</div>

Hey all, Rails For All, will be holding a FREE introduction to Ruby on Rails class in Orlando, Florida. We decided to not charge so that we can bring all of you good folks into the fold. The material will cover the b…

---

## [Help with partials strategy](https://www.ruby-forum.com/t/help-with-partials-strategy/105710)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/help-with-partials-strategy/105710 "2007-06-01T17:21:17Z")

</div>

Hi, I want to make a bunch of lists on one page. Each will be paginated – some lists will have 10 items, some 3, some 5, etc, and, each will be drawn from different data, and each will be updated independently, so t…

---

## [Multipage wizard and one model - checkout - how?](https://www.ruby-forum.com/t/multipage-wizard-and-one-model-checkout-how/105705)

<div class="topic-metadata">

**Author:** [@ozon](https://www.ruby-forum.com/u/ozon)\
**Replies:** 0\
**Last updated:** [June 1, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/multipage-wizard-and-one-model-checkout-how/105705 "2007-06-01T16:28:48Z")

</div>

currently i’m developing a checkout in my store. i have a serval controller resposible for every stage of ordering : address, confirmation, shpping method, etc. how i can do saving of once model (Checkout) in many con…

---

## [Inheritance not using STI](https://www.ruby-forum.com/t/inheritance-not-using-sti/105648)

<div class="topic-metadata">

**Author:** [@daveh](https://www.ruby-forum.com/u/daveh)\
**Replies:** 3\
**Last updated:** [June 1, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/inheritance-not-using-sti/105648 "2007-06-01T16:23:13Z")

</div>

Hi there, I have a question about inheritance in Rails. Say you have 3 tables: pants shirts socks Each table has different attributes, but they do share some of the same attributes respectively in each table: Comm…

---

## [1 form 2 actions](https://www.ruby-forum.com/t/1-form-2-actions/105703)

<div class="topic-metadata">

**Author:** [@confused2gether](https://www.ruby-forum.com/u/confused2gether)\
**Replies:** 1\
**Last updated:** [June 1, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/1-form-2-actions/105703 "2007-06-01T16:04:11Z")

</div>

Hi I am trying to have a form submit the data in it via email using a php file (contact.php) that i have made but also would like it to store the data in my SQL db and continue on. I am using pretty much all AJAX in …

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

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