# Rails

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

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

---

## [Address family for hostname not supported](https://www.ruby-forum.com/t/address-family-for-hostname-not-supported/103350)

<div class="topic-metadata">

**Author:** [@daxhuiberts](https://www.ruby-forum.com/u/daxhuiberts)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/address-family-for-hostname-not-supported/103350 "2007-05-04T16:27:29Z")

</div>

I tried to do a cap deploy yesterday when it suddenly didn’t want to work anymore. It says “address family for hostname not supported”. After a lot of searching and googling and source code lookup I came to the follow…

---

## [PHP Integration](https://www.ruby-forum.com/t/php-integration/103345)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/php-integration/103345 "2007-05-04T15:53:38Z")

</div>

Hi, I was wondering if anyone had any ideas for integrating a phpbb site into a rails app so that it would utilize my layout. I can’t seem to find any custom modules and an iframe is less than ideal. Does anyone …

---

## [Select and options\_for\_select trouble](https://www.ruby-forum.com/t/select-and-options-for-select-trouble/103324)

<div class="topic-metadata">

**Author:** [@amiridis](https://www.ruby-forum.com/u/amiridis)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/select-and-options-for-select-trouble/103324 "2007-05-04T15:20:40Z")

</div>

Hi, I am a newbie in Ruby and Rails. I am trying to create a drop down list with fixed values but the selected option should be saved in the database. I have the table commands. Each command has a status which is se…

---

## [Best way to call action new for a child entity?](https://www.ruby-forum.com/t/best-way-to-call-action-new-for-a-child-entity/103338)

<div class="topic-metadata">

**Author:** [@amiridis](https://www.ruby-forum.com/u/amiridis)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/best-way-to-call-action-new-for-a-child-entity/103338 "2007-05-04T13:17:53Z")

</div>

Hi, I have two entities: Installation and Command. Each installation can have many commands. In order to create a command the user has to go through the installation. I have generated the standard scaffold code for c…

---

## [Using external files in Rails](https://www.ruby-forum.com/t/using-external-files-in-rails/103211)

<div class="topic-metadata">

**Author:** [@masschel](https://www.ruby-forum.com/u/masschel)\
**Replies:** 5\
**Last updated:** [May 4, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/using-external-files-in-rails/103211 "2007-05-04T13:08:19Z")

</div>

I’m currently building a dictionary for Flemish Sign Language for the the Deaf community in Flanders: http://patsstudent.cmi.ua.ac.be:8080/ Besides the internet site I’m building a dvd-version for people who have no o…

---

## [Text\_field helper? left, center, right, fonts etc.?](https://www.ruby-forum.com/t/text-field-helper-left-center-right-fonts-etc/103336)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/text-field-helper-left-center-right-fonts-etc/103336 "2007-05-04T12:53:58Z")

</div>

Hello there, Is there any plugin for text field to modified it, like put the text in the text field to the center? make some text bold etc.? Regards, Jamal

---

## [The simplest ruby on rails webapp endorsed by DHH](https://www.ruby-forum.com/t/the-simplest-ruby-on-rails-webapp-endorsed-by-dhh/103333)

<div class="topic-metadata">

**Author:** [@rico](https://www.ruby-forum.com/u/rico)\
**Replies:** 0\
**Last updated:** [May 4, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/the-simplest-ruby-on-rails-webapp-endorsed-by-dhh/103333 "2007-05-04T12:26:07Z")

</div>

The simplest ruby on rails webapp endorsed by DHH http://morecute.com

---

## [How to run a cpu intensive ruby script with rails functional](https://www.ruby-forum.com/t/how-to-run-a-cpu-intensive-ruby-script-with-rails-functional/103306)

<div class="topic-metadata">

**Author:** [@ant](https://www.ruby-forum.com/u/ant)\
**Replies:** 2\
**Last updated:** [May 4, 2007, 11:03am UTC](https://www.ruby-forum.com/t/how-to-run-a-cpu-intensive-ruby-script-with-rails-functional/103306 "2007-05-04T11:03:58Z")

</div>

Hi All, I am new to this list and to rails. So far I am loving the way in which it is easy to put together web pages with a database backend. I would love to use the rails functionality (to do the sql queries) and th…

---

## [Map.connect to new window?](https://www.ruby-forum.com/t/map-connect-to-new-window/103317)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 10:43am UTC](https://www.ruby-forum.com/t/map-connect-to-new-window/103317 "2007-05-04T10:43:56Z")

</div>

Is there anything you can add to a map.connect in routes.rb that will cause the browser to open the requested controller/action in a new window instead of the current one? thanks, jp P.s. yes, I know there are other…

---

## [Recent Routing changes in edge rails?](https://www.ruby-forum.com/t/recent-routing-changes-in-edge-rails/103289)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [May 4, 2007, 8:00am UTC](https://www.ruby-forum.com/t/recent-routing-changes-in-edge-rails/103289 "2007-05-04T08:00:09Z")

</div>

Does anyone have a link to where they changed the routing behavior in edge rails with in the last 3 weeks? Or can give a brief overview of the changes? Seems for example the below went from: messages: GET /:user\_i…

---

## [Testing Result of raw sql query](https://www.ruby-forum.com/t/testing-result-of-raw-sql-query/103308)

<div class="topic-metadata">

**Author:** [@cephas](https://www.ruby-forum.com/u/cephas)\
**Replies:** 2\
**Last updated:** [May 4, 2007, 4:43am UTC](https://www.ruby-forum.com/t/testing-result-of-raw-sql-query/103308 "2007-05-04T04:43:33Z")

</div>

I need to be able to catch when my postgresql database returns no rows in a raw sql query. In this case it would be an error indicating that the long and lat are outside of the shape file. s = Boundary.find\_by\_sql(“…

---

## [Mongrel dev server and custom subdirectories within ./public](https://www.ruby-forum.com/t/mongrel-dev-server-and-custom-subdirectories-within-public/103298)

<div class="topic-metadata">

**Author:** [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 4:25am UTC](https://www.ruby-forum.com/t/mongrel-dev-server-and-custom-subdirectories-within-public/103298 "2007-05-04T04:25:32Z")

</div>

Everyone - I’m trying to add some theme support for my application and started creating a logical directory structure under public - /public/themes/custom/my\_theme\_name/.css /public/themes/custom/my\_theme\_name/images…

---

## [Forms without the helpers](https://www.ruby-forum.com/t/forms-without-the-helpers/103314)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 3\
**Last updated:** [May 4, 2007, 4:20am UTC](https://www.ruby-forum.com/t/forms-without-the-helpers/103314 "2007-05-04T04:20:31Z")

</div>

Hi there! I’m a bit of a rails newbie, and I’ve had success as long as I followed rails conventions and used the form helpers. But now I want to do something a little different and I’m already stumped. I want to pass …

---

## [Association problems, :belongs\_to and :has\_many](https://www.ruby-forum.com/t/association-problems-belongs-to-and-has-many/103244)

<div class="topic-metadata">

**Author:** [@rajo](https://www.ruby-forum.com/u/rajo)\
**Replies:** 11\
**Last updated:** [May 4, 2007, 4:06am UTC](https://www.ruby-forum.com/t/association-problems-belongs-to-and-has-many/103244 "2007-05-04T04:06:30Z")

</div>

Hi everyone, I’m trying to make my first rails app which is a product catalog. I have finished an administrative back-end and added data but am currently having problems figuring out how to list the products in the f…

---

## [Problem with has\_many through](https://www.ruby-forum.com/t/problem-with-has-many-through/103304)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 1\
**Last updated:** [May 4, 2007, 1:10am UTC](https://www.ruby-forum.com/t/problem-with-has-many-through/103304 "2007-05-04T01:10:20Z")

</div>

another active record question : i’ve got 3 classes : 1/ class Store \< ActiveRecord::Base has\_many :store\_entries has\_many :store\_shipping\_countries end 2/ class StoreShippingCountry \< ActiveRecord::Base bel…

---

## [Using isql from rails app](https://www.ruby-forum.com/t/using-isql-from-rails-app/103302)

<div class="topic-metadata">

**Author:** [@anitawa](https://www.ruby-forum.com/u/anitawa)\
**Replies:** 2\
**Last updated:** [May 4, 2007, 12:41am UTC](https://www.ruby-forum.com/t/using-isql-from-rails-app/103302 "2007-05-04T00:41:18Z")

</div>

Hi, Im new to rails and was wondering if someone can help me. I have a sybase database on a remote machine. I want to get information from that db into my rails app using isql. I can do it from the shell, but how do …

---

## [Simple problem with Resources Routes](https://www.ruby-forum.com/t/simple-problem-with-resources-routes/103297)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 4\
**Last updated:** [May 4, 2007, 12:34am UTC](https://www.ruby-forum.com/t/simple-problem-with-resources-routes/103297 "2007-05-04T00:34:18Z")

</div>

Ok, I’m quite near to grasp all the resources and related routing affair… There is, anyway, a problem that I’m not able to solve: I do not get the picture, here. I have Offers, and I have Categories… (offers are cate…

---

## [Trouble comparing time and date values](https://www.ruby-forum.com/t/trouble-comparing-time-and-date-values/103270)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 3, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/trouble-comparing-time-and-date-values/103270 "2007-05-03T23:47:13Z")

</div>

I have the following situation: I have a table with employee schedules in it. I need to make sure that overtime work they are claiming doesn’t overlap with scheduled work time. I have written a method in my events m…

---

## [Re: attachment\_fu problem when using edge rails](https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 1\
**Last updated:** [May 3, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292 "2007-05-03T23:35:39Z")

</div>

Just a guess but do you need :size =\> 1.byte…2.megabytes or :size =\> 1.megabyte…2.megabytes ----- Original Message ---- From: adam removed\_email\_address@domain.invalid To: removed\_email\_address@domain.invalid Sent…

---

## [Cascading Lists](https://www.ruby-forum.com/t/cascading-lists/103299)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 0\
**Last updated:** [May 3, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/cascading-lists/103299 "2007-05-03T23:27:34Z")

</div>

user has\_many :jobs job has\_many :frame\_sets belongs\_to :user frame\_set has\_many :render\_jobs belongs\_to :job So, I have the standard list page that shows a user’s jobs (well, close enough). I’d like to have a…

---

## [\[ANN\] whatstheplan.com - a better way to plan events online](https://www.ruby-forum.com/t/ann-whatstheplan-com-a-better-way-to-plan-events-online/103295)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [May 3, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/ann-whatstheplan-com-a-better-way-to-plan-events-online/103295 "2007-05-03T23:13:10Z")

</div>

Hey guys, we’ve done some major overhauling to whatstheplan.com. It’s a web 2.0 way to plan parties, weddings, etc. Please give it a try for your next throwdown! http://www.whatstheplan.com Thanks JP

---

## [Attachment\_fu problem when using edge rails](https://www.ruby-forum.com/t/attachment-fu-problem-when-using-edge-rails/103291)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [May 3, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/attachment-fu-problem-when-using-edge-rails/103291 "2007-05-03T21:56:24Z")

</div>

Hi, Has anyone any suggestions on whats going on here. when ever I attempt to upload an image the following error message is returned “Size is not included in the list” I have tried different settings in my model, b…

---

## [Attachment\_fu multiple uploads has\_one relationship](https://www.ruby-forum.com/t/attachment-fu-multiple-uploads-has-one-relationship/103287)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [May 3, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/attachment-fu-multiple-uploads-has-one-relationship/103287 "2007-05-03T21:42:04Z")

</div>

I’ve got a user model that has one photo. I have a photo model that belongs\_to user I followed this tutorial to have an arbitrary number of users created: http://www.railsforum.com/viewtopic.php?id=1065 I then follow…

---

## [Creating Web Widgets with Rails](https://www.ruby-forum.com/t/creating-web-widgets-with-rails/103207)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 3, 2007, 9:27pm UTC](https://www.ruby-forum.com/t/creating-web-widgets-with-rails/103207 "2007-05-03T21:27:02Z")

</div>

Has anyone created any widgets using Rails? I would like to be able to make one of those nice little links that someone can paste on their html page and get a little part of my rails app to show on their page. I goo…

---

## [Ticket available to Rails Conference 2007 in Portland](https://www.ruby-forum.com/t/ticket-available-to-rails-conference-2007-in-portland/103288)

<div class="topic-metadata">

**Author:** [@SnowLprd](https://www.ruby-forum.com/u/SnowLprd)\
**Replies:** 0\
**Last updated:** [May 3, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/ticket-available-to-rails-conference-2007-in-portland/103288 "2007-05-03T20:59:59Z")

</div>

Hi folks! I am registered to attend the Rails Conference in Portland this month, but unfortunately it seems I am needed outside the mainland that week and will not be able to attend. Anybody interested in a ticket to …

---

## [Rendering a different view depending on model attributes](https://www.ruby-forum.com/t/rendering-a-different-view-depending-on-model-attributes/103283)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 3\
**Last updated:** [May 3, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/rendering-a-different-view-depending-on-model-attributes/103283 "2007-05-03T20:33:56Z")

</div>

Is there a good way to render a different view based on a models attributes? For instance, say there is a model called Form, which belongs to an Office. And there are 2 offices, say Pre and Post, each one using a di…

---

## [Inherit controller, how to do it?](https://www.ruby-forum.com/t/inherit-controller-how-to-do-it/103278)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 3\
**Last updated:** [May 3, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/inherit-controller-how-to-do-it/103278 "2007-05-03T19:58:31Z")

</div>

Hello, I’m doing small blog for myself, I faced a problem when I want some controller to inherit. class BlogController \< ApplicationController end class PostController \< BlogController def list render :text =\> “as…

---

## [Ruby on Rails Company Survey](https://www.ruby-forum.com/t/ruby-on-rails-company-survey/103281)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 3, 2007, 7:49pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-company-survey/103281 "2007-05-03T19:49:50Z")

</div>

Dear Railers, for my bachelor’s thesis I would like to research adoption factors regarding the use of Ruby On Rails. To do this, I need to have responses from at least 100 RoR companies and I’m wondering if you could…

---

## [Deploying on windows 2000 server](https://www.ruby-forum.com/t/deploying-on-windows-2000-server/103246)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 7\
**Last updated:** [May 3, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/deploying-on-windows-2000-server/103246 "2007-05-03T19:36:37Z")

</div>

I’m not a windows user, and I’ve never deployed on windows. Made this small app for a company, and they want it deployed on one of their own servers - a windows server. I’ve installed this Rails Prod Win package. When…

---

## [Is routing to application controller possible?](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [May 3, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/is-routing-to-application-controller-possible/103276 "2007-05-03T19:34:14Z")

</div>

All, I added this: map.connect '', :controller =\> 'application', :action =\> 'index' to my routes.rb file. But I don’t see ApplicationController#index being called when I request ‘/’ from my server. Is it cool to ro…

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

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