# Rails

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

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

---

## [Mysql install problems, please help](https://www.ruby-forum.com/t/mysql-install-problems-please-help/195509)

<div class="topic-metadata">

**Author:** [@dojo](https://www.ruby-forum.com/u/dojo)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/mysql-install-problems-please-help/195509 "2010-09-24T12:33:49Z")

</div>

I can’t install mysql on ruby? please help me… ruby ./install.rb http://ipicture.ru/uploads/100924/MWup72534z.jpg rake db:migrate iPicture - информационно-развлекательный блог

---

## [How do i make rails not use utf8](https://www.ruby-forum.com/t/how-do-i-make-rails-not-use-utf8/195521)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/how-do-i-make-rails-not-use-utf8/195521 "2010-09-24T12:31:28Z")

</div>

I want ror to not use utf8. I have tried setting $KCODE to ‘n’. Activercord still tries to convert my special characters to utf. The character ‘ê’ comes as "\\303\\252’. I want it to show the ê WITHOUT using utf8. I hav…

---

## [Rails 3 production with fastCGI](https://www.ruby-forum.com/t/rails-3-production-with-fastcgi/194518)

<div class="topic-metadata">

**Author:** [@s6numid](https://www.ruby-forum.com/u/s6numid)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 11:29am UTC](https://www.ruby-forum.com/t/rails-3-production-with-fastcgi/194518 "2010-09-24T11:29:02Z")

</div>

Does someone know how to push project into live. Project is written on Rails 3 and uses ruby 1.9.2?

---

## [Devise - alert messages not showing up](https://www.ruby-forum.com/t/devise-alert-messages-not-showing-up/195307)

<div class="topic-metadata">

**Author:** [@JosSSSS\_Mota](https://www.ruby-forum.com/u/JosSSSS_Mota)\
**Replies:** 18\
**Last updated:** [September 24, 2010, 11:17am UTC](https://www.ruby-forum.com/t/devise-alert-messages-not-showing-up/195307 "2010-09-24T11:17:07Z")

</div>

Hi everyone! I have installed Devise under the following settings: Rails 3.0.0. Ruby version: 1.9.2p0 (2010-08-18 revison 29036). Ubuntu 10.04. Devise version: 1.1.2 It appears the alert messages are not being display…

---

## [Barry Flower is out of the office](https://www.ruby-forum.com/t/barry-flower-is-out-of-the-office/195519)

<div class="topic-metadata">

**Author:** [@Barry\_Flower](https://www.ruby-forum.com/u/Barry_Flower)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 10:20am UTC](https://www.ruby-forum.com/t/barry-flower-is-out-of-the-office/195519 "2010-09-24T10:20:20Z")

</div>

I will be out of the office starting 24/09/2010 and will not return until 30/09/2010. I will be accessing my mail from time to time but for urgent issues please contact Kiran Joshi (IT Issues) or Peter Scoope (Busi…

---

## [Rails Dirty object concept is not working with nested att](https://www.ruby-forum.com/t/rails-dirty-object-concept-is-not-working-with-nested-att/195302)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [September 24, 2010, 9:59am UTC](https://www.ruby-forum.com/t/rails-dirty-object-concept-is-not-working-with-nested-att/195302 "2010-09-24T09:59:50Z")

</div>

hi, I want to use dirty object with nested attributes here is my example. i have form having user and addresses field when i am editing user and after updating user inside user model i am checking for any field from …

---

## [ActiveScaffold and partials](https://www.ruby-forum.com/t/activescaffold-and-partials/195414)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [September 24, 2010, 9:39am UTC](https://www.ruby-forum.com/t/activescaffold-and-partials/195414 "2010-09-24T09:39:30Z")

</div>

I was thinking of doing partials as I did in the simple Rails application I worked on today. But, since I’m using ActiveScaffold, I didn’t find any \*.html.erb in the views folder of the Rails application that I need t…

---

## [Problems Starting Server (local)](https://www.ruby-forum.com/t/problems-starting-server-local/195486)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 6:40am UTC](https://www.ruby-forum.com/t/problems-starting-server-local/195486 "2010-09-24T06:40:50Z")

</div>

Hey, i have some problems by starting the server. When want to start it (./ script/server) i get the following issue: /Library/Ruby/Site/1.8/rubygems/custom\_require.rb:31:in \`gem\_original\_require’: no such file to lo…

---

## [Conditional show action](https://www.ruby-forum.com/t/conditional-show-action/195511)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [September 24, 2010, 6:40am UTC](https://www.ruby-forum.com/t/conditional-show-action/195511 "2010-09-24T06:40:20Z")

</div>

How can I render a show action on certain conditions? def show @post = Post.find\_approved if @post.approved approved = true end respond\_to do |format| # I only want to render show.html.erb if approved is true if n…

---

## [How to run ruby from anywhere?](https://www.ruby-forum.com/t/how-to-run-ruby-from-anywhere/195462)

<div class="topic-metadata">

**Author:** [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Replies:** 2\
**Last updated:** [September 24, 2010, 6:23am UTC](https://www.ruby-forum.com/t/how-to-run-ruby-from-anywhere/195462 "2010-09-24T06:23:52Z")

</div>

I use windows platform.I’ve alredy extrated ruby on c:\\ drive.But when i need to use ruby command I must run from c:\\ruby\\bin every time. Anyway to run ruby from anywhere? …

---

## [How to update ruby and rails in instantrails2.0](https://www.ruby-forum.com/t/how-to-update-ruby-and-rails-in-instantrails2-0/195420)

<div class="topic-metadata">

**Author:** [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Replies:** 5\
**Last updated:** [September 24, 2010, 2:52am UTC](https://www.ruby-forum.com/t/how-to-update-ruby-and-rails-in-instantrails2-0/195420 "2010-09-24T02:52:36Z")

</div>

I use Instans rails 2.0.But the version of rails and ruby still old.I need to update to latest version. What should I do ? Thanks

---

## [File upload conversion](https://www.ruby-forum.com/t/file-upload-conversion/195506)

<div class="topic-metadata">

**Author:** [@Jay\_McGaffigan](https://www.ruby-forum.com/u/Jay_McGaffigan)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 2:08am UTC](https://www.ruby-forum.com/t/file-upload-conversion/195506 "2010-09-24T02:08:42Z")

</div>

hi, I was wondering if anyone has an written a rails app where users upload word documents and on the server convert that file to a pdf? I’m trying to figure out the best way to convert the file to a pdf on the serve…

---

## [HowTo; Rails 3, having Tabs that load content via jQuery ... No Page Refesh](https://www.ruby-forum.com/t/howto-rails-3-having-tabs-that-load-content-via-jquery-no-page-refesh/195481)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 8\
**Last updated:** [September 24, 2010, 1:51am UTC](https://www.ruby-forum.com/t/howto-rails-3-having-tabs-that-load-content-via-jquery-no-page-refesh/195481 "2010-09-24T01:51:27Z")

</div>

Hello, I’m interested in learning the correct/smart approach for implementing a web page with tabs and a content panel… When the tab is clicked by the user the tab’s content is fetched and inserted with jQuery… no pag…

---

## [I cant generate scaffold on linux platform](https://www.ruby-forum.com/t/i-cant-generate-scaffold-on-linux-platform/195505)

<div class="topic-metadata">

**Author:** [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Replies:** 0\
**Last updated:** [September 24, 2010, 12:35am UTC](https://www.ruby-forum.com/t/i-cant-generate-scaffold-on-linux-platform/195505 "2010-09-24T00:35:10Z")

</div>

It use rails 3.0 v .but when I try to generate scaffold it perform me Could not find gem ‘mysql2 (\>= 0, runtime)’ in any of the gem sources. Try running bundle install. I already tried but It’s error and show bunch of…

---

## [Is it a good rails agile code?](https://www.ruby-forum.com/t/is-it-a-good-rails-agile-code/195504)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/is-it-a-good-rails-agile-code/195504 "2010-09-23T23:58:47Z")

</div>

I have two classes: User and Delivery. class Ruser \< ActiveRecord::Base has\_many :deliveries, :dependent =\> :destroy class Delivery \< ActiveRecord::Base belongs\_to :ruser In the User show action I have put: \<%= ren…

---

## [Localization in a structured hierarchy of .yml files](https://www.ruby-forum.com/t/localization-in-a-structured-hierarchy-of-yml-files/195489)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 11:20pm UTC](https://www.ruby-forum.com/t/localization-in-a-structured-hierarchy-of-yml-files/195489 "2010-09-23T23:20:44Z")

</div>

\[Rails 3, Ruby 1.9.2\] I tried to split my localizations into a structured hierarchy of files : default en.yml fr.yml de.yml models users en.yml fr.yml de.yml views users en.yml fr.yml de.yml but this doe…

---

## [Rails + Paperclip + IE: pictures disappear!](https://www.ruby-forum.com/t/rails-paperclip-ie-pictures-disappear/195359)

<div class="topic-metadata">

**Author:** [@apneadiving](https://www.ruby-forum.com/u/apneadiving)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 11:19pm UTC](https://www.ruby-forum.com/t/rails-paperclip-ie-pictures-disappear/195359 "2010-09-23T23:19:34Z")

</div>

Hi, I’m a bit confused with the problem I discovered: Some of the pictures I upload aren’t displayed on IE. Some of them are ok, some of them aren’t. Yet, they are the same kind of pics and they are side by side… Ev…

---

## [Confused with bcrypt and Authlogic](https://www.ruby-forum.com/t/confused-with-bcrypt-and-authlogic/195491)

<div class="topic-metadata">

**Author:** [@CVCVCV](https://www.ruby-forum.com/u/CVCVCV)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 10:10pm UTC](https://www.ruby-forum.com/t/confused-with-bcrypt-and-authlogic/195491 "2010-09-23T22:10:55Z")

</div>

I’m in the progress of migrating my website from using Authlogic to my own authentication solution for one reason or another and I’ve hit a little problem - I’ve set Authlogic to use bcrypt-ruby for passwords, and now…

---

## [Request Failed (code 500, Internal Error) Close - ActiveS](https://www.ruby-forum.com/t/request-failed-code-500-internal-error-close-actives/195494)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/request-failed-code-500-internal-error-close-actives/195494 "2010-09-23T21:47:17Z")

</div>

I used ActiveScaffold to create my Rails application. After I fill the fields and try to “Create” the new data, I get the following: Request Failed (code 500, Internal Error) Close I don’t know if this is caused by t…

---

## [Dynamic controller dispatching in rails 3](https://www.ruby-forum.com/t/dynamic-controller-dispatching-in-rails-3/195493)

<div class="topic-metadata">

**Author:** [@fredd](https://www.ruby-forum.com/u/fredd)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/dynamic-controller-dispatching-in-rails-3/195493 "2010-09-23T21:21:53Z")

</div>

Is there any offical way you could dynamically dispatch controllers in Rails 3? My goal is to invoke different controllers based on path segments like this: /news/sport-blog, should map to a blog controller or /new…

---

## [Capturing a block in ERB](https://www.ruby-forum.com/t/capturing-a-block-in-erb/195490)

<div class="topic-metadata">

**Author:** [@Gerold\_BSSSShler](https://www.ruby-forum.com/u/Gerold_BSSSShler)\
**Replies:** 4\
**Last updated:** [September 23, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/capturing-a-block-in-erb/195490 "2010-09-23T20:55:32Z")

</div>

Hi all, i have the following code as an erb template in rails 3: \<%= wrapper do %\> \<%= content\_tag(:span, "Hello World") %\> \<% end %\> and this in the helper def wrapper(&block) … end Now i would like to …

---

## [Browsing Image on Apache in rails App](https://www.ruby-forum.com/t/browsing-image-on-apache-in-rails-app/195482)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/browsing-image-on-apache-in-rails-app/195482 "2010-09-23T18:42:28Z")

</div>

Hi All, My rails application is running on Apache server with phusion\_passenger gem. For testing purpose I used both attachment\_fu and paperclip to upload image in that application. There are two different methods, on…

---

## [Helpers in Lib Modules](https://www.ruby-forum.com/t/helpers-in-lib-modules/195480)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 6:33pm UTC](https://www.ruby-forum.com/t/helpers-in-lib-modules/195480 "2010-09-23T18:33:51Z")

</div>

Anyone know how to successfully use ActionView helpers (link\_to, contacts\_path, contact\_path(contact)) in a module included in the /lib directory? Every time i attempt this by including the helper (include ActionView…

---

## [Connecting several tables in single database](https://www.ruby-forum.com/t/connecting-several-tables-in-single-database/195435)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 10\
**Last updated:** [September 23, 2010, 6:07pm UTC](https://www.ruby-forum.com/t/connecting-several-tables-in-single-database/195435 "2010-09-23T18:07:45Z")

</div>

Hi, Anybody please tell me the tutorial way to connect and retrieve data using foreign key in a connected table. – With Regards Palani Kannan. K

---

## [Working in install acts\_as\_commentable, On create, error: "unknown attribute: book\_id"](https://www.ruby-forum.com/t/working-in-install-acts-as-commentable-on-create-error-unknown-attribute-book-id/195337)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 25\
**Last updated:** [September 23, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/working-in-install-acts-as-commentable-on-create-error-unknown-attribute-book-id/195337 "2010-09-23T17:49:21Z")

</div>

Hello, I’m working to install the acts\_as\_commentable plugin on my Rails 3 app. After adding “acts\_as\_commentable” to my book model, I then added a comment form on my book show view: \<% form\_for(@comment) do|f| %\> \<%…

---

## [Table connection issue](https://www.ruby-forum.com/t/table-connection-issue/195455)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 5\
**Last updated:** [September 23, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/table-connection-issue/195455 "2010-09-23T17:42:19Z")

</div>

Dear all, I included models, controller and View. Please, find the mistake in it and tell me. I need to fetch the data of included tables “city and country” using the query of “first name and second name” of table ‘n…

---

## [Superclass mismatch for class Tempfile](https://www.ruby-forum.com/t/superclass-mismatch-for-class-tempfile/195423)

<div class="topic-metadata">

**Author:** [@bartolome](https://www.ruby-forum.com/u/bartolome)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/superclass-mismatch-for-class-tempfile/195423 "2010-09-23T17:34:07Z")

</div>

I’ve been facing a problem when generating a model (or controller, …). I’m using rails 2.3.8 and ruby 1.8.7. Has anybody been facing anything like this? script/generate controller test /usr/lib/ruby/1.8/tempfile.rb:…

---

## [Where are my field values?!](https://www.ruby-forum.com/t/where-are-my-field-values/195433)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [September 23, 2010, 5:20pm UTC](https://www.ruby-forum.com/t/where-are-my-field-values/195433 "2010-09-23T17:20:31Z")

</div>

I have created a function in model that retrieves the idea of creating it uisng this link: The aim of the function is to calculate the following formula, provided that all are fields in the table: quantity\_sold = re…

---

## [Sou novato por aqui,](https://www.ruby-forum.com/t/sou-novato-por-aqui/195464)

<div class="topic-metadata">

**Author:** [@JoSSSSo\_Ricardo](https://www.ruby-forum.com/u/JoSSSSo_Ricardo)\
**Replies:** 3\
**Last updated:** [September 23, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/sou-novato-por-aqui/195464 "2010-09-23T17:01:20Z")

</div>

o grupo de RoR Ã© em portuguÃªs?

---

## [How to do force apache to handle static request](https://www.ruby-forum.com/t/how-to-do-force-apache-to-handle-static-request/195478)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 23, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/how-to-do-force-apache-to-handle-static-request/195478 "2010-09-23T16:40:35Z")

</div>

Posted by Amit T. (amit-singh) on 23.09.2010 14:55 hii all, Am running apche as frontend to mongrel ,i added these line in Apache’s httpd.conf file LoadModule rewrite\_module modules/mod\_rewrite.so LoadModule proxy\_mo…

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

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