# Rails

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

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

---

## [Accessing module from controller](https://www.ruby-forum.com/t/accessing-module-from-controller/187626)

<div class="topic-metadata">

**Author:** [@daveh0](https://www.ruby-forum.com/u/daveh0)\
**Replies:** 2\
**Last updated:** [April 27, 2010, 12:44am UTC](https://www.ruby-forum.com/t/accessing-module-from-controller/187626 "2010-04-27T00:44:14Z")

</div>

I know this is probably something simple that I’m missing. I am trying to call a function that is in a module in /lib, but the controller doesnt seem to be finding it. I have: lib/siteopen.rb: module Siteopen def …

---

## [Logging in Production on Network Solutions](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459)

<div class="topic-metadata">

**Author:** [@jrq](https://www.ruby-forum.com/u/jrq)\
**Replies:** 7\
**Last updated:** [April 27, 2010, 12:42am UTC](https://www.ruby-forum.com/t/logging-in-production-on-network-solutions/187459 "2010-04-27T00:42:53Z")

</div>

Network Solutions is really beginning to try my patience. Can anyone help me with get logs to work in a Production environment hosted on Network Solutions? I’ve edited envionment.rb to include “config.log\_level = :d…

---

## [Understand rails routing](https://www.ruby-forum.com/t/understand-rails-routing/187624)

<div class="topic-metadata">

**Author:** [@got\_nil](https://www.ruby-forum.com/u/got_nil)\
**Replies:** 1\
**Last updated:** [April 27, 2010, 12:11am UTC](https://www.ruby-forum.com/t/understand-rails-routing/187624 "2010-04-27T00:11:51Z")

</div>

Hello, I’m new to rails so this will be a noob question. Let’s say I scaffold sth. named “foos”. Rails generates a controller named foos\_controller.rb with index, show, new, edit, create, update and destroy. The rou…

---

## [Custom db rake task gives 'development database not configured'](https://www.ruby-forum.com/t/custom-db-rake-task-gives-development-database-not-configured/187600)

<div class="topic-metadata">

**Author:** [@David\_van\_Geest](https://www.ruby-forum.com/u/David_van_Geest)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/custom-db-rake-task-gives-development-database-not-configured/187600 "2010-04-26T23:49:00Z")

</div>

Hi all, I’m trying to write a simple custom rake task to easily delete some database records. However when I run it, I get an error ‘development database is not configured’. Here’s the code: lib/tasks/custom.rake r…

---

## [Scott Hughes is out of the office](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/187617)

<div class="topic-metadata">

**Author:** [@Scott\_Hughes](https://www.ruby-forum.com/u/Scott_Hughes)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 11:14pm UTC](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/187617 "2010-04-26T23:14:28Z")

</div>

I will be out of the office starting April 26, 2010 and will not return until May 3, 2010. Please direct any questions you have to Brian Esler or Andy Brymer in my absence. Thank You

---

## [Blog ruby on rails/Django Fastes made](https://www.ruby-forum.com/t/blog-ruby-on-rails-django-fastes-made/187449)

<div class="topic-metadata">

**Author:** [@101155](https://www.ruby-forum.com/u/101155)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/blog-ruby-on-rails-django-fastes-made/187449 "2010-04-26T22:51:24Z")

</div>

Hi I’ve got a little quetion. For school I’ve to make a blog either using ruby on rails or Django. I’ve to do this at home, install the languages, etc. I’ve to make screenshots while running the language and blog. te…

---

## [Uneditable text input field](https://www.ruby-forum.com/t/uneditable-text-input-field/187604)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 3\
**Last updated:** [April 26, 2010, 10:47pm UTC](https://www.ruby-forum.com/t/uneditable-text-input-field/187604 "2010-04-26T22:47:46Z")

</div>

Does anyone know if it is possible to create an uneditable text input field using the form tag helpers?

---

## [Id of new object dynamically created in a nested form](https://www.ruby-forum.com/t/id-of-new-object-dynamically-created-in-a-nested-form/187611)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/id-of-new-object-dynamically-created-in-a-nested-form/187611 "2010-04-26T20:10:37Z")

</div>

In my nested form I have a link to open a popup with selections. When a selection is made, the popup closes and the selection is added to a text box. Because I have objects that can be dynamically created in the form…

---

## [Form id](https://www.ruby-forum.com/t/form-id/187609)

<div class="topic-metadata">

**Author:** [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 7:43pm UTC](https://www.ruby-forum.com/t/form-id/187609 "2010-04-26T19:43:06Z")

</div>

Is there a way to get the id attribute of a object’s form in its own form? For example saying link\_to… :id=\> f.id ?

---

## [Ordering by associated columns (pleeease help)](https://www.ruby-forum.com/t/ordering-by-associated-columns-pleeease-help/187477)

<div class="topic-metadata">

**Author:** [@Sumeet\_P](https://www.ruby-forum.com/u/Sumeet_P)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/ordering-by-associated-columns-pleeease-help/187477 "2010-04-26T18:34:36Z")

</div>

Hi, I am stuck pretty bad please help. any comment is helpful. I have say three models Customer(fields are id, name, cell\_phone, primary\_address\_id) belongs\_to :primary\_address, :class\_name =\> ‘CustomerAddress’, :fo…

---

## [Group countries per continent](https://www.ruby-forum.com/t/group-countries-per-continent/187596)

<div class="topic-metadata">

**Author:** [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Replies:** 1\
**Last updated:** [April 26, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/group-countries-per-continent/187596 "2010-04-26T17:38:23Z")

</div>

Hi guys, I have a table that has a country column (:string). Now I need to group together all the countries that are in Europe. Any ideas on how I would approach this? (quickfix wise) Regards, Vincent

---

## [Nested resources and controllers: I think I'm down the wrong path](https://www.ruby-forum.com/t/nested-resources-and-controllers-i-think-im-down-the-wrong-path/187597)

<div class="topic-metadata">

**Author:** [@grar](https://www.ruby-forum.com/u/grar)\
**Replies:** 4\
**Last updated:** [April 26, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/nested-resources-and-controllers-i-think-im-down-the-wrong-path/187597 "2010-04-26T17:06:56Z")

</div>

Hi, I’m new to nested resources. I’m surprised to find that to make my code work I need to retrieve the parent model in my RESTful controllers for my dependencies. So, for example, let’s say A has\_one B. In controlle…

---

## [Problems installing mongrel in Ruby 1.9.1 on Mac OS](https://www.ruby-forum.com/t/problems-installing-mongrel-in-ruby-1-9-1-on-mac-os/171806)

<div class="topic-metadata">

**Author:** [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Replies:** 7\
**Last updated:** [April 26, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/problems-installing-mongrel-in-ruby-1-9-1-on-mac-os/171806 "2010-04-26T16:58:55Z")

</div>

Hello guys, When I run Â³gem install mongrelÂ², I get the following error: Building native extensions. This could take a while… ERROR: Error installing mongrel: ERROR: Failed to build gem native extension. /usr/lo…

---

## [Help finding database items that lost parent item](https://www.ruby-forum.com/t/help-finding-database-items-that-lost-parent-item/187537)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 6\
**Last updated:** [April 26, 2010, 4:46pm UTC](https://www.ruby-forum.com/t/help-finding-database-items-that-lost-parent-item/187537 "2010-04-26T16:46:11Z")

</div>

I have a table for private messages similar to: PMS: title body sent\_to (foreign key to users table) sent\_from (foreign key to users table) When I originally set it up I didn’t have it automatically a users pm’s w…

---

## [\[jobs\] \[rails\]](https://www.ruby-forum.com/t/jobs-rails/187593)

<div class="topic-metadata">

**Author:** [@ricardo\_porteus](https://www.ruby-forum.com/u/ricardo_porteus)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 2:33pm UTC](https://www.ruby-forum.com/t/jobs-rails/187593 "2010-04-26T14:33:58Z")

</div>

Hi, we are looking for a ROR / Actionscript Master to join our design agency www.recodemedia.com and work remotely on some very exciting web projects. We want a partner will will work and develop and grow with us. We …

---

## [Ruby randomly converting quotes to html](https://www.ruby-forum.com/t/ruby-randomly-converting-quotes-to-html/187554)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-randomly-converting-quotes-to-html/187554 "2010-04-26T14:18:53Z")

</div>

If anyone understands: def some\_method "" end =\> Any idea what could create that strange behavior?

---

## [ActionController::RoutingError](https://www.ruby-forum.com/t/actioncontroller-routingerror/187591)

<div class="topic-metadata">

**Author:** [@felix](https://www.ruby-forum.com/u/felix)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 12:49pm UTC](https://www.ruby-forum.com/t/actioncontroller-routingerror/187591 "2010-04-26T12:49:10Z")

</div>

Hi All, I am just learning Rails. I had encountered a routing error, though I think I have specified the correct rules in the routing.rb. I have attached the code. Please help routing.rb map.connect ‘:controller/:act…

---

## [App to Pick up application release from Git/Capistrano?](https://www.ruby-forum.com/t/app-to-pick-up-application-release-from-git-capistrano/187407)

<div class="topic-metadata">

**Author:** [@Owain](https://www.ruby-forum.com/u/Owain)\
**Replies:** 5\
**Last updated:** [April 26, 2010, 11:34am UTC](https://www.ruby-forum.com/t/app-to-pick-up-application-release-from-git-capistrano/187407 "2010-04-26T11:34:14Z")

</div>

My application is going into user testing and I would like to see which “release” the user has been testing against by the release appearing somewhere on the view. I can then check it on screen prints etc. I am usin…

---

## [Add a new format to locales](https://www.ruby-forum.com/t/add-a-new-format-to-locales/187585)

<div class="topic-metadata">

**Author:** [@inriz](https://www.ruby-forum.com/u/inriz)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 11:00am UTC](https://www.ruby-forum.com/t/add-a-new-format-to-locales/187585 "2010-04-26T11:00:17Z")

</div>

hello list, i try to add a new format to my locales file de.yml i looks like that: de: number: square\_meter: format: unit: ‘m²’ format: “%n %u” precision: 2 separator: ‘,’ delimiter: ‘.’ after that i’ve copi…

---

## [Link to doncumentation on github](https://www.ruby-forum.com/t/link-to-doncumentation-on-github/187582)

<div class="topic-metadata">

**Author:** [@albert](https://www.ruby-forum.com/u/albert)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 9:42am UTC](https://www.ruby-forum.com/t/link-to-doncumentation-on-github/187582 "2010-04-26T09:42:27Z")

</div>

Just a small question, would it make sense to have the readme of the gem at least link to the Rails guide about I18nhttp://guides.rubyonrails.org/i18n.html? This is all completely my personal opinion, but trying to t…

---

## [Absolute beginner](https://www.ruby-forum.com/t/absolute-beginner/187530)

<div class="topic-metadata">

**Author:** [@octopushole](https://www.ruby-forum.com/u/octopushole)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 9:26am UTC](https://www.ruby-forum.com/t/absolute-beginner/187530 "2010-04-26T09:26:04Z")

</div>

I am an absolute beginner. Tried to install RoR on our server. You can view the log at http://docs.google.com/Doc?docid=0AUIy-caPIiXgZDgzaDM0cV8xOTBnZm5ycWZnOA&hl=en In the end, I was expecting some sort of answer t…

---

## [How to pass values to a controller](https://www.ruby-forum.com/t/how-to-pass-values-to-a-controller/187576)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 1\
**Last updated:** [April 26, 2010, 8:52am UTC](https://www.ruby-forum.com/t/how-to-pass-values-to-a-controller/187576 "2010-04-26T08:52:54Z")

</div>

see i defined one method called campaign in the model and through a url i am tryong to pass two parameters like user\_id and campaign\_id into a method called mail\_open\_count. how i can pass 2 that method. def camp…

---

## [Paperclip plugin not working on windows](https://www.ruby-forum.com/t/paperclip-plugin-not-working-on-windows/187579)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 7:09am UTC](https://www.ruby-forum.com/t/paperclip-plugin-not-working-on-windows/187579 "2010-04-26T07:09:06Z")

</div>

the paperclip works on ubuntu but on windows it gives an some error. the error is " There were problems with the following fields: Avatar C:/DOCUME~1/ozone/LOCALS~1/Temp/Water lilies,2700,0.jpg is not recognized by t…

---

## [What is the difference between new and build?](https://www.ruby-forum.com/t/what-is-the-difference-between-new-and-build/197196)

<div class="topic-metadata">

**Author:** [@manoj](https://www.ruby-forum.com/u/manoj)\
**Replies:** 2\
**Last updated:** [April 26, 2010, 6:18am UTC](https://www.ruby-forum.com/t/what-is-the-difference-between-new-and-build/197196 "2010-04-26T06:18:04Z")

</div>

What is the difference between parent.children \<\< child.new and parent.children.build(params\[:child\])

---

## [Rails3: ActiveRecord includes(:relation) not working](https://www.ruby-forum.com/t/rails3-activerecord-includes-relation-not-working/187560)

<div class="topic-metadata">

**Author:** [@Wanderwelten](https://www.ruby-forum.com/u/Wanderwelten)\
**Replies:** 1\
**Last updated:** [April 26, 2010, 5:37am UTC](https://www.ruby-forum.com/t/rails3-activerecord-includes-relation-not-working/187560 "2010-04-26T05:37:53Z")

</div>

Hey everyone, i can’t build AR-Queries with relationships between tables. Here’s a short sample: class Customer \< ActiveRecord::Base has\_many :projects end class Project \< ActiveRecord::Base belongs\_to :customer …

---

## [How to pass session cross different domains?](https://www.ruby-forum.com/t/how-to-pass-session-cross-different-domains/187571)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 26, 2010, 4:28am UTC](https://www.ruby-forum.com/t/how-to-pass-session-cross-different-domains/187571 "2010-04-26T04:28:44Z")

</div>

Now i am working on an cart application, when i add an item to cart(in the domain of http://www.example1.com), and then checkout(in the domain of https://www.example2.com), i still want to get the item from the cart. …

---

## [Has anybody succeed in getting Rails 3 to work in production?](https://www.ruby-forum.com/t/has-anybody-succeed-in-getting-rails-3-to-work-in-production/187563)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 1\
**Last updated:** [April 26, 2010, 12:55am UTC](https://www.ruby-forum.com/t/has-anybody-succeed-in-getting-rails-3-to-work-in-production/187563 "2010-04-26T00:55:40Z")

</div>

Has anybody succeed in getting Rails 3 to work in production? I am trying with Apache 2.2 and Passenger 2.2.12 but no luck. If you have got Rails three to work in production on any server with any set up could you ple…

---

## [Rails 3 Phusion Passenger - Ruby (Rack) application could not be started](https://www.ruby-forum.com/t/rails-3-phusion-passenger-ruby-rack-application-could-not-be-started/187238)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 5\
**Last updated:** [April 25, 2010, 11:41pm UTC](https://www.ruby-forum.com/t/rails-3-phusion-passenger-ruby-rack-application-could-not-be-started/187238 "2010-04-25T23:41:56Z")

</div>

I am getting this message “Ruby (Rack) application could not be started” when I attempt to run my application on Apache with Phusion Passenger. Under Webrick it runs just fine. This is what appears on the screen: Fi…

---

## [Rails3: ActiveRecord includes(:) not working](https://www.ruby-forum.com/t/rails3-activerecord-includes-not-working/187558)

<div class="topic-metadata">

**Author:** [@Wanderwelten](https://www.ruby-forum.com/u/Wanderwelten)\
**Replies:** 0\
**Last updated:** [April 25, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/rails3-activerecord-includes-not-working/187558 "2010-04-25T23:07:24Z")

</div>

class Customer \< ActiveRecord::Base has\_many :projects end class Project \< ActiveRecord::Base has\_many :works belongs\_to :customer end

---

## [Rails 3/Bundler doesn't call rails/init.rb any more?](https://www.ruby-forum.com/t/rails-3-bundler-doesnt-call-rails-init-rb-any-more/187559)

<div class="topic-metadata">

**Author:** [@Wincent\_C](https://www.ruby-forum.com/u/Wincent_C)\
**Replies:** 0\
**Last updated:** [April 25, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/rails-3-bundler-doesnt-call-rails-init-rb-any-more/187559 "2010-04-25T22:41:04Z")

</div>

Just wondering if anyone can confirm this for me. Updating an existing app from 2.3.5 (without Bundler) to 3.0.0b3 (with Bundler) it appears that the “rails/init.rb” file is no longer evaluated for vendored gems any m…

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

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