# Rails

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

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

---

## [Base migration file](https://www.ruby-forum.com/t/base-migration-file/111397)

<div class="topic-metadata">

**Author:** [@Kedron](https://www.ruby-forum.com/u/Kedron)\
**Replies:** 2\
**Last updated:** [August 7, 2007, 2:26pm UTC](https://www.ruby-forum.com/t/base-migration-file/111397 "2007-08-07T14:26:54Z")

</div>

I’m a total noob to RoR so I’ve started my app from scratch countless times. As I figure out what I need in my DB I’ve been adding it to a file 001\_build.rb - so when i restart AGAIN i just run the migration and i’m b…

---

## [Cookie value encryption](https://www.ruby-forum.com/t/cookie-value-encryption/111366)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 4\
**Last updated:** [August 7, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/cookie-value-encryption/111366 "2007-08-07T13:41:42Z")

</div>

Is there anything built into either Ruby or Rails that can help encrypt and decrypt values placed in a cookie? I realize that I could store sensitive data in the server side session instead I would like to know if coo…

---

## [XSendFile problem](https://www.ruby-forum.com/t/xsendfile-problem/111443)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 3\
**Last updated:** [August 7, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/xsendfile-problem/111443 "2007-08-07T13:41:42Z")

</div>

I am trying to user XSendFile in my application. I have installed the plugin and in the environment.rb included this line XSendFile::Plugin.replace\_send\_file! but it is unable to read the files. Earlier i had used se…

---

## [\[ANN\] action\_cache plugin now has x-sendfile support](https://www.ruby-forum.com/t/ann-action-cache-plugin-now-has-x-sendfile-support/74934)

<div class="topic-metadata">

**Author:** [@tomfakes](https://www.ruby-forum.com/u/tomfakes)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 12:52pm UTC](https://www.ruby-forum.com/t/ann-action-cache-plugin-now-has-x-sendfile-support/74934 "2007-08-07T12:52:50Z")

</div>

My action\_cache plugin, in addition to it’s previous goodness, now has support for lighttpd’s x-sendfile header. The code is here: http://craz8.com/svn/tags/plugins/0.1.0/action\_cache Check out the README for features…

---

## [Imagemagick\_for](https://www.ruby-forum.com/t/imagemagick-for/111440)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/imagemagick-for/111440 "2007-08-07T12:39:47Z")

</div>

I’m having problems using imagemagick - in my controller i have imagemagick\_for ‘/data/pictures’, :cache =\> ‘/public/image\_cache’ and in my view i have \<%= imagemagick\_tag ‘pic32.jpg’, ‘resize(100x100)’ %\> But the g…

---

## [Bootstrapping demo data](https://www.ruby-forum.com/t/bootstrapping-demo-data/111441)

<div class="topic-metadata">

**Author:** [@Olly\_L](https://www.ruby-forum.com/u/Olly_L)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/bootstrapping-demo-data/111441 "2007-08-07T12:16:33Z")

</div>

Hi there, I actually posted about this a couple of months ago, but before I take the plunge with option 2, I thought I’d ask one more time… so apologies in advance for the duplicate message. We’re planning on running…

---

## [PLEASE! how to connect to a database dynamically](https://www.ruby-forum.com/t/please-how-to-connect-to-a-database-dynamically/73589)

<div class="topic-metadata">

**Author:** [@Horst\_H](https://www.ruby-forum.com/u/Horst_H)\
**Replies:** 9\
**Last updated:** [August 7, 2007, 11:43am UTC](https://www.ruby-forum.com/t/please-how-to-connect-to-a-database-dynamically/73589 "2007-08-07T11:43:59Z")

</div>

I have a login dialog. It yields a user name and a password to a controller. Fromthere, what is the best way (if any) to establish a database connection using the dynamically established user name and password? (We h…

---

## [Passing draggable options to sortable\_element](https://www.ruby-forum.com/t/passing-draggable-options-to-sortable-element/111436)

<div class="topic-metadata">

**Author:** [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 10:56am UTC](https://www.ruby-forum.com/t/passing-draggable-options-to-sortable-element/111436 "2007-08-07T10:56:19Z")

</div>

does anyone know if it’s possible to pass options for the created Draggable options when using sortable\_element? I would like to add some visual effects to the elements, and the range of of options for Sortable seems …

---

## [Can't start WEBrick or Mongrel server](https://www.ruby-forum.com/t/cant-start-webrick-or-mongrel-server/111427)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 10:37am UTC](https://www.ruby-forum.com/t/cant-start-webrick-or-mongrel-server/111427 "2007-08-07T10:37:17Z")

</div>

After having successfully created and run a few RoR test projects via RadRails in MyEclipse, I imported one from an Oracle tutorial (http:// www.oracle.com/technology/pub/articles/saternos-rails.html?\_template=/ocom/pr…

---

## [A Rails question for Bill Clinton](https://www.ruby-forum.com/t/a-rails-question-for-bill-clinton/111412)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 3\
**Last updated:** [August 7, 2007, 9:46am UTC](https://www.ruby-forum.com/t/a-rails-question-for-bill-clinton/111412 "2007-08-07T09:46:18Z")

</div>

If any of you remember the part of the hearings where he said: “it depends on what the meaning of the word is is” I recently went around in circles for awhile trying to figure out why a simple little bit of Ruby I had…

---

## [Problems with Character Set](https://www.ruby-forum.com/t/problems-with-character-set/111432)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 9:34am UTC](https://www.ruby-forum.com/t/problems-with-character-set/111432 "2007-08-07T09:34:10Z")

</div>

We currently develop a kind of Portal, like a webtop…all the navigation is done through Ajax requests Initially, all the source files for the project are stored in a Subversion repository : the container has an UTF-8 …

---

## [Reg :Ip address capturing](https://www.ruby-forum.com/t/reg-ip-address-capturing/111423)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 2\
**Last updated:** [August 7, 2007, 8:46am UTC](https://www.ruby-forum.com/t/reg-ip-address-capturing/111423 "2007-08-07T08:46:21Z")

</div>

Hi All, I need to capture Ip address who is accessing our website..If any one knows how to capture pls help me wiht regards, shiva

---

## [Periodic Events](https://www.ruby-forum.com/t/periodic-events/111424)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 7:55am UTC](https://www.ruby-forum.com/t/periodic-events/111424 "2007-08-07T07:55:04Z")

</div>

Hi all, Noob question, so please bear with me. I want my rails app to periodically do some maintenance work (e.g. once a day). The maintenance commands can be called by an action under a maintenance controller. A fr…

---

## [Input/Output Errors on Views - Webrick-production](https://www.ruby-forum.com/t/input-output-errors-on-views-webrick-production/88810)

<div class="topic-metadata">

**Author:** [@blakeage](https://www.ruby-forum.com/u/blakeage)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 7:10am UTC](https://www.ruby-forum.com/t/input-output-errors-on-views-webrick-production/88810 "2007-08-07T07:10:00Z")

</div>

I’m getting Input/Output errors on various views in a production app we’re running on Webrick on OS X Server - Apache frontend. It happens in various places, which makes it hard to track down, and I’m fairly certain …

---

## [Why you are not satisfied with Ruby on Rails IDE's?](https://www.ruby-forum.com/t/why-you-are-not-satisfied-with-ruby-on-rails-ides/109626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [August 7, 2007, 6:15am UTC](https://www.ruby-forum.com/t/why-you-are-not-satisfied-with-ruby-on-rails-ides/109626 "2007-08-07T06:15:56Z")

</div>

Hello, I see that there were a huge discussions about, what IDE is good and what is better to use. Can you tell, what exactly don’t you like in IDE’s, is it lack of features or general convinience?

---

## [Setting Up Another Table Access](https://www.ruby-forum.com/t/setting-up-another-table-access/111422)

<div class="topic-metadata">

**Author:** [@TTDaVeTT](https://www.ruby-forum.com/u/TTDaVeTT)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 5:54am UTC](https://www.ruby-forum.com/t/setting-up-another-table-access/111422 "2007-08-07T05:54:55Z")

</div>

So I currently have two tables in a mySQL database. Named users and skills. I have generated a controller and scaffolding for the users table with the controller named user. This all works fine and I am able to upd…

---

## [Decimal Numbers presentation](https://www.ruby-forum.com/t/decimal-numbers-presentation/110415)

<div class="topic-metadata">

**Author:** [@ricardo\_sdl](https://www.ruby-forum.com/u/ricardo_sdl)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 5:32am UTC](https://www.ruby-forum.com/t/decimal-numbers-presentation/110415 "2007-08-07T05:32:53Z")

</div>

Hello guys! I´m using Ruby On Rails with Sql Server DataBase. I have a decimal field in a table that looks like this: Length:5 Precision:8 Scale:2 But, in the browser view the field appears truncated. The number…

---

## [TzTime & Rails 1.2.3](https://www.ruby-forum.com/t/tztime-rails-1-2-3/111417)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 4:28am UTC](https://www.ruby-forum.com/t/tztime-rails-1-2-3/111417 "2007-08-07T04:28:50Z")

</div>

Anyone successfully patched 1.2.3 to get it working with the TzTime plugin? I’m really not interested in moving to edge. Wondering if anyone has gone through the same thing. Thanks… – seth at subimage interactive …

---

## [Reload routes without restarting server](https://www.ruby-forum.com/t/reload-routes-without-restarting-server/111416)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 4:20am UTC](https://www.ruby-forum.com/t/reload-routes-without-restarting-server/111416 "2007-08-07T04:20:49Z")

</div>

Is it possible to modify (or reload) routes without restarting the server? I would like to be able to edit the routes from a controller. Thanks

---

## [Has\_and\_belongs\_to\_many polymorphic question](https://www.ruby-forum.com/t/has-and-belongs-to-many-polymorphic-question/111414)

<div class="topic-metadata">

**Author:** [@Christopher\_Goellne](https://www.ruby-forum.com/u/Christopher_Goellne)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 3:57am UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-polymorphic-question/111414 "2007-08-07T03:57:48Z")

</div>

I’ve got a situation where I’m trying to model the following relationship: a ‘page’ has multiple lineitems a ‘lineitem’ can be either a ‘page’ or a ‘entity’ The ‘lineitem’ looks like it should be polymorphic but the …

---

## [Rspec controller not working, but works for models](https://www.ruby-forum.com/t/rspec-controller-not-working-but-works-for-models/111413)

<div class="topic-metadata">

**Author:** [@edxerx](https://www.ruby-forum.com/u/edxerx)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 3:31am UTC](https://www.ruby-forum.com/t/rspec-controller-not-working-but-works-for-models/111413 "2007-08-07T03:31:49Z")

</div>

I’m new with rspec and using rails 1.2.3, and plugins (rspec/rspec\_on\_rails 1.0.5). Followed tutorials by lukeredpath and rspec’s writing tutorial at their site. I have an agencies controller, thus creating spec files…

---

## [Error when running script/plugin install with -x](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368)

<div class="topic-metadata">

**Author:** [@Hardbap](https://www.ruby-forum.com/u/Hardbap)\
**Replies:** 7\
**Last updated:** [August 7, 2007, 3:30am UTC](https://www.ruby-forum.com/t/error-when-running-script-plugin-install-with-x/111368 "2007-08-07T03:30:45Z")

</div>

I’m trying to install the RSpec plugin using this command: ruby script/plugin install -x svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec But I get this message: Cannot install using externals because this projec…

---

## [What would be the best way to](https://www.ruby-forum.com/t/what-would-be-the-best-way-to/111326)

<div class="topic-metadata">

**Author:** [@brandon](https://www.ruby-forum.com/u/brandon)\
**Replies:** 3\
**Last updated:** [August 7, 2007, 3:14am UTC](https://www.ruby-forum.com/t/what-would-be-the-best-way-to/111326 "2007-08-07T03:14:44Z")

</div>

I have a model ‘assignment’ that has\_many of the model ‘answer’. What would be the best way to have a form to save an ‘assignment’ and some of its ‘answers’ all on the same form?

---

## [Has\_many :through](https://www.ruby-forum.com/t/has-many-through/111379)

<div class="topic-metadata">

**Author:** [@tbaustert](https://www.ruby-forum.com/u/tbaustert)\
**Replies:** 6\
**Last updated:** [August 7, 2007, 1:22am UTC](https://www.ruby-forum.com/t/has-many-through/111379 "2007-08-07T01:22:35Z")

</div>

Hello, I have 4 tables Provinces, Districts, Cities and Municipalities. A Province has many Districts. A district has many Cities, and a City has many Municipalities. With this code : class Province \< ActiveRecord:…

---

## [Problem generating scaffold with a namespace](https://www.ruby-forum.com/t/problem-generating-scaffold-with-a-namespace/111406)

<div class="topic-metadata">

**Author:** [@stephenT](https://www.ruby-forum.com/u/stephenT)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 1:14am UTC](https://www.ruby-forum.com/t/problem-generating-scaffold-with-a-namespace/111406 "2007-08-07T01:14:35Z")

</div>

I’m trying to generate a scaffold based on a model in a namespace and I would like the controller to have a similar namespace. Am I thinking that scaffold should be doing something it doesn’t or is this a bug? rails …

---

## [Help with query and testing array](https://www.ruby-forum.com/t/help-with-query-and-testing-array/111407)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 12:32am UTC](https://www.ruby-forum.com/t/help-with-query-and-testing-array/111407 "2007-08-07T00:32:31Z")

</div>

I am working on an app with a Flex front end and part of that is to search for an institution by name. I have it working if the user enters the school name exactly, but I need to deal with multiple results being ret…

---

## ['require' in lib code not evaluated twice in development mod](https://www.ruby-forum.com/t/require-in-lib-code-not-evaluated-twice-in-development-mod/111388)

<div class="topic-metadata">

**Author:** [@atraeyu](https://www.ruby-forum.com/u/atraeyu)\
**Replies:** 1\
**Last updated:** [August 7, 2007, 12:27am UTC](https://www.ruby-forum.com/t/require-in-lib-code-not-evaluated-twice-in-development-mod/111388 "2007-08-07T00:27:30Z")

</div>

I have a model that does an ‘include’ of a module defined in the lib directory. The module, in turn, uses ‘require’ to load a class defined in the system load path. Running the application in development mode, the ini…

---

## [Rxml output to file not working in IE](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111404)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 12:13am UTC](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111404 "2007-08-07T00:13:29Z")

</div>

(sorry I accidently posted this before it was finished the first time) I want to use Builder (.rxml template) to generate xml but instead of having it display in the browser I want it to offer a file download. I am us…

---

## [Rxml output to file not working in IE](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111403)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [August 7, 2007, 12:10am UTC](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111403 "2007-08-07T00:10:29Z")

</div>

I want to use Builder (.rxml template) to generate xml but instead of having it display in the browser I want it to offer a file download. I am using the following code in my controller: respond\_to do |format| format…

---

## [Tracking model status attributes](https://www.ruby-forum.com/t/tracking-model-status-attributes/111402)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [August 6, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/tracking-model-status-attributes/111402 "2007-08-06T23:37:28Z")

</div>

Hi, I have a number of models that have various states specific to the domain. I was wondering how people go about modelling and persisting this state and optionally track its progress. I notice in DHH’s resources on…

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

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