# Problem with Productized Rails Application

**URL:** <https://www.ruby-forum.com/t/problem-with-productized-rails-application/134060>\
**Category:** Rails\
**Created:** [April 7, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/problem-with-productized-rails-application/134060 "2008-04-07T15:09:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soni\_rajesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@soni\_rajesh](https://www.ruby-forum.com/u/soni_rajesh)\
**Post date:** [April 7, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/problem-with-productized-rails-application/134060/1 "2008-04-07T15:09:41Z")

</div>

Hi,

i have a query regarding Productized Rails Application and referring  
[http://wiki.rubyonrails.com/rails/pages/RailsProductGenerator](http://wiki.rubyonrails.com/rails/pages/RailsProductGenerator)

with following gems \*\*\* LOCAL GEMS \*\*\*:

actionmailer (1.3.3, 1.0.1)  
actionpack (1.13.3, 1.9.1)  
actionwebservice (1.2.3, 0.8.1)  
activerecord (1.15.3, 1.11.1)  
activesupport (1.4.2, 1.1.1)  
cgi\_multipart\_eof\_fix (2.5.0)  
chardet (0.9.0)  
ferret (0.11.5)  
fxri (0.3.6)  
fxruby (1.6.12)  
gem\_plugin (0.2.3)  
gruff (0.3.1)  
hoe (1.5.1)  
hpricot (0.6)  
html5 (0.10.0)  
log4r (1.0.5)  
mongrel (1.1.3)  
rails (1.2.3)  
rails\_product (0.5)  
rake (0.8.1, 0.7.3)  
ruby-debug (0.10.0)  
ruby-debug-base (0.10.0)  
rubyforge (0.4.5)  
site\_generator (0.6)  
sources (0.0.1)  
tzinfo (0.3.8)  
win32-api (1.0.0)  
win32-clipboard (0.4.3)  
win32-dir (0.3.2)  
win32-eventlog (0.4.6)  
win32-file (0.5.4)  
win32-file-stat (1.2.5)  
win32-process (0.5.3)  
win32-sapi (0.1.4)  
win32-sound (0.4.1)  
windows-api (0.2.0)  
windows-pr (0.7.1)

Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

i have welcome\_controller.rb in RAILS\_ROOT/app/controller with single

def index  
render\_text “HELLO”  
end

when start webrick server [http://localhost:3000/](http://localhost:3000/)

it says “uninitialized constant WelcomeController”

although i have uncommented following line in config/routes.rb

map.connect ‘’, :controller =\> “welcome”

if i run with [http://localhost:3000/welcome/index](http://localhost:3000/welcome/index)

Routing Error  
no route found to match “/welcome/index” with {:method=\>:get}

Please suggest

---

<div class="post-metadata">

**Author:** ![soni\_rajesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@soni\_rajesh](https://www.ruby-forum.com/u/soni_rajesh)\
**Post date:** [April 7, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/problem-with-productized-rails-application/134060/2 "2008-04-07T15:17:44Z")

</div>

On 7 Apr 2008, at 14:09, Rajesh S. wrote:

> def index  
> render\_text “HELLO”  
> end

(I’m assuming you meant app/controllers). The fact that according to  
the wiki page it doesn’t work with rails 1.0 makes it rather unlikely  
that it works with rails 2.0. In particular it looks like it’s  
fiddling with dependencies, which changed profoundly for rails 1.2

Fred
