# Rails

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

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

---

## [Fields\_for](https://www.ruby-forum.com/t/fields-for/181332)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 7\
**Last updated:** [January 10, 2010, 7:31pm UTC](https://www.ruby-forum.com/t/fields-for/181332 "2010-01-10T19:31:06Z")

</div>

I need to display information from the collection in a fields\_for without using the fields\_for block’s object. For example, in the following code: \<% form\_for :my\_object, @my\_object, :url =\> { :action =\> “my\_action” } …

---

## [Debug output / settings for debug sessions](https://www.ruby-forum.com/t/debug-output-settings-for-debug-sessions/181284)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 2\
**Last updated:** [January 10, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/debug-output-settings-for-debug-sessions/181284 "2010-01-10T12:31:13Z")

</div>

Two questions: Is it possible, to programmatically print to the debugger? Is there a configuration file to store a list of commands to be executed by the debugger at session start?

---

## [Confusing action and id in link\_to\_remote](https://www.ruby-forum.com/t/confusing-action-and-id-in-link-to-remote/181348)

<div class="topic-metadata">

**Author:** [@jeb](https://www.ruby-forum.com/u/jeb)\
**Replies:** 0\
**Last updated:** [January 10, 2010, 12:19pm UTC](https://www.ruby-forum.com/t/confusing-action-and-id-in-link-to-remote/181348 "2010-01-10T12:19:11Z")

</div>

I have a problem I have seen on several posts here but nowhere have I found a solution. If I call the action edit in a link\_to\_remote call, id and action are confused. If I instead call edit2 as action it works fine. …

---

## [Ajax tabs in lightbox](https://www.ruby-forum.com/t/ajax-tabs-in-lightbox/181265)

<div class="topic-metadata">

**Author:** [@jeb](https://www.ruby-forum.com/u/jeb)\
**Replies:** 3\
**Last updated:** [January 10, 2010, 12:02pm UTC](https://www.ruby-forum.com/t/ajax-tabs-in-lightbox/181265 "2010-01-10T12:02:47Z")

</div>

I try to put some tabs in a ligtbox (lightview) to do a user friendly form, kind of. With lightbox i mean a modal window. The tabs (livipipe) works well withe ajax in the normal window, but when I put them in the ligt…

---

## [Imagemagic errors](https://www.ruby-forum.com/t/imagemagic-errors/181306)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 13\
**Last updated:** [January 10, 2010, 10:20am UTC](https://www.ruby-forum.com/t/imagemagic-errors/181306 "2010-01-10T10:20:23Z")

</div>

Hey everyone, I’m still having a ton of image issues. I had been using attachment\_fu and ran into errors so i changed to paperclip. attachment\_fu was working to a degree but ran into some other issues. Not it seems i…

---

## [Pure, OpenID-only (password not a choice) Authentication?](https://www.ruby-forum.com/t/pure-openid-only-password-not-a-choice-authentication/181309)

<div class="topic-metadata">

**Author:** [@audreylee88](https://www.ruby-forum.com/u/audreylee88)\
**Replies:** 3\
**Last updated:** [January 10, 2010, 9:15am UTC](https://www.ruby-forum.com/t/pure-openid-only-password-not-a-choice-authentication/181309 "2010-01-10T09:15:11Z")

</div>

Hello list, Are any of you using OpenID to register and authenticate your users? I have found 2 projects on github which mix Rails with OpenID: Both projects seem suited for providing a choice to the end-user: “V…

---

## [RoR, good for a beginner?](https://www.ruby-forum.com/t/ror-good-for-a-beginner/181340)

<div class="topic-metadata">

**Author:** [@dl33ter](https://www.ruby-forum.com/u/dl33ter)\
**Replies:** 2\
**Last updated:** [January 10, 2010, 8:57am UTC](https://www.ruby-forum.com/t/ror-good-for-a-beginner/181340 "2010-01-10T08:57:18Z")

</div>

Hi every body! I’m a French new user of RoR (thus, sorry for my english :slight\_smile: ) and I would like to know something. I only made some simple web site with PHP, and I started RoR. I’m pretty lost, and I don’t …

---

## [Image in production mode + nginx missed half page](https://www.ruby-forum.com/t/image-in-production-mode-nginx-missed-half-page/197286)

<div class="topic-metadata">

**Author:** [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Replies:** 4\
**Last updated:** [January 10, 2010, 7:55am UTC](https://www.ruby-forum.com/t/image-in-production-mode-nginx-missed-half-page/197286 "2010-01-10T07:55:17Z")

</div>

Hi Guys, I’ve updated my images with 715x500. It works fine in my frontpage in development mode. However, when I deploy to my production server (Nginx+thin+Rails), the image cannot be displayed perfectly, only around…

---

## [Has\_one belongs\_to confusion](https://www.ruby-forum.com/t/has-one-belongs-to-confusion/181292)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 6\
**Last updated:** [January 10, 2010, 7:42am UTC](https://www.ruby-forum.com/t/has-one-belongs-to-confusion/181292 "2010-01-10T07:42:58Z")

</div>

Hello all, This will be my 3rd month with Ruby on Rails. I do all my developing on Mac with TextMate. I’m now totally confused. I have a one to one relationship. Projects and study\_type project model - belongs\_to…

---

## [Best practice for running an app in subdirectory](https://www.ruby-forum.com/t/best-practice-for-running-an-app-in-subdirectory/181304)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 3\
**Last updated:** [January 10, 2010, 6:52am UTC](https://www.ruby-forum.com/t/best-practice-for-running-an-app-in-subdirectory/181304 "2010-01-10T06:52:40Z")

</div>

I seem to be misunderstanding something very basic in trying to run my app in a subdirectory. Remarkably, all my restful routes work flawlessly. Everything outside of rails routing conventions is what’s giving me pr…

---

## [Ruby on Rails, Gems, cPanel and Shared Hosting](https://www.ruby-forum.com/t/ruby-on-rails-gems-cpanel-and-shared-hosting/181283)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 8\
**Last updated:** [January 10, 2010, 1:19am UTC](https://www.ruby-forum.com/t/ruby-on-rails-gems-cpanel-and-shared-hosting/181283 "2010-01-10T01:19:42Z")

</div>

Hi Long story short! I’ve got a rails application I’m trying to install on a shared hosting plan (with NativeSpace) using cPanel. I have two gems; calendar\_date\_select and prawn which are required. I have used cPane…

---

## [Rails app seems to be 'requiring' a gem 'automatically'](https://www.ruby-forum.com/t/rails-app-seems-to-be-requiring-a-gem-automatically/181336)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 0\
**Last updated:** [January 10, 2010, 12:36am UTC](https://www.ruby-forum.com/t/rails-app-seems-to-be-requiring-a-gem-automatically/181336 "2010-01-10T00:36:20Z")

</div>

I am running the same rails application on two different machines.I have done a fresh ‘get’ from the repo into a new directory so I am sure the code is exactly the same. On machine it works fine. On the other machine…

---

## [ActiveResource and this 'http://test.host/'](https://www.ruby-forum.com/t/activeresource-and-this-http-test-host/181331)

<div class="topic-metadata">

**Author:** [@cuspendlove](https://www.ruby-forum.com/u/cuspendlove)\
**Replies:** 0\
**Last updated:** [January 9, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/activeresource-and-this-http-test-host/181331 "2010-01-09T23:18:35Z")

</div>

I notice when i test my controllers in the log this url ‘http://test.host’ What is the deal with 'http://test.host/ when i run my specs? I would really like to use this temp server or whatever for testing activeresou…

---

## [Auto\_complete\_field does not update display:none](https://www.ruby-forum.com/t/auto-complete-field-does-not-update-display-none/181326)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [January 9, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/auto-complete-field-does-not-update-display-none/181326 "2010-01-09T21:02:33Z")

</div>

Hi, text\_field\_with\_auto\_complete works. auto\_complete\_field almost works, the only problem is that it does not update the display:none default attribute of the div that receives the results. So the results are there…

---

## [Fighting with Hello World](https://www.ruby-forum.com/t/fighting-with-hello-world/181252)

<div class="topic-metadata">

**Author:** [@leonardus](https://www.ruby-forum.com/u/leonardus)\
**Replies:** 13\
**Last updated:** [January 9, 2010, 7:56pm UTC](https://www.ruby-forum.com/t/fighting-with-hello-world/181252 "2010-01-09T19:56:06Z")

</div>

Hi Guys, I’ve managed to install Ruby on Rails on Ubuntu 9.10, got it that up and running, installed mysql as well. I use Netbeans 6.8 as the IDE, and from there I can connect from a RoR project to the database with …

---

## [Reducing the number of if statements](https://www.ruby-forum.com/t/reducing-the-number-of-if-statements/181315)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 4\
**Last updated:** [January 9, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/reducing-the-number-of-if-statements/181315 "2010-01-09T17:57:10Z")

</div>

I have 34 boolean columns in my table related to a product. I need to present this information in a table format with the column header and the corresponding value set to yes or no depending on the boolean value. The …

---

## [Redirect 301 and cache](https://www.ruby-forum.com/t/redirect-301-and-cache/181299)

<div class="topic-metadata">

**Author:** [@johndel](https://www.ruby-forum.com/u/johndel)\
**Replies:** 5\
**Last updated:** [January 9, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/redirect-301-and-cache/181299 "2010-01-09T17:51:24Z")

</div>

I want my rails app to redirect from no-WWW to WWW domain (for example if I enter example.com/test to redirect to www.example.com/test). I put the following code in the application controller and worked fine: before\_f…

---

## [More than one parameter in URL](https://www.ruby-forum.com/t/more-than-one-parameter-in-url/181313)

<div class="topic-metadata">

**Author:** [@Szymszy](https://www.ruby-forum.com/u/Szymszy)\
**Replies:** 0\
**Last updated:** [January 9, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/more-than-one-parameter-in-url/181313 "2010-01-09T12:33:03Z")

</div>

Hello. I’m trying to make my site work with OAI-PMH (http:// oai.rubyforge.org/). Whilst running the tests on http://re.cs.uct.ac.za/ it seems that it can’t process more than two parameters. For example: http://mysit…

---

## [Step by step guide on installing Ruby on Rails alongside WampServer](https://www.ruby-forum.com/t/step-by-step-guide-on-installing-ruby-on-rails-alongside-wampserver/181312)

<div class="topic-metadata">

**Author:** [@olalonde](https://www.ruby-forum.com/u/olalonde)\
**Replies:** 0\
**Last updated:** [January 9, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/step-by-step-guide-on-installing-ruby-on-rails-alongside-wampserver/181312 "2010-01-09T12:31:53Z")

</div>

I’ve had a hard time integrating Ruby on Rails with my WampServer install and couldn’t find any up to date info on Google, so I made a step by step guide on how to do it. For those of you who are interested, the guide…

---

## [JOBS - RoR Developers Indianapolis, IN](https://www.ruby-forum.com/t/jobs-ror-developers-indianapolis-in/181311)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [January 9, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/jobs-ror-developers-indianapolis-in/181311 "2010-01-09T12:31:53Z")

</div>

Hi, I have a client in the Indianapolis, IN area that anticipates adding a few RoR developers over the next few months. The company is filing an application for a grant with the State and if awarded, they will need …

---

## [Javascript to access a server side element in rails](https://www.ruby-forum.com/t/javascript-to-access-a-server-side-element-in-rails/181230)

<div class="topic-metadata">

**Author:** [@nisha](https://www.ruby-forum.com/u/nisha)\
**Replies:** 2\
**Last updated:** [January 9, 2010, 10:43am UTC](https://www.ruby-forum.com/t/javascript-to-access-a-server-side-element-in-rails/181230 "2010-01-09T10:43:00Z")

</div>

Hi all, TestController def show @object = Object.find(params\[:id\]) end I have show.html.erb which has the foll js in the head This basically dynamically loads the first.html file after the set interval… The fi…

---

## [No such file to load -- openssl (RuntimeError)](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169340)

<div class="topic-metadata">

**Author:** [@cabaret](https://www.ruby-forum.com/u/cabaret)\
**Replies:** 4\
**Last updated:** [January 9, 2010, 4:34am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169340 "2010-01-09T04:34:01Z")

</div>

Hi. I have been trying all day to set up RoR; I got Ruby, Rails, Rubygems. Everything is installed (they all react to --version). However, when I try to run the webserver, I get the following message (terminal output …

---

## [A Little SQL Help](https://www.ruby-forum.com/t/a-little-sql-help/181296)

<div class="topic-metadata">

**Author:** [@karlshea](https://www.ruby-forum.com/u/karlshea)\
**Replies:** 4\
**Last updated:** [January 9, 2010, 3:54am UTC](https://www.ruby-forum.com/t/a-little-sql-help/181296 "2010-01-09T03:54:36Z")

</div>

Can someone give me a hand with the sql (mysql works for me) for this rails project… Data similar to this: Station Status WKRP Pending WKRP Pending WKRP Deleted WIBC Deleted WFBQ Pending WFBQ …

---

## ["uninitialized constant REXML::Document"](https://www.ruby-forum.com/t/uninitialized-constant-rexml-document/181294)

<div class="topic-metadata">

**Author:** [@pitosalas](https://www.ruby-forum.com/u/pitosalas)\
**Replies:** 2\
**Last updated:** [January 8, 2010, 10:38pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-rexml-document/181294 "2010-01-08T22:38:05Z")

</div>

A pal of mine wrote an application, it runs for him just fine. We are both running the same versions of Rails and Ruby and apparently the gems. When I run his app I get a mysterious “NameError (uninitialized constant …

---

## [Should I continue with rails?](https://www.ruby-forum.com/t/should-i-continue-with-rails/181285)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 9\
**Last updated:** [January 8, 2010, 10:12pm UTC](https://www.ruby-forum.com/t/should-i-continue-with-rails/181285 "2010-01-08T22:12:15Z")

</div>

Hi, I’ve been playing around with rails for a while now and really like the way it works. However, I’ve had no end of trouble trying to get my application working on my webspace. With a bit of work I can get my app …

---

## [Caught by gems](https://www.ruby-forum.com/t/caught-by-gems/181213)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 9\
**Last updated:** [January 8, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/caught-by-gems/181213 "2010-01-08T20:36:50Z")

</div>

Hello, I’ve set-up a new computer and I’m having troubles with gems. In the production server and in my old developer machine works perfect, but in the nem I’m getting errors when I start them using thin: /Library/Ru…

---

## [Phusion Passenger on a sub-URI - deleting my controller name](https://www.ruby-forum.com/t/phusion-passenger-on-a-sub-uri-deleting-my-controller-name/181289)

<div class="topic-metadata">

**Author:** [@dmorin](https://www.ruby-forum.com/u/dmorin)\
**Replies:** 1\
**Last updated:** [January 8, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/phusion-passenger-on-a-sub-uri-deleting-my-controller-name/181289 "2010-01-08T20:30:08Z")

</div>

I know this must be a configuration error on my part but I can’t figure it out. I have a Rails application running on a sub-URI, and within that I have sevearl different controller/entry points. So in my httpd.conf …

---

## ['alt' and 'title' tags :/](https://www.ruby-forum.com/t/alt-and-title-tags/181275)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 2\
**Last updated:** [January 8, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/alt-and-title-tags/181275 "2010-01-08T20:08:45Z")

</div>

\<%= link\_to (scale\_image\_tag testimonial.picture1, :alt =\> “dyjdcgyhjk”, :title =\> “dxtykdyj”, :height =\> 110, :width =\> 110, :border =\> “0”), {:action =\> “show”, :id =\> testimonial} %\> What am I doing wrong with ‘:al…

---

## [How do I get the host or Ip address where my rails app is running](https://www.ruby-forum.com/t/how-do-i-get-the-host-or-ip-address-where-my-rails-app-is-running/155425)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 4\
**Last updated:** [January 8, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/how-do-i-get-the-host-or-ip-address-where-my-rails-app-is-running/155425 "2010-01-08T19:43:13Z")

</div>

Hi I would like to get in a variable the ip address of the host where my app is running, to change some parameters if it’s running locally or remotely … is it possible ? I cannot use request.host, since there is no r…

---

## [Validates presence of special conditions not working](https://www.ruby-forum.com/t/validates-presence-of-special-conditions-not-working/181269)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 4\
**Last updated:** [January 8, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/validates-presence-of-special-conditions-not-working/181269 "2010-01-08T18:47:42Z")

</div>

Here is the validation being used which is not working… validates\_presence\_of :name =\> :controller\_name, :if =\> :redirect?, :message =\> “must have the same name as the controller.” The model has a string field for nam…

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

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