# Rails

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

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

---

## [When to use raise ? why just redirect\_to](https://www.ruby-forum.com/t/when-to-use-raise-why-just-redirect-to/172561)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 10:24am UTC](https://www.ruby-forum.com/t/when-to-use-raise-why-just-redirect-to/172561 "2009-07-23T10:24:04Z")

</div>

I don’t know what exactly raise work for. it seem redirect\_to has the same functionality. well, I know I must be missed something. so anyone show some examples?

---

## [How does a memcached key look like?](https://www.ruby-forum.com/t/how-does-a-memcached-key-look-like/172562)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 10:15am UTC](https://www.ruby-forum.com/t/how-does-a-memcached-key-look-like/172562 "2009-07-23T10:15:18Z")

</div>

Hi, When I use the ‘action cache’ feature in Rails (2.3.2) the result is stored in Memcached. I can’t seem to figure out how the key looks like. I want to know this as I want to remove specific pieces of the cache a…

---

## [Ignore Empty File Uploads with attachment\_fu (Multiple files)](https://www.ruby-forum.com/t/ignore-empty-file-uploads-with-attachment-fu-multiple-files/172559)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 9:44am UTC](https://www.ruby-forum.com/t/ignore-empty-file-uploads-with-attachment-fu-multiple-files/172559 "2009-07-23T09:44:17Z")

</div>

Hi there, I have multiple file uploads working with attachment\_fu, however if one of the file fields is empty then it throws a validation error. Removing the validation results in an empty (nil) record being created. …

---

