# Rails

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

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

---

## [RSS aggregator](https://www.ruby-forum.com/t/rss-aggregator/118501)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/rss-aggregator/118501 "2007-10-27T22:04:40Z")

</div>

I’m looking at http://www.trawlr.com/, it looks quite promising. I considering this as a replacement for http://www.feedonfeeds.com/, provided that trawlr can be installed locally such that the data resides on my har…

---

## [IF YOU HAVE TIME then READ it once PLEASE](https://www.ruby-forum.com/t/if-you-have-time-then-read-it-once-please/118497)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/if-you-have-time-then-read-it-once-please/118497 "2007-10-27T21:45:59Z")

</div>

IF you want to meet your old school & college mate’s of your life there is a chance, just enter school or college details in the below site PLEASE REGISTER IN THIS SITE. IF U LIKE THEN FORWARD THIS MAIL TO U R FRIE…

---

## [Mac OS X Leopard DBMS](https://www.ruby-forum.com/t/mac-os-x-leopard-dbms/118494)

<div class="topic-metadata">

**Author:** [@rawn027](https://www.ruby-forum.com/u/rawn027)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/mac-os-x-leopard-dbms/118494 "2007-10-27T21:29:02Z")

</div>

What is the best choice of DBMS for Rails on Mac OS X. This is quite annoying that it was not shipped by default because they have a full rails development stack without mysql or postgresql. I hope they didnt feel tha…

---

## [Strange pdf error](https://www.ruby-forum.com/t/strange-pdf-error/118496)

<div class="topic-metadata">

**Author:** [@pabloz](https://www.ruby-forum.com/u/pabloz)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/strange-pdf-error/118496 "2007-10-27T21:21:14Z")

</div>

Hi In my application I can insert a pdf file through form. It works fine on my unix environment. I deployed application on windows 2003 server machine, the file gets copied (the size is good) but the pdf is always em…

---

## [(remote\_)for\_form placement, most bizar error seen so far](https://www.ruby-forum.com/t/remote-for-form-placement-most-bizar-error-seen-so-far/118407)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 8:45pm UTC](https://www.ruby-forum.com/t/remote-for-form-placement-most-bizar-error-seen-so-far/118407 "2007-10-27T20:45:28Z")

</div>

Dear list, I must be going mad. My code: \<%=h user.phone %\> \<%=h user.company %\> \<% @message = Message.new %\> #UGLY, someone has a solution? \<% form\_for(\[@project, @message\]) do |f| %\> \<%= f.hidden\_field(‘recip…

---

## [Conditional before\_safe](https://www.ruby-forum.com/t/conditional-before-safe/118485)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 6:38pm UTC](https://www.ruby-forum.com/t/conditional-before-safe/118485 "2007-10-27T18:38:27Z")

</div>

How to run before\_safe only if a database field contains a certain value? I tried: before\_save { |guest| guest.password = md5\_pass(guest.password) , :if =\> :enabled? } def enabled? self.deleted == 1 end No succ…

---

## [Mongrel instance halts, proxy error from Apache](https://www.ruby-forum.com/t/mongrel-instance-halts-proxy-error-from-apache/118484)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/mongrel-instance-halts-proxy-error-from-apache/118484 "2007-10-27T17:58:05Z")

</div>

Hello list, I have started receiving Proxy Errors from Apache stating that it had received invalid data from the server (mongrel). I then checked my mongrel instances (2) with curl and one of them is not working (it …

---

## [Edge Javascript caching just not working](https://www.ruby-forum.com/t/edge-javascript-caching-just-not-working/118476)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/edge-javascript-caching-just-not-working/118476 "2007-10-27T16:40:22Z")

</div>

For some reason, in production, with this one line of code: javascript\_include\_tag :all, :cache =\> true I get this: I’ve tried setting production.rb with both the default: config.action\_controller.perform\_cachi…

---

## [Does Rails persist in RAM between requests?](https://www.ruby-forum.com/t/does-rails-persist-in-ram-between-requests/118365)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 22\
**Last updated:** [October 27, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/does-rails-persist-in-ram-between-requests/118365 "2007-10-27T16:28:06Z")

</div>

I’m trying to implement a data caching system and getting nowhere because I cannot get a ruby global variable to persist across page requests.\* This leads me to really wonder how the entire process of mongrel- ruby-\>…

---

## [Can't get gem to work](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458)

<div class="topic-metadata">

**Author:** [@alea](https://www.ruby-forum.com/u/alea)\
**Replies:** 6\
**Last updated:** [October 27, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/cant-get-gem-to-work/118458 "2007-10-27T16:12:15Z")

</div>

when I try to do gem install rails or gem install anything I get the following error: ERROR: While executing gem … (TypeError) can’t instantiate uninitialized class Anyone else seeing this and have any ideas? tha…

---

## [Couple of questions](https://www.ruby-forum.com/t/couple-of-questions/118474)

<div class="topic-metadata">

**Author:** [@jasonwold](https://www.ruby-forum.com/u/jasonwold)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 3:19pm UTC](https://www.ruby-forum.com/t/couple-of-questions/118474 "2007-10-27T15:19:36Z")

</div>

I just have a couple of questions for the group as I am looking over the RoR/Ruby architecture for a new project that I am fixing to start working on. GEM updates Windows vs Linux I will be developing the applicatio…

---

## [Do I have to care about other methods than GET and POST?](https://www.ruby-forum.com/t/do-i-have-to-care-about-other-methods-than-get-and-post/118224)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [October 27, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/do-i-have-to-care-about-other-methods-than-get-and-post/118224 "2007-10-27T13:35:11Z")

</div>

Hi all Sometimes I check in a controller if the method is GET or POST. But afaik there are other methods - do I have to care about them? Is the following enough? if request.get? … elsif request.post? … end Or do…

---

## [501 Bad address syntax:: when using Action Mailer](https://www.ruby-forum.com/t/501-bad-address-syntax-when-using-action-mailer/112873)

<div class="topic-metadata">

**Author:** [@wmerydith](https://www.ruby-forum.com/u/wmerydith)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 11:52am UTC](https://www.ruby-forum.com/t/501-bad-address-syntax-when-using-action-mailer/112873 "2007-10-27T11:52:02Z")

</div>

Trying to debug a mail problem. We’re seeing the error “501 Bad address syntax” when trying to send mail. Our mail is hosted by Dreamhost and our config is as follows: ACTIVATION\_EMAIL\_ADDRESS = “removed\_email\_addre…

---

## [Backup in rails](https://www.ruby-forum.com/t/backup-in-rails/118468)

<div class="topic-metadata">

**Author:** [@rails](https://www.ruby-forum.com/u/rails)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 11:07am UTC](https://www.ruby-forum.com/t/backup-in-rails/118468 "2007-10-27T11:07:03Z")

</div>

Hello All, I am trying to take a bacup of mysql database using rails appliction. when i am executing the following command using irb i am able to take the backup system(“mysqldump -u root -p -h cu-269 testdev \> d:/te…

---

## [How to take backup in rails](https://www.ruby-forum.com/t/how-to-take-backup-in-rails/118467)

<div class="topic-metadata">

**Author:** [@rails](https://www.ruby-forum.com/u/rails)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 10:16am UTC](https://www.ruby-forum.com/t/how-to-take-backup-in-rails/118467 "2007-10-27T10:16:45Z")

</div>

how to take backup in rails using mysql

---

## [Detecting controller in application layout](https://www.ruby-forum.com/t/detecting-controller-in-application-layout/118404)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 9:21am UTC](https://www.ruby-forum.com/t/detecting-controller-in-application-layout/118404 "2007-10-27T09:21:52Z")

</div>

Hi: In the application layout file (application.rhtml in /views/layout/), I’m executing some logic to not load some files unless the user is logged in. THat’s working well, but I need to take that logic to the next …

---

## [To generate two views for web project](https://www.ruby-forum.com/t/to-generate-two-views-for-web-project/118466)

<div class="topic-metadata">

**Author:** [@meerkalim](https://www.ruby-forum.com/u/meerkalim)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 9:11am UTC](https://www.ruby-forum.com/t/to-generate-two-views-for-web-project/118466 "2007-10-27T09:11:05Z")

</div>

Hi, Any body can help me out regarding how to generate two viwes for same web project normal .rhtml view ajax based view( i got the ajax base view using the ajax\_scaffold command) and there must be two optio…

---

## [Implemnting AJAX and NON AJAX in the same application](https://www.ruby-forum.com/t/implemnting-ajax-and-non-ajax-in-the-same-application/118465)

<div class="topic-metadata">

**Author:** [@jagan](https://www.ruby-forum.com/u/jagan)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 9:03am UTC](https://www.ruby-forum.com/t/implemnting-ajax-and-non-ajax-in-the-same-application/118465 "2007-10-27T09:03:44Z")

</div>

Hello All, i am working on a project and we have a requirement that a user can set his preferences to use AJAX based or a plain normal page How can i achieve this Thanks Jagan

---

## [Link\_to\_remote Swaps :action and :id](https://www.ruby-forum.com/t/link-to-remote-swaps-action-and-id/118464)

<div class="topic-metadata">

**Author:** [@riles01](https://www.ruby-forum.com/u/riles01)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 8:51am UTC](https://www.ruby-forum.com/t/link-to-remote-swaps-action-and-id/118464 "2007-10-27T08:51:28Z")

</div>

I have the following partial that I’m trying to load with a link\_to\_remote call: \<%= link\_to\_remote h(person.name), :url =\> contacts\_person\_path(person), :html =\> { :hr…

---

## [Form fields](https://www.ruby-forum.com/t/form-fields/118442)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 3\
**Last updated:** [October 27, 2007, 7:51am UTC](https://www.ruby-forum.com/t/form-fields/118442 "2007-10-27T07:51:15Z")

</div>

Hi, Background: I have customer’s details in the customers table (for example email, address…) Whenthat customer proceeds to checkout (which is controlled by the cart\_controller not the customer-controller), the che…

---

## [Beginner Questions Need Help](https://www.ruby-forum.com/t/beginner-questions-need-help/118457)

<div class="topic-metadata">

**Author:** [@freaknasty](https://www.ruby-forum.com/u/freaknasty)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 6:31am UTC](https://www.ruby-forum.com/t/beginner-questions-need-help/118457 "2007-10-27T06:31:49Z")

</div>

Hello everyone, I was trying to create a website with many users and each user is entitled to view their account. How should I start? Cookies? Or unique sessions? Any leads or tips on making a professional site wo…

---

## [Observe\_field Location select (help b4 I go mad)](https://www.ruby-forum.com/t/observe-field-location-select-help-b4-i-go-mad/80261)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 15\
**Last updated:** [October 27, 2007, 5:43am UTC](https://www.ruby-forum.com/t/observe-field-location-select-help-b4-i-go-mad/80261 "2007-10-27T05:43:35Z")

</div>

Hey all, I’ve been trying for days, without much success to add a ‘Select Location’ option to my site. I want to use observe\_field so that a user can select a Country, and then another list is populated with the appr…

---

## [How make persistent in-memory objects?](https://www.ruby-forum.com/t/how-make-persistent-in-memory-objects/118338)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 14\
**Last updated:** [October 27, 2007, 4:35am UTC](https://www.ruby-forum.com/t/how-make-persistent-in-memory-objects/118338 "2007-10-27T04:35:01Z")

</div>

I have data that gets loaded from text files, then parsed into specific data structures. I need this data to be persistent within the Rails universe available to every request that comes into Rails. I’m used to a web …

---

## [Need help with deciding on the association](https://www.ruby-forum.com/t/need-help-with-deciding-on-the-association/118283)

<div class="topic-metadata">

**Author:** [@vinay](https://www.ruby-forum.com/u/vinay)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 4:30am UTC](https://www.ruby-forum.com/t/need-help-with-deciding-on-the-association/118283 "2007-10-27T04:30:20Z")

</div>

I have a user model which has a users table associated with it. I need to create a relational database around the user table like a user can have many credit cards, a user can have many schemes, a user can know many l…

---

## [STI vs Polymorphic Associations](https://www.ruby-forum.com/t/sti-vs-polymorphic-associations/118456)

<div class="topic-metadata">

**Author:** [@bparanj](https://www.ruby-forum.com/u/bparanj)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 4:19am UTC](https://www.ruby-forum.com/t/sti-vs-polymorphic-associations/118456 "2007-10-27T04:19:14Z")

</div>

I have a MasterEvent model. It has attributes that is required by another model Event. The user selects the MasterEvent model and I create the Event model by merging the attributes of the selected MasterEvent with the…

---

## [Where to put code for my own paginator?](https://www.ruby-forum.com/t/where-to-put-code-for-my-own-paginator/117774)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 27, 2007, 3:44am UTC](https://www.ruby-forum.com/t/where-to-put-code-for-my-own-paginator/117774 "2007-10-27T03:44:11Z")

</div>

I had to make my own pagination class in SQL Server. What I am wondering is where is a good place to put the code so that every controller and template can have access to it ? Right now I have put it in application.rb…

---

## [Need help](https://www.ruby-forum.com/t/need-help/118361)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 3:36am UTC](https://www.ruby-forum.com/t/need-help/118361 "2007-10-27T03:36:58Z")

</div>

So, I have been out of the rails loop for a little bit, and I’m not sure the best “rails way” to do this. I have two objects. ObjectA has\_many :object\_bs, and ObjectB belongs\_to :object\_a In my controller I am trying …

---

## [Sqlite connection problem](https://www.ruby-forum.com/t/sqlite-connection-problem/118424)

<div class="topic-metadata">

**Author:** [@xyzt](https://www.ruby-forum.com/u/xyzt)\
**Replies:** 1\
**Last updated:** [October 27, 2007, 3:24am UTC](https://www.ruby-forum.com/t/sqlite-connection-problem/118424 "2007-10-27T03:24:11Z")

</div>

hello, i’m trying to connect a sqlite database file but i get “Connection refused” error… my database.yml file is: development: adapter: sqlite dbfile: db/mydb.db what’s my fault?

---

## [Beginner's question](https://www.ruby-forum.com/t/beginners-question/118451)

<div class="topic-metadata">

**Author:** [@elvisparsley](https://www.ruby-forum.com/u/elvisparsley)\
**Replies:** 0\
**Last updated:** [October 27, 2007, 2:19am UTC](https://www.ruby-forum.com/t/beginners-question/118451 "2007-10-27T02:19:36Z")

</div>

After installing ROR, I get the following message under “About your application environment” in the opening. I assume it is dispatch.fcgi. Could anyone help me what I need to do? #!C:/wamp/ruby/bin/ruby You may spec…

---

## [REST params for new action](https://www.ruby-forum.com/t/rest-params-for-new-action/118436)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [October 27, 2007, 1:47am UTC](https://www.ruby-forum.com/t/rest-params-for-new-action/118436 "2007-10-27T01:47:18Z")

</div>

Hey all, I need to pass an id to a new REST action which creates an image for a user. So I need to pass the user id to the REST action in order to create the image for that user, i’m trying this view: \<%= link\_to ‘A…

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

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