# Rails

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

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

---

## [Playing with routes Rails 2.3](https://www.ruby-forum.com/t/playing-with-routes-rails-2-3/172812)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/playing-with-routes-rails-2-3/172812 "2009-07-28T12:43:32Z")

</div>

Okay, I’m just getting back into using Rails for a few private projects and am trying to stick to the RESTful way of doing things. If I have a teacher model and a lesson model, the basic scaffold setup to create the…

---

## [Streaming radios in rails](https://www.ruby-forum.com/t/streaming-radios-in-rails/172779)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 2\
**Last updated:** [July 28, 2009, 11:17am UTC](https://www.ruby-forum.com/t/streaming-radios-in-rails/172779 "2009-07-28T11:17:25Z")

</div>

Hi there I am trying to stream a radio station from their server. It works fine on my ubuntu box. when I run it on IE in Windows, media player does not run the link. while other players (if installed) like real playe…

---

## [Action Placed in Application Controller Doesn't Inherit Down](https://www.ruby-forum.com/t/action-placed-in-application-controller-doesnt-inherit-down/172726)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 6:24am UTC](https://www.ruby-forum.com/t/action-placed-in-application-controller-doesnt-inherit-down/172726 "2009-07-28T06:24:52Z")

</div>

I reasoned that placing an action in the application controller would be roughly equivalent to placing that action in each of the other controllers since each of the other controllers inherits from the application con…

---

## [RJS render errors when user clicks away before render completes](https://www.ruby-forum.com/t/rjs-render-errors-when-user-clicks-away-before-render-completes/171963)

<div class="topic-metadata">

**Author:** [@rockrep](https://www.ruby-forum.com/u/rockrep)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 5:27am UTC](https://www.ruby-forum.com/t/rjs-render-errors-when-user-clicks-away-before-render-completes/171963 "2009-07-28T05:27:30Z")

</div>

We have an issue where we are using RJS templates to render the results of Ajax calls. Everything works fine so long as the user waits for the render to occur. However, if the user initiates the request and the RJ…

---

## [Routing bug/help](https://www.ruby-forum.com/t/routing-bug-help/172794)

<div class="topic-metadata">

**Author:** [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 5:19am UTC](https://www.ruby-forum.com/t/routing-bug-help/172794 "2009-07-28T05:19:53Z")

</div>

Hi all. One of my routes that works in 2.1 breaks in 2.2 and 2.3. Wondering if anyone has thoughts/workarounds. ActionController::Routing::SEPARATORS \<\< “,” unless ActionController::Routing::SEPARATORS.include?(“,”) …

---

## [Boolean model.column? == true even if value is 0](https://www.ruby-forum.com/t/boolean-model-column-true-even-if-value-is-0/172778)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [July 28, 2009, 4:11am UTC](https://www.ruby-forum.com/t/boolean-model-column-true-even-if-value-is-0/172778 "2009-07-28T04:11:09Z")

</div>

I had a working 1.2 app which I have just updated to 2.3.2 – mostly seems good so far, but the Rails technique for booleans is acting up. MySQL column = childSensitiveCase varchar(1) NOT NULL default ‘0’ If I use a si…

---

## [Stupid questions about erb](https://www.ruby-forum.com/t/stupid-questions-about-erb/172790)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 4:01am UTC](https://www.ruby-forum.com/t/stupid-questions-about-erb/172790 "2009-07-28T04:01:28Z")

</div>

I have been trying to find these answers in Google, but not getting any clarity. I am writing in Rails 2.3.2 but have always lived in a 1.2.x world. In the 1.2.x world, putting this in an rhtml file would always rende…

---

## [Attempting ajax file upload](https://www.ruby-forum.com/t/attempting-ajax-file-upload/172730)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 2:41am UTC](https://www.ruby-forum.com/t/attempting-ajax-file-upload/172730 "2009-07-28T02:41:51Z")

</div>

I have this basic code in place and it is giving me an: “undefined local variable or method \`end\_form\_tag’ for #ActionView::Base:0x41a2094” Note sure why I am getting the error as it is straight from: view: \<%= for…

---

## [\[activerecord\]what are the reserved attribute names that become protected attributes](https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 1\
**Last updated:** [July 28, 2009, 2:00am UTC](https://www.ruby-forum.com/t/activerecord-what-are-the-reserved-attribute-names-that-become-protected-attributes/172786 "2009-07-28T02:00:17Z")

</div>

I just ran into the concept of protected attributes in ActiveRecord when I tried to add a field/column with the name ‘type’. Is there any documentation on the reserved names that are considered protected by default? I…

---

## [Rails query loading bug or not?](https://www.ruby-forum.com/t/rails-query-loading-bug-or-not/172784)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [July 28, 2009, 1:34am UTC](https://www.ruby-forum.com/t/rails-query-loading-bug-or-not/172784 "2009-07-28T01:34:46Z")

</div>

I noticed that when I was formatting my code, because I have a very long query being built I made it easier for myself by separating the lines one by one, for viewing. But, when testing, I noticed that my query went …

---

## [Best practice question](https://www.ruby-forum.com/t/best-practice-question/172763)

<div class="topic-metadata">

**Author:** [@Ashley](https://www.ruby-forum.com/u/Ashley)\
**Replies:** 4\
**Last updated:** [July 28, 2009, 1:23am UTC](https://www.ruby-forum.com/t/best-practice-question/172763 "2009-07-28T01:23:26Z")

</div>

Hello guys! Question: Views should be “dumb” and models should deal with db queries… but what if you have a situation like so class User \< ActiveRecord::Base def has\_relationship\_with?( other\_user ) !relationships.…

---

## [Can't delete sqlite database](https://www.ruby-forum.com/t/cant-delete-sqlite-database/172771)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [July 28, 2009, 12:45am UTC](https://www.ruby-forum.com/t/cant-delete-sqlite-database/172771 "2009-07-28T00:45:28Z")

</div>

Did a quick experiment with a new project and added the default sqlite database with rake db:migrate. Now I want to get rid of it. I use rake db:drop and that will delete the file, but as soon as I restart the Rails a…

---

## [Using form values](https://www.ruby-forum.com/t/using-form-values/172776)

<div class="topic-metadata">

**Author:** [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Replies:** 3\
**Last updated:** [July 28, 2009, 12:19am UTC](https://www.ruby-forum.com/t/using-form-values/172776 "2009-07-28T00:19:40Z")

</div>

Can anyone tell me how to use form field values on a different part of your form? Example If I have a value being retrieved from the DB like this: \<%=h number.m1 %\> how do I take that value and do something like this…

---

## [Export to PDF](https://www.ruby-forum.com/t/export-to-pdf/172748)

<div class="topic-metadata">

**Author:** [@anandhkumar](https://www.ruby-forum.com/u/anandhkumar)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/export-to-pdf/172748 "2009-07-27T23:27:09Z")

</div>

Hi everyone It ll be helpful for me if someone there guide me in resolving the following issue… I’ve to parse the xml and export the contents into PDF. Also please suggest me how to use xsl:fo in this process to bea…

---

## [Client local time](https://www.ruby-forum.com/t/client-local-time/172773)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 10:54pm UTC](https://www.ruby-forum.com/t/client-local-time/172773 "2009-07-27T22:54:13Z")

</div>

Hi folks ^^ Ok think it’s gonna be pretty easy but can’t find any solution on internet…I need to get the client local time in order to get database informations in function of the client time and not the server one. …

---

## [Set\_table\_name on the fly](https://www.ruby-forum.com/t/set-table-name-on-the-fly/172765)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/set-table-name-on-the-fly/172765 "2009-07-27T21:04:04Z")

</div>

Hi. I have a model that connects to a database, does something, connects to a different database, does something, and so on. The switching of the databases appears to work, as calling: MyModel.connection.instance\_eval…

---

## [ActionMailer task in cron](https://www.ruby-forum.com/t/actionmailer-task-in-cron/172764)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 2\
**Last updated:** [July 27, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/actionmailer-task-in-cron/172764 "2009-07-27T20:24:52Z")

</div>

I have a Ruby script that sends an email. It works perfectly well when run from the command line of a user session, wheter in development or test mode. When run by cron as the same user however, it fails with this: …

---

## [Document management in ROR](https://www.ruby-forum.com/t/document-management-in-ror/172769)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/document-management-in-ror/172769 "2009-07-27T19:31:41Z")

</div>

Hi, I want to work on a document management system for my ROR project. Question: Does any one know of an existing DMS platform / plugin / gem which I can build upon for my DMS within my application? If not, does any…

---

## [Upgrade old rails app issues.. help](https://www.ruby-forum.com/t/upgrade-old-rails-app-issues-help/167340)

<div class="topic-metadata">

**Author:** [@SSSSRek2SSS](https://www.ruby-forum.com/u/SSSSRek2SSS)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/upgrade-old-rails-app-issues-help/167340 "2009-07-27T19:26:25Z")

</div>

Hi I never had to upgrade someone elses rail application so this is getting a bit fustrating but mostly because I have no experience… I downloaded GrabTheMic download | SourceForge.net that has not been updated for …

---

## [Render syntax has me stumped](https://www.ruby-forum.com/t/render-syntax-has-me-stumped/172732)

<div class="topic-metadata">

**Author:** [@Tim\_Rand](https://www.ruby-forum.com/u/Tim_Rand)\
**Replies:** 3\
**Last updated:** [July 27, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/render-syntax-has-me-stumped/172732 "2009-07-27T18:17:21Z")

</div>

Hi,From within an action called manager within a controller called storedorders, I want to render to the view for the manger action of controller orders. It really seems like the following syntax should work: (within…

---

## [File transfer problem](https://www.ruby-forum.com/t/file-transfer-problem/172699)

<div class="topic-metadata">

**Author:** [@rudeluva](https://www.ruby-forum.com/u/rudeluva)\
**Replies:** 6\
**Last updated:** [July 27, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/file-transfer-problem/172699 "2009-07-27T16:41:56Z")

</div>

Hello, my scenario is that i’m using Flex to upload to a remote server. there are two servers involved…one that runs the web app and one that only stores the file. everytime i do this i get an io error…once, i hit t…

---

## [Is there multilingual support built into Rails?](https://www.ruby-forum.com/t/is-there-multilingual-support-built-into-rails/172724)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 3\
**Last updated:** [July 27, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/is-there-multilingual-support-built-into-rails/172724 "2009-07-27T15:24:04Z")

</div>

Hello group, I have just started to learn Ruby and will be on Rails soon. I am a PHP programmer. Just want to know if ROR has inbuilt multilingual support. Regards Karthikeyan

---

## [Trying to use 301 redirect, but the server does a 302](https://www.ruby-forum.com/t/trying-to-use-301-redirect-but-the-server-does-a-302/172750)

<div class="topic-metadata">

**Author:** [@yannimac](https://www.ruby-forum.com/u/yannimac)\
**Replies:** 3\
**Last updated:** [July 27, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/trying-to-use-301-redirect-but-the-server-does-a-302/172750 "2009-07-27T14:46:35Z")

</div>

I am using the following code to do a 301 redirect in my controller: headers\[“Status”\] = “301 Moved Permanently” redirect\_to “/somepage” and return I am using nginx in front of mongrel cluster. When I tested the URL …

---

## [64-bit OS and Web Browsers (handling flash content)](https://www.ruby-forum.com/t/64-bit-os-and-web-browsers-handling-flash-content/172700)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 6\
**Last updated:** [July 27, 2009, 1:58pm UTC](https://www.ruby-forum.com/t/64-bit-os-and-web-browsers-handling-flash-content/172700 "2009-07-27T13:58:51Z")

</div>

My site is going to rely on a lot of flash interactive content in certain areas and as I’m concerned about the lack of flash in 64-bit browsers. People can launch a 32-bit browser from their machine but some may or m…

---

## [\[JOBS\] Ruby on Rails Jobs](https://www.ruby-forum.com/t/jobs-ruby-on-rails-jobs/172747)

<div class="topic-metadata">

**Author:** [@RubyOnRails\_Jobs](https://www.ruby-forum.com/u/RubyOnRails_Jobs)\
**Replies:** 0\
**Last updated:** [July 27, 2009, 12:51pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-jobs/172747 "2009-07-27T12:51:17Z")

</div>

Post your ruby on rails jobs here http://rubyonrails.in/rubyonrails-premium-jobs/jobs/new to attract best of the Rails talent.

---

## [Routes from raw js (using XMLHttpRequest)](https://www.ruby-forum.com/t/routes-from-raw-js-using-xmlhttprequest/172643)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 6\
**Last updated:** [July 27, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/routes-from-raw-js-using-xmlhttprequest/172643 "2009-07-27T12:43:05Z")

</div>

I am making an ajax call from js to call a method (assocboxchange) in my controller (AssociatesController), using XMLHttpRequest. I know the XMLHttpRequest works fine because I use it in other places with success. M…

---

## [Error in new.rhtml](https://www.ruby-forum.com/t/error-in-new-rhtml/172742)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/error-in-new-rhtml/172742 "2009-07-27T12:14:24Z")

</div>

class UserController \< ApplicationController def new @user = User.new p @user respond\_to do |format| format.html # show.html.erb format.xml { render :xml =\> @post } end end -----------new.rhtml--------------- …

---

## [:expires\_in not working with memcache/fragment caching?](https://www.ruby-forum.com/t/expires-in-not-working-with-memcache-fragment-caching/172743)

<div class="topic-metadata">

**Author:** [@Sjoerd\_Tieleman](https://www.ruby-forum.com/u/Sjoerd_Tieleman)\
**Replies:** 1\
**Last updated:** [July 27, 2009, 11:55am UTC](https://www.ruby-forum.com/t/expires-in-not-working-with-memcache-fragment-caching/172743 "2009-07-27T11:55:40Z")

</div>

Hi all, I’m using memcache (which support the :expires\_in option) and I’m using it in a view to cache a certain piece of HTML, somewhat like: \<% cache :expires\_in =\> 10.minutes %\> some HTML \<% end %\> Funny thing is…

---

## [Google Calendar Interface](https://www.ruby-forum.com/t/google-calendar-interface/172740)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 2\
**Last updated:** [July 27, 2009, 11:28am UTC](https://www.ruby-forum.com/t/google-calendar-interface/172740 "2009-07-27T11:28:09Z")

</div>

Hello G.s, I need a replica of google galendar is there are plugin or something? http://www.future-earth.eu/gwt/calendar/MainDemoApp.html I am looking something similar to this. Regards Abhis

---

## [Error on custom\_require.rb when rspec executed](https://www.ruby-forum.com/t/error-on-custom-require-rb-when-rspec-executed/171935)

<div class="topic-metadata">

**Author:** [@bekkou68](https://www.ruby-forum.com/u/bekkou68)\
**Replies:** 3\
**Last updated:** [July 27, 2009, 10:36am UTC](https://www.ruby-forum.com/t/error-on-custom-require-rb-when-rspec-executed/171935 "2009-07-27T10:36:39Z")

</div>

Hello all, I’m bekkou68. I have a error on custom\_require.rb, which occurred when I execute rspec. I executed the following command. $ script/spec spec/models/ Then, I got the following result. /usr/local/lib/site…

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

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