## [Record Mapping](https://www.ruby-forum.com/t/record-mapping/172493)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 3\
**Last updated:** [July 23, 2009, 8:23am UTC](https://www.ruby-forum.com/t/record-mapping/172493 "2009-07-23T08:23:39Z")

</div>

Ok … I am having one more problem for you guyz … :slight\_smile: Actually … i am taking records into an array with command … array = ModelName.find(:all, :conditions) … And then again i have to give conditions on arr…

---

## [How to get the value of a text field](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/172545)

<div class="topic-metadata">

**Author:** [@Xiahong\_G](https://www.ruby-forum.com/u/Xiahong_G)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 5:13am UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-a-text-field/172545 "2009-07-23T05:13:46Z")

</div>

Hi everyone, I need to get the value of one text field when clicking “next page”. My code looks like: this is the view page: \<% form\_tag(‘javascript:void(0)’) do %\> \<%= text\_field\_tag 'search' %\> \<%= observe\_fiel…

---

## [Acl\_system2 : undefined method \`access\_control'](https://www.ruby-forum.com/t/acl-system2-undefined-method-access-control/172543)

<div class="topic-metadata">

**Author:** [@hutress](https://www.ruby-forum.com/u/hutress)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 4:39am UTC](https://www.ruby-forum.com/t/acl-system2-undefined-method-access-control/172543 "2009-07-23T04:39:27Z")

</div>

I am using acl\_system2 plugin to implement my authorization. (with restful\_authentication plugin) plugin install ./script/plugin install http://opensvn.csie.org/ezra/rails/plugins/dev/acl\_system2 class UsersCont…

---

## [Upgrading Ruby - will it affect Rails? - 1.8.6 to 1.9.1](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [July 23, 2009, 2:53am UTC](https://www.ruby-forum.com/t/upgrading-ruby-will-it-affect-rails-1-8-6-to-1-9-1/172509 "2009-07-23T02:53:41Z")

</div>

Hi all, I have a question regarding upgrading Ruby and how it may or may not affect rails. Other than rubygems and gem versions that my project will use (I know I have to check to make sure they will work with 1.9.1 …

---

## [Concerns about multiple model queries and array management](https://www.ruby-forum.com/t/concerns-about-multiple-model-queries-and-array-management/172347)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 13\
**Last updated:** [July 23, 2009, 2:49am UTC](https://www.ruby-forum.com/t/concerns-about-multiple-model-queries-and-array-management/172347 "2009-07-23T02:49:57Z")

</div>

Wow, what a week! I’ve gotten a lot accomplished with my site but brain-fried has set into my head… I’m reaching a point where I’m having to manipulate arrays to gain access to ids that I will use in model.find metho…

---

## [Problem with deploying changes in production](https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 2:05am UTC](https://www.ruby-forum.com/t/problem-with-deploying-changes-in-production/172517 "2009-07-23T02:05:35Z")

</div>

Problem with deploying changes in production. In my /config/environment/production.rb, if I have: config.cache\_classes = false and I run “ruby script/server -e production” I can see my new changes. When I change the…

---

## [Evaluating Ruby code that is in a sting, how do I do it?](https://www.ruby-forum.com/t/evaluating-ruby-code-that-is-in-a-sting-how-do-i-do-it/172443)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 3\
**Last updated:** [July 23, 2009, 1:57am UTC](https://www.ruby-forum.com/t/evaluating-ruby-code-that-is-in-a-sting-how-do-i-do-it/172443 "2009-07-23T01:57:45Z")

</div>

Hello there, I have a code like. … items = entries.map { |entry| content\_tag(“li”, mask, :id =\> “#{entry.id}”)} … I want to evaluate the ruby code in the string mask on the fly… it content is: “#{entry.name} - #{…

---

## [Simple post action help needed](https://www.ruby-forum.com/t/simple-post-action-help-needed/172472)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 1\
**Last updated:** [July 23, 2009, 12:58am UTC](https://www.ruby-forum.com/t/simple-post-action-help-needed/172472 "2009-07-23T00:58:53Z")

</div>

I have a controller called mystuff\_controller.rb, a db called mpstuff and a table inside that db called data and a column called m1. I was hoping that some could give a quick step by step on how to create a post actio…

---

## [Moneta::File](https://www.ruby-forum.com/t/moneta-file/172536)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 0\
**Last updated:** [July 23, 2009, 12:26am UTC](https://www.ruby-forum.com/t/moneta-file/172536 "2009-07-23T00:26:15Z")

</div>

I am looking for help with Moneta. I can’t seem to find a specific forum anywhere, so I am going to try here. I am trying to use the File option on Moneta. On my development mac, everything is peachy, but when I went …

---

## [Problem when copying files somehow related to REXML](https://www.ruby-forum.com/t/problem-when-copying-files-somehow-related-to-rexml/172495)

<div class="topic-metadata">

**Author:** [@Javier\_Q](https://www.ruby-forum.com/u/Javier_Q)\
**Replies:** 3\
**Last updated:** [July 22, 2009, 11:59pm UTC](https://www.ruby-forum.com/t/problem-when-copying-files-somehow-related-to-rexml/172495 "2009-07-22T23:59:56Z")

</div>

Hi guys. I am trying to copy files from one folder to another. The code is quite simple: frompath = File.join(fromdirectory,filename) topath = File.join(todirectory,filename) FileUtils.cp(frompath, topath) The…

---

## [Helper for ajax field update](https://www.ruby-forum.com/t/helper-for-ajax-field-update/172530)

<div class="topic-metadata">

**Author:** [@billv](https://www.ruby-forum.com/u/billv)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 11:45pm UTC](https://www.ruby-forum.com/t/helper-for-ajax-field-update/172530 "2009-07-22T23:45:19Z")

</div>

I have a page that lists a set of tasks, each with a status field. I’d like the ability to update the status from this field, through a pop-up box. Basically, click the link, a little text area box opens, the user en…

---

## [Ruby on Rails and prepated statements](https://www.ruby-forum.com/t/ruby-on-rails-and-prepated-statements/172505)

<div class="topic-metadata">

**Author:** [@kronos](https://www.ruby-forum.com/u/kronos)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 11:24pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-and-prepated-statements/172505 "2009-07-22T23:24:52Z")

</div>

It is knows that Ruby mysql driver supports prepared statements. Why do not active record adapters support them? Is there any reason for it?

---

## [Code reloading by timer (in development env)](https://www.ruby-forum.com/t/code-reloading-by-timer-in-development-env/172510)

<div class="topic-metadata">

**Author:** [@axyd80](https://www.ruby-forum.com/u/axyd80)\
**Replies:** 6\
**Last updated:** [July 22, 2009, 10:39pm UTC](https://www.ruby-forum.com/t/code-reloading-by-timer-in-development-env/172510 "2009-07-22T22:39:52Z")

</div>

Hello, i’m working on huge rails project and it’s terribly slow in development mode. There are lots of code and lots of AJAX requests, so it’s very slow as (i guess) it reloads all the code several times per one page. …

---

## [Change default view path for an ActionController](https://www.ruby-forum.com/t/change-default-view-path-for-an-actioncontroller/171805)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 7\
**Last updated:** [July 22, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/change-default-view-path-for-an-actioncontroller/171805 "2009-07-22T22:37:31Z")

</div>

Hello all, i would like to change the default view path for one of my controllers. Like StudentsController should use templates located in views/persons instead views/students. Is that possible? Greetings, Mike

---

## [Render a partial that has assosciations with something else](https://www.ruby-forum.com/t/render-a-partial-that-has-assosciations-with-something-else/172470)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [July 22, 2009, 9:33pm UTC](https://www.ruby-forum.com/t/render-a-partial-that-has-assosciations-with-something-else/172470 "2009-07-22T21:33:12Z")

</div>

hi, Does anyone know how I can render a partial that has an assosciation with something else (e.g. render a comments partial in posts-- where the comments belong to posts). Thanks

---

## [2.3.3 update broke my test suite](https://www.ruby-forum.com/t/2-3-3-update-broke-my-test-suite/172399)

<div class="topic-metadata">

**Author:** [@mpd](https://www.ruby-forum.com/u/mpd)\
**Replies:** 4\
**Last updated:** [July 22, 2009, 9:32pm UTC](https://www.ruby-forum.com/t/2-3-3-update-broke-my-test-suite/172399 "2009-07-22T21:32:02Z")

</div>

hello, The recent update to 2.3.3 is breaking my entire suite with the same error. I guess something in the load order changed? e.g.: Fixture::FormatError in ‘PublishedGallery Methods#thumbnail should delegate to it…

---

## [Simple Search Methode - newbie question](https://www.ruby-forum.com/t/simple-search-methode-newbie-question/172373)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 7\
**Last updated:** [July 22, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/simple-search-methode-newbie-question/172373 "2009-07-22T19:58:32Z")

</div>

Dear All, Can you guide me how can i implement a search function in my simple Bookmark program. In my Bookmark I have “title” and “url”, “description”. What I want to do is “search\_by” “title”. many thanks in advance…

---

## [Button\_to\_remote problem "index 115225 out of string"](https://www.ruby-forum.com/t/button-to-remote-problem-index-115225-out-of-string/172515)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/button-to-remote-problem-index-115225-out-of-string/172515 "2009-07-22T18:54:57Z")

</div>

hey all I have some nested resource ‘sku\_price\_bands’ which are nested inside ‘skus’ which are nested inside ‘music\_services’: in routes.rb: map.resources :music\_service do |music\_service| music\_service.resources :s…

---

## [How to Disable Pluralization](https://www.ruby-forum.com/t/how-to-disable-pluralization/172343)

<div class="topic-metadata">

**Author:** [@harun](https://www.ruby-forum.com/u/harun)\
**Replies:** 9\
**Last updated:** [July 22, 2009, 6:37pm UTC](https://www.ruby-forum.com/t/how-to-disable-pluralization/172343 "2009-07-22T18:37:42Z")

</div>

Hi, First, I am new at Ruby on Rails. When using scaffolding feature, rails pluralize some automatically generated files’ names, like controller names, view names and helper names. What I want is to disable this plur…

---

## [AJAX "render :partial" does not update if specified view matches current view](https://www.ruby-forum.com/t/ajax-render-partial-does-not-update-if-specified-view-matches-current-view/172401)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 3\
**Last updated:** [July 22, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/ajax-render-partial-does-not-update-if-specified-view-matches-current-view/172401 "2009-07-22T16:23:09Z")

</div>

I have some simple code that renders a form to an element specified in form\_remote\_tag :update. The problem is that, if the loaded view matches the view to render, Rails does nothing rather than refreshing the view (w…

---

## [Problem sending files \> ~10KB using Active Resource](https://www.ruby-forum.com/t/problem-sending-files-10kb-using-active-resource/172508)

<div class="topic-metadata">

**Author:** [@onomato](https://www.ruby-forum.com/u/onomato)\
**Replies:** 1\
**Last updated:** [July 22, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/problem-sending-files-10kb-using-active-resource/172508 "2009-07-22T16:03:16Z")

</div>

Hey everybody, scenario: frontend-server gets files from a form.file\_field and should send the filedata to a backend-server via (Hyper)ActiveResource! I used the following code to access a method in a backend-server a…

---

## [Route to static folder (to browse files)](https://www.ruby-forum.com/t/route-to-static-folder-to-browse-files/172494)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 3\
**Last updated:** [July 22, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/route-to-static-folder-to-browse-files/172494 "2009-07-22T15:26:15Z")

</div>

Hi - I want to enable access to a directory inside my app’s public folder. This means that when a user will navigate to 应用宝官网-全网最新最热手机应用游戏下载, he will actually be accessing the root of RAILS\_ROOT/public/files. This fo…

---

## [Aptana RadRails](https://www.ruby-forum.com/t/aptana-radrails/172427)

<div class="topic-metadata">

**Author:** [@Renzo](https://www.ruby-forum.com/u/Renzo)\
**Replies:** 8\
**Last updated:** [July 22, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/aptana-radrails/172427 "2009-07-22T15:20:33Z")

</div>

Guys… Have you used this IDE for RoR… Is it good to use for those who are starting for RoR… I really want to learn RoR to learn new IT knowledge… And I believe it would help me on my Web design and development project…

---

## [Hash Problem .. + Urgent](https://www.ruby-forum.com/t/hash-problem-urgent/172502)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 9\
**Last updated:** [July 22, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/hash-problem-urgent/172502 "2009-07-22T14:40:45Z")

</div>

Hi Guyz, Problem with me is that whenever i am storing values in my hash… it stores perfectly … But when i am trying to print it … i mean try to view its contents … then contents coming in wrong order … which i dont …

---

## [Production and cache](https://www.ruby-forum.com/t/production-and-cache/172447)

<div class="topic-metadata">

**Author:** [@alesc](https://www.ruby-forum.com/u/alesc)\
**Replies:** 4\
**Last updated:** [July 22, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/production-and-cache/172447 "2009-07-22T14:37:14Z")

</div>

Hello! i have made a multisite system. Depending on the url of the request (www.clerk.it / www.fastshare.it / …) it generate a different website, this is the fron-end, each sites have a different back-end too where t…

---

## [Logger::ShiftingError](https://www.ruby-forum.com/t/logger-shiftingerror/172501)

<div class="topic-metadata">

**Author:** [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Replies:** 0\
**Last updated:** [July 22, 2009, 1:49pm UTC](https://www.ruby-forum.com/t/logger-shiftingerror/172501 "2009-07-22T13:49:14Z")

</div>

\#---------------lib/app\_logger.rb------------ require ‘logger’ class AppLogger attr\_writer :man\_name, :emp\_name def initialize(man\_name, emp\_name) @man\_name = man\_name @emp\_name = emp\_name log\_path = "log/" file\_n…

---

## [Radio\_button not updating the database](https://www.ruby-forum.com/t/radio-button-not-updating-the-database/172496)

<div class="topic-metadata">

**Author:** [@sts](https://www.ruby-forum.com/u/sts)\
**Replies:** 5\
**Last updated:** [July 22, 2009, 1:31pm UTC](https://www.ruby-forum.com/t/radio-button-not-updating-the-database/172496 "2009-07-22T13:31:42Z")

</div>

Hi, Am creating a survey, in which am getting the questions from question table and answers from answers table. In the survey table am displaying the questions with the answers as multiple choice using radio buttons. …

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

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