# Rails

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

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

---

## [Rails app as directory owner](https://www.ruby-forum.com/t/rails-app-as-directory-owner/89647)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/rails-app-as-directory-owner/89647 "2007-03-21T21:48:39Z")

</div>

I’m a real \*nix dummy, so I hope you’ll forgive the stupid question… How does the file system see a Rails app in terms of directory ownership? I’d like to create a directory that only the app can access. Thanks, Bil…

---

## [Prithvi has Tagged you! :)](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89649)

<div class="topic-metadata">

**Author:** [@mandava](https://www.ruby-forum.com/u/mandava)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89649 "2007-03-21T21:44:38Z")

</div>

Prithvi has Tagged you! :) Prithvi M, 24 India Prithvi M has added you as a friend Is Prithvi M your friend? Pleas…

---

## [Prithvi has Tagged you! :)](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89645)

<div class="topic-metadata">

**Author:** [@mandava](https://www.ruby-forum.com/u/mandava)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89645 "2007-03-21T21:32:37Z")

</div>

Time for Tagged \<table border="0" cellspacing="0" cellpadding="0" width="539"\> \<tr\>\<td colspan="3"\>\<img src=“http://static.tagged.com/images/invite\_crnrrs\_topLong.gif” width=“539” height=“11” alt=“” border=“0…

---

## [Prithvi has Tagged you! :)](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89646)

<div class="topic-metadata">

**Author:** [@mandava](https://www.ruby-forum.com/u/mandava)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/prithvi-has-tagged-you/89646 "2007-03-21T21:29:37Z")

</div>

Time for Tagged \<table border="0" cellspacing="0" cellpadding="0" width="539"\> \<tr\>\<td colspan="3"\>\<img src=“http://static.tagged.com/images/invite\_crnrrs\_topLong.gif” width=“539” height=“11” alt=“” border=“0…

---

## [\[ANN\] Israel.rb is brought into existence!](https://www.ruby-forum.com/t/ann-israel-rb-is-brought-into-existence/89644)

<div class="topic-metadata">

**Author:** [@folke](https://www.ruby-forum.com/u/folke)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:21pm UTC](https://www.ruby-forum.com/t/ann-israel-rb-is-brought-into-existence/89644 "2007-03-21T21:21:23Z")

</div>

I am pleased to announce that the Israeli Ruby Brigade has been unleashed upon an unsuspecting world. We’re having our first meetup in two weeks. Further details about the meetup, and everything Ruby in Israel, can be …

---

## [File storage location != public](https://www.ruby-forum.com/t/file-storage-location-public/89637)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/file-storage-location-public/89637 "2007-03-21T21:06:59Z")

</div>

My app allows visitors to upload XML files which I parse, store in the DB for review / modification, and then create a new XML file. I want to put the files somewhere other than RAILS\_ROOT/public so they’re not publi…

---

## [Stuck on RESTful / Ajax / IE issue](https://www.ruby-forum.com/t/stuck-on-restful-ajax-ie-issue/89641)

<div class="topic-metadata">

**Author:** [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/stuck-on-restful-ajax-ie-issue/89641 "2007-03-21T21:04:32Z")

</div>

I can’t get a delete action to trigger (no response at all in Firebug lite, or in the development.log) in my RESTful app with an AJAX delete link. The following link works fine in Firefox and I have a report that it w…

---

## [Passing un-editable model attributes from a form](https://www.ruby-forum.com/t/passing-un-editable-model-attributes-from-a-form/89638)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://www.ruby-forum.com/u/Nathaniel)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/passing-un-editable-model-attributes-from-a-form/89638 "2007-03-21T20:53:53Z")

</div>

Dear anyone, I’m trying to create a very simple “form\_for” form which, when submitted, will create, via a RESTFUL controller, a new model object…all exactly as per the scaffold\_resource-generated model/controller/vie…

---

## [Help with passing user's input to remote\_function](https://www.ruby-forum.com/t/help-with-passing-users-input-to-remote-function/89632)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 2\
**Last updated:** [March 21, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/help-with-passing-users-input-to-remote-function/89632 "2007-03-21T20:23:26Z")

</div>

\<%= form\_tag( “http://search2.library.oregonstate.edu/record/search”) %\> \<%= text\_field\_tag(‘query’,value=“Enter keywords”,{ :size=\> “35”, :accesskey=\> “s”}) %\> \<%= hidden\_field\_tag(‘tab’, value=“general”)%\> \<%= hid…

---

## [Umask in tmp/{cache|pids|sessions|sockets}? / rails in AFS](https://www.ruby-forum.com/t/umask-in-tmp-cache-pids-sessions-sockets-rails-in-afs/89545)

<div class="topic-metadata">

**Author:** [@liamr](https://www.ruby-forum.com/u/liamr)\
**Replies:** 4\
**Last updated:** [March 21, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/umask-in-tmp-cache-pids-sessions-sockets-rails-in-afs/89545 "2007-03-21T20:06:20Z")

</div>

Is it possible to change the umask on the files created in the “tmp” directory via some mechanism present in rails itself? I tried adding “File.umask 0000” to config/enviroment.rb and no go. Here’s the situation. We’…

---

## [Rails method to get the current url that called the action?](https://www.ruby-forum.com/t/rails-method-to-get-the-current-url-that-called-the-action/89541)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/rails-method-to-get-the-current-url-that-called-the-action/89541 "2007-03-21T19:36:12Z")

</div>

hi, i implemented a captcha and basically need to redisplay the page with the fetched information. im trying redirect\_to :back after the captcha is valid, but i think its going back in history. so basically i need to …

---

## [Ordering column "name" in the List view](https://www.ruby-forum.com/t/ordering-column-name-in-the-list-view/85252)

<div class="topic-metadata">

**Author:** [@ebrad](https://www.ruby-forum.com/u/ebrad)\
**Replies:** 8\
**Last updated:** [March 21, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/ordering-column-name-in-the-list-view/85252 "2007-03-21T18:30:03Z")

</div>

Hello, I am very new to RoR and am learning at a fairly good pace, but a seemingly simple task is leaving me stuck. I have a DB table called ‘workers’ and fields for ‘first\_name’ and ‘last\_name’ need to be combined i…

---

## [Unit tests fail with acts\_as\_paranoid](https://www.ruby-forum.com/t/unit-tests-fail-with-acts-as-paranoid/89490)

<div class="topic-metadata">

**Author:** [@jfrankov](https://www.ruby-forum.com/u/jfrankov)\
**Replies:** 4\
**Last updated:** [March 21, 2007, 5:57pm UTC](https://www.ruby-forum.com/t/unit-tests-fail-with-acts-as-paranoid/89490 "2007-03-21T17:57:57Z")

</div>

I thought I had things set up right but now I’m not certain. I installed the acts\_as\_paranoid plugin, added acts\_as\_paranoid just under my class definition: class Foo \< ActiveRecord::Base acts\_as\_paranoid . . . e…

---

## [Progressive AJAX Filter](https://www.ruby-forum.com/t/progressive-ajax-filter/89472)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 2\
**Last updated:** [March 21, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/progressive-ajax-filter/89472 "2007-03-21T17:40:55Z")

</div>

Hi Guys, In my rails app, I present a table of data that I want to be able to filter using multiple criteria. I’ve created a one-line table of input fields above my table to accept filter criteria like this… \<%= jav…

---

## [Captcha or not captcha?](https://www.ruby-forum.com/t/captcha-or-not-captcha/89521)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 4\
**Last updated:** [March 21, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/captcha-or-not-captcha/89521 "2007-03-21T17:35:54Z")

</div>

hi, I’m developing a RoR application and I’m doing the registration and contact pages, the two most important things are the accessibility of the site and the multi language support (I think by globalize). So the ques…

---

## [How to redirector to another controller within subcontroller](https://www.ruby-forum.com/t/how-to-redirector-to-another-controller-within-subcontroller/89609)

<div class="topic-metadata">

**Author:** [@sneptune](https://www.ruby-forum.com/u/sneptune)\
**Replies:** 2\
**Last updated:** [March 21, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/how-to-redirector-to-another-controller-within-subcontroller/89609 "2007-03-21T17:34:47Z")

</div>

Hi, I have been developing a web application using Rails and Firefox. I have factored the controllers into different subcontrollers. For example, user/profile (User::ProfilerController) user/permission (User::Pe…

---

## [Regular Expression pattern](https://www.ruby-forum.com/t/regular-expression-pattern/89602)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 3\
**Last updated:** [March 21, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/regular-expression-pattern/89602 "2007-03-21T17:19:52Z")

</div>

Hai I am trying one small pattern . but it giviong lot of problem. For example I am getting string like “Hai I an fine 11111 22222 2222 33333” from this i want only integer part.like this ‘11111 22222 2222 33333’ i…

---

## [Cron job calling Ruby script to interact with rails code](https://www.ruby-forum.com/t/cron-job-calling-ruby-script-to-interact-with-rails-code/89605)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/cron-job-calling-ruby-script-to-interact-with-rails-code/89605 "2007-03-21T16:11:41Z")

</div>

I’m really naive on this subject, forgive me. I need to write a cron job that will run a ruby script. The script needs to be able to access my rails code. What do I need to include/require in a .rb file to get acc…

---

## [Allowing certain HTML tags](https://www.ruby-forum.com/t/allowing-certain-html-tags/89599)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/allowing-certain-html-tags/89599 "2007-03-21T15:48:37Z")

</div>

I’m looking for the right combination of view helpers to get the following: -carriage returns converted to -any URL’s converted to links -allow for embed tags -sanitize any other tags or scripts I know its kind o…

---

## [Lingr in Rails?](https://www.ruby-forum.com/t/lingr-in-rails/89603)

<div class="topic-metadata">

**Author:** [@clemensk](https://www.ruby-forum.com/u/clemensk)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 3:28pm UTC](https://www.ruby-forum.com/t/lingr-in-rails/89603 "2007-03-21T15:28:35Z")

</div>

Hi, Has anyone integrated the Lingr API (http://svn.lingr.com/api/toolkits/ ruby/infoteria/) in a Rails app yet? If not, does anyone have valuable experience to share regarding the use of threads and AJAX? I’m devel…

---

## [Rails dev and support work for a Christian charity](https://www.ruby-forum.com/t/rails-dev-and-support-work-for-a-christian-charity/89601)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/rails-dev-and-support-work-for-a-christian-charity/89601 "2007-03-21T14:45:29Z")

</div>

I’m not sure this is the right place to ask this, but I’m looking for a Rails developer to replace me on a project for a Christian charity in Dublin, Ireland. I have to step down as I don’t have the time available to …

---

## [Complicated Active Record CRUD](https://www.ruby-forum.com/t/complicated-active-record-crud/89507)

<div class="topic-metadata">

**Author:** [@isaacrtree](https://www.ruby-forum.com/u/isaacrtree)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 2:44pm UTC](https://www.ruby-forum.com/t/complicated-active-record-crud/89507 "2007-03-21T14:44:08Z")

</div>

I’m having a lot of problems getting my head around how to do database editing with Rails, when I have the following tables and relationships (for brevity I’ve shortened the table listings - also IDs are added automat…

---

## [Create Custom Exceptions](https://www.ruby-forum.com/t/create-custom-exceptions/89593)

<div class="topic-metadata">

**Author:** [@eizesus](https://www.ruby-forum.com/u/eizesus)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/create-custom-exceptions/89593 "2007-03-21T14:02:21Z")

</div>

Is it possible?

---

## [Getting the module name with ObjectSpace](https://www.ruby-forum.com/t/getting-the-module-name-with-objectspace/89596)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/getting-the-module-name-with-objectspace/89596 "2007-03-21T13:58:20Z")

</div>

Hey :slight\_smile: I’m trying to create a method for making a sitemap dynamically. It works great for flat sites where you simply have your controllers in the app/controllers directory. In this case, I can extract the …

---

## [Add items to a select box in \_form.rhtml](https://www.ruby-forum.com/t/add-items-to-a-select-box-in-form-rhtml/89589)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 2\
**Last updated:** [March 21, 2007, 1:07pm UTC](https://www.ruby-forum.com/t/add-items-to-a-select-box-in-form-rhtml/89589 "2007-03-21T13:07:24Z")

</div>

I have a \_form.rhtml with the following partial Type \<%= select 'account', 'account\_type', 'user' %\> How can I add other elements i.e. guest, adminstrator to the list in the selection box. Thanks Reg

---

## [Returning array/list of custom structs in webservice](https://www.ruby-forum.com/t/returning-array-list-of-custom-structs-in-webservice/89590)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/returning-array-list-of-custom-structs-in-webservice/89590 "2007-03-21T12:36:33Z")

</div>

I’m trying to create an ActionWebService to be consumed by another service. I’ve created my own struct, and I’ve set the return to be \[\[MyStruct\]\] to return an array of MyStructs. The problem is, the consumer doesn’t …

---

## [Converting Rails app to desktop with XUL?](https://www.ruby-forum.com/t/converting-rails-app-to-desktop-with-xul/89562)

<div class="topic-metadata">

**Author:** [@Gvstav](https://www.ruby-forum.com/u/Gvstav)\
**Replies:** 6\
**Last updated:** [March 21, 2007, 12:32pm UTC](https://www.ruby-forum.com/t/converting-rails-app-to-desktop-with-xul/89562 "2007-03-21T12:32:32Z")

</div>

Hi, We are thinking about choosing Rails as our weapon of choice for our next project, which is basically a text editor on steroids, whith some functionality that need an Internet connection. In the first step we are…

---

## [Issue with duplicate value representation](https://www.ruby-forum.com/t/issue-with-duplicate-value-representation/89587)

<div class="topic-metadata">

**Author:** [@chandra\_shekhar\_G](https://www.ruby-forum.com/u/chandra_shekhar_G)\
**Replies:** 0\
**Last updated:** [March 21, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/issue-with-duplicate-value-representation/89587 "2007-03-21T12:21:50Z")

</div>

Hi we are facing an issue as detailed below, in the output xml returned from the api method, we see that whenever two fields have same value, it is represented as href, we dont want the representation in that manner…

---

## [Rhtml plugin needed](https://www.ruby-forum.com/t/rhtml-plugin-needed/89415)

<div class="topic-metadata">

**Author:** [@murraj](https://www.ruby-forum.com/u/murraj)\
**Replies:** 4\
**Last updated:** [March 21, 2007, 12:09pm UTC](https://www.ruby-forum.com/t/rhtml-plugin-needed/89415 "2007-03-21T12:09:58Z")

</div>

Hi ! Is there any rhtml plugins for Eclipse ( or ) Radrails editors ? Pls , suggest me !

---

## [Tweak relationships & AR loading question](https://www.ruby-forum.com/t/tweak-relationships-ar-loading-question/89519)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 1\
**Last updated:** [March 21, 2007, 11:52am UTC](https://www.ruby-forum.com/t/tweak-relationships-ar-loading-question/89519 "2007-03-21T11:52:11Z")

</div>

Hi, Imagine you have a model Guy. Pick a guy from your table. Maybe he is married and have children (single guys can’t have children, can they?). So your are tempted to write: class Guy \< ActiveRecord::Base has\_many…

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

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