# Rails

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

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

---

## [App design question: user\_photo helper](https://www.ruby-forum.com/t/app-design-question-user-photo-helper/130552)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 2:15pm UTC](https://www.ruby-forum.com/t/app-design-question-user-photo-helper/130552 "2008-02-29T14:15:16Z")

</div>

I’m having trouble using an application helper and understanding how I should make it work throughout my application - so if you can help me with this I’ll be overcoming a big hurdle in my learning. Here’s the helper …

---

## [Socket problem, Errno::EINVAL. Can someone explain?](https://www.ruby-forum.com/t/socket-problem-errno-einval-can-someone-explain/130566)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/socket-problem-errno-einval-can-someone-explain/130566 "2008-02-29T13:30:15Z")

</div>

Hi, I am having trouble with sockets on my development machine (windows & cygwin). I’ve done a quick test on a linux box and it doesn’t seem to show the same behaviour, i.e. it works. Can someone explain why the fo…

---

## [How to run autotest(Zentest)](https://www.ruby-forum.com/t/how-to-run-autotest-zentest/65079)

<div class="topic-metadata">

**Author:** [@hariraj](https://www.ruby-forum.com/u/hariraj)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/how-to-run-autotest-zentest/65079 "2008-02-29T13:11:54Z")

</div>

Hi, When I start the “autotest” it gives me the following error…not sure what HOME path I have to set…all Ruby/Rails related components are in path! C:\>autotest -rails C:/Tools/InstantRails/ruby/lib/ruby/gems/1.8/…

---

## [Cms](https://www.ruby-forum.com/t/cms/130545)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/cms/130545 "2008-02-29T13:04:56Z")

</div>

Is there any plugin in ror to develop the content management system easily?

---

## [How can i make pluralization false got a single model](https://www.ruby-forum.com/t/how-can-i-make-pluralization-false-got-a-single-model/130565)

<div class="topic-metadata">

**Author:** [@ripan](https://www.ruby-forum.com/u/ripan)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 12:48pm UTC](https://www.ruby-forum.com/t/how-can-i-make-pluralization-false-got-a-single-model/130565 "2008-02-29T12:48:28Z")

</div>

Rails::Initializer.run do |config| config.active\_record.pluralize\_table\_names = false end hi if i write the above code in environment.rb then it makes my all table names singular instead of plural…or i can say i m re…

---

## [Gems screwed up, what now](https://www.ruby-forum.com/t/gems-screwed-up-what-now/130519)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kovalev](https://www.ruby-forum.com/u/Mikhail_Kovalev)\
**Replies:** 4\
**Last updated:** [February 29, 2008, 12:34pm UTC](https://www.ruby-forum.com/t/gems-screwed-up-what-now/130519 "2008-02-29T12:34:18Z")

</div>

I start with Mac OS X Leopard 10.5.2 with Rails 1.2.6 pre-installed: cm-84:~ mikhailkovalev$ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) \[universal-darwin9.0\] Works perfectly. I read a tip on Ruby on Rails — A web-…

---

## [Catch-all(?) route problem](https://www.ruby-forum.com/t/catch-all-route-problem/130564)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/catch-all-route-problem/130564 "2008-02-29T12:16:32Z")

</div>

Hey guys, I am still having some difficulties grasping some parts of Rails 2.0.2 routing… For example, I have a route like this: map.connect ‘\*path’, :controller =\> ‘search’ so how come I keep getting this: No route…

---

## [Need help with variables and array](https://www.ruby-forum.com/t/need-help-with-variables-and-array/197204)

<div class="topic-metadata">

**Author:** [@lokesh\_name](https://www.ruby-forum.com/u/lokesh_name)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/need-help-with-variables-and-array/197204 "2008-02-29T12:06:58Z")

</div>

Hi All, I am new to Ruby and doing some automation testing. I am using Net::LDAP to connect to my ldap server My script is require ‘rubygems’ require ‘net/ldap’ ldap = Net::LDAP.new :host =\> ‘10.44.169.24’, :port …

---

## [Nested resource routing](https://www.ruby-forum.com/t/nested-resource-routing/130563)

<div class="topic-metadata">

**Author:** [@liseki](https://www.ruby-forum.com/u/liseki)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/nested-resource-routing/130563 "2008-02-29T12:06:32Z")

</div>

I am using rails 1.2.6 and I’m trying to define a RESTified route that will work for a nested resource. I have a permission resource that I want to be nested into all my other resources. If I wanted to nest permission…

---

## [Net::LDAP](https://www.ruby-forum.com/t/net-ldap/130559)

<div class="topic-metadata">

**Author:** [@lokesh\_name](https://www.ruby-forum.com/u/lokesh_name)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 11:40am UTC](https://www.ruby-forum.com/t/net-ldap/130559 "2008-02-29T11:40:14Z")

</div>

Hi All, I am new to Ruby and doing some automation testing. I am using Net::LDAP to connect to my ldap server My script is require ‘rubygems’ require ‘net/ldap’ ldap = Net::LDAP.new :host =\> ‘10.44.169.24’, :port …

---

## [Older version of rails -- Unknown action error](https://www.ruby-forum.com/t/older-version-of-rails-unknown-action-error/130386)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [February 29, 2008, 11:08am UTC](https://www.ruby-forum.com/t/older-version-of-rails-unknown-action-error/130386 "2008-02-29T11:08:38Z")

</div>

Hi, I’m using Rails 1.2.3 (constraint of the hosting company). I’m getting this error Unknown action No action responded to subscriber upon visiting http://mydomain.com/super\_admin/subscriber/search I have these f…

---

## [Trouble with the results of a dynamically generated find() method](https://www.ruby-forum.com/t/trouble-with-the-results-of-a-dynamically-generated-find-method/130523)

<div class="topic-metadata">

**Author:** [@brad](https://www.ruby-forum.com/u/brad)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 10:46am UTC](https://www.ruby-forum.com/t/trouble-with-the-results-of-a-dynamically-generated-find-method/130523 "2008-02-29T10:46:02Z")

</div>

Hi all, So I have two tables: apps (short for applicants) has\_and\_belongs\_to\_many :locations locations has\_and\_belongs\_to\_many :apps In my system, a user searches for applicants by the locations to which the…

---

## [A special invitation from joe nayyar to join Batchmates.com](https://www.ruby-forum.com/t/a-special-invitation-from-joe-nayyar-to-join-batchmates-com/130553)

<div class="topic-metadata">

**Author:** [@joe\_nayyar](https://www.ruby-forum.com/u/joe_nayyar)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 10:29am UTC](https://www.ruby-forum.com/t/a-special-invitation-from-joe-nayyar-to-join-batchmates-com/130553 "2008-02-29T10:29:31Z")

</div>

http://www.batchmates.com/images07/bmlogo\_125.gif Hi, Your friend joe nayyar invites you to join Batchmates.com Join Batchmates and enjoy reuniting with your long lost pals and old time buddies for FREE. Click on t…

---

## [I want to start my application without welcome screen](https://www.ruby-forum.com/t/i-want-to-start-my-application-without-welcome-screen/130550)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 9:10am UTC](https://www.ruby-forum.com/t/i-want-to-start-my-application-without-welcome-screen/130550 "2008-02-29T09:10:23Z")

</div>

i am newbie for rubyonrails. i want to start my application without welcome screen .if url http://localhost:3000 the it should be show the my application not the welcome screen .how can i do it .please any instruct . …

---

## [Welcome to Chinese Ruby on Rails Club](https://www.ruby-forum.com/t/welcome-to-chinese-ruby-on-rails-club/104766)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 8:48am UTC](https://www.ruby-forum.com/t/welcome-to-chinese-ruby-on-rails-club/104766 "2008-02-29T08:48:36Z")

</div>

welcome to www.80365.com.cn This website is discuss Rails welcome Chinese friend to join!

---

## [Mechanize problem with weird field names that contain colons such as "\_ctl0:ContentPlaceHolder1:tbL](https://www.ruby-forum.com/t/mechanize-problem-with-weird-field-names-that-contain-colons-such-as-ctl0tbl/130548)

<div class="topic-metadata">

**Author:** [@Virginian](https://www.ruby-forum.com/u/Virginian)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 8:12am UTC](https://www.ruby-forum.com/t/mechanize-problem-with-weird-field-names-that-contain-colons-such-as-ctl0tbl/130548 "2008-02-29T08:12:55Z")

</div>

Ruby is blowing up on me when I use fieldnames with colons such as “\_ctl0:ContentPlaceHolder1:tbLastName” you can irb session looks like: this which you can copy and paste to try it as the site is on the web. http:/…

---

## [Has\_many\_polymorphs](https://www.ruby-forum.com/t/has-many-polymorphs/130547)

<div class="topic-metadata">

**Author:** [@Ivan\_Ukhov](https://www.ruby-forum.com/u/Ivan_Ukhov)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 7:56am UTC](https://www.ruby-forum.com/t/has-many-polymorphs/130547 "2008-02-29T07:56:27Z")

</div>

Hello Has anyone tried to use the has\_many\_polymorphs plugin? I have added the following line into environment.rb just before Rails::Initializer.run: require ‘has\_many\_polymorphs’ … created two models: class Create…

---

## [Habtm - suppress validation on associated class?](https://www.ruby-forum.com/t/habtm-suppress-validation-on-associated-class/130546)

<div class="topic-metadata">

**Author:** [@ddesgn](https://www.ruby-forum.com/u/ddesgn)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 7:09am UTC](https://www.ruby-forum.com/t/habtm-suppress-validation-on-associated-class/130546 "2008-02-29T07:09:00Z")

</div>

When I create a new pet, the pet is associated with a User through habtm. These are the classes: class Pet \< ActiveRecord::Base has\_and\_belongs\_to\_many :users end class User \< ActiveRecord::Base has\_and\_belongs\_to\_…

---

## [Create static pages from RoR](https://www.ruby-forum.com/t/create-static-pages-from-ror/130348)

<div class="topic-metadata">

**Author:** [@JDS\_no\_spam](https://www.ruby-forum.com/u/JDS_no_spam)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 6:55am UTC](https://www.ruby-forum.com/t/create-static-pages-from-ror/130348 "2008-02-29T06:55:56Z")

</div>

I’m learning RoR and I need to solve a particular problem. I have a database which I currently use to create a complete web site, it has pages like \\Europe\\Spain\\hotels-in-Spain.html and \\Europe\\Spain \\Index.html, and…

---

## [Validating user's e-mail address with hashed link](https://www.ruby-forum.com/t/validating-users-e-mail-address-with-hashed-link/130506)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 6:29am UTC](https://www.ruby-forum.com/t/validating-users-e-mail-address-with-hashed-link/130506 "2008-02-29T06:29:05Z")

</div>

Hi everyone- This is obviously a pattern, can someone suggest pseudocode, including where to put the mailing? I was thinking in the model: aftercreate: create hash for link send e-mail with clickable link in the v…

---

## [Polymorphic associations and association proxy](https://www.ruby-forum.com/t/polymorphic-associations-and-association-proxy/130481)

<div class="topic-metadata">

**Author:** [@Ivan\_Ukhov](https://www.ruby-forum.com/u/Ivan_Ukhov)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 6:00am UTC](https://www.ruby-forum.com/t/polymorphic-associations-and-association-proxy/130481 "2008-02-29T06:00:18Z")

</div>

Hello Suppose there is the following architecture: class Relation \< ActiveRecord::Base belongs\_to :owner, :class\_name =\> ‘Unit’, :foreign\_key =\> :owner\_id belongs\_to :property, :class\_name =\> ‘Unit’, :foreign\_key =\> …

---

## [Newbea MVC question?](https://www.ruby-forum.com/t/newbea-mvc-question/130535)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 2\
**Last updated:** [February 29, 2008, 5:45am UTC](https://www.ruby-forum.com/t/newbea-mvc-question/130535 "2008-02-29T05:45:11Z")

</div>

Hi RoR Developers, I’m quite new to MVC model , I have some pretty basic questions that I hope some of you can answer. I have two controllers and one view page like below, I want to call variables from report\_control…

---

## [Need ideas for MySQL Lost connection Errors](https://www.ruby-forum.com/t/need-ideas-for-mysql-lost-connection-errors/130514)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 5:34am UTC](https://www.ruby-forum.com/t/need-ideas-for-mysql-lost-connection-errors/130514 "2008-02-29T05:34:33Z")

</div>

Read through many of the prior messages (most from mid 2006), and I don’t see any that apply to my setup. I’m experiencing an intermittent appearance of “Mysql::Error: Lost connection to MySQL server during query” Th…

---

## [Client Certificates in Mongrel](https://www.ruby-forum.com/t/client-certificates-in-mongrel/91859)

<div class="topic-metadata">

**Author:** [@fredknowles](https://www.ruby-forum.com/u/fredknowles)\
**Replies:** 5\
**Last updated:** [February 29, 2008, 5:31am UTC](https://www.ruby-forum.com/t/client-certificates-in-mongrel/91859 "2008-02-29T05:31:35Z")

</div>

I’m running Apache 2.2.4 w/SSL and required client authentication proxying to a Mongrel cluster. I can’t seem to figure out how to get the client\_certificate information out of my ruby App. If I place \<%= debug(reque…

---

## [Lighttpd & VB.Net HTTPWEBREQUEST](https://www.ruby-forum.com/t/lighttpd-vb-net-httpwebrequest/130539)

<div class="topic-metadata">

**Author:** [@freaknasty](https://www.ruby-forum.com/u/freaknasty)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 5:25am UTC](https://www.ruby-forum.com/t/lighttpd-vb-net-httpwebrequest/130539 "2008-02-29T05:25:16Z")

</div>

Hi guys/gals, I don’t know if anyone can answer this, and this post may belong in a VB.Net forum, but my question is more for lighttpd. I have a .net app that sends a HTTPWEBREQUEST to the webserver. Then my def sav…

---

## [Google maps](https://www.ruby-forum.com/t/google-maps/130540)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 0\
**Last updated:** [February 29, 2008, 5:21am UTC](https://www.ruby-forum.com/t/google-maps/130540 "2008-02-29T05:21:41Z")

</div>

hi all i am using geokit plugin/appln for my site…where i want to get the pointers reflected on my site by fetching the values from the db on pageload… return (newmap.addpoint(“52.802761415419674”,“6.6357421875”,“abc…

---

## [Unknown column 'friendships.id'?](https://www.ruby-forum.com/t/unknown-column-friendships-id/130458)

<div class="topic-metadata">

**Author:** [@kaizerkaizer](https://www.ruby-forum.com/u/kaizerkaizer)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 4:51am UTC](https://www.ruby-forum.com/t/unknown-column-friendships-id/130458 "2008-02-29T04:51:08Z")

</div>

I can’t understand where it fails. I can add a friend to my friendship table, but I want to view my friends which I have after that. Rendering the view of this (index) fails. I understand that I somewhere refer to my …

---

## [Default exception doesn't render with correct content type](https://www.ruby-forum.com/t/default-exception-doesnt-render-with-correct-content-type/130532)

<div class="topic-metadata">

**Author:** [@dusty](https://www.ruby-forum.com/u/dusty)\
**Replies:** 3\
**Last updated:** [February 29, 2008, 4:35am UTC](https://www.ruby-forum.com/t/default-exception-doesnt-render-with-correct-content-type/130532 "2008-02-29T04:35:11Z")

</div>

I just noticed something I think is interesting and wanted to see what everyone felt about it. Using a quick and dirty scaffold to create a resource, I found that if I hit a show url, with an invalid id, it will thro…

---

## [Gemsonrails and "please update" error](https://www.ruby-forum.com/t/gemsonrails-and-please-update-error/130491)

<div class="topic-metadata">

**Author:** [@aaronolmstead](https://www.ruby-forum.com/u/aaronolmstead)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 4:12am UTC](https://www.ruby-forum.com/t/gemsonrails-and-please-update-error/130491 "2008-02-29T04:12:50Z")

</div>

I’m running Rails 2.0.2 on OS X 10.5.2. I’ve used gemsonrails to freeze memcache-client like so: rake gems:freeze GEM=memcache-client VERSION=1.5.0 Now when I try to run any tests in my app, or run script/server, I ge…

---

## [Database setup \> a good startingpoint?](https://www.ruby-forum.com/t/database-setup-a-good-startingpoint/130510)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [February 29, 2008, 4:07am UTC](https://www.ruby-forum.com/t/database-setup-a-good-startingpoint/130510 "2008-02-29T04:07:40Z")

</div>

Hi, I am a newbie to RoR, so i hope for that someone can reply with some anwsers or url’s for futher reading. My new project is to develop a travel-guide with some web 2.0 features. I was just wondering how my databa…

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

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