# Rails

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

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

---

## [Part time RUby tech writer wanted - 1 position, work remotel](https://www.ruby-forum.com/t/part-time-ruby-tech-writer-wanted-1-position-work-remotel/109145)

<div class="topic-metadata">

**Author:** [@techhairball](https://www.ruby-forum.com/u/techhairball)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/part-time-ruby-tech-writer-wanted-1-position-work-remotel/109145 "2007-07-11T21:42:24Z")

</div>

Please visit http://www.TechHairBall.com for more info. Any thing related with technology will work.

---

## [Tricky rjs rendering](https://www.ruby-forum.com/t/tricky-rjs-rendering/86499)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/tricky-rjs-rendering/86499 "2007-07-11T21:24:00Z")

</div>

until then I don’t have any problem with .rjs rendering , but I am using a plugin which build a network tree @root, :initial\_data\_options =\> { :depth =\> 1 }, :allow\_click\_branch =\> true } %\> \</div this helper generat…

---

## [Destroy ordering with associations... reasoning?](https://www.ruby-forum.com/t/destroy-ordering-with-associations-reasoning/109069)

<div class="topic-metadata">

**Author:** [@andrewkendall](https://www.ruby-forum.com/u/andrewkendall)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/destroy-ordering-with-associations-reasoning/109069 "2007-07-11T21:01:36Z")

</div>

Hi, I’m having a problem understanding why rails calls the ‘before\_destroy’ methods in the ordering as as follows (w/contrived ex)… class User belongs\_to :group def before\_destroy # don’t delete the user if they’re…

---

## [On fly Calculation problem](https://www.ruby-forum.com/t/on-fly-calculation-problem/108905)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 8:55pm UTC](https://www.ruby-forum.com/t/on-fly-calculation-problem/108905 "2007-07-11T20:55:18Z")

</div>

Hello friends, Myself Hasmukh Rathod. I’m in last sem. of engineering. I’m trying to implement one small rails application. In this application i face one problem. The problem is… there are three text\_fields in my Fo…

---

## [Ruby Live Tree Error](https://www.ruby-forum.com/t/ruby-live-tree-error/109140)

<div class="topic-metadata">

**Author:** [@couldusesomehelp](https://www.ruby-forum.com/u/couldusesomehelp)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/ruby-live-tree-error/109140 "2007-07-11T20:37:31Z")

</div>

The website I am working (http://xoth.media.mit.edu:8000/ica/view) on uses a LiveTree add-on that should update a portion of the page to reflect the components of the tree when the appropriate textbox is used. For so…

---

## [How to delete record with no primary key](https://www.ruby-forum.com/t/how-to-delete-record-with-no-primary-key/109105)

<div class="topic-metadata">

**Author:** [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/how-to-delete-record-with-no-primary-key/109105 "2007-07-11T20:20:12Z")

</div>

Hi, recordvar.destroy doesn’t work… gives me the following error: Unknown column ‘id’ in ‘where clause’ there’s gotta be a way to delete entries in a link table… any help? thanks, Stuart

---

## [Session Expiration Problem: How to keep a user logged in for](https://www.ruby-forum.com/t/session-expiration-problem-how-to-keep-a-user-logged-in-for/109132)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/session-expiration-problem-how-to-keep-a-user-logged-in-for/109132 "2007-07-11T19:51:09Z")

</div>

How do I keep the Rails session from expiring when the browser exits? I would ideally like the user to be logged for a few days (e.g. 2 weeks). Do I use the Rails “session” or “cookies”? Also, my understanding is th…

---

## [Using with\_scope with more than one model](https://www.ruby-forum.com/t/using-with-scope-with-more-than-one-model/109136)

<div class="topic-metadata">

**Author:** [@Chinmay\_K](https://www.ruby-forum.com/u/Chinmay_K)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 7:50pm UTC](https://www.ruby-forum.com/t/using-with-scope-with-more-than-one-model/109136 "2007-07-11T19:50:09Z")

</div>

I’ve seen a lot of usage of with\_scope since my last post, and everywhere I see code like this: Mail.with\_scope(:find=\>{:conditions=\>“user\_id = …”}) do count = Mail.count end Here, both the model used for scoping, …

---

## [Model validation causing rake db:migrate to fail silently](https://www.ruby-forum.com/t/model-validation-causing-rake-db-migrate-to-fail-silently/109129)

<div class="topic-metadata">

**Author:** [@elegant](https://www.ruby-forum.com/u/elegant)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/model-validation-causing-rake-db-migrate-to-fail-silently/109129 "2007-07-11T19:29:24Z")

</div>

I added a migration that adds data with a model class, calling create(). Validation in the model class fails, so the rows aren’t being added to the database. But when I run ‘rake db:migrate’, it says nothing about th…

---

## [Polymorphic :through relationship](https://www.ruby-forum.com/t/polymorphic-through-relationship/109133)

<div class="topic-metadata">

**Author:** [@michau](https://www.ruby-forum.com/u/michau)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/polymorphic-through-relationship/109133 "2007-07-11T19:22:07Z")

</div>

Is it possible to implement a model where: Exit is polymorphic and can be of type: Door, Window, FootPath and Rooms are related through Exits with eachother. I figured out that I would implement polymorphic exits, an…

---

## [:mem\_cache\_store and memcache-client for session](https://www.ruby-forum.com/t/mem-cache-store-and-memcache-client-for-session/188199)

<div class="topic-metadata">

**Author:** [@sharkie](https://www.ruby-forum.com/u/sharkie)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/mem-cache-store-and-memcache-client-for-session/188199 "2007-07-11T18:22:17Z")

</div>

Seems to not be working in that there is no error, but my Rails app is not keeping track of any session. Fragment cache is working, however. I have tried many different ways, but just can’t get this to work. My memcac…

---

## [HELP: rake db:migrate -\> uninitialized constant](https://www.ruby-forum.com/t/help-rake-db-migrate-uninitialized-constant/109034)

<div class="topic-metadata">

**Author:** [@rlorimor](https://www.ruby-forum.com/u/rlorimor)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/help-rake-db-migrate-uninitialized-constant/109034 "2007-07-11T18:06:19Z")

</div>

Why is this error happening? I am using Rails 1.2.3. ./script/generate model MyNewModel exists app/models/ exists test/unit/ exists test/fixtures/ create app/models/my\_new\_model.rb create test/unit/my\_new\_mod…

---

## [CSS attributes for date\_select](https://www.ruby-forum.com/t/css-attributes-for-date-select/109020)

<div class="topic-metadata">

**Author:** [@gattox](https://www.ruby-forum.com/u/gattox)\
**Replies:** 7\
**Last updated:** [July 11, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/css-attributes-for-date-select/109020 "2007-07-11T17:15:12Z")

</div>

How can I specify a CSS attribute for date\_select? If I write for example: \<%= date\_select ‘study’, ‘data\_on’, :order =\> \[:day, :month, :year\], :start\_year =\> 1940, :end\_year =\> Time.now.year, :class =\> “mandatory” %\>…

---

## [Any options besides Zlib::GzipReader?](https://www.ruby-forum.com/t/any-options-besides-zlib-gzipreader/109089)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/any-options-besides-zlib-gzipreader/109089 "2007-07-11T16:55:10Z")

</div>

Hi, My application currently has files being sent to it fairly regularly, and I’d like these files to be sent in a compressed format. Besides the handling of gzip formatted compressed files (.gz) through the ZLib::G…

---

## [Putting environment variables in DB](https://www.ruby-forum.com/t/putting-environment-variables-in-db/109026)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/putting-environment-variables-in-db/109026 "2007-07-11T16:14:58Z")

</div>

Hi! I have another small question. I have an environment variable set in environment.rb. The line looks like… ENV\[‘username’\] = ‘mike’ What I would like to do is store ‘mike’ in the database in my ‘login’ column. …

---

## [Rails site maintenance](https://www.ruby-forum.com/t/rails-site-maintenance/109113)

<div class="topic-metadata">

**Author:** [@mr\_robot](https://www.ruby-forum.com/u/mr_robot)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/rails-site-maintenance/109113 "2007-07-11T16:06:56Z")

</div>

i might be wrong, but it seems that ROR requires a bit of constant work and monitoring once the site is live - even a low traffic site - compared with a php site that once up, i almost never have to look at. would any…

---

## [Deployment help, apache, mongrel, rails, capistrano, mysql (](https://www.ruby-forum.com/t/deployment-help-apache-mongrel-rails-capistrano-mysql/109064)

<div class="topic-metadata">

**Author:** [@bxsitecover](https://www.ruby-forum.com/u/bxsitecover)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/deployment-help-apache-mongrel-rails-capistrano-mysql/109064 "2007-07-11T13:20:05Z")

</div>

I connect to the remote host via ssh, or sftp. I requested that they install mongrel, they are running apache/mysql/rails. I set base url of my app Set default error pages Put in production mode Uploaded my app to …

---

## [Updatede how-to](https://www.ruby-forum.com/t/updatede-how-to/109080)

<div class="topic-metadata">

**Author:** [@isbof](https://www.ruby-forum.com/u/isbof)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 11:41am UTC](https://www.ruby-forum.com/t/updatede-how-to/109080 "2007-07-11T11:41:45Z")

</div>

Hi, I’m playing with engines (1.2), but I can’t seem to get it to work. Is there any up to date how-to or tutorials regarding making a engine? Best regards, Rasmus (isbof)

---

## [Partials problem](https://www.ruby-forum.com/t/partials-problem/109012)

<div class="topic-metadata">

**Author:** [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 11:04am UTC](https://www.ruby-forum.com/t/partials-problem/109012 "2007-07-11T11:04:14Z")

</div>

I’ve been working with a tutorial over on railsforum.com on creating variable numbers of models in one form. I have a script model that has one or many script\_metadatas. My code is the following: scripts\_controlle…

---

## [Using arbitrary strings for keys in the params hash](https://www.ruby-forum.com/t/using-arbitrary-strings-for-keys-in-the-params-hash/109054)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 10:25am UTC](https://www.ruby-forum.com/t/using-arbitrary-strings-for-keys-in-the-params-hash/109054 "2007-07-11T10:25:09Z")

</div>

Hi, Is there any way to construct a GET or POST request so that the resulting params hash can incorporate arbitrary strings (i.e. including ampersands, quotes, square brackets…) as its keys? I’m trying to do somethin…

---

## [Rails + Mongrel + Apache + MSSQL + Win2003 deployment issue](https://www.ruby-forum.com/t/rails-mongrel-apache-mssql-win2003-deployment-issue/108923)

<div class="topic-metadata">

**Author:** [@macanima](https://www.ruby-forum.com/u/macanima)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 10:22am UTC](https://www.ruby-forum.com/t/rails-mongrel-apache-mssql-win2003-deployment-issue/108923 "2007-07-11T10:22:08Z")

</div>

First off, a disclaimer: yes, I know, this is not an ideal production environment. I do not have any control over it. Any replies of ‘lol use linux’ or ‘mysql \> mssql’ will be ignored; believe me, I would if I could, …

---

## [Rails uses up to 700MB of RAM and works SLOWLY!](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065)

<div class="topic-metadata">

**Author:** [@Nikolay\_Kurtov](https://www.ruby-forum.com/u/Nikolay_Kurtov)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 10:06am UTC](https://www.ruby-forum.com/t/rails-uses-up-to-700mb-of-ram-and-works-slowly/109065 "2007-07-11T10:06:07Z")

</div>

After a couple of hours running rails with development environment the process ruby.exe uses up to 700MB of RAM, and every refresh of localhost:3000 takes about a second on loading every file. Is it normal? Is there …

---

## [RJS concurrency problems with lists](https://www.ruby-forum.com/t/rjs-concurrency-problems-with-lists/109056)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 2\
**Last updated:** [July 11, 2007, 9:01am UTC](https://www.ruby-forum.com/t/rjs-concurrency-problems-with-lists/109056 "2007-07-11T09:01:59Z")

</div>

Folks, I’m using RJS to add and remove rows from a list of items. Ideally, when the list is empty, there should be a single row “You have no items”, otherwise the list looks confusing with the header but no items. Do…

---

## [Join Ajuby Team](https://www.ruby-forum.com/t/join-ajuby-team/109068)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 8:01am UTC](https://www.ruby-forum.com/t/join-ajuby-team/109068 "2007-07-11T08:01:54Z")

</div>

Ajuby project team is looking for talented and passionate web designers and developers to join our team at Bangalore office. Ajuby is an Apptility sponsored project with a single aim to revolutionize development and r…

---

## [Attachement\_fu and protecting files from download](https://www.ruby-forum.com/t/attachement-fu-and-protecting-files-from-download/109015)

<div class="topic-metadata">

**Author:** [@jochen\_kaechelin](https://www.ruby-forum.com/u/jochen_kaechelin)\
**Replies:** 5\
**Last updated:** [July 11, 2007, 6:29am UTC](https://www.ruby-forum.com/t/attachement-fu-and-protecting-files-from-download/109015 "2007-07-11T06:29:49Z")

</div>

I successfully installed attachement\_fu but I still have one question: How can I protect my uploaded files from being downloaded like http://127.0.0.1:3000/images/galleries/0000/0001/1.jpg I only what logged in users…

---

## [Absolute URLs](https://www.ruby-forum.com/t/absolute-urls/109062)

<div class="topic-metadata">

**Author:** [@Kevin\_McCarthy](https://www.ruby-forum.com/u/Kevin_McCarthy)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 5:47am UTC](https://www.ruby-forum.com/t/absolute-urls/109062 "2007-07-11T05:47:25Z")

</div>

Hey, is there a way I can get link\_to to spit out absolute URLs, rather than relative URLs? I would like to do this for SEO purposes. Is there something that I have to subclass to get this to go, or is there a better…

---

## [Trying to start with rails](https://www.ruby-forum.com/t/trying-to-start-with-rails/108881)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 9\
**Last updated:** [July 11, 2007, 4:15am UTC](https://www.ruby-forum.com/t/trying-to-start-with-rails/108881 "2007-07-11T04:15:42Z")

</div>

Well, the online documentation is virtually garbage to me, so let’s not even go there. I am using a host that already has rails and mysql and all that stuff installed. Now all I want is to be able to start creating a …

---

## [Eliminating spam on Ruby Forum](https://www.ruby-forum.com/t/eliminating-spam-on-ruby-forum/109051)

<div class="topic-metadata">

**Author:** [@kapslok](https://www.ruby-forum.com/u/kapslok)\
**Replies:** 4\
**Last updated:** [July 11, 2007, 3:54am UTC](https://www.ruby-forum.com/t/eliminating-spam-on-ruby-forum/109051 "2007-07-11T03:54:38Z")

</div>

I don’t know about you guys and gals, but the daily spam messages making their way into these forums is giving me the $hit$. I think what we need is a button to mark messages as spam, so someone can blow them away, and …

---

## [\[Testing\] Counting Records in Array from Query](https://www.ruby-forum.com/t/testing-counting-records-in-array-from-query/109060)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [July 11, 2007, 3:52am UTC](https://www.ruby-forum.com/t/testing-counting-records-in-array-from-query/109060 "2007-07-11T03:52:38Z")

</div>

I can’t seem to figure out how to assert in my test that my method which finds 5 records is in fact returning five records. In my model: app/models/widget.rb … def self.recent\_widgets find(:all, :conditions =\> “cr…

---

## [Backgroundrb not loading other plugins](https://www.ruby-forum.com/t/backgroundrb-not-loading-other-plugins/109057)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 0\
**Last updated:** [July 11, 2007, 2:56am UTC](https://www.ruby-forum.com/t/backgroundrb-not-loading-other-plugins/109057 "2007-07-11T02:56:14Z")

</div>

Hi all, I’m using a few different plugins on a project, but I’m having trouble getting the plugins to load when running from backgroundrb (I’m using the old win32 happy version). Specifically, acts\_as\_ferret is not l…

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

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