Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 9th, 2007, 05:43 PM
Matt1776's Avatar
Matt1776 Matt1776 is offline
Recovering Intellectual
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Orange County, CA
Posts: 1,303 Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 7 h 33 m 23 sec
Reputation Power: 783
Send a message via ICQ to Matt1776 Send a message via Skype to Matt1776
Rails is NOT a lightning fast web development tool

RoR makes you more productive?

I must disagree. Granted my environment may not have been the best, but I can follow directions and this is just absurd.

Ive got the following installed on this machine:

Fedora Core 6
Ruby Version 1.8.4
Gems Version 0.9.0
Rails Version 1.2.3

Everything said it installed fine. I start a new project (in fact i follow the exact directions laid out in the book "agile web development with rails" by the pragmatic programmers series, same guys who did the pick book.

Code:
rails demo


blamo i get all the files, looking good. I create a controller:

Code:
cd demo; ruby scripts/generate controller Say


No problems there either. I go into the file and add a hello method. I then create a template that has some html in it like so:

Code:
vi app/views/say/hello.rhtml


no problems there either. I start up the webserver called WEBrick, go to my ip at port 3000 and I get the welcome to RoR page (yea and apparently im on rails )

I then go to where I should see my page served:

Code:
http://myipaddress:3000/say/hello


and this is what i get from the WEBrick log:

Quote:
#<ArgumentError: Anonymous modules have no name to be referenced by>
["/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:404:in `to_constant_name'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:in `qualified_name_for'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:476:in `const_missing'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:117:in `reset_after_dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:51:in `dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in `service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'", "/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'", "/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'", "/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'", "/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'", "/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'", "/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'", "/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in `dispatch'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59", "/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'", "/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39", "/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'", "script/server:3"]
[2007-05-09 15:30:42] ERROR `/say/hello' not found.
192.168.32.175 - - [09/May/2007:15:30:42 PDT] "GET /say/hello HTTP/1.1" 404 284
- -> /say/hello


I was under the impression this was supposed to help me be more productive. With all the hubabaloo about rails, id expect a little more out of it than this. Ive already wasted 2 hours getting to this point .. the 'gems' interface is a piece of ... also.
__________________
Bugs that go away by themselves come back by themselves
Beware - your loyalty will not be rewarded

Reply With Quote
  #2  
Old May 9th, 2007, 06:54 PM
Matt1776's Avatar
Matt1776 Matt1776 is offline
Recovering Intellectual
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Orange County, CA
Posts: 1,303 Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level)Matt1776 User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 7 h 33 m 23 sec
Reputation Power: 783
Send a message via ICQ to Matt1776 Send a message via Skype to Matt1776
Nevermind.

I did a yum install on rubygems and ruby got the most current versions of both, rinsed and repeated.

everything works flawlessly, must have been something in my environment.

God, im such an asshole
Comments on this post
Joseph Taylor agrees: You *did* come across a little antagonistically

Reply With Quote
  #3  
Old May 9th, 2007, 06:59 PM
Joseph Taylor's Avatar
Joseph Taylor Joseph Taylor is offline
c0der
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2005
Location: Vancouver
Posts: 665 Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level)Joseph Taylor User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 31 m 38 sec
Reputation Power: 153
Those two wasted hours are what I call a "learning curve". Productivity boosts aren't measured by how quickly you get a "hello world" page running. If so, notepad would be king.

(EDIT: I'm graying this out, because I clearly didn't read your post thoroughly enough)

My guess is you forgot to add this to the "Say" controller:

Code:
def hello; end


...By the way, I doubt there's anyone here who cares if you continue to use Rails. If it's not working for you, ditch it.

Last edited by Joseph Taylor : May 9th, 2007 at 07:07 PM.

Reply With Quote
  #4  
Old June 4th, 2007, 12:53 PM
amoo3 amoo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 366 amoo3 User rank is Private First Class (20 - 50 Reputation Level)amoo3 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 3 h 16 m 51 sec
Reputation Power: 9
Actually, I think Rails is pretty damn nice. In two weeks I went from not knowing any rails at all to this .

Granted, its still very simple, I'm very proud of myself because all the kids I work with at school said I'd never get it done in the allotted time, but I did and I laughed at them.
__________________
I have summoned you here for a purpose

Reply With Quote
  #5  
Old June 4th, 2007, 08:44 PM
superjacent superjacent is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Location: Melbourne, Australia.
Posts: 9 superjacent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 41 m 5 sec
Reputation Power: 0
Send a message via MSN to superjacent Send a message via Yahoo to superjacent Send a message via Google Talk to superjacent
Quote:
Originally Posted by amoo3
Actually, I think Rails is pretty damn nice. In two weeks I went from not knowing any rails at all to this .

Granted, its still very simple, I'm very proud of myself because all the kids I work with at school said I'd never get it done in the allotted time, but I did and I laughed at them.

I've checked you beta site, I like it. Considering you're new to RoR as I am, which book or tutorial was your primary source. I've just finished with "Ruby on Rails for Dummies" which answered a lot of the basics, now I'm after something with a bit more detail.

Reply With Quote
  #6  
Old June 6th, 2007, 12:09 PM
amoo3 amoo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 366 amoo3 User rank is Private First Class (20 - 50 Reputation Level)amoo3 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 3 h 16 m 51 sec
Reputation Power: 9
I started with Agile Dev. version 2, as many of my features are similar to those in the Depot program, but Google and various Rails forums helped alot too. I only got to about page 100-150 of Agile Dev. when I started, and I still have to finish the book.

http://www.railsforum.com/
is an awesome Rails forum. I've started about 10 topics in the last two weeks :P

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Rails is NOT a lightning fast web development tool

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap