# Rails

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

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

---

## [Current\_user Authlogic & Service.rb](https://www.ruby-forum.com/t/current-user-authlogic-service-rb/185441)

<div class="topic-metadata">

**Author:** [@fury](https://www.ruby-forum.com/u/fury)\
**Replies:** 4\
**Last updated:** [April 4, 2010, 1:42pm UTC](https://www.ruby-forum.com/t/current-user-authlogic-service-rb/185441 "2010-04-04T13:42:18Z")

</div>

Hi, I am using Authlogic & Weborb to remote from as3. Is it possible to access current\_user, which is defined in a helper method in the application controller, in a Service class. Thank you in advance, John.

---

## [How to use find method on table with two column index](https://www.ruby-forum.com/t/how-to-use-find-method-on-table-with-two-column-index/185966)

<div class="topic-metadata">

**Author:** [@RVRoadie](https://www.ruby-forum.com/u/RVRoadie)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 1:13pm UTC](https://www.ruby-forum.com/t/how-to-use-find-method-on-table-with-two-column-index/185966 "2010-04-04T13:13:05Z")

</div>

I created an index with person\_id and club\_id but I can’t figure out how to properly access it (doesn’t show up in the find\_by… lists) Can someone provide me a sample find statement to best use this index Thanks. cla…

---

## [Has\_many comments, belongs to post](https://www.ruby-forum.com/t/has-many-comments-belongs-to-post/186262)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 5\
**Last updated:** [April 4, 2010, 10:07am UTC](https://www.ruby-forum.com/t/has-many-comments-belongs-to-post/186262 "2010-04-04T10:07:01Z")

</div>

I made a posts scaffold, and a comments scaffold Now i want to link the two of them together by – Post– has\_many :comments and comments- belongs\_to :post After that, I have no idea what to do in the controller or f…

---

## [Super newbie here, how to post xml REST data?](https://www.ruby-forum.com/t/super-newbie-here-how-to-post-xml-rest-data/186292)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 1\
**Last updated:** [April 4, 2010, 9:56am UTC](https://www.ruby-forum.com/t/super-newbie-here-how-to-post-xml-rest-data/186292 "2010-04-04T09:56:28Z")

</div>

I have created the simplest rails app using the apple tutorial: http://developer.apple.com/tools/developonrailsleopard.html. Ok actually I only got halfway through because I really only wanted to try out the basic RES…

---

## [Rails can't find it's gems](https://www.ruby-forum.com/t/rails-cant-find-its-gems/186266)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 4\
**Last updated:** [April 4, 2010, 9:38am UTC](https://www.ruby-forum.com/t/rails-cant-find-its-gems/186266 "2010-04-04T09:38:54Z")

</div>

Hi, yesterday I attempted to test my Rails app with Ruby 1.9. I installed all necessary gems, saw that some of them aren’t compatible with 1.9 and switched back to 1.8. Now my app still thinks it has to go with 1.9 an…

---

## [Permission denied with cap deploy from another machine](https://www.ruby-forum.com/t/permission-denied-with-cap-deploy-from-another-machine/186307)

<div class="topic-metadata">

**Author:** [@pietia](https://www.ruby-forum.com/u/pietia)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 9:35am UTC](https://www.ruby-forum.com/t/permission-denied-with-cap-deploy-from-another-machine/186307 "2010-04-04T09:35:21Z")

</div>

Hi, I am trying to deploy a Rails app from another machine than I did before and get permission denied errors. Everything the app needs is on the same root server. config/deploy.rb ------8\<--------------------------…

---

## [Rss feeds from two tables and to come on top the latest created in two tables](https://www.ruby-forum.com/t/rss-feeds-from-two-tables-and-to-come-on-top-the-latest-created-in-two-tables/186306)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 9:09am UTC](https://www.ruby-forum.com/t/rss-feeds-from-two-tables-and-to-come-on-top-the-latest-created-in-two-tables/186306 "2010-04-04T09:09:39Z")

</div>

hii all want to generate rss feeds from two tables and to come on top the latest created in two tables 1st table create table CREATE TABLE content\_masters ( id int(11) NOT NULL auto\_increment, image\_path varchar(…

---

## [Rails 3 beta 2 won't load mysql gem](https://www.ruby-forum.com/t/rails-3-beta-2-wont-load-mysql-gem/186294)

<div class="topic-metadata">

**Author:** [@ngng](https://www.ruby-forum.com/u/ngng)\
**Replies:** 5\
**Last updated:** [April 4, 2010, 5:13am UTC](https://www.ruby-forum.com/t/rails-3-beta-2-wont-load-mysql-gem/186294 "2010-04-04T05:13:47Z")

</div>

Hi all, I decided to try out Rails 3 and immediately ran into big issues… I am using ruby-1.8.7-p249 compiled with rvm on Ubuntu 9.10 and followed the install instructions for Rails 3 from My first issue was it requ…

---

## [Providing feedback to users](https://www.ruby-forum.com/t/providing-feedback-to-users/186195)

<div class="topic-metadata">

**Author:** [@mstoth](https://www.ruby-forum.com/u/mstoth)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 4:38am UTC](https://www.ruby-forum.com/t/providing-feedback-to-users/186195 "2010-04-04T04:38:06Z")

</div>

I have an application which does some time-consuming work after a form is submitted. I’d like to have a little message saying “please wait” but I’m not sure how to implement that. I’m thinking somehow you have to sen…

---

## [Has\_many :trough and creating relationships](https://www.ruby-forum.com/t/has-many-trough-and-creating-relationships/186287)

<div class="topic-metadata">

**Author:** [@WSzP](https://www.ruby-forum.com/u/WSzP)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 3:57am UTC](https://www.ruby-forum.com/t/has-many-trough-and-creating-relationships/186287 "2010-04-04T03:57:07Z")

</div>

Hello, I got the following application: http://pastie.org/901794 (I pasted only the most relevant parts.) It gives an error, while I try to submit the form, specifically: ActiveRecord::AssociationTypeMismatch in Beir…

---

## [Specifying a decimal field precision/scale with scaffold requires 2 steps?](https://www.ruby-forum.com/t/specifying-a-decimal-field-precision-scale-with-scaffold-requires-2-steps/186298)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [April 4, 2010, 3:14am UTC](https://www.ruby-forum.com/t/specifying-a-decimal-field-precision-scale-with-scaffold-requires-2-steps/186298 "2010-04-04T03:14:58Z")

</div>

Hi, It appears to me that the command: ruby script/generate scaffold whatever money\_field:decimal(10,2) will not generate a valid migration. Therefore it appears to me only two ways to achieve the desired result is: …

---

## [Rails and RSS Feeds](https://www.ruby-forum.com/t/rails-and-rss-feeds/186300)

<div class="topic-metadata">

**Author:** [@ritvijp](https://www.ruby-forum.com/u/ritvijp)\
**Replies:** 0\
**Last updated:** [April 4, 2010, 3:03am UTC](https://www.ruby-forum.com/t/rails-and-rss-feeds/186300 "2010-04-04T03:03:51Z")

</div>

Hello Everyone, I wanted to know something about RSS Feed readers in Rails. I just started reading up today. Have some really basic questions. Let’s take the example of a multi-author blog. Blog owner is Person X. Blo…

---

## [Why i was not able to create rails application?](https://www.ruby-forum.com/t/why-i-was-not-able-to-create-rails-application/186264)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 3\
**Last updated:** [April 4, 2010, 1:13am UTC](https://www.ruby-forum.com/t/why-i-was-not-able-to-create-rails-application/186264 "2010-04-04T01:13:43Z")

</div>

Dear Friends, I have installed ruby 1.8.7 binary version in my windows machine. Then i have installed rails2.3.4 and mysql 2.8.1 gems. Ruby gems version is 1.3.6. I have installed related dlls in my machine. I was ab…

---

## [Change from attachment\_fu db BLOB to Paperclip S3](https://www.ruby-forum.com/t/change-from-attachment-fu-db-blob-to-paperclip-s3/186295)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/change-from-attachment-fu-db-blob-to-paperclip-s3/186295 "2010-04-03T23:03:50Z")

</div>

Hi: I have moved from using attachment\_fu with files stored in the DB to Paperclip using S3. The trick now is to migrate the files from the DB to S3. I have tried a few methods like: SThreeFile.create(:file =\> Attac…

---

## [Implementing a quiz system through MVC](https://www.ruby-forum.com/t/implementing-a-quiz-system-through-mvc/186296)

<div class="topic-metadata">

**Author:** [@Cu7l4ss](https://www.ruby-forum.com/u/Cu7l4ss)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/implementing-a-quiz-system-through-mvc/186296 "2010-04-03T22:19:57Z")

</div>

Hi there folks ! I am trying to build a quiz system in rails and I was pondering on how can I implement it right, since I am new to rails and have no clue about routes what so ever Im a little stuck with the project. …

---

## [Is it possible to have a form without a submit tag in rails?](https://www.ruby-forum.com/t/is-it-possible-to-have-a-form-without-a-submit-tag-in-rails/186230)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 9\
**Last updated:** [April 3, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-have-a-form-without-a-submit-tag-in-rails/186230 "2010-04-03T21:47:45Z")

</div>

This is probably a stupid question but I am confused… I see an example in the 3d Edition of Agile Dev with Rails (page 539) where a simple calculator view, with two text boxes for numbers and a dropdown for what opera…

---

## [Paperclip permission denied error](https://www.ruby-forum.com/t/paperclip-permission-denied-error/186265)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 3\
**Last updated:** [April 3, 2010, 8:46pm UTC](https://www.ruby-forum.com/t/paperclip-permission-denied-error/186265 "2010-04-03T20:46:32Z")

</div>

I am hoping someone could shed some light on this problem. I am setting up a new server to host a Rails app and it is almost done. The only error I’m getting is permission denied when the Paperclip plugin uploads the …

---

## [Rails Themes or Templates](https://www.ruby-forum.com/t/rails-themes-or-templates/186282)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 6:13pm UTC](https://www.ruby-forum.com/t/rails-themes-or-templates/186282 "2010-04-03T18:13:31Z")

</div>

I am looking for a pretty but fairly generic look for my rails app, the kind you see everywhere, for example at rubyrails.org or thoughtbot.com. Does anyone know of a collection of rails templates, or themes, or a goo…

---

## [Need help with find](https://www.ruby-forum.com/t/need-help-with-find/186231)

<div class="topic-metadata">

**Author:** [@RVRoadie](https://www.ruby-forum.com/u/RVRoadie)\
**Replies:** 4\
**Last updated:** [April 3, 2010, 5:10pm UTC](https://www.ruby-forum.com/t/need-help-with-find/186231 "2010-04-03T17:10:18Z")

</div>

Kind of new at this and have been unable to find an example of what I want to do. I have three models, people, clubs and members. @members = @club.members.all --\> finds all club members How do I write a find of all p…

---

## [App\_Controller and partial issues with has\_many through](https://www.ruby-forum.com/t/app-controller-and-partial-issues-with-has-many-through/186229)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 6\
**Last updated:** [April 3, 2010, 3:13pm UTC](https://www.ruby-forum.com/t/app-controller-and-partial-issues-with-has-many-through/186229 "2010-04-03T15:13:33Z")

</div>

I have a User model, a Post model, and an Interest model: User has\_many posts through interests User has\_many interests, dependent destroy Post has\_many users through interests has\_many interests, dependent destroy …

---

## [Authlogic and NameError "undefined local variable or method \`login'"](https://www.ruby-forum.com/t/authlogic-and-nameerror-undefined-local-variable-or-method-login/186245)

<div class="topic-metadata">

**Author:** [@mari\_an](https://www.ruby-forum.com/u/mari_an)\
**Replies:** 5\
**Last updated:** [April 3, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/authlogic-and-nameerror-undefined-local-variable-or-method-login/186245 "2010-04-03T14:52:46Z")

</div>

Hi! I am using authlogic and I have a User model (with act\_as\_authentic) without the “login” field, since I use “email” as the user name. As it says in the authlogic documentatation, that should be the way it works w…

---

## [HELP! Rake aborted! Can't modify frozen hash](https://www.ruby-forum.com/t/help-rake-aborted-cant-modify-frozen-hash/186276)

<div class="topic-metadata">

**Author:** [@patrick\_nicholas](https://www.ruby-forum.com/u/patrick_nicholas)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/help-rake-aborted-cant-modify-frozen-hash/186276 "2010-04-03T13:27:54Z")

</div>

Too bad even the trace doesn’t say which hash is involved. Sorry this post is long: am trying to provide enough context to be meaningful. Occurs intermittently when rake jobs:work is pulling a command out of delayed\_…

---

## [Yield not working upgrading to rails 3](https://www.ruby-forum.com/t/yield-not-working-upgrading-to-rails-3/183046)

<div class="topic-metadata">

**Author:** [@anrob](https://www.ruby-forum.com/u/anrob)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 1:27pm UTC](https://www.ruby-forum.com/t/yield-not-working-upgrading-to-rails-3/183046 "2010-04-03T13:27:53Z")

</div>

I am currently upgrading an app to rails3 and have run into a weird issue where my main content will not yield. I get nothing rendered to the page. If I use content\_for I can get it to render fine but the main yield d…

---

## [Date validation fails for all September dates in Spanish](https://www.ruby-forum.com/t/date-validation-fails-for-all-september-dates-in-spanish/186241)

<div class="topic-metadata">

**Author:** [@pezdude](https://www.ruby-forum.com/u/pezdude)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/date-validation-fails-for-all-september-dates-in-spanish/186241 "2010-04-03T13:22:03Z")

</div>

Here’s how I’ve got my dates set up: date: formats: Use the strftime parameters for formats. When no format has been given, it uses default. You can provide other formats here if you like! default: “%d-%m-%Y” short: …

---

## [Deployment problem with apache + fastcgi](https://www.ruby-forum.com/t/deployment-problem-with-apache-fastcgi/186274)

<div class="topic-metadata">

**Author:** [@mozilla](https://www.ruby-forum.com/u/mozilla)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 12:55pm UTC](https://www.ruby-forum.com/t/deployment-problem-with-apache-fastcgi/186274 "2010-04-03T12:55:15Z")

</div>

Hi! I’m from Russia. It’s my first post in this forum. Execuse for my bad language, but i hope you’re help me! I try to deploy rails app on apache + fastcgi hosting. .htaccess file contents: AddHandler fcgid-script .…

---

## [Two controllers with create using the same model](https://www.ruby-forum.com/t/two-controllers-with-create-using-the-same-model/186191)

<div class="topic-metadata">

**Author:** [@WSzP](https://www.ruby-forum.com/u/WSzP)\
**Replies:** 12\
**Last updated:** [April 3, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/two-controllers-with-create-using-the-same-model/186191 "2010-04-03T12:19:26Z")

</div>

Hello, I got two controllers, both should create new subscriptions (the name of the model). Now the thing is how to create in case of the controller not named subscriptions\_controller.rb. To avoid flooding the list I…

---

## [Uninitialized constant MysqlCompat::MysqlRes](https://www.ruby-forum.com/t/uninitialized-constant-mysqlcompat-mysqlres/186217)

<div class="topic-metadata">

**Author:** [@Garfield.Yu](https://www.ruby-forum.com/u/Garfield.Yu)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 11:57am UTC](https://www.ruby-forum.com/t/uninitialized-constant-mysqlcompat-mysqlres/186217 "2010-04-03T11:57:00Z")

</div>

Macbook 466 Mac OS X 10.6.3 Rails 2.3.5 Ruby 1.8.7 MySQL mysql-5.1.45-osx10.6-x86 after install mysql gem with “sudo env ARCHFLAGS=”-arch i386" gem install mysql – --with-mysql-config=/usr/local/mysql/bin/mysql\_con…

---

## [Rails.vim - documentation](https://www.ruby-forum.com/t/rails-vim-documentation/186267)

<div class="topic-metadata">

**Author:** [@milandobrota](https://www.ruby-forum.com/u/milandobrota)\
**Replies:** 0\
**Last updated:** [April 3, 2010, 11:41am UTC](https://www.ruby-forum.com/t/rails-vim-documentation/186267 "2010-04-03T11:41:38Z")

</div>

I’m sorry if this is not the appropriate question for this forum. Is there any way to access rails/gem documentation of a word on cursor in vim? Like quickdoc (Ctrl-Q) in rubymine?

---

## [Rails 3 & nested layouts](https://www.ruby-forum.com/t/rails-3-nested-layouts/184541)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 1\
**Last updated:** [April 3, 2010, 11:22am UTC](https://www.ruby-forum.com/t/rails-3-nested-layouts/184541 "2010-04-03T11:22:40Z")

</div>

Has anyone seen a solution for nested layouts that works with Rails 3? I’ve tried several previously documented patterns, including but keep getting no block given thanks

---

## [Help with mysql error](https://www.ruby-forum.com/t/help-with-mysql-error/185942)

<div class="topic-metadata">

**Author:** [@twittwit](https://www.ruby-forum.com/u/twittwit)\
**Replies:** 2\
**Last updated:** [April 3, 2010, 10:06am UTC](https://www.ruby-forum.com/t/help-with-mysql-error/185942 "2010-04-03T10:06:35Z")

</div>

I got the following error. /Users/bryan/.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active\_support/ dependencies.rb:442:in \`load\_missing\_constant’: uninitialized constant MysqlCompat::MysqlRes (NameError) I tried to d…

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

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