# Rails

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

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

---

## [Configuring Asterisk with rails](https://www.ruby-forum.com/t/configuring-asterisk-with-rails/194306)

<div class="topic-metadata">

**Author:** [@Shripad](https://www.ruby-forum.com/u/Shripad)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 9:19am UTC](https://www.ruby-forum.com/t/configuring-asterisk-with-rails/194306 "2010-09-02T09:19:21Z")

</div>

Hi all, Is there anyone who configure Asterisk with rails? Can you please suggest the best way to implement the live recording using Asterisk and rails, I seen RAGI, RAMI gems and now concentrating on telegraph plugi…

---

## [How to include a module in a model](https://www.ruby-forum.com/t/how-to-include-a-module-in-a-model/193743)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 7\
**Last updated:** [September 2, 2010, 8:42am UTC](https://www.ruby-forum.com/t/how-to-include-a-module-in-a-model/193743 "2010-09-02T08:42:28Z")

</div>

I created a module MyModule “my\_module.rb” and put in a lib folder in my rails app. In my User.rb model I call include MyModule. When I try to use a method inside MyModule I get an “undefined method error”. How do I…

---

## [Rails will not reroute to new page\>\>\>\>](https://www.ruby-forum.com/t/rails-will-not-reroute-to-new-page/194282)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [September 2, 2010, 7:42am UTC](https://www.ruby-forum.com/t/rails-will-not-reroute-to-new-page/194282 "2010-09-02T07:42:11Z")

</div>

running virtual rails on linux mint with rails 2.3.4 im having trouble redirecting routes so here is what ive done by following tutorials: i opened rails directory and created rails\_test then i ran script/server to b…

---

## [Rails 3: many to many polymorphic relationship](https://www.ruby-forum.com/t/rails-3-many-to-many-polymorphic-relationship/194272)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 5:42am UTC](https://www.ruby-forum.com/t/rails-3-many-to-many-polymorphic-relationship/194272 "2010-09-02T05:42:46Z")

</div>

Hello, I’ve been googling for about two hours already but not successful yet so I hope you guys can help me out. I need some kind of n:m polymorphic relation like this: building\_types: living, shops block\_types: res…

---

## [Counter column does not get updated](https://www.ruby-forum.com/t/counter-column-does-not-get-updated/194292)

<div class="topic-metadata">

**Author:** [@mohammed\_a](https://www.ruby-forum.com/u/mohammed_a)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 2:38am UTC](https://www.ruby-forum.com/t/counter-column-does-not-get-updated/194292 "2010-09-02T02:38:25Z")

</div>

Hi I have In user.rb has\_many :properties ,:dependent =\> :destroy In property.rb belongs\_to :user ,:counter\_cache =\> true inside property migration add\_column :users, :properties\_count, :integer, :default =\> 0 fo…

---

## [Webrat click\_link does not handle links with a query string?](https://www.ruby-forum.com/t/webrat-click-link-does-not-handle-links-with-a-query-string/194291)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 2:32am UTC](https://www.ruby-forum.com/t/webrat-click-link-does-not-handle-links-with-a-query-string/194291 "2010-09-02T02:32:34Z")

</div>

New to webrat. Like it but the thing which I either don’t understand is in an apparent inability to handle clicking links which have a query string. This seems to happen on anything with a query string. For example: …

---

## [\[Rails3\] How to send Content-type HTTP header in all my html files generated by Rails3](https://www.ruby-forum.com/t/rails3-how-to-send-content-type-http-header-in-all-my-html-files-generated-by-rails3/194286)

<div class="topic-metadata">

**Author:** [@WSzP](https://www.ruby-forum.com/u/WSzP)\
**Replies:** 0\
**Last updated:** [September 2, 2010, 1:12am UTC](https://www.ruby-forum.com/t/rails3-how-to-send-content-type-http-header-in-all-my-html-files-generated-by-rails3/194286 "2010-09-02T01:12:22Z")

</div>

Hello, I wish to replicate this: \<?php header('Content-type: text/html; charset=utf-8'); ?\> with Rails 3 in each and every view I got. I guess I should look at application.html.erb to add something. Not only for avoi…

---

## [\[ANN\] RailsDeveloper.com is live!](https://www.ruby-forum.com/t/ann-railsdeveloper-com-is-live/194248)

<div class="topic-metadata">

**Author:** [@robby247365](https://www.ruby-forum.com/u/robby247365)\
**Replies:** 4\
**Last updated:** [September 2, 2010, 1:02am UTC](https://www.ruby-forum.com/t/ann-railsdeveloper-com-is-live/194248 "2010-09-02T01:02:25Z")

</div>

Hello all, I’ll make this quick because I know you’re all busy. I just wanted to invite you to check out a new tool that we’ve just launched for the Ruby on Rails community. We fully expect that it’ll be a nice comp…

---

## [Views: comments for template and partial location in filesystem?](https://www.ruby-forum.com/t/views-comments-for-template-and-partial-location-in-filesystem/194246)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [September 2, 2010, 12:47am UTC](https://www.ruby-forum.com/t/views-comments-for-template-and-partial-location-in-filesystem/194246 "2010-09-02T00:47:46Z")

</div>

I’m looking for an extension (gem, plugin, whatever) that inserts comments like ... around rendered templates (except in production env). A cursory search didn't bring up anything, but I may have chosen the wrong te…

---

## [Deprecation warning in Rails 3 about Base.named\_scope](https://www.ruby-forum.com/t/deprecation-warning-in-rails-3-about-base-named-scope/194254)

<div class="topic-metadata">

**Author:** [@daze](https://www.ruby-forum.com/u/daze)\
**Replies:** 4\
**Last updated:** [September 1, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/deprecation-warning-in-rails-3-about-base-named-scope/194254 "2010-09-01T23:41:02Z")

</div>

I recently upgraded to Rails 3, and this error has come up ubiquitously: DEPRECATION WARNING: Base.named\_scope has been deprecated, please use Base.scope instead. Any ideas on how to get rid of it? Or should I just …

---

## [Failed to allocate memory](https://www.ruby-forum.com/t/failed-to-allocate-memory/194276)

<div class="topic-metadata">

**Author:** [@Jonathas\_PacSSS\_fic](https://www.ruby-forum.com/u/Jonathas_PacSSS_fic)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/failed-to-allocate-memory/194276 "2010-09-01T23:31:05Z")

</div>

Hi there! I have an app, that sometimes shows the above message at monrel.log and production.log. The app is running at production mode. mongrel.log \*\* Writing PID file to log/mongrel.pid \[FATAL\] failed to allocate …

---

## [NoMethodError: undefined method \`force\_encoding' for "Conten](https://www.ruby-forum.com/t/nomethoderror-undefined-method-force-encoding-for-conten/194264)

<div class="topic-metadata">

**Author:** [@renatosis](https://www.ruby-forum.com/u/renatosis)\
**Replies:** 4\
**Last updated:** [September 1, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-force-encoding-for-conten/194264 "2010-09-01T21:21:29Z")

</div>

Hi everyone! Im trying to install mechanizer from http://github.com/tenderlove/mechanize. I\`ve clone the project into /tmp folder. When I do rake inside the folder /tmp/mechanizer it gives me this error: mac159180:m…

---

## [Faking Paperclip has\_attached\_file with Factory girl?](https://www.ruby-forum.com/t/faking-paperclip-has-attached-file-with-factory-girl/194226)

<div class="topic-metadata">

**Author:** [@Anders\_P](https://www.ruby-forum.com/u/Anders_P)\
**Replies:** 1\
**Last updated:** [September 1, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/faking-paperclip-has-attached-file-with-factory-girl/194226 "2010-09-01T21:07:36Z")

</div>

Hello! I wonder if it’s possible to simulate Paperclip’s has\_attached\_file with Factory Girl and then test it with Rspec. I don’t get it to work. My factories.rb file looks like this: Factory.define :user do |user| …

---

## [Message from manishbelsare2003](https://www.ruby-forum.com/t/message-from-manishbelsare2003/197055)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/message-from-manishbelsare2003/197055 "2010-09-01T20:56:29Z")

</div>

Engine-Users mailing list removed\_email\_address@domain.invalid http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

---

## [When to use 'bundle package'](https://www.ruby-forum.com/t/when-to-use-bundle-package/194255)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [September 1, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/when-to-use-bundle-package/194255 "2010-09-01T19:29:14Z")

</div>

Hi, If you do ‘bundle install vendor’, gems will be installed in the application. Then, you can deploy it to your production server. When do you need to do ‘bundle package’? If you do ‘bundle package’, the gem files…

---

## [Strange image display issue](https://www.ruby-forum.com/t/strange-image-display-issue/194251)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 4\
**Last updated:** [September 1, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/strange-image-display-issue/194251 "2010-09-01T19:14:02Z")

</div>

In my .html.erb I wrote: \<%= image\_tag @displayPath %\> @displayPath = ‘invalid\_plot.png’ when the .erb is rendered. Viewing the page source in FF I find: The file exist in \<rails\_root\>/images, but FF fails to d…

---

## [Rails 3.0 - Production Server Setup](https://www.ruby-forum.com/t/rails-3-0-production-server-setup/194132)

<div class="topic-metadata">

**Author:** [@fangiotophia](https://www.ruby-forum.com/u/fangiotophia)\
**Replies:** 9\
**Last updated:** [September 1, 2010, 6:37pm UTC](https://www.ruby-forum.com/t/rails-3-0-production-server-setup/194132 "2010-09-01T18:37:07Z")

</div>

Hello all, I am incredibly excited about Rails 3.0 and we will be using it for some products in the very near future. The problem is, we are currently using Debian for our development/production environments and they…

---

## [Undefined method \`inject' for true:TrueClass](https://www.ruby-forum.com/t/undefined-method-inject-for-true-trueclass/194231)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 3\
**Last updated:** [September 1, 2010, 5:52pm UTC](https://www.ruby-forum.com/t/undefined-method-inject-for-true-trueclass/194231 "2010-09-01T17:52:37Z")

</div>

I just updated my Rubygems and rails2.3.2. Everything was working prior to this update. Now I am getting this error: undefined method \`inject’ for true:TrueClass I don’t have the faintest idea why and I certainly don…

---

## [Error on update\_attributes with HABTM relationship](https://www.ruby-forum.com/t/error-on-update-attributes-with-habtm-relationship/194249)

<div class="topic-metadata">

**Author:** [@CUCUCU](https://www.ruby-forum.com/u/CUCUCU)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/error-on-update-attributes-with-habtm-relationship/194249 "2010-09-01T16:06:02Z")

</div>

Hope someone can tell me what’s up, because this has me baffled. I have an Image model, and a Provider model. Both are defined as “has\_and\_belongs\_to\_many” relating to each other. In my image form partial, I have a bi…

---

## [Can I use session obj without cookie support in browser?](https://www.ruby-forum.com/t/can-i-use-session-obj-without-cookie-support-in-browser/194164)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [September 1, 2010, 3:56pm UTC](https://www.ruby-forum.com/t/can-i-use-session-obj-without-cookie-support-in-browser/194164 "2010-09-01T15:56:03Z")

</div>

Hi, guys: I want to use the session object in the rails, but the browser has disabled the cookie support. I store some string into the session obj, but I can’t retrieve the string value in another page. In there any …

---

## [Rails 3 : german umlauts in controller](https://www.ruby-forum.com/t/rails-3-german-umlauts-in-controller/194072)

<div class="topic-metadata">

**Author:** [@fink](https://www.ruby-forum.com/u/fink)\
**Replies:** 4\
**Last updated:** [September 1, 2010, 3:54pm UTC](https://www.ruby-forum.com/t/rails-3-german-umlauts-in-controller/194072 "2010-09-01T15:54:45Z")

</div>

Hi everybody, with rails 3 I have the problem that the controllers don’t accept german umlaute anymore. E.g. when I try to build an array: landschaft = %w\[ Berg HÃ¼gel Tal Ebene\] I get this lovely error message: … c…

---

## [Re: ajax and partials](https://www.ruby-forum.com/t/re-ajax-and-partials/194239)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 2:56pm UTC](https://www.ruby-forum.com/t/re-ajax-and-partials/194239 "2010-09-01T14:56:21Z")

</div>

On Aug 31, 10:37 am, Dave C. removed\_email\_address@domain.invalid wrote: I am still very new to programming and wonder if I could get some help. Okay, but this isn’t the help you’re looking for. :wink: answer\_l…

---

## [Re: newbie problem](https://www.ruby-forum.com/t/re-newbie-problem/194236)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 2:34pm UTC](https://www.ruby-forum.com/t/re-newbie-problem/194236 "2010-09-01T14:34:41Z")

</div>

Todd W. wrote: Im not getting the output I expect. In the tutorial I am doing. It is suppose to just write the values to the browser. Which would write \*a,b,c \*to the browser and shouldn’t also be showing the array …

---

## [Customize error for rails](https://www.ruby-forum.com/t/customize-error-for-rails/194227)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 10:51am UTC](https://www.ruby-forum.com/t/customize-error-for-rails/194227 "2010-09-01T10:51:24Z")

</div>

I have used following code for showing errors on a individual field level ActionView::Base.field\_error\_proc = Proc.new do |html\_tag, instance| %{#{html\_tag} #{\[instance.error\_message\].flatten.first}} end but it show…

---

## [Thinking of going back to MySql from PgSql. Your thoughts?](https://www.ruby-forum.com/t/thinking-of-going-back-to-mysql-from-pgsql-your-thoughts/194201)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 6\
**Last updated:** [September 1, 2010, 9:23am UTC](https://www.ruby-forum.com/t/thinking-of-going-back-to-mysql-from-pgsql-your-thoughts/194201 "2010-09-01T09:23:12Z")

</div>

Just thinking out loud. about switching from pgsql to mysql. So far, haven’t experienced any differences between the two databases. I’ve been using mysql for the past few years. I like it more because am a mac interfa…

---

## [PaperClip StorageMethodNotFound (Cannot found filesystem)](https://www.ruby-forum.com/t/paperclip-storagemethodnotfound-cannot-found-filesystem/194215)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 0\
**Last updated:** [September 1, 2010, 6:17am UTC](https://www.ruby-forum.com/t/paperclip-storagemethodnotfound-cannot-found-filesystem/194215 "2010-09-01T06:17:05Z")

</div>

Hello , i have an issue with paperclip . when i a working on windows its works fine when i Go on Fedora Or heroku It gives Error PaperClip StorageMethodNotFound (Cannot found filesystem) : … … … … is this works …

---

## [Sidebars should be placed in the main layout or the action's view](https://www.ruby-forum.com/t/sidebars-should-be-placed-in-the-main-layout-or-the-actions-view/194207)

<div class="topic-metadata">

**Author:** [@zurich\_by\_night](https://www.ruby-forum.com/u/zurich_by_night)\
**Replies:** 1\
**Last updated:** [September 1, 2010, 4:33am UTC](https://www.ruby-forum.com/t/sidebars-should-be-placed-in-the-main-layout-or-the-actions-view/194207 "2010-09-01T04:33:29Z")

</div>

Just wondering. Should sidebars be in the view or in the main layout? If they are in the main layout. i.e. with the following code: \<div class="span-24"\> \<div id="content" class="span-18"\> \<%= yield %\> …

---

## [Failed to build gem native extension](https://www.ruby-forum.com/t/failed-to-build-gem-native-extension/192822)

<div class="topic-metadata">

**Author:** [@chrislo](https://www.ruby-forum.com/u/chrislo)\
**Replies:** 4\
**Last updated:** [September 1, 2010, 3:34am UTC](https://www.ruby-forum.com/t/failed-to-build-gem-native-extension/192822 "2010-09-01T03:34:04Z")

</div>

Hi everyone I want to install ferret on windows. I run the command ‘gem install ferret’, but I got this error. Building native extensions. This could take a while… ERROR: Error installing ferret: ERROR: Failed to …

---

## [Rails3 and unobtrusive javascript](https://www.ruby-forum.com/t/rails3-and-unobtrusive-javascript/194160)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 1\
**Last updated:** [August 31, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/rails3-and-unobtrusive-javascript/194160 "2010-08-31T23:23:32Z")

</div>

Ok to not depend on a specific javascript framework but now its’ hard for me to reproduce the same behavior of some helpers like observe\_field. I’ve found some jquery examples but all use the event change that is tri…

---

## [\[JOB\] Onsite, at Client Location only, NYC Consulting, Financial Services Firm](https://www.ruby-forum.com/t/job-onsite-at-client-location-only-nyc-consulting-financial-services-firm/194196)

<div class="topic-metadata">

**Author:** [@Ruby\_Kate](https://www.ruby-forum.com/u/Ruby_Kate)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 10:46pm UTC](https://www.ruby-forum.com/t/job-onsite-at-client-location-only-nyc-consulting-financial-services-firm/194196 "2010-08-31T22:46:23Z")

</div>

Please contact me directly at removed\_email\_address@domain.invalid if you are interesting working onsite at our client’s office in NYC participating in cutting edge development of financial services applications - $70…

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

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