# Rails

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

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

---

## [Form\_tag question](https://www.ruby-forum.com/t/form-tag-question/192189)

<div class="topic-metadata">

**Author:** [@rcanand](https://www.ruby-forum.com/u/rcanand)\
**Replies:** 2\
**Last updated:** [July 26, 2010, 1:49am UTC](https://www.ruby-forum.com/t/form-tag-question/192189 "2010-07-26T01:49:30Z")

</div>

Hi, I am somewhat new to rails, and I have a question about form\_tag: I have the following : \<%form\_tag “some\_action” do%\> … and I have a route for “posts/:id/some\_action” When I run this, I notice that (what seem…

---

## [Testing problems: ActiveSupport](https://www.ruby-forum.com/t/testing-problems-activesupport/192190)

<div class="topic-metadata">

**Author:** [@noloman](https://www.ruby-forum.com/u/noloman)\
**Replies:** 0\
**Last updated:** [July 26, 2010, 1:31am UTC](https://www.ruby-forum.com/t/testing-problems-activesupport/192190 "2010-07-26T01:31:12Z")

</div>

Hey everybody, I am trying to test a small application with a simple testing, but I get the following errors while using Aptana 2.0.5 with Ruby 1.9.1 and Rails 2.3.8(I know why I get the first one, but I’m not sure ab…

---

## [Need help installing Rails 3 on non-Intel Mac](https://www.ruby-forum.com/t/need-help-installing-rails-3-on-non-intel-mac/192187)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 4\
**Last updated:** [July 26, 2010, 12:22am UTC](https://www.ruby-forum.com/t/need-help-installing-rails-3-on-non-intel-mac/192187 "2010-07-26T00:22:18Z")

</div>

I’m having trouble installing Rails 3 (on a Mac Powerbook G4 running OSX 10.5.8). Specifically, when I try “gem install rails --pre” it says: ERROR: Error installing rails: activesupport requires Ruby version \>= 1.…

---

## [Testing an installed gem](https://www.ruby-forum.com/t/testing-an-installed-gem/192143)

<div class="topic-metadata">

**Author:** [@dwormuth](https://www.ruby-forum.com/u/dwormuth)\
**Replies:** 1\
**Last updated:** [July 25, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/testing-an-installed-gem/192143 "2010-07-25T22:05:19Z")

</div>

I know how to run tests on my app, but how do I run tests on a rvm installed gem?

---

## [Refactoring views ? Should public class methods be used in views?](https://www.ruby-forum.com/t/refactoring-views-should-public-class-methods-be-used-in-views/192137)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 3\
**Last updated:** [July 25, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/refactoring-views-should-public-class-methods-be-used-in-views/192137 "2010-07-25T21:50:41Z")

</div>

I am refactoring my views and have learned that to separate view controller and models and that the view is feed from the controller that defines the instance variables related to a the models that is to be used in vi…

---

## [\[Railsip addresses and spam manager for Rails](https://www.ruby-forum.com/t/railsip-addresses-and-spam-manager-for-rails/192180)

<div class="topic-metadata">

**Author:** [@Roman\_Snitko](https://www.ruby-forum.com/u/Roman_Snitko)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/railsip-addresses-and-spam-manager-for-rails/192180 "2010-07-25T19:33:43Z")

</div>

---

## [You can't set a constant with namespace in the initializers?](https://www.ruby-forum.com/t/you-cant-set-a-constant-with-namespace-in-the-initializers/192179)

<div class="topic-metadata">

**Author:** [@ctwise](https://www.ruby-forum.com/u/ctwise)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/you-cant-set-a-constant-with-namespace-in-the-initializers/192179 "2010-07-25T19:33:08Z")

</div>

Help! in my rails controllers, there is a ‘Admin’ namespace. (My the structure of the controllers dir is like this : app/controllers: home\_controller.rb … admin/posts\_controller.rb admin/pages\_controller.rb The ‘A…

---

## [Voting functionality like in YouTube](https://www.ruby-forum.com/t/voting-functionality-like-in-youtube/192176)

<div class="topic-metadata">

**Author:** [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/voting-functionality-like-in-youtube/192176 "2010-07-25T18:43:23Z")

</div>

Imagine that you’ve created simple weblog by scaffolding and you want to add ‘Vote Up’ and ‘Vote Down’ (or ‘like’ ‘dislike’) functionality just like in YouTube, what steps are required, or someone have done it before …

---

## [Rails3 Finders - OR conditions](https://www.ruby-forum.com/t/rails3-finders-or-conditions/192174)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/rails3-finders-or-conditions/192174 "2010-07-25T18:21:43Z")

</div>

There just does not seem to be much information out their on Rails3 finders. The finders and chaining are basically “awesome”, at least if you are doing Model.where().where() which generates AND conditions. Can’t fi…

---

## [Creating reflective has\_and\_belongs\_to](https://www.ruby-forum.com/t/creating-reflective-has-and-belongs-to/191892)

<div class="topic-metadata">

**Author:** [@Piotr\_JSPuczySSSS\_S](https://www.ruby-forum.com/u/Piotr_JSPuczySSSS_S)\
**Replies:** 7\
**Last updated:** [July 25, 2010, 1:10pm UTC](https://www.ruby-forum.com/t/creating-reflective-has-and-belongs-to/191892 "2010-07-25T13:10:21Z")

</div>

Hi I have a question is it possible to create the reflective relation with users and friends using has\_and\_belongs\_to. I found this post that is partly connected to my: http://groups.google.com/group/rubyonrails-talk/…

---

## [Large size file upload issue](https://www.ruby-forum.com/t/large-size-file-upload-issue/191686)

<div class="topic-metadata">

**Author:** [@vikasmaskeri](https://www.ruby-forum.com/u/vikasmaskeri)\
**Replies:** 2\
**Last updated:** [July 25, 2010, 1:09pm UTC](https://www.ruby-forum.com/t/large-size-file-upload-issue/191686 "2010-07-25T13:09:14Z")

</div>

Hi, I have developed a small ruby on rails application to upload a user chosen file. On Webrick server it uploads all size of files but after deploying same application on glassfish v2 server it only uploads small si…

---

## [Render :update with different controller does nothing](https://www.ruby-forum.com/t/render-update-with-different-controller-does-nothing/192165)

<div class="topic-metadata">

**Author:** [@chromag](https://www.ruby-forum.com/u/chromag)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 12:41pm UTC](https://www.ruby-forum.com/t/render-update-with-different-controller-does-nothing/192165 "2010-07-25T12:41:47Z")

</div>

Hi! I want to render 2 different actions - in different controller - when the user clicks on a button. I solved this with JS calls (Ajax.Updater) within the view, but wanted to take the app logic out of the view and …

---

## [Debugging rspec2 and rails3](https://www.ruby-forum.com/t/debugging-rspec2-and-rails3/192158)

<div class="topic-metadata">

**Author:** [@Miguel\_Ping](https://www.ruby-forum.com/u/Miguel_Ping)\
**Replies:** 0\
**Last updated:** [July 25, 2010, 10:45am UTC](https://www.ruby-forum.com/t/debugging-rspec2-and-rails3/192158 "2010-07-25T10:45:12Z")

</div>

Hi, Is there a simple way to debug specs under rails3? I’ve installed rvm and I’m running ruby 1.9.2, I’ve tried alot of stuff to get my IDEs debugging my specs to no avail. I can run rdebug from the command line and…

---

## [YM4R/GM plug-in issue](https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 1\
**Last updated:** [July 25, 2010, 10:29am UTC](https://www.ruby-forum.com/t/ym4r-gm-plug-in-issue/192142 "2010-07-25T10:29:59Z")

</div>

i’m creating an store finder application with the YM4R/GM plug-in. When i run rake db:migrate i get the error below. is there something i need to move in order for this plug-in to work? Cheers, Jason jason-macbook:c…

---

## [Deep beginning](https://www.ruby-forum.com/t/deep-beginning/191937)

<div class="topic-metadata">

**Author:** [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Replies:** 35\
**Last updated:** [July 25, 2010, 9:40am UTC](https://www.ruby-forum.com/t/deep-beginning/191937 "2010-07-25T09:40:15Z")

</div>

Hey guys, it’ll be kinda silly question, but I was working for two years on my bachelor’s thesis using RoR…but I have never found out, how to do that when I type in the browser the address and port, there will be a h…

---

## [Counting number of guests online](https://www.ruby-forum.com/t/counting-number-of-guests-online/160681)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 1\
**Last updated:** [July 25, 2010, 1:30am UTC](https://www.ruby-forum.com/t/counting-number-of-guests-online/160681 "2010-07-25T01:30:48Z")

</div>

I’m currently using eldorado forum which shows the users that are currently logged on. I wanted to also add the number of guests that are currently viewing the site. What do you think is the best way to go about this…

---

## [Software programs for virtual rails](https://www.ruby-forum.com/t/software-programs-for-virtual-rails/192141)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 14\
**Last updated:** [July 25, 2010, 1:10am UTC](https://www.ruby-forum.com/t/software-programs-for-virtual-rails/192141 "2010-07-25T01:10:30Z")

</div>

I have windows vista service pack 2 running on my computer. I just downloaded …virtual box 3.2.6 …and …virtualrails 1.1.7z…I cant find my windows xp bootable disc to create a virtual machine to run virtual rails. T…

---

## [Finding 'similar' objects](https://www.ruby-forum.com/t/finding-similar-objects/192147)

<div class="topic-metadata">

**Author:** [@PsiPro](https://www.ruby-forum.com/u/PsiPro)\
**Replies:** 0\
**Last updated:** [July 24, 2010, 11:45pm UTC](https://www.ruby-forum.com/t/finding-similar-objects/192147 "2010-07-24T23:45:02Z")

</div>

Hello all, This is more of a theory question then a RoR question, but perhaps there is some gem to help that I am unaware of. I am trying to aggregate store listings provided by 15 or so online shops, some of them pr…

---

## [Passenger can't find rails gem](https://www.ruby-forum.com/t/passenger-cant-find-rails-gem/191194)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 5\
**Last updated:** [July 24, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/passenger-cant-find-rails-gem/191194 "2010-07-24T23:02:22Z")

</div>

Hi, I installed rvm on my OS X Snow Leopard. And I installed ruby 1.8.7 and gemset rails3. I also installed passenger. My rails app runs find with ‘rails server’. However it doesn’t run on passenger. Error message …

---

## [Rails Hosting Question](https://www.ruby-forum.com/t/rails-hosting-question/192144)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 1\
**Last updated:** [July 24, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/rails-hosting-question/192144 "2010-07-24T22:07:16Z")

</div>

All, I’m a system administrator who has been tasked with learning to develop in Ruby and also deploying a development-\>production Ruby on Rails service for some internal applications. Currenty, I’m using Redhat Enter…

---

## [Strategy for integrating a custom layer of web services?](https://www.ruby-forum.com/t/strategy-for-integrating-a-custom-layer-of-web-services/192100)

<div class="topic-metadata">

**Author:** [@luc](https://www.ruby-forum.com/u/luc)\
**Replies:** 1\
**Last updated:** [July 24, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/strategy-for-integrating-a-custom-layer-of-web-services/192100 "2010-07-24T21:22:46Z")

</div>

Hi all, I have built a rails application with a custom layer of web and media services with different features. First, there is a data retrieval service which works in the following steps: On rails startup, one aut…

---

## [How to get remote hostname from behind mongrel cluster in rails?](https://www.ruby-forum.com/t/how-to-get-remote-hostname-from-behind-mongrel-cluster-in-rails/192078)

<div class="topic-metadata">

**Author:** [@skarayan](https://www.ruby-forum.com/u/skarayan)\
**Replies:** 2\
**Last updated:** [July 24, 2010, 7:47pm UTC](https://www.ruby-forum.com/t/how-to-get-remote-hostname-from-behind-mongrel-cluster-in-rails/192078 "2010-07-24T19:47:57Z")

</div>

Using request.env\[‘REMOTE\_HOST’\] worked with WEBrick, but returns blank when running behind mongrel cluster. For IP Address, I am able to use request.remote\_ip. Thank you.

---

## [Specify Rails version when creating a new application](https://www.ruby-forum.com/t/specify-rails-version-when-creating-a-new-application/192134)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 5\
**Last updated:** [July 24, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/specify-rails-version-when-creating-a-new-application/192134 "2010-07-24T18:30:40Z")

</div>

I have been testing out Rails 3 beta4, but want to create a test application in Rails 2.3.8. So, i installed the Rails version that i wanted, sudo gem install rails -v=2.3.8. Now when i try to create my application, u…

---

## [Depreciation warnings](https://www.ruby-forum.com/t/depreciation-warnings/192129)

<div class="topic-metadata">

**Author:** [@dee](https://www.ruby-forum.com/u/dee)\
**Replies:** 0\
**Last updated:** [July 24, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/depreciation-warnings/192129 "2010-07-24T13:18:41Z")

</div>

I’m working with Rails 3.0.0.beta4 and found a spot where the input controls in the form disappeared. The code was using the old-style block notation (\<% rather than \<%=) with fields\_for in a deeply nested form. So, a…

---

## [How to exclude a gem from "gem update"](https://www.ruby-forum.com/t/how-to-exclude-a-gem-from-gem-update/192105)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [July 24, 2010, 12:28pm UTC](https://www.ruby-forum.com/t/how-to-exclude-a-gem-from-gem-update/192105 "2010-07-24T12:28:12Z")

</div>

Hi, Is there a way to tell rubygems to update all gems except some? Something to put in ~/.gemrc?

---

## [Can't save urls](https://www.ruby-forum.com/t/cant-save-urls/192116)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 2\
**Last updated:** [July 24, 2010, 11:56am UTC](https://www.ruby-forum.com/t/cant-save-urls/192116 "2010-07-24T11:56:45Z")

</div>

I have a model with a field called “website”, its a varchar(150) mysql data type. the field renders fine in my new/edit forms, I have insured it does get to the update/create method in the controller in the params arg…

---

## [\[JOBS\] RUBY @ Sony Computer Entertainment America LLC (SAN DIEGO)](https://www.ruby-forum.com/t/jobs-ruby-sony-computer-entertainment-america-llc-san-diego/192122)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 0\
**Last updated:** [July 24, 2010, 8:52am UTC](https://www.ruby-forum.com/t/jobs-ruby-sony-computer-entertainment-america-llc-san-diego/192122 "2010-07-24T08:52:57Z")

</div>

Hello List! Guess what we’re using to build the software that makes your PS3 and PSP games rock online? You got it! So please, stop acting like you are not interested and come help us at SDOD (San Diego Online Develo…

---

## [Pass hash prameters in routes](https://www.ruby-forum.com/t/pass-hash-prameters-in-routes/192120)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [July 24, 2010, 5:17am UTC](https://www.ruby-forum.com/t/pass-hash-prameters-in-routes/192120 "2010-07-24T05:17:26Z")

</div>

Hi All, Query: I am having a link as \<%= link\_to “link\_name”, :controller =\> “some\_controller”, :action =\> “some\_action”, :id =\> “some\_id”, :first\_param =\> {:second\_param =\> “some value”} %\> and in my routes.rb ma…

---

## [Is this safe?](https://www.ruby-forum.com/t/is-this-safe/192092)

<div class="topic-metadata">

**Author:** [@dee](https://www.ruby-forum.com/u/dee)\
**Replies:** 2\
**Last updated:** [July 23, 2010, 11:53pm UTC](https://www.ruby-forum.com/t/is-this-safe/192092 "2010-07-23T23:53:54Z")

</div>

I was surprised to see this redirect worked: FYI Project has\_many Tasks, and Task belongs\_to Project Task controller def destroy @task = Task.find(params\[:id\]) @task.destroy flash\[:notice\] = “Successfully destroyed t…

---

## [TIBCO Software - looking for UI Architect](https://www.ruby-forum.com/t/tibco-software-looking-for-ui-architect/192110)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [July 23, 2010, 11:21pm UTC](https://www.ruby-forum.com/t/tibco-software-looking-for-ui-architect/192110 "2010-07-23T23:21:07Z")

</div>

Hi, TIBCO Software in Palo Alto, is looking for a contract or RFT UI Architect to lead the middle to Front-end development for our social networking enterprise product called Tibbr. Please contact Lisa Greenawalt for…

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

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