similar to: Fun with Webrick

Displaying 20 results from an estimated 20000 matches similar to: "Fun with Webrick"

2006 Jan 06
5
Routing problems - Apache proxy vs. Webrick direct
I dropped the use of fastcgi because I could not get popen working (see ''[Rails] Apache2 and popen''). It works under WebBrick. Since CGI is too slow, I thought I''d proxy to WebBrick via Apache. I am having routing problems now with escaped slashes in the URL. Here''s my routes.rb: map.connect '''', :controller => "wiki"
2005 Dec 23
8
webrick / winxp won''t stop serving cached file??
Hi Working through the tut material in teh PP book (agile dev with rails) on a laptop running winxp. Creating the "admin" application, things generally work great. Except: at teh end of chapter 6, when we update teh css to improve the look of the page - I copy the new scaffold.css into my working directory, but webrick keeps serving the old css, even after a restart. Very odd. The
2006 Aug 17
6
NameError in AdminController#index building scaffold
I''m a pretty big newbie with ROR, but when following a tutorial I encounter an ugly error when building a scaffold. Here is my environment Dev system: - Windows XP - java version "1.5.0_06" - MySQL java version "1.5.0_06" - Ruby 1.8.4 - Ruby Gems 0.9.0 - Gem install mysql Successfully installed mysql-2.7.1-mswin32 Installing ri documentation for
2006 Apr 05
3
Rails 1.1 and webrick/mysql problems
i just upgraded to rails 1.1 yesterday and since then i could?nt make it work with mysql, for example i have my database "todo" and one table "todos", i create the app and generate the model but when i try to generate the scaffold with "ruby script/generate scaffold Todo Todo" i get this error " error Before updating scaffolding from new DB schema, try
2005 Apr 16
2
[brian-DcfkaLM1YyUyJZ9hMiHtYPC9HSW9iNxf@public.gmane.org: WEBrick error]
Hello All-- I am brand new to Ruby on Rails. I have downloaded the most recent stable versions. I do see the congrats page, but I am receiving an error in WEBrick when connecting to my first page: Rails application started on http://0.0.0.0:3000 [2005-04-15 19:34:59] INFO WEBrick 1.3.1 [2005-04-15 19:34:59] INFO ruby 1.8.2 (2004-12-25) [i686-linux] [2005-04-15 19:34:59] INFO
2006 Mar 07
2
webrick RoutingError
problem: webrick will start a rails server, but I cannot access my application. I get the error: Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006) Parameters: {} ActionController::RoutingError (Recognition failed for "/keywordeditor"): my application is called keywordeditor. I am starting the server from the correct place with the correct command (I already
2006 Feb 26
2
Help - WEBrick won''t start - "Bad file descriptor" error
I have been working for a few days on a new (Windows) system, and suddenly WEBrick won''t start. Full error text is at bottom of message. It began after I followed Brian Hogan''s (terrific!) instructions for setting up Eclipse w/Rails in Windows (http://www.napcs.com/howto/railsonwindows.html). The server started fine from w/in Eclipse when I reached that part of the instructions,
2006 Aug 13
5
Newbie question: scaffold not working
I went through a tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 to get started with RoR. I really like the idea of the scaffold construct, but I can''t seem to get it to work the way it was described in the tutorial. I''ve got a mysql database that is properly configured, and a table called ''quotes'' with a column called
2005 Mar 19
2
routing problem 1.8.2/0.10.1/webrick?
I seem to have come to a strange problem getting started on rails. I had everything working in a virtual machine and then set up a seperate machine just for rails developement. It now seems something is broken a little. ruby 1.8.2, rails 0.10.1, postgres, using webrick: i created a table "users", then "generate scaffold User" view localhost/users works fine, shows the
2006 Nov 04
2
strange errors in dev.log and webserver log
Hi guys, I have encountered a strange error in one of my applications. The details are the following: The application is a very simple one, I have one model, Cards, it has some pretty basic stuff, some after_save methods for saving uploaded files to their places. I have an UI where I can manage the Card records, with the default methods, including ''edit'' cards_controller.rb:
2008 Jan 18
15
scaffold :product missing in Rails 2.0.2 version of depot tutorial?
I am getting an error when I try to run the code for the depot application (page 67 in the Agile Web Development on Rails book, 2nd edition). I built the complete depot app with Rails 1.2.6, and all worked well. I then updated to Gem 1.0.1 and RoR 2.0.2, and attempted to repeat the tutorial, and got this strange behavior. I used "rails depot --database=mysql" because I have not
2008 Feb 21
1
Creating incorrect plurals when generating scaffold
Preface: I''m trying to find my way through the "Build Your Own Ruby on Rails Web Application" book. I''m completely new to programming and am having a hard time figuring out the differences between rails 2.0.2 and what''s in the book so please forgive me if this is a stupid question. I''m confused because I finally thought I''d figured out the
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition". In Chapter 11, Iteration C2: Adding a Page Layout 1 <!DOCTYPE html> - <html> - <head> - <title>Pragprog Books Online Store</title> 5 <%= stylesheet_link_tag "scaffold" %> - <%= stylesheet_link_tag "depot", :media => "all" %> - <%=
2006 Aug 25
0
Re: login sugar
Well, it turns out that this piece of software requires that a new user call the welcome action. The welcome action changes the user''s state to verified. Once the user is verified, he will be allowed to attempt authentication. The login page actually states this which is useful to me once I read it. I get the URL to the welcome action from the e-mail sent out or the development.log
2006 Aug 01
1
Missing flash.swf in .rhtml page in WEBrick dev environment?
So I''m trying to create a dashboard that displays data pulled in through RoR. Some data populates table rows and other data I''m trying to feed into an Adobe Flash swf file. I have the path correct to my swf file (I can it being accessed in Safari activity window) but it''s not rendering. When I try to access the file directly within the :3000 environment I get
2007 May 16
0
Unknown action, No action responded to world
<http://localhost:3000/hello/world> gives: "Unknown action No action responded to world" I''m following along with <http://wiki.rubyonrails.org/rails/pages/ Tutorial> and what stands out are statements like: "Now take a look at app/controllers/hello_controller.rb." Which doesn''t exist for me, I had to create multiple directories. I
2006 Apr 07
0
webrick, cross-thread violation on rb_thread_schedule()
Hi all, Anyone else seen this? Although it happened while serving Rails, I figured a core dump caused by webrick should be posted to ruby-talk as well. It happened after I hit Ctrl-C to kill the webrick server, after a failed attempt to invoke a web service through a web page. Below are the last two log entries from the development.log file. Any ideas? Dan >/opt/bin/ruby
2006 Oct 17
5
lighttpd exits, don't know why
Hi, I''m new to Rails and was trying out the tutorial that they give on the apple website http://developer.apple.com/tools/rubyonrails.html I installed everything including lighttpd, and I got up to the point where I want to create my first record. When I hit the ''create'' button, lighttpd quits. If I have the server running as a foreground process I get this message
2006 Jun 21
1
WEBrick won''t answer
Hi I''m starting with RoR, trying to get things working. I''m following the onLamp tutorial for my first steps. At the point where i''m supposed to start the server for the first time i''m not getting any further. WEBrick seems to work: ======================================= Microsoft Windows XP [versie 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
2006 Feb 23
4
MySQL Duplicate Key Error
I am a newbie and I am running into a problem which I cant understand. I have a table called ''privileges'' which has the following fields CREATE TABLE `sdqualplanner`.`privileges` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(20) NOT NULL default '''', `description` varchar(100) NOT NULL default '''', `section_id`