# Rails

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

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

---

## [Passenger on localhost](https://www.ruby-forum.com/t/passenger-on-localhost/169598)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 17\
**Last updated:** [May 30, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/passenger-on-localhost/169598 "2010-05-30T20:43:37Z")

</div>

I installed passenger at home. How should I configure apache to make it usable? This was my last guess: ServerName 127.0.0.1 DocumentRoot /var/www/html/docsearch/public This gets by “apachectl start” withou…

---

## [Handling custom error files (404/500) in Rails 3](https://www.ruby-forum.com/t/handling-custom-error-files-404-500-in-rails-3/189269)

<div class="topic-metadata">

**Author:** [@anywho](https://www.ruby-forum.com/u/anywho)\
**Replies:** 1\
**Last updated:** [May 30, 2010, 7:38pm UTC](https://www.ruby-forum.com/t/handling-custom-error-files-404-500-in-rails-3/189269 "2010-05-30T19:38:40Z")

</div>

I’ve been looking at rescue\_from and rescue\_action\_in\_public however, none of them have worked without making a catch-all route. So currently, my solution is to use the catch-all route: match ‘\*path’ =\> “controller#…

---

## [Association and Filtering](https://www.ruby-forum.com/t/association-and-filtering/189380)

<div class="topic-metadata">

**Author:** [@RobZ1](https://www.ruby-forum.com/u/RobZ1)\
**Replies:** 0\
**Last updated:** [May 30, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/association-and-filtering/189380 "2010-05-30T19:02:23Z")

</div>

Hopefully a quick one : I have a products table and in the view I am showing these products as well as a sidebar to “filter” the products by team, size, color etc (which are all attributes of other join tables). Wh…

---

## [Error while installing Rails using gem install rails](https://www.ruby-forum.com/t/error-while-installing-rails-using-gem-install-rails/173919)

<div class="topic-metadata">

**Author:** [@chrisnzi](https://www.ruby-forum.com/u/chrisnzi)\
**Replies:** 5\
**Last updated:** [May 30, 2010, 1:46pm UTC](https://www.ruby-forum.com/t/error-while-installing-rails-using-gem-install-rails/173919 "2010-05-30T13:46:45Z")

</div>

I’ve got this error, while trying to do gem install rails Bulk updating Gem source index for: http://gems.rubyforge.org Building native extensions. This could take a while… ERROR: While executing gem … (Gem::Instal…

---

## [Http Rest call and JSON response](https://www.ruby-forum.com/t/http-rest-call-and-json-response/189373)

<div class="topic-metadata">

**Author:** [@deepakrk](https://www.ruby-forum.com/u/deepakrk)\
**Replies:** 0\
**Last updated:** [May 30, 2010, 10:14am UTC](https://www.ruby-forum.com/t/http-rest-call-and-json-response/189373 "2010-05-30T10:14:44Z")

</div>

I am trying to call remote server rest api , the response type of call is json data. plz give me tips how to do this . I am new in rails .

---

## [Upgrading problems, 2.3.5 -\> 2.3.8](https://www.ruby-forum.com/t/upgrading-problems-2-3-5-2-3-8/189372)

<div class="topic-metadata">

**Author:** [@deviated](https://www.ruby-forum.com/u/deviated)\
**Replies:** 1\
**Last updated:** [May 30, 2010, 3:55am UTC](https://www.ruby-forum.com/t/upgrading-problems-2-3-5-2-3-8/189372 "2010-05-30T03:55:56Z")

</div>

Ever since I updated rails to 2.3.8, script/server exits right after it starts. Here’s the output =\> Ctrl-C to shutdown server \[2010-05-29 18:14:58\] INFO WEBrick 1.3.1 \[2010-05-29 18:14:58\] INFO ruby 1.9.1 (2009-0…

---

## [UTF8 name not carried into the page cache filename](https://www.ruby-forum.com/t/utf8-name-not-carried-into-the-page-cache-filename/189284)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 30, 2010, 3:36am UTC](https://www.ruby-forum.com/t/utf8-name-not-carried-into-the-page-cache-filename/189284 "2010-05-30T03:36:03Z")

</div>

I am using ruby 1.8.7 and rail 3 beta3 on Windows XP. Page caching works okay and the content of the cache is UTF8 as expected. However, the filename which came from the UTF8 URL is not okay. Apache can not find the…

---

## [Tar archive extract to buffer and offer for view / download](https://www.ruby-forum.com/t/tar-archive-extract-to-buffer-and-offer-for-view-download/189370)

<div class="topic-metadata">

**Author:** [@Togg](https://www.ruby-forum.com/u/Togg)\
**Replies:** 0\
**Last updated:** [May 30, 2010, 2:14am UTC](https://www.ruby-forum.com/t/tar-archive-extract-to-buffer-and-offer-for-view-download/189370 "2010-05-30T02:14:06Z")

</div>

I want to open a tar.gz archive and display the content as a folder structure and offer possibility to download and view the content. The archive should not be compressed to a folder but only to a buffer. Helper: req…

---

## [Unable to gem install rails](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366)

<div class="topic-metadata">

**Author:** [@yarrgh](https://www.ruby-forum.com/u/yarrgh)\
**Replies:** 2\
**Last updated:** [May 29, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/unable-to-gem-install-rails/189366 "2010-05-29T21:46:09Z")

</div>

I am unable to install rails via the CLI, Fedora 13. This is a new installation and I am not certain why I am receiving this error. ERROR: Loading command: install (LoadError) no such file to load – zlib ERROR: Whi…

---

## [Active record interface query](https://www.ruby-forum.com/t/active-record-interface-query/189364)

<div class="topic-metadata">

**Author:** [@girlcarina](https://www.ruby-forum.com/u/girlcarina)\
**Replies:** 0\
**Last updated:** [May 29, 2010, 8:25pm UTC](https://www.ruby-forum.com/t/active-record-interface-query/189364 "2010-05-29T20:25:16Z")

</div>

Olá, tudo bem… sou nova em ROR e estou precisando de ajuda com o active query… Bom… tenho 3 models… Staff, Appointment e Service… Gostaria de saber quanto que esse staff gerou de serviço… Obs… O Staff possui 2 model…

---

## [Authlogic & Perishable token](https://www.ruby-forum.com/t/authlogic-perishable-token/189354)

<div class="topic-metadata">

**Author:** [@stanislavua](https://www.ruby-forum.com/u/stanislavua)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/authlogic-perishable-token/189354 "2010-05-29T19:35:56Z")

</div>

Hi I’m setting up authlogic and have an error: Column ‘perishable\_token’ cannot be null … … Does anyone know what should generate value for this column? Thanks in advance!

---

## [User Error during memcached integration](https://www.ruby-forum.com/t/user-error-during-memcached-integration/189362)

<div class="topic-metadata">

**Author:** [@rodney](https://www.ruby-forum.com/u/rodney)\
**Replies:** 0\
**Last updated:** [May 29, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/user-error-during-memcached-integration/189362 "2010-05-29T19:35:31Z")

</div>

Hello, I hope all is well. I am hoping someone can help me with a problem that I am certain is user error? The configuration details below work in all my other environments including integration, development and qa. H…

---

## [Using desert\_routes from a plugin in my own app?, no routes to match](https://www.ruby-forum.com/t/using-desert-routes-from-a-plugin-in-my-own-app-no-routes-to-match/189361)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 0\
**Last updated:** [May 29, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/using-desert-routes-from-a-plugin-in-my-own-app-no-routes-to-match/189361 "2010-05-29T19:22:38Z")

</div>

I have migrated a vendor/plugins/community\_engine plugin from the vendor directory to my own directory since I require that many changes that its no longer a good idea to keep the vendor folder for it. Everything work…

---

## [Rails unrecoverable error](https://www.ruby-forum.com/t/rails-unrecoverable-error/189353)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/rails-unrecoverable-error/189353 "2010-05-29T19:12:06Z")

</div>

Im working on an app but have been plagued by an unrecoverable error module ApplicationConfiguration require ‘ostruct’ require ‘yaml’ if File.exists?( File.join(Rails.root, ‘config’, ‘application.yml’) ) file = Fil…

---

## [B. S. essential](https://www.ruby-forum.com/t/b-s-essential/189347)

<div class="topic-metadata">

**Author:** [@scuptor\_of\_clouds](https://www.ruby-forum.com/u/scuptor_of_clouds)\
**Replies:** 2\
**Last updated:** [May 29, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/b-s-essential/189347 "2010-05-29T18:23:32Z")

</div>

B. S. essential. If that rang up as ‘bubble sort’ or better still Bjarne Stroustrup, then read on. We are looking for a funny, intuitive, out-of-the box thinker and risk- taker…Ruby expertise would be good too. Most…

---

## [Display only by date selected](https://www.ruby-forum.com/t/display-only-by-date-selected/189328)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 2\
**Last updated:** [May 29, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/display-only-by-date-selected/189328 "2010-05-29T16:47:41Z")

</div>

I have the following code: Today's Activity \<% @orders.reverse.each do |order| %\> \<%= link\_to\_remote( "#{order.id} &nbsp &nbsp &nbsp #{order.name}" , :url =\> {:controller =\> 'orders', :action =\> 'show', :id =\> …

---

## [Habtm + accepts\_nested\_attributes\_for](https://www.ruby-forum.com/t/habtm-accepts-nested-attributes-for/189350)

<div class="topic-metadata">

**Author:** [@Brewster](https://www.ruby-forum.com/u/Brewster)\
**Replies:** 0\
**Last updated:** [May 29, 2010, 9:52am UTC](https://www.ruby-forum.com/t/habtm-accepts-nested-attributes-for/189350 "2010-05-29T09:52:35Z")

</div>

so i have read conflicting information about this, some seem to pull it off, some say its impossible, but here is what i am trying to accomplish. i am using authlogic w/ lockdown, and when i create a new user, i want …

---

## [Beginner Facing Problem with rake db:migrate](https://www.ruby-forum.com/t/beginner-facing-problem-with-rake-db-migrate/189341)

<div class="topic-metadata">

**Author:** [@mundrakrishna](https://www.ruby-forum.com/u/mundrakrishna)\
**Replies:** 4\
**Last updated:** [May 29, 2010, 9:52am UTC](https://www.ruby-forum.com/t/beginner-facing-problem-with-rake-db-migrate/189341 "2010-05-29T09:52:00Z")

</div>

I am beginner for this Rails from the past 2 days I am working hard to fix the following error C:\\Murali Rubby\\demo\\library\>rake db:migrate --trace (in C:/Murali Rubby/demo/library) \*\* Invoke db:migrate (first\_time) …

---

## [Stopping accidental form submissions](https://www.ruby-forum.com/t/stopping-accidental-form-submissions/189338)

<div class="topic-metadata">

**Author:** [@soheil\_danesh](https://www.ruby-forum.com/u/soheil_danesh)\
**Replies:** 1\
**Last updated:** [May 29, 2010, 9:13am UTC](https://www.ruby-forum.com/t/stopping-accidental-form-submissions/189338 "2010-05-29T09:13:22Z")

</div>

Hi, I’m using rails 3 and have an ajax form where users can add data, click submit, and it will be appended to a feed. The problem is if the users click submit (or press enter) multiple times, the form seems to be su…

---

## [Reset restful authentication user password from rails console](https://www.ruby-forum.com/t/reset-restful-authentication-user-password-from-rails-console/189306)

<div class="topic-metadata">

**Author:** [@andrew\_v](https://www.ruby-forum.com/u/andrew_v)\
**Replies:** 8\
**Last updated:** [May 29, 2010, 6:59am UTC](https://www.ruby-forum.com/t/reset-restful-authentication-user-password-from-rails-console/189306 "2010-05-29T06:59:24Z")

</div>

Hi, I have implemented restful authentication plugin in my rails application. It’s a barebones implementation without activation, forget password features …etc. I was wondering if it is possible to reset a User’s pa…

---

## [Got nil error when i call 'all' in searchlogic](https://www.ruby-forum.com/t/got-nil-error-when-i-call-all-in-searchlogic/189315)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 3\
**Last updated:** [May 29, 2010, 6:39am UTC](https://www.ruby-forum.com/t/got-nil-error-when-i-call-all-in-searchlogic/189315 "2010-05-29T06:39:38Z")

</div>

Hi, I have install searchlogic then tried in ruby script/console search=BankingDetail.search(:name\_like\_all=\>“man”) search.all i got error when i call ‘all’ method NoMethodError: You have a nil object when you didn…

---

## [Form helpers don't seem to work with RJS files](https://www.ruby-forum.com/t/form-helpers-dont-seem-to-work-with-rjs-files/189314)

<div class="topic-metadata">

**Author:** [@cwd](https://www.ruby-forum.com/u/cwd)\
**Replies:** 8\
**Last updated:** [May 28, 2010, 11:50pm UTC](https://www.ruby-forum.com/t/form-helpers-dont-seem-to-work-with-rjs-files/189314 "2010-05-28T23:50:02Z")

</div>

Iâ€™ve been spending a great deal of time chasing this problem. Hopefully someone sees something obvious Iâ€™m doing wrong. Basically anytime I try to call fields\_for from an RJS file or within a partial in the RJS fil…

---

## [Message error with XML/SWF Charts](https://www.ruby-forum.com/t/message-error-with-xml-swf-charts/189340)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 11:32pm UTC](https://www.ruby-forum.com/t/message-error-with-xml-swf-charts/189340 "2010-05-28T23:32:55Z")

</div>

I’m making a web site with charts, I’m using “XML/SWF Charts”, the problem that I have is that the charts work perfectly when I’m working locally, but when I load all files to the server and I want to see the charts, …

---

## [Using update\_attributes(params\[:something\]) w/ manual assignment](https://www.ruby-forum.com/t/using-update-attributes-params-something-w-manual-assignment/169881)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 16\
**Last updated:** [May 28, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/using-update-attributes-params-something-w-manual-assignment/169881 "2010-05-28T23:07:43Z")

</div>

So far this appears to be working, but it looks kind of jacked up. I’m concerned that I could be opening myself up to a hole in the future (security or portability) by doing what I’ve outlined below. Are there any bet…

---

## [New Project \> Rails 2 or 3?](https://www.ruby-forum.com/t/new-project-rails-2-or-3/189326)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 1\
**Last updated:** [May 28, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/new-project-rails-2-or-3/189326 "2010-05-28T22:32:43Z")

</div>

Hey, Working on a project for a new startup. We started it in Rails 2.3.5. but now the project manager is talking about wanting to switch to Rails 3 because it’s the hot new thing. Whats the consensus if rails is rea…

---

## [Link in YUI js not rendered by rails](https://www.ruby-forum.com/t/link-in-yui-js-not-rendered-by-rails/189334)

<div class="topic-metadata">

**Author:** [@patrick\_nicholas](https://www.ruby-forum.com/u/patrick_nicholas)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/link-in-yui-js-not-rendered-by-rails/189334 "2010-05-28T22:07:23Z")

</div>

Using YAHOO.widget.treeview to generate a table with three levels of data: module, submodule, and detail. If there is an image associated with a detail row the javascript generates a link: "\<td\>\<a href=\\"/screenshot…

---

## [Problems with render in store.html.erb](https://www.ruby-forum.com/t/problems-with-render-in-store-html-erb/189327)

<div class="topic-metadata">

**Author:** [@deviated](https://www.ruby-forum.com/u/deviated)\
**Replies:** 1\
**Last updated:** [May 28, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/problems-with-render-in-store-html-erb/189327 "2010-05-28T21:29:01Z")

</div>

Working on Agile web development with rails, 3rd edition. Every time I put \<%= render(:partial =\> “cart” , :object =\> @cart) %\> in store.html.erb, it makes a “” disappear(well, it doesn’t show up when I check with fi…

---

## [HTML character codes in ActionMailer subject](https://www.ruby-forum.com/t/html-character-codes-in-actionmailer-subject/189257)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 6\
**Last updated:** [May 28, 2010, 8:52pm UTC](https://www.ruby-forum.com/t/html-character-codes-in-actionmailer-subject/189257 "2010-05-28T20:52:25Z")

</div>

Hi, We have our e-mail subjects stored in I18n locale files. For the English version of the website, we had no problem, but now we’re translating to German, which uses a lot of symbols like ü and Ü for example. We st…

---

## [Problem with the getting started tutorial](https://www.ruby-forum.com/t/problem-with-the-getting-started-tutorial/246532)

<div class="topic-metadata">

**Author:** [@roelof](https://www.ruby-forum.com/u/roelof)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/problem-with-the-getting-started-tutorial/246532 "2010-05-28T20:46:08Z")

</div>

Hello, As soon as I do the database migration I see this error message : (in /home/roelof/NetBeansProjects/ruby Weblog) rake aborted! The driver encountered an error: com.mysql.jdbc.CommunicationsException: Communic…

---

## [Problem with character set utf8](https://www.ruby-forum.com/t/problem-with-character-set-utf8/189319)

<div class="topic-metadata">

**Author:** [@ziburudebian](https://www.ruby-forum.com/u/ziburudebian)\
**Replies:** 0\
**Last updated:** [May 28, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/problem-with-character-set-utf8/189319 "2010-05-28T17:51:03Z")

</div>

Hi, I have create an empty rails project on aptana; I have manually, on PhpMyAdmin, create my database. When i run rake db:migrate under Aptana, i have this message : rake aborted! NoMethodError: undefined method \`o…

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

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