# Rails

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

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

---

## [How to call the file?](https://www.ruby-forum.com/t/how-to-call-the-file/105086)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-call-the-file/105086 "2007-05-25T18:19:17Z")

</div>

I have created one folder in lib called 'commands'. And i created one file called get.rb inside that commands folder. How can i call that file from some other rb file.? Whether i need to use ‘include’ ? or any other…

---

## [Infrastructure for small RoR development firm](https://www.ruby-forum.com/t/infrastructure-for-small-ror-development-firm/104923)

<div class="topic-metadata">

**Author:** [@Remfull](https://www.ruby-forum.com/u/Remfull)\
**Replies:** 9\
**Last updated:** [May 25, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/infrastructure-for-small-ror-development-firm/104923 "2007-05-25T18:09:16Z")

</div>

Hi, I would like to hear some opinions about the ideal infrastructure for a small RoR development group. on short term there will be about 5 running in production and there will always be active development on multipl…

---

## [Puby hon pails](https://www.ruby-forum.com/t/puby-hon-pails/105085)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 5:39pm UTC](https://www.ruby-forum.com/t/puby-hon-pails/105085 "2007-05-25T17:39:14Z")

</div>

does anyone else find this url funny??? http://railsforum.com/viewtopic.php?id=265

---

## [InstantRails problem](https://www.ruby-forum.com/t/instantrails-problem/104388)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/instantrails-problem/104388 "2007-05-25T17:31:14Z")

</div>

Hi all, I’ve developed portal using InstantRails, that comes with Apache and MySQl. I’ve configured Apache with SCGI module. So my portal is running. My problem is, it is taking very high resources while accessing ev…

---

## [Ruby / Rails installation on CentOS](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918)

<div class="topic-metadata">

**Author:** [@gabordemeter](https://www.ruby-forum.com/u/gabordemeter)\
**Replies:** 6\
**Last updated:** [May 25, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/ruby-rails-installation-on-centos/104918 "2007-05-25T17:13:10Z")

</div>

Hi, We have a new dedicated server currently running CentOS, PHP, Apache and MySQL. We’d like to install Ruby, Rails and Lighttpd (or Mongrel) on it without breaking Apache and PHP. We have an experienced sysadmin bu…

---

## [Reg date format](https://www.ruby-forum.com/t/reg-date-format/105055)

<div class="topic-metadata">

**Author:** [@shiva](https://www.ruby-forum.com/u/shiva)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/reg-date-format/105055 "2007-05-25T16:39:06Z")

</div>

in my page there is two drop down in which one should be year and month and another should be corresponding year and month date should be shown…for eg if i clicked may2007 ,in the next drop down it should list 31 days…

---

## [Namespace question](https://www.ruby-forum.com/t/namespace-question/105025)

<div class="topic-metadata">

**Author:** [@richblunt](https://www.ruby-forum.com/u/richblunt)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/namespace-question/105025 "2007-05-25T16:10:03Z")

</div>

In my /lib directory, I have: /my\_module/my\_code and inside lives my\_class.rb: module MyModule::MyCode class MyClass \< ActiveRecord::Base def foo end end end I would like to be able to access the MyClass class in…

---

## [Default column values and creating new rows with ActiveRecor](https://www.ruby-forum.com/t/default-column-values-and-creating-new-rows-with-activerecor/105042)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 3:56pm UTC](https://www.ruby-forum.com/t/default-column-values-and-creating-new-rows-with-activerecor/105042 "2007-05-25T15:56:25Z")

</div>

Hello, I have a table that looks kind of like this: CREATE TABLE blahs ( id SERIAL PRIMARY KEY, … modified\_at DATETIME NOT NULL DEFAULT now() ) When I try to create a new row using ActiveRecord, it bombs saying I’…

---

## [Don't feed the PHP trolls](https://www.ruby-forum.com/t/dont-feed-the-php-trolls/105074)

<div class="topic-metadata">

**Author:** [@Fefo](https://www.ruby-forum.com/u/Fefo)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/dont-feed-the-php-trolls/105074 "2007-05-25T15:13:45Z")

</div>

Yesterday browsing the blogosphere I found a post by PHP troll dissing rails, here’s by blog reaction to it : http://www.dzone.com/links/a\_civilized\_reply\_to\_the\_ruby\_is\_the\_dog\_php\_the.html . Regards !

---

## [AR and Logger](https://www.ruby-forum.com/t/ar-and-logger/105068)

<div class="topic-metadata">

**Author:** [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/ar-and-logger/105068 "2007-05-25T14:48:28Z")

</div>

I posted a minor rave in ruby-talk about the intrussiveness of AR with the Logger implementation. The original describes how I use a Formatter to get the desired message format and how it all goes awry when I require …

---

## [Habtm foreign key must be manually done](https://www.ruby-forum.com/t/habtm-foreign-key-must-be-manually-done/104967)

<div class="topic-metadata">

**Author:** [@Dion\_H](https://www.ruby-forum.com/u/Dion_H)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/habtm-foreign-key-must-be-manually-done/104967 "2007-05-25T14:47:42Z")

</div>

I have a habtm relationship between User and Activity when I create a new Activity why do I have to manually set the foreign key user\_id in the activity table??? example def create @activity = Activity.new(params\[:…

---

## [Layouts with variables](https://www.ruby-forum.com/t/layouts-with-variables/105067)

<div class="topic-metadata">

**Author:** [@bartocc](https://www.ruby-forum.com/u/bartocc)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 1:59pm UTC](https://www.ruby-forum.com/t/layouts-with-variables/105067 "2007-05-25T13:59:34Z")

</div>

Hi, I would like to render a menu thx to a YAML file inside on of my layouts. So far, the only hack I have found is to YAML.load\_file inside an ERB in the layout. I don’t really like this, and there must be a better…

---

## [Non-functioning submit button](https://www.ruby-forum.com/t/non-functioning-submit-button/105058)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 3\
**Last updated:** [May 25, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/non-functioning-submit-button/105058 "2007-05-25T13:24:59Z")

</div>

I have a form for users to select from a set of files they’d like to download (all, by default), set up something like this: \<%= start\_form\_tag(:action =\> “download”) %\> \<% @file\_types.each do |ft| %\> \<%= ft …

---

## [How to make dynamic index page](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048)

<div class="topic-metadata">

**Author:** [@anjan](https://www.ruby-forum.com/u/anjan)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 11:17am UTC](https://www.ruby-forum.com/t/how-to-make-dynamic-index-page/105048 "2007-05-25T11:17:24Z")

</div>

I m new with ruby so I have query regarding index.html page. In Ruby if i want dynamic index page in public folder where data is coming dynamically then in index.html page how can i display tht. I cant do tht in html…

---

## [Moving an ror app to a new server](https://www.ruby-forum.com/t/moving-an-ror-app-to-a-new-server/105053)

<div class="topic-metadata">

**Author:** [@Charlie\_McElfresh](https://www.ruby-forum.com/u/Charlie_McElfresh)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 10:50am UTC](https://www.ruby-forum.com/t/moving-an-ror-app-to-a-new-server/105053 "2007-05-25T10:50:54Z")

</div>

Hi, I am trying to get an ROR app moved to a new server. I have ROR successfully installed on the new server, ROR version 1.8.5, mysql 5.1. I imported my mysql database into a mysql 5.1 db on my new server. I put al…

---

## [Inflection issue](https://www.ruby-forum.com/t/inflection-issue/105050)

<div class="topic-metadata">

**Author:** [@Abhishek\_Srivastava](https://www.ruby-forum.com/u/Abhishek_Srivastava)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 10:19am UTC](https://www.ruby-forum.com/t/inflection-issue/105050 "2007-05-25T10:19:52Z")

</div>

Hi all, I have a table called lenses for which i created the following inflection rule in environment.rb to support pluralization of lens. Inflector.inflections do |inflect| inflect.plural(/(lens)$/i, ‘\\1es’) end N…

---

## [NetLDAP](https://www.ruby-forum.com/t/netldap/105047)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 8:59am UTC](https://www.ruby-forum.com/t/netldap/105047 "2007-05-25T08:59:43Z")

</div>

I have read this article : How to Authenticate With RubyNetLdap at this adresse : http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateWithRubyNetLdap I am using a existing LDAP to login into my Ruby on Rail appli…

---

## [Problem with CRUD II](https://www.ruby-forum.com/t/problem-with-crud-ii/105021)

<div class="topic-metadata">

**Author:** [@madiba](https://www.ruby-forum.com/u/madiba)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 8:01am UTC](https://www.ruby-forum.com/t/problem-with-crud-ii/105021 "2007-05-25T08:01:09Z")

</div>

I have a link: \<%= link\_to\_remote “Edit”, {:url =\> edit\_book\_url(book)}, {:href =\> edit\_book\_url(book)} %\> It produce a tag: Edit My ./config/routes.rb file is: ActionController::Routing::Routes.draw do |map| map.r…

---

## [Changing Time format globally](https://www.ruby-forum.com/t/changing-time-format-globally/105018)

<div class="topic-metadata">

**Author:** [@candlerb](https://www.ruby-forum.com/u/candlerb)\
**Replies:** 5\
**Last updated:** [May 25, 2007, 7:56am UTC](https://www.ruby-forum.com/t/changing-time-format-globally/105018 "2007-05-25T07:56:09Z")

</div>

By default, whenever you stick a Time in a web page, e.g. \<%= created\_at %\>, it gets formatted as an unwieldy string: “Thu May 24 21:19:11 BST 2007” I’ve discovered that I can improve this using \<%= created\_at.to\_s(:d…

---

## [\[ANN\] New tutorial at O'Reilly](https://www.ruby-forum.com/t/ann-new-tutorial-at-oreilly/104987)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 7:17am UTC](https://www.ruby-forum.com/t/ann-new-tutorial-at-oreilly/104987 "2007-05-25T07:17:05Z")

</div>

Greetings! Just a quick note to let everyone know that the first of a monthly series of tutorials that extend Curt’s original Cookbook tutorial is now available at Any and all feedback is very much appreciated. My …

---

## [Rails Conference Resources on Rails Wiki](https://www.ruby-forum.com/t/rails-conference-resources-on-rails-wiki/105029)

<div class="topic-metadata">

**Author:** [@Lou\_Springer](https://www.ruby-forum.com/u/Lou_Springer)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 6:50am UTC](https://www.ruby-forum.com/t/rails-conference-resources-on-rails-wiki/105029 "2007-05-25T06:50:04Z")

</div>

http://wiki.rubyonrails.com/rails/pages/RailsConf2007

---

## [A problem with the routes](https://www.ruby-forum.com/t/a-problem-with-the-routes/105033)

<div class="topic-metadata">

**Author:** [@Riquelme](https://www.ruby-forum.com/u/Riquelme)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 6:20am UTC](https://www.ruby-forum.com/t/a-problem-with-the-routes/105033 "2007-05-25T06:20:01Z")

</div>

In many case,the non-standard url will cause the RouteError,and the page will show 400.html. but in my recently project,I don’t want this be caused,it’s take the system resources,and the log file turn big very fast. …

---

## [Calling rails from a server-side include?](https://www.ruby-forum.com/t/calling-rails-from-a-server-side-include/105032)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 3:51am UTC](https://www.ruby-forum.com/t/calling-rails-from-a-server-side-include/105032 "2007-05-25T03:51:51Z")

</div>

Hi, 99% of my site is rails, but I have a tiny php section I just cant get rid of (phpbb3). I’ve turned on server-side includes on my site and my phpbb3 template starts with this: … The problem is, rails isn’t rec…

---

## [Reils Conf 2007 links](https://www.ruby-forum.com/t/reils-conf-2007-links/104774)

<div class="topic-metadata">

**Author:** [@dima](https://www.ruby-forum.com/u/dima)\
**Replies:** 6\
**Last updated:** [May 25, 2007, 3:20am UTC](https://www.ruby-forum.com/t/reils-conf-2007-links/104774 "2007-05-25T03:20:47Z")

</div>

Does anybody have links to video or other presentation material from RailsConf for us less fortunate rails lovers?

---

## [Deploying to a mini](https://www.ruby-forum.com/t/deploying-to-a-mini/104980)

<div class="topic-metadata">

**Author:** [@Scott\_Ballantyne](https://www.ruby-forum.com/u/Scott_Ballantyne)\
**Replies:** 2\
**Last updated:** [May 25, 2007, 3:14am UTC](https://www.ruby-forum.com/t/deploying-to-a-mini/104980 "2007-05-25T03:14:47Z")

</div>

I have a mac mini colocated, and I’m having a heck of a time automating deployment. I was wondering if anyone has had success with apache2 in front of a pack of mongrels on a mini. Most of the configurations that I …

---

## [Default values in postgres not working](https://www.ruby-forum.com/t/default-values-in-postgres-not-working/105030)

<div class="topic-metadata">

**Author:** [@Tessa\_Lau](https://www.ruby-forum.com/u/Tessa_Lau)\
**Replies:** 0\
**Last updated:** [May 25, 2007, 2:50am UTC](https://www.ruby-forum.com/t/default-values-in-postgres-not-working/105030 "2007-05-25T02:50:45Z")

</div>

I used a migration to add a column to my database that has a default value and a not-null constraint. Sometimes this default value is honored by postgres, sometimes it is not. When it’s not being honored, I get err…

---

## [Modifying Conditions for has\_many at runtime in controller?](https://www.ruby-forum.com/t/modifying-conditions-for-has-many-at-runtime-in-controller/104906)

<div class="topic-metadata">

**Author:** [@Robert\_Goretsky](https://www.ruby-forum.com/u/Robert_Goretsky)\
**Replies:** 10\
**Last updated:** [May 25, 2007, 1:10am UTC](https://www.ruby-forum.com/t/modifying-conditions-for-has-many-at-runtime-in-controller/104906 "2007-05-25T01:10:36Z")

</div>

I am attempting to bring Rails into my company, and so far I have been able to impress the senior managers with the flexibility / configurability of Rails on ActiveScaffold. I have hit a point now where I am stumped,…

---

## [Request for 127.0.0.1 on remote servers (is it caching?)](https://www.ruby-forum.com/t/request-for-127-0-0-1-on-remote-servers-is-it-caching/104974)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 4\
**Last updated:** [May 25, 2007, 12:06am UTC](https://www.ruby-forum.com/t/request-for-127-0-0-1-on-remote-servers-is-it-caching/104974 "2007-05-25T00:06:31Z")

</div>

Hi everyone, I’m having some trouble understanding what’s going on with my production server. When a page is accessed, sometimes after the page is already displayed (in the log I get a 200 OK message for the entire p…

---

## [How do I show the selected values in options\_for\_select? Not](https://www.ruby-forum.com/t/how-do-i-show-the-selected-values-in-options-for-select-not/105016)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 12:06am UTC](https://www.ruby-forum.com/t/how-do-i-show-the-selected-values-in-options-for-select-not/105016 "2007-05-25T00:06:31Z")

</div>

How do I show the selected values in options\_for\_select? I have a Service model and a AccessControl model. When a user edits a Service I want the services access\_controls to be pre-selected. Models: Service has\_many …

---

## [Jack Slocum's Ext library in Rails](https://www.ruby-forum.com/t/jack-slocums-ext-library-in-rails/104620)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 1\
**Last updated:** [May 25, 2007, 12:01am UTC](https://www.ruby-forum.com/t/jack-slocums-ext-library-in-rails/104620 "2007-05-25T00:01:34Z")

</div>

If anyone is familiar with Jack Slocum’s revolutionary Ext javascript library (http://www.extjs.com) and wishes to use it with Rails (instead of the traditional Prototype / Scriptaculous duo), I’ve create a combinatio…

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

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