# Rails

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

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

---

## ["Only get, put, and delete requests are allowed."?](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed/122787)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 6\
**Last updated:** [December 12, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/only-get-put-and-delete-requests-are-allowed/122787 "2007-12-12T19:22:57Z")

</div>

I am getting this error and I can’t for the life of me figure out why this is happening. Even google is not spitting out anything useful. This is what I have. route: map.resources :users, :member =\> { :edit\_email =\>…

---

## [Moving Files on the Server?](https://www.ruby-forum.com/t/moving-files-on-the-server/122721)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/moving-files-on-the-server/122721 "2007-12-12T19:15:14Z")

</div>

Hi- Say I wanted to move a file from /public/images to /someotherfolder. How would I do this with Rails? Thanks.

---

## [Why the size of rails souorce and gem is different?](https://www.ruby-forum.com/t/why-the-size-of-rails-souorce-and-gem-is-different/122791)

<div class="topic-metadata">

**Author:** [@nightingale2k1](https://www.ruby-forum.com/u/nightingale2k1)\
**Replies:** 10\
**Last updated:** [December 12, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/why-the-size-of-rails-souorce-and-gem-is-different/122791 "2007-12-12T19:09:42Z")

</div>

Hi , I just curious to know, why the source of rails (about +10mb) vs rails.gem (+200kb) is very different ? I just want to know how to use the rails from source instead from the gem … Thank you ! :smiley:

---

## [No action responsed to a controller which works on local system, but in production](https://www.ruby-forum.com/t/no-action-responsed-to-a-controller-which-works-on-local-system-but-in-production/122872)

<div class="topic-metadata">

**Author:** [@ghostrifle](https://www.ruby-forum.com/u/ghostrifle)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/no-action-responsed-to-a-controller-which-works-on-local-system-but-in-production/122872 "2007-12-12T19:07:19Z")

</div>

Hi, can anyone tell me why I can’t access http://www.someurl.de/magazin/marketplace but http://www.someurl.de/magazin/marketplace/viewAdvertisement/1 I get the following msg: ActionController::UnknownAction (No acti…

---

## [\[ANN\] Foxy Fixtures updates for 1.2.x](https://www.ruby-forum.com/t/ann-foxy-fixtures-updates-for-1-2-x/122871)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/ann-foxy-fixtures-updates-for-1-2-x/122871 "2007-12-12T19:06:08Z")

</div>

Foxen, I’ve updated the plugin for 1.2.x to match the final Rails 2.0 features, including support for STI, polymorphic belongs\_to, and “rake db:fixtures:identify”. Enjoy. SVN: http://svn.geeksomnia.com/plugins/trunk/…

---

## [\[ANN\] beanstalkd 0.5](https://www.ruby-forum.com/t/ann-beanstalkd-0-5/122765)

<div class="topic-metadata">

**Author:** [@krat](https://www.ruby-forum.com/u/krat)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/ann-beanstalkd-0-5/122765 "2007-12-12T19:06:08Z")

</div>

I’m happy to announce the release of beanstalkd 0.5. This is the very first public release. In the future I’ll confine release announcements to the beanstalk mailing list. WHAT IS BEANSTALKD? Beanstalkd is a fast, di…

---

## [Trouble with Net::HTTP.post\_form](https://www.ruby-forum.com/t/trouble-with-net-http-post-form/122448)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/trouble-with-net-http-post-form/122448 "2007-12-12T19:04:21Z")

</div>

Hello, I am trying to debug a problem where an action submits a form unsuccessfully. The code I’m looking at looks just like the code on Ruby-Doc for post\_form: url = “https://some.url.com” res = Net::HTTP.post\_form…

---

## [Possible bug in eager loading](https://www.ruby-forum.com/t/possible-bug-in-eager-loading/122822)

<div class="topic-metadata">

**Author:** [@Mage](https://www.ruby-forum.com/u/Mage)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/possible-bug-in-eager-loading/122822 "2007-12-12T19:02:00Z")

</div>

Hello, @users = User.find(:all, :include =\> {:user\_data =\> :user\_data\_field}, :order =\> “username = ‘removed\_email\_address@domain.invalid’ desc”, :limit =\> 50) This produces: User Load IDs For Limited Eager Load…

---

## [How can I use form\_remote\_tag to go to a different host?](https://www.ruby-forum.com/t/how-can-i-use-form-remote-tag-to-go-to-a-different-host/122856)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/how-can-i-use-form-remote-tag-to-go-to-a-different-host/122856 "2007-12-12T18:58:16Z")

</div>

Here’s sort of what I am trying to do if it’s possible: We have a server that uses TCL and can’t do any ajax. What I did was wrote a simple Rails app that uses form\_remote\_tag to get some text on a post and then disp…

---

## [How do i update an image with Attachment\_Fu?](https://www.ruby-forum.com/t/how-do-i-update-an-image-with-attachment-fu/122818)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 6:50pm UTC](https://www.ruby-forum.com/t/how-do-i-update-an-image-with-attachment-fu/122818 "2007-12-12T18:50:20Z")

</div>

Hi, making the switchover from the file\_upload plugin to the pretty awesome Attachment\_Fu plugin to handle all my image uploads, so far going good, but stuck on two things? Any ideas how i can basically update an imag…

---

## [Why is authenticate\_with\_http\_basic undefined?](https://www.ruby-forum.com/t/why-is-authenticate-with-http-basic-undefined/122826)

<div class="topic-metadata">

**Author:** [@Kei\_Simone](https://www.ruby-forum.com/u/Kei_Simone)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/why-is-authenticate-with-http-basic-undefined/122826 "2007-12-12T18:27:46Z")

</div>

Hi, i used the rick olson’s restful\_authentication plugin rails 1.2.6 i wanted to check for authenticated user so i wrote this in my application.rb Filters before\_filter :authenticate Sets @authenticated\_user if …

---

## [Rails Optimization / Propaganda / Benchmark](https://www.ruby-forum.com/t/rails-optimization-propaganda-benchmark/122754)

<div class="topic-metadata">

**Author:** [@fredistic](https://www.ruby-forum.com/u/fredistic)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/rails-optimization-propaganda-benchmark/122754 "2007-12-12T18:17:03Z")

</div>

This guy is benchmarking an erlang framework against rails and getting the wrong answer :slight\_smile: http://yarivsblog.com/articles/2007/12/09/erlyweb-vs-ruby-on-rails-ec2-performance-showdown/ Maybe one of you more…

---

## [Layouts in Rails 2](https://www.ruby-forum.com/t/layouts-in-rails-2/122830)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 6:15pm UTC](https://www.ruby-forum.com/t/layouts-in-rails-2/122830 "2007-12-12T18:15:15Z")

</div>

i’m having a little problem coming up with a dry way to use a layout for multiple content types i am using Mime::Type.register\_alias ‘text/html’, :openid in my layouts folder i had application.html.erb, so i changed i…

---

## [Passing Params to Resources via Routes](https://www.ruby-forum.com/t/passing-params-to-resources-via-routes/122827)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/passing-params-to-resources-via-routes/122827 "2007-12-12T17:51:46Z")

</div>

I am trying to do the following map.with\_options :conditions =\> { :domain =\> XYZ\_DOMAIN }, :application =\> 6 do |xyz| xyz.site “/”, :controller =\> “xyz/site”, :action =\> “index” xyz.resources :things xyz.connect “:c…

---

## [Engines 2.0/trunk with Rails 2.0](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817)

<div class="topic-metadata">

**Author:** [@ralphv](https://www.ruby-forum.com/u/ralphv)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/engines-2-0-trunk-with-rails-2-0/122817 "2007-12-12T17:25:00Z")

</div>

Hi, i’m gald to hear, that Engines make steps towards Rails 2.0, so i’m able to port my redMine plugins now ;o) in my first test, i found these 2 bugs: the ‘rake test:plugins:all PLUGIN=xxx’ task abort with an E…

---

## [Parameter being stripped form Search form with Restful Routes](https://www.ruby-forum.com/t/parameter-being-stripped-form-search-form-with-restful-routes/122825)

<div class="topic-metadata">

**Author:** [@gdevore](https://www.ruby-forum.com/u/gdevore)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 5:06pm UTC](https://www.ruby-forum.com/t/parameter-being-stripped-form-search-form-with-restful-routes/122825 "2007-12-12T17:06:09Z")

</div>

I am having trouble with a search form and restful routes. In my app I have a Topic model and a Classroom model. Topics can exist in classrooms but don’t have to so for that reason I have not nested them. I want to …

---

## [Acts as tree](https://www.ruby-forum.com/t/acts-as-tree/122821)

<div class="topic-metadata">

**Author:** [@venu](https://www.ruby-forum.com/u/venu)\
**Replies:** 3\
**Last updated:** [December 12, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/acts-as-tree/122821 "2007-12-12T16:56:49Z")

</div>

Hi, Can somebody give me what could be the structure and content of locations table, if that is to be defined as acts\_as\_tree? Your help is appreciated and thanks in advance. class Location \< ActiveRecord::Base acts…

---

## [Best Practices](https://www.ruby-forum.com/t/best-practices/122808)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/best-practices/122808 "2007-12-12T15:57:30Z")

</div>

Is there any links which talks about the best practices in ROR?

---

## [What goes where?/Scope question](https://www.ruby-forum.com/t/what-goes-where-scope-question/122763)

<div class="topic-metadata">

**Author:** [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/what-goes-where-scope-question/122763 "2007-12-12T15:50:27Z")

</div>

In a couple of parts … In a controller: The controller can use anything defined in app/controllers/application\_controller.rb What else can it use? app/helpers/application\_helper.rb because if the above? app/helper…

---

## [Reduce verbosity of log files](https://www.ruby-forum.com/t/reduce-verbosity-of-log-files/122781)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 2:55pm UTC](https://www.ruby-forum.com/t/reduce-verbosity-of-log-files/122781 "2007-12-12T14:55:47Z")

</div>

Whenever there’s a ruby error (even just a syntax error) in my controller (or anywhere else for that matter) my development.log gets filled with a massive ActiveXXX stack trace where the first 2 or 3 lines contain all…

---

## [HABTM causes LocalJumpError in Controller : no block given error](https://www.ruby-forum.com/t/habtm-causes-localjumperror-in-controller-no-block-given-error/122807)

<div class="topic-metadata">

**Author:** [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/habtm-causes-localjumperror-in-controller-no-block-given-error/122807 "2007-12-12T12:54:14Z")

</div>

I have projects and users which have a many to many relationship, in one of my controllers I am doing the following: @projects = @user.projects.find\_all() Whenever there is data in the projects\_users I get the followi…

---

## [Youtube](https://www.ruby-forum.com/t/youtube/122809)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 12:51pm UTC](https://www.ruby-forum.com/t/youtube/122809 "2007-12-12T12:51:37Z")

</div>

If we need to develop a site like youtube, do you advice ROR for that? What are all the technical challenges we will face to develop a site like youtube? do we have the solutions for that in ROR? If you have experien…

---

## [Netbeans - Checking out project from SVN](https://www.ruby-forum.com/t/netbeans-checking-out-project-from-svn/122806)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/netbeans-checking-out-project-from-svn/122806 "2007-12-12T12:41:37Z")

</div>

I have installed Netbeans 6.0 and TortoiseSVN as SVN client. I want to check out the project from SVN. Initially it is asking for the SVN home folder. Which path should I give? Is it the path of the bin folder of Tor…

---

## [Help with install! Rails without gems](https://www.ruby-forum.com/t/help-with-install-rails-without-gems/122751)

<div class="topic-metadata">

**Author:** [@caleridas](https://www.ruby-forum.com/u/caleridas)\
**Replies:** 5\
**Last updated:** [December 12, 2007, 12:37pm UTC](https://www.ruby-forum.com/t/help-with-install-rails-without-gems/122751 "2007-12-12T12:37:29Z")

</div>

So someone requested me to deploy rails on 30+ machines, he has a fully developped rails app on his local machine - only trouble is: he installed everything using gem. Now, since I have to care for more than 70 server…

---

## [\[file\_column\] saves uploading file with wrong rights?](https://www.ruby-forum.com/t/file-column-saves-uploading-file-with-wrong-rights/52479)

<div class="topic-metadata">

**Author:** [@eugenol](https://www.ruby-forum.com/u/eugenol)\
**Replies:** 13\
**Last updated:** [December 12, 2007, 12:35pm UTC](https://www.ruby-forum.com/t/file-column-saves-uploading-file-with-wrong-rights/52479 "2007-12-12T12:35:13Z")

</div>

Hello ! How to make file\_column plugin saving uploaded documents in the filesystem with 660 (-rwrw-----) rights instead of 600 (-rw------- )? Thank you for your help

---

## [Activerecord 2.0.1 gem](https://www.ruby-forum.com/t/activerecord-2-0-1-gem/122460)

<div class="topic-metadata">

**Author:** [@varac](https://www.ruby-forum.com/u/varac)\
**Replies:** 7\
**Last updated:** [December 12, 2007, 11:05am UTC](https://www.ruby-forum.com/t/activerecord-2-0-1-gem/122460 "2007-12-12T11:05:57Z")

</div>

I have tried to install activerecord 2.0.1 both through gem update and by manually downloading it and doing gem install. They both fail with MANUAL: C:\\DRC\\ruby\>gem install activerecord-2.0.1 ERROR: Error installin…

---

## [Ruby on Rails( Text Segmentation)](https://www.ruby-forum.com/t/ruby-on-rails-text-segmentation/196539)

<div class="topic-metadata">

**Author:** [@amulyab](https://www.ruby-forum.com/u/amulyab)\
**Replies:** 0\
**Last updated:** [December 12, 2007, 10:54am UTC](https://www.ruby-forum.com/t/ruby-on-rails-text-segmentation/196539 "2007-12-12T10:54:34Z")

</div>

There is a piece of source code.On selection of some part of source code and click on button say"Create Segment".Segment should be created. Structure for this is: /Start Segment1/ { } /End Segment1/ On clicking t…

---

## [Acts\_as\_tree and Edge](https://www.ruby-forum.com/t/acts-as-tree-and-edge/122408)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 2\
**Last updated:** [December 12, 2007, 10:05am UTC](https://www.ruby-forum.com/t/acts-as-tree-and-edge/122408 "2007-12-12T10:05:01Z")

</div>

hi all, I have edge installed and try to use acts\_as\_tree. Since it is now a plugin I installed it. It installed successfully but I get an undefined method \`acts\_as\_tree’ error. In my modelcode I have acts\_as\_tree :…

---

## [BackgroundRb and blocking analysis of progress](https://www.ruby-forum.com/t/backgroundrb-and-blocking-analysis-of-progress/122756)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 12, 2007, 9:52am UTC](https://www.ruby-forum.com/t/backgroundrb-and-blocking-analysis-of-progress/122756 "2007-12-12T09:52:43Z")

</div>

Hi, I’m using the BackgroundRb scheduler (http:// backgroundrb.rubyforge.org/172) w/ rails (I’m using the older version – not the 1.0 release announced yesterday). My understanding of BackgroundRb is that it creates …

---

## [Using script/console](https://www.ruby-forum.com/t/using-script-console/122636)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 6\
**Last updated:** [December 12, 2007, 8:59am UTC](https://www.ruby-forum.com/t/using-script-console/122636 "2007-12-12T08:59:55Z")

</div>

For the project at http://code.google.com/p/strawr/, I want to use the console to run some queries. I can query a specific feed object, I also saw how to do a search, but I want the equivalent to “SELECT \* FROM feeds…

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

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