# Rails

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

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

---

## [How did you learn Ruby on Rails?](https://www.ruby-forum.com/t/how-did-you-learn-ruby-on-rails/137327)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 25\
**Last updated:** [May 14, 2008, 3:40am UTC](https://www.ruby-forum.com/t/how-did-you-learn-ruby-on-rails/137327 "2008-05-14T03:40:18Z")

</div>

I curious how everyone here learned Ruby on Rails? Screencasts? Books? Tutorials? Just playing with it? Classes? Mentor? Blogs? Divine knowledge? Other? This should be interesting. -Adam

---

## [Conditional action caching/memcache - not working with all actions (routes?)](https://www.ruby-forum.com/t/conditional-action-caching-memcache-not-working-with-all-actions-routes/137541)

<div class="topic-metadata">

**Author:** [@gawk007](https://www.ruby-forum.com/u/gawk007)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 3:09am UTC](https://www.ruby-forum.com/t/conditional-action-caching-memcache-not-working-with-all-actions-routes/137541 "2008-05-14T03:09:06Z")

</div>

I’ve been trying to track this down for a while now and have yet find the solution…this problem appears only to occur in production environment with multiple mongrels. We’ve got several controllers using conditional a…

---

## [Uninitialized constant exception when trying to navigate a has\_many =\> through relationship](https://www.ruby-forum.com/t/uninitialized-constant-exception-when-trying-to-navigate-a-has-many-through-relationship/137530)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 2:32am UTC](https://www.ruby-forum.com/t/uninitialized-constant-exception-when-trying-to-navigate-a-has-many-through-relationship/137530 "2008-05-14T02:32:48Z")

</div>

Hey All, I’m trying to do a many-to-many relationship w/has\_many, :through and having trouble. I want to classify my Projects into one or more ResearchAreas. So I have a Project model, a ResearchArea model, and a P…

---

## [Rails+Ajax how to auto update information with out user intervention?](https://www.ruby-forum.com/t/rails-ajax-how-to-auto-update-information-with-out-user-intervention/137443)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [May 14, 2008, 2:32am UTC](https://www.ruby-forum.com/t/rails-ajax-how-to-auto-update-information-with-out-user-intervention/137443 "2008-05-14T02:32:48Z")

</div>

Hi, all the examples I find of ajax on rails are mostly the same, user clicks on link or button and ajax runs… but what about if ajax starts when the page loads the first time and keeps running? for example to have a …

---

## [Newbie Advice - Is ROR right for this project?](https://www.ruby-forum.com/t/newbie-advice-is-ror-right-for-this-project/137462)

<div class="topic-metadata">

**Author:** [@mattr](https://www.ruby-forum.com/u/mattr)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/newbie-advice-is-ror-right-for-this-project/137462 "2008-05-14T02:02:21Z")

</div>

Hi I have a project that I was thinking about using RoR for - before i start thought i would ask for some advice. I have no programming experience - limited web design (joomla and frontpage - so “design” is probably …

---

## [Can I speed up Rails' startup time](https://www.ruby-forum.com/t/can-i-speed-up-rails-startup-time/137387)

<div class="topic-metadata">

**Author:** [@kuma](https://www.ruby-forum.com/u/kuma)\
**Replies:** 9\
**Last updated:** [May 14, 2008, 1:40am UTC](https://www.ruby-forum.com/t/can-i-speed-up-rails-startup-time/137387 "2008-05-14T01:40:29Z")

</div>

Hi all, I’d give $100 to shave 10 seconds off the time it takes for the Rails environment to come up. I like to do test-driven development, running tests both from within the IDE (one test method at a time) and via r…

---

## [Adding validations on the fly](https://www.ruby-forum.com/t/adding-validations-on-the-fly/137516)

<div class="topic-metadata">

**Author:** [@kyku](https://www.ruby-forum.com/u/kyku)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 12:13am UTC](https://www.ruby-forum.com/t/adding-validations-on-the-fly/137516 "2008-05-14T00:13:11Z")

</div>

Hello, In some situations I’d like to extend single objects with additional virtual attributes and validation methods for them, for example: @foo = Foo.find(param\[:id\]) class \<\< @foo def bar nil end validates\_pre…

---

## [Controlling Data in Liquid texts](https://www.ruby-forum.com/t/controlling-data-in-liquid-texts/137526)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/controlling-data-in-liquid-texts/137526 "2008-05-13T23:36:29Z")

</div>

Ok, I am baffled by this and need some help. Bear with me this is fairly deep and technical. I have some user editable content on several of my pages in my rails app. I have implemented this using the Liquid plugin. T…

---

## [SqlServer Activerecord Adaptor + VARCHAR(MAX) Woes](https://www.ruby-forum.com/t/sqlserver-activerecord-adaptor-varchar-max-woes/137524)

<div class="topic-metadata">

**Author:** [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/sqlserver-activerecord-adaptor-varchar-max-woes/137524 "2008-05-13T23:26:14Z")

</div>

I seem to be running into various issues between SqlServer and Rails, and so far have been able to solve everything save for a particular quirk when running unit tests. When I run “rake test:units” on my app, it gets …

---

## [Paginator: Need help with navigation](https://www.ruby-forum.com/t/paginator-need-help-with-navigation/137518)

<div class="topic-metadata">

**Author:** [@Carson](https://www.ruby-forum.com/u/Carson)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/paginator-need-help-with-navigation/137518 "2008-05-13T22:35:47Z")

</div>

In a catalog\_controller, I have a department subroutine that paginates departmental promotions. In my view, I have the navigation statement: PAGE \<%= @page\_of\_products.number %\> OF \<%= @pager.number\_of\_pages %\> \<%= l…

---

## [Export fixture data that preserves foreign key/ActiveRecord associations?](https://www.ruby-forum.com/t/export-fixture-data-that-preserves-foreign-key-activerecord-associations/137513)

<div class="topic-metadata">

**Author:** [@jfrankov](https://www.ruby-forum.com/u/jfrankov)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/export-fixture-data-that-preserves-foreign-key-activerecord-associations/137513 "2008-05-13T22:27:33Z")

</div>

I use the manage\_fixtures and fixture\_scenarios plugins (and they’re great) but neither one does what I really want: to export fixtures from a database that also exports any records associated with those fixtures. In …

---

## [SSL questions](https://www.ruby-forum.com/t/ssl-questions/137512)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 9:53pm UTC](https://www.ruby-forum.com/t/ssl-questions/137512 "2008-05-13T21:53:53Z")

</div>

This is my first app that uses SSL so I have some n00b questions. Do I need an SSL certificate on my development machine to work with Paypal and other services that offer testing environments? What do you have to …

---

## [Serializing AR Objects](https://www.ruby-forum.com/t/serializing-ar-objects/137509)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/serializing-ar-objects/137509 "2008-05-13T20:54:58Z")

</div>

I need to serialize a composite AR model and save it to a database field. Reading up on Ruby’s Marshaling, it seems there could be problems with the version numbering thing of the default dump/load methods. As I unde…

---

## [Swap Values via Model in an onChange Event Within submit\_tag Helper?](https://www.ruby-forum.com/t/swap-values-via-model-in-an-onchange-event-within-submit-tag-helper/137511)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/swap-values-via-model-in-an-onchange-event-within-submit-tag-helper/137511 "2008-05-13T20:50:11Z")

</div>

I’m new to RoR and (and programming) and am having trouble wrapping my head around how to get this working. What I’m trying to do is autofill a web form with values I select from a drop-down menu. I want to pull these…

---

## [Thread Vs Transaction](https://www.ruby-forum.com/t/thread-vs-transaction/137274)

<div class="topic-metadata">

**Author:** [@malioboro](https://www.ruby-forum.com/u/malioboro)\
**Replies:** 13\
**Last updated:** [May 13, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/thread-vs-transaction/137274 "2008-05-13T20:04:07Z")

</div>

Any body can explain it detail? When we use transaction and when we use thread? Thank you, Reinhart

---

## [Using ruby with Postfix](https://www.ruby-forum.com/t/using-ruby-with-postfix/137501)

<div class="topic-metadata">

**Author:** [@Thiago\_J](https://www.ruby-forum.com/u/Thiago_J)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/using-ruby-with-postfix/137501 "2008-05-13T18:49:31Z")

</div>

Wrote an article on my blog about using ruby to delete mail in the Postfix mail queue and I thought I’d share it with you guys. Here’s the link if you’re interested http://www.railsfreaks.com/2008/5/13/using-ruby-to-d…

---

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

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/signup-form/137436 "2008-05-13T18:41:45Z")

</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 …

---

## [How to pass argument to Controler method. (RoR +AJAX)](https://www.ruby-forum.com/t/how-to-pass-argument-to-controler-method-ror-ajax/137478)

<div class="topic-metadata">

**Author:** [@rubynoobie](https://www.ruby-forum.com/u/rubynoobie)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/how-to-pass-argument-to-controler-method-ror-ajax/137478 "2008-05-13T18:34:35Z")

</div>

Hi My problem is the following. I have to describe a sort of a “news” page. (I just have to give the basic architecture) I want to refresh a acording to the name of the link cliked. my code looks like this : \<%=…

---

## [From "schema.rb" file to MySQL](https://www.ruby-forum.com/t/from-schema-rb-file-to-mysql/137320)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 8\
**Last updated:** [May 13, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/from-schema-rb-file-to-mysql/137320 "2008-05-13T18:32:23Z")

</div>

Hello, I have write a schema.rb database such as this: ActiveRecord::Schema.define do create\_table :arts do |t| t.string :name, :null =\> false, :limit =\> 45 end end This file is saved into test/db/schema.rb, and t…

---

## [How to create searchbox](https://www.ruby-forum.com/t/how-to-create-searchbox/137421)

<div class="topic-metadata">

**Author:** [@rubynoobie](https://www.ruby-forum.com/u/rubynoobie)\
**Replies:** 6\
**Last updated:** [May 13, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/how-to-create-searchbox/137421 "2008-05-13T18:28:40Z")

</div>

I am wondering how I can put a searchbox at the botom of my index page to search through the users (by age, city ect…) I put \<%= text\_field\_tag :query %\> at the bottom of my page but how do I add a button to handle…

---

## [What do you use for online payments in Canada?](https://www.ruby-forum.com/t/what-do-you-use-for-online-payments-in-canada/137494)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 3\
**Last updated:** [May 13, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/what-do-you-use-for-online-payments-in-canada/137494 "2008-05-13T18:25:06Z")

</div>

It seems that all the payment gateways that I can find are limited to the US (braintreegateway, authorize.net). What do you guys use if you are located in Canada? I would prefer payment gateways that are included in …

---

## [Couldnt install ror on apache](https://www.ruby-forum.com/t/couldnt-install-ror-on-apache/137473)

<div class="topic-metadata">

**Author:** [@gxlrygt](https://www.ruby-forum.com/u/gxlrygt)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 6:23pm UTC](https://www.ruby-forum.com/t/couldnt-install-ror-on-apache/137473 "2008-05-13T18:23:19Z")

</div>

i have installed apache/php/mysql/phpmyadmin and they are working perfectly. but i wanna install ruby on rails too and i dont wanna install another apache. can you please what changes should i do exactly with apache? …

---

## [Query Regarding MVC Architecture](https://www.ruby-forum.com/t/query-regarding-mvc-architecture/137451)

<div class="topic-metadata">

**Author:** [@kittu21](https://www.ruby-forum.com/u/kittu21)\
**Replies:** 3\
**Last updated:** [May 13, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/query-regarding-mvc-architecture/137451 "2008-05-13T18:14:18Z")

</div>

Hi All, Can any one of you please clarify me are there any ways in ROR that i can develop an Application with out following MVC Architecture or do i just need to strictly follow the MVC Architecture if i wanna develop…

---

## [NoMethodError when attempting to display index](https://www.ruby-forum.com/t/nomethoderror-when-attempting-to-display-index/137492)

<div class="topic-metadata">

**Author:** [@noreaster](https://www.ruby-forum.com/u/noreaster)\
**Replies:** 5\
**Last updated:** [May 13, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/nomethoderror-when-attempting-to-display-index/137492 "2008-05-13T18:11:23Z")

</div>

Ruby N. alert. This is a pretty basic question, probably. I’m tinkering around with putting a Rails app on top of legacy database tables. Assume that the tables and their structures can not change. The database type …

---

## [A 'Kind of', 'Sort of' Ruby on Rails User In terface Question â€¦](https://www.ruby-forum.com/t/a-kind-of-sort-of-ruby-on-rails-user-in-terface-question-a/137414)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/a-kind-of-sort-of-ruby-on-rails-user-in-terface-question-a/137414 "2008-05-13T18:05:55Z")

</div>

Email : removed\_email\_address@domain.invalid As Dr. Nick of the Simpsons sez : Hi Everybody ! I’m working on my 1st Ruby on Rails (RoR) project. It is a web-based application. Unfortunately, I’ve come up against a…

---

## [ERB VS rhtml](https://www.ruby-forum.com/t/erb-vs-rhtml/137407)

<div class="topic-metadata">

**Author:** [@baxteronrails](https://www.ruby-forum.com/u/baxteronrails)\
**Replies:** 21\
**Last updated:** [May 13, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/erb-vs-rhtml/137407 "2008-05-13T18:05:19Z")

</div>

I have the addison wesley RailsSpace book to learn Ruby on Rails,and I am wondering why my version of ruby uses and crestes .erb files rather than rhtml files. It is making it very difficult to follow the book as some…

---

## [Online credit card processing](https://www.ruby-forum.com/t/online-credit-card-processing/135945)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 8\
**Last updated:** [May 13, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/online-credit-card-processing/135945 "2008-05-13T17:49:36Z")

</div>

What’s a good way to process credit cards from our Rails application? I like PayPal because of it’s name recognition but I don’t like the fact that the user must leave our site; we are hoping for a tightly integrated …

---

## [Reveive more results with search cities with geokit](https://www.ruby-forum.com/t/reveive-more-results-with-search-cities-with-geokit/137493)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/reveive-more-results-with-search-cities-with-geokit/137493 "2008-05-13T17:39:07Z")

</div>

I have installed the geokit plugin. I have seen that for search an cities i can do it: res=GeoKit::Geocoders::GoogleGeocoder.geocode(“morro d’alba”) the method return the first result. if cities exists in more countr…

---

## [Assert\_no\_difference question](https://www.ruby-forum.com/t/assert-no-difference-question/137491)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/assert-no-difference-question/137491 "2008-05-13T17:21:28Z")

</div>

I have the following test code: assert\_no\_difference Avatar, :count do a = create\_avatar(:description =\> nil) assert a.errors.on(:description) end further down, create\_avatar looks like: def create\_avatar(options =…

---

## [StackTrace / Don't consider requests local](https://www.ruby-forum.com/t/stacktrace-dont-consider-requests-local/137490)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/stacktrace-dont-consider-requests-local/137490 "2008-05-13T17:16:23Z")

</div>

Hi there! Is there any way to configure the environment so that Rails considers all requests “Non-Local”? StackTraces are still visible to website visitors, while they shouldn’t be. I’m using the latest version of R…

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

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