# Rails

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

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

---

## [Improved SQL Server Connection Adapter](https://www.ruby-forum.com/t/improved-sql-server-connection-adapter/112925)

<div class="topic-metadata">

**Author:** [@riles01](https://www.ruby-forum.com/u/riles01)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/improved-sql-server-connection-adapter/112925 "2007-08-24T15:29:55Z")

</div>

I added a few additional options to the SQL Server connection adapter (sqlserver\_adapter.rb) in the /vendor/rails/activerecord/lib/ active\_record/connection\_adapters/ folder. I’ve also used the updates Ryan Barton add…

---

## [RMagick Problem](https://www.ruby-forum.com/t/rmagick-problem/112738)

<div class="topic-metadata">

**Author:** [@Pete\_Bekisz](https://www.ruby-forum.com/u/Pete_Bekisz)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/rmagick-problem/112738 "2007-08-24T14:53:51Z")

</div>

Hi folks, Was wondering if anyone could interpret this for me … trying to get RMagick installed, and it won’t work either through a gem install or by making it. I’m not sure exactly what to search for to find a soluti…

---

## [Validation across controllers](https://www.ruby-forum.com/t/validation-across-controllers/112802)

<div class="topic-metadata">

**Author:** [@AurSSSSlien\_Malisar](https://www.ruby-forum.com/u/AurSSSSlien_Malisar)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/validation-across-controllers/112802 "2007-08-24T14:44:50Z")

</div>

Hello, here is my issue with an exemple! Typical example: post and comments in REST design class PostsController \< ApplicationController … def show … @comments = @post.comments.find(:all, :order…blabla) end … e…

---

## [POST parameters](https://www.ruby-forum.com/t/post-parameters/112913)

<div class="topic-metadata">

**Author:** [@GPB](https://www.ruby-forum.com/u/GPB)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 2:28pm UTC](https://www.ruby-forum.com/t/post-parameters/112913 "2007-08-24T14:28:48Z")

</div>

Hello… Stupid question I’m sure…but I have tried: params\[:permission\[:user\_id\] etc., etc… And I can get to the user\_id variable. Parameters: {“commit”=\>“Add”, “permission”=\>{“document\_id”=\>“1”, “user\_id”=\>“2”}, “id”…

---

## [How to find the full path of a file in a present in a direct](https://www.ruby-forum.com/t/how-to-find-the-full-path-of-a-file-in-a-present-in-a-direct/112897)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 3\
**Last updated:** [August 24, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/how-to-find-the-full-path-of-a-file-in-a-present-in-a-direct/112897 "2007-08-24T14:15:47Z")

</div>

Hi, I need to know how to determine the full path of o file which is present in a directory.

---

## [Has and belongs to many problem](https://www.ruby-forum.com/t/has-and-belongs-to-many-problem/112891)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [August 24, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/has-and-belongs-to-many-problem/112891 "2007-08-24T13:54:43Z")

</div>

I’m having a problem with a habtm association. I’m not sure if I set them up wrong or if I’m trying to work with the models incorrectly. Either way I welcome any clarification on why this isn’t working. My models look…

---

## [ActsAsNestedSet's all\_children associations](https://www.ruby-forum.com/t/actsasnestedsets-all-children-associations/112794)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 7\
**Last updated:** [August 24, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/actsasnestedsets-all-children-associations/112794 "2007-08-24T13:33:40Z")

</div>

Hello, I am wondering if there is a better way to implement this. I have to models, a Document model and a Category model. The Category model is self-referencing through acts\_as\_nested\_set. category: id title paren…

---

## [How to run a single test in a test file](https://www.ruby-forum.com/t/how-to-run-a-single-test-in-a-test-file/112914)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/how-to-run-a-single-test-in-a-test-file/112914 "2007-08-24T13:06:38Z")

</div>

I forget the syntax for running a single test in a test file. Do any of you know this instantly? Thanks! Jesper Rønn-Jensen http://justaddwater.dk/

---

## [Looking for mailing list tool](https://www.ruby-forum.com/t/looking-for-mailing-list-tool/112912)

<div class="topic-metadata">

**Author:** [@fero](https://www.ruby-forum.com/u/fero)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/looking-for-mailing-list-tool/112912 "2007-08-24T12:51:30Z")

</div>

Hello, I need mailing list and I am too lazy to code it. Is out there something like thate (plugin, application)? I prefer rails but please give php links too. Thanks!

---

## [XML version of a Rails-generated list function](https://www.ruby-forum.com/t/xml-version-of-a-rails-generated-list-function/112903)

<div class="topic-metadata">

**Author:** [@gers32](https://www.ruby-forum.com/u/gers32)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 10:47am UTC](https://www.ruby-forum.com/t/xml-version-of-a-rails-generated-list-function/112903 "2007-08-24T10:47:12Z")

</div>

For the purpose of calling from a Flex HTTPService, I need to create an XML version of the Rails-generated list() function. The original is: def list @rv\_wrk\_medical\_staff\_pages, @rv\_wrk\_medical\_staffs = paginate :r…

---

## [Access input field id inside erb code](https://www.ruby-forum.com/t/access-input-field-id-inside-erb-code/112879)

<div class="topic-metadata">

**Author:** [@memius](https://www.ruby-forum.com/u/memius)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 8:48am UTC](https://www.ruby-forum.com/t/access-input-field-id-inside-erb-code/112879 "2007-08-24T08:48:39Z")

</div>

This is the simplified code : \<%= link\_to ’ Search ', :action =\> ‘show\_activity’, :name =\> ???%\> I would like to pass the name as a parameter to my action. The name should be the value of the input field with id ‘a…

---

## [Slow database imports with active record](https://www.ruby-forum.com/t/slow-database-imports-with-active-record/55738)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 8:01am UTC](https://www.ruby-forum.com/t/slow-database-imports-with-active-record/55738 "2007-08-24T08:01:48Z")

</div>

Hey Folks, Im looking for some suggestions here. Each day I need to process 200 GZ compressed files each day that contain comma delimited information in the following format: HostName, FileName, DirName, Modified\_On …

---

## [Mongrel cluster and Log4r?](https://www.ruby-forum.com/t/mongrel-cluster-and-log4r/112785)

<div class="topic-metadata">

**Author:** [@seb\_guard](https://www.ruby-forum.com/u/seb_guard)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 7:41am UTC](https://www.ruby-forum.com/t/mongrel-cluster-and-log4r/112785 "2007-08-24T07:41:40Z")

</div>

Hi everyone, Anybody is using Mongrel cluster and log4r (FileOutputter) in production ? I am using that 3 mongrel clusters on the same server, logging to log/production.log with log4r FileOutputter. But unfortunatel…

---

## [How to download any file using send\_file() method](https://www.ruby-forum.com/t/how-to-download-any-file-using-send-file-method/112896)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 7:24am UTC](https://www.ruby-forum.com/t/how-to-download-any-file-using-send-file-method/112896 "2007-08-24T07:24:06Z")

</div>

HI, I am directory listing and in that listing I have certain files and sub directories, now when I click on the files it should download that particular file but I am not able to accomplish it, and I have got to us…

---

## [How to download any file using send\_file() method](https://www.ruby-forum.com/t/how-to-download-any-file-using-send-file-method/112895)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 7:22am UTC](https://www.ruby-forum.com/t/how-to-download-any-file-using-send-file-method/112895 "2007-08-24T07:22:23Z")

</div>

HI, I am directory listing and in that listing I have certain files and sub directories, now when I click on the files it should download that particular file but I am not able to accomplish it, and I have got to us…

---

## [Attachment\_fu questions](https://www.ruby-forum.com/t/attachment-fu-questions/112890)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 7:11am UTC](https://www.ruby-forum.com/t/attachment-fu-questions/112890 "2007-08-24T07:11:42Z")

</div>

I am having a hard time saving the uploaded files to the directory of my choice. There is the method full\_filename() that is said to be the one to override to specify a custom path, but when I do so the file is not s…

---

## [Questions on attachment\_fu\_](https://www.ruby-forum.com/t/questions-on-attachment-fu/196445)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 6:25am UTC](https://www.ruby-forum.com/t/questions-on-attachment-fu/196445 "2007-08-24T06:25:40Z")

</div>

I am having a hard time saving the uploaded files to the directory of my choice. There is the method full\_filename() that is said to be the one to override to specify a custom path, but when I do so the file is not s…

---

## [Lighttpd php fastcgi](https://www.ruby-forum.com/t/lighttpd-php-fastcgi/112887)

<div class="topic-metadata">

**Author:** [@chheang](https://www.ruby-forum.com/u/chheang)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 5:41am UTC](https://www.ruby-forum.com/t/lighttpd-php-fastcgi/112887 "2007-08-24T05:41:35Z")

</div>

Dear everyone! Can anyone help to configure the RoR on Fedora core 7, using lighttpd php and fastcgi? I have surfed the Internet and followed the instructions but it still does work. Best regard.

---

## [\[ANN\] Streamlined 0.9 Release Candidate](https://www.ruby-forum.com/t/ann-streamlined-0-9-release-candidate/112885)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 4:47am UTC](https://www.ruby-forum.com/t/ann-streamlined-0-9-release-candidate/112885 "2007-08-24T04:47:34Z")

</div>

The Streamlined team is pleased to announce the availability of version 0.9 RC2 (RC1 was an internal release) of the Streamlined framework. Streamlined is a plugin for Ruby on Rails that provides an instant, producti…

---

## [Newbie Question on Time](https://www.ruby-forum.com/t/newbie-question-on-time/112876)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 2:34am UTC](https://www.ruby-forum.com/t/newbie-question-on-time/112876 "2007-08-24T02:34:24Z")

</div>

This may be ridiculously easy, but what is the best way to format/ calculate how much time has passed since a record was created. I have a created\_at field in my table and I want to say that a record was created XXXX…

---

## [Quick routes question](https://www.ruby-forum.com/t/quick-routes-question/112874)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 24, 2007, 2:16am UTC](https://www.ruby-forum.com/t/quick-routes-question/112874 "2007-08-24T02:16:22Z")

</div>

I have This is a catch-all for routes that don’t exist, visitor is redirected to home page. ActionController::Routing::Routes.draw do |map| map.connect ‘:controller/:action/:id’ map.connect ‘\*path’, :controller =\> ‘h…

---

## [Render partial from Backgroundrb worker?](https://www.ruby-forum.com/t/render-partial-from-backgroundrb-worker/112827)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 2:05am UTC](https://www.ruby-forum.com/t/render-partial-from-backgroundrb-worker/112827 "2007-08-24T02:05:22Z")

</div>

Hi, I have a long running task which generates JavaScript to files and I am hoping to move this to a backgroundrb worker. The javascript is currently generated with call to render\_to\_string: File.open(File.join(targe…

---

## [Super Simple Authentication](https://www.ruby-forum.com/t/super-simple-authentication/112877)

<div class="topic-metadata">

**Author:** [@ariejan](https://www.ruby-forum.com/u/ariejan)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 1:57am UTC](https://www.ruby-forum.com/t/super-simple-authentication/112877 "2007-08-24T01:57:21Z")

</div>

I’ve just released my first plugin/generator. It allows you to easily password-protect certain actions and controllers. It’s not real good security, but it does work pretty well for low-profile sites. I’d appreciate …

---

## [Collections in groups?](https://www.ruby-forum.com/t/collections-in-groups/112842)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 1:44am UTC](https://www.ruby-forum.com/t/collections-in-groups/112842 "2007-08-24T01:44:20Z")

</div>

Is there a way to traverse an array and perform an action (like collect) in sets? I am trying to use an array to populate a table with three cells per row, so I need to pop in sets of three, then create a new row. T…

---

## [How to Compile ruby on Suse 10.2 with LAMPP?](https://www.ruby-forum.com/t/how-to-compile-ruby-on-suse-10-2-with-lampp/112872)

<div class="topic-metadata">

**Author:** [@xocoatl](https://www.ruby-forum.com/u/xocoatl)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 1:31am UTC](https://www.ruby-forum.com/t/how-to-compile-ruby-on-suse-10-2-with-lampp/112872 "2007-08-24T01:31:20Z")

</div>

OK, I managed to install Linux XAMPP on a SUSE 10.2 Enterprise server box. I have both Ruby 1.8.5 & rubygems-0.9.4.tgz I extracted them to / opt (I didn’t know where to put it!) using: tar xvfz -C /opt was this the …

---

## [Multilingual web application](https://www.ruby-forum.com/t/multilingual-web-application/111362)

<div class="topic-metadata">

**Author:** [@poetry](https://www.ruby-forum.com/u/poetry)\
**Replies:** 2\
**Last updated:** [August 24, 2007, 12:37am UTC](https://www.ruby-forum.com/t/multilingual-web-application/111362 "2007-08-24T00:37:15Z")

</div>

Hi list, I have a more conceptual question. I want to create a multilingual web application. I have the models “product” and “product\_name”. Each “product\_name” contains a product\_id, a language\_id and a string value …

---

## [How do you copy over a development database to production?](https://www.ruby-forum.com/t/how-do-you-copy-over-a-development-database-to-production/112674)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 12:27am UTC](https://www.ruby-forum.com/t/how-do-you-copy-over-a-development-database-to-production/112674 "2007-08-24T00:27:51Z")

</div>

I know to copy your development database schema over to your test database uses db:test:prepare. What’s the equivalent command to copy the development database over to the production database?

---

## [How to manage group permissions?](https://www.ruby-forum.com/t/how-to-manage-group-permissions/112867)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [August 24, 2007, 12:18am UTC](https://www.ruby-forum.com/t/how-to-manage-group-permissions/112867 "2007-08-24T00:18:13Z")

</div>

Hey all, In my app users can create groups and the group creator can “kick” or “ban” users. I want the creator to be able to grant other members of the group to kick and ban. This is how I want to do it: I’m usgin a…

---

## [Mobile Rails Development](https://www.ruby-forum.com/t/mobile-rails-development/112860)

<div class="topic-metadata">

**Author:** [@mmccall](https://www.ruby-forum.com/u/mmccall)\
**Replies:** 1\
**Last updated:** [August 24, 2007, 12:06am UTC](https://www.ruby-forum.com/t/mobile-rails-development/112860 "2007-08-24T00:06:12Z")

</div>

Hello, I want to develop a Rails application for a mobile device. Would anyone know of any tutorials on the web on how to create a mobile application view using Rails? Moses

---

## [Recording current\_user](https://www.ruby-forum.com/t/recording-current-user/112847)

<div class="topic-metadata">

**Author:** [@3quid](https://www.ruby-forum.com/u/3quid)\
**Replies:** 3\
**Last updated:** [August 23, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/recording-current-user/112847 "2007-08-23T23:44:10Z")

</div>

Hi, Another noob here I am afraid! I have a questuin about the current\_user method that comes with AAA. I have AAA set up and working fine and if i put \<%= self.current\_user.login %\> into a view it shows the login na…

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

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