Questions tagged [webrick]

Webrick is a zero-configuration HTTP server stack chiefly used as the web server for the Ruby on Rails framework development and test environments.

WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server. WEBrick features complete logging of both server operations and HTTP access.

A WEBrick server can be composed of multiple WEBrick servers or servlets to provide differing behavior on a per-host or per-path basis. WEBrick includes servlets for handling CGI scripts, ERb pages, ruby blocks and directory listings.

WEBrick also includes tools to run a process as a service and starting a process at a higher privilege level and dropping permissions.

From the version of ruby 1.9.1 Webrick is a part of ruby standard library. More info is on ruby docs. Sources for an older ruby version is on github.

523 questions
0
votes
1 answer

Getting 411 Length Required Error when using remote link with jQuery Mobile inside android device

I'm getting this error when open a jQuery Mobile web with put/post ajax(remote) link inside an android device and trying to click on these link. The problem happens with Rails 3.1 running on WebRick and Passenger. Problem seem to vanish if I use…
Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
0
votes
1 answer

unable to start the rails server

When I try to start my rails server i get this error C:/Ruby187/lib/ruby /gems/1.8/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.8/mysql 2.so: 193: %1 is not a valid Win32 application. - C:/Ruby187/lib/ruby/gems/1.8…
Abhay Kumar
  • 1,582
  • 1
  • 19
  • 45
0
votes
1 answer

Rails Server Not Starting In OSX 10.73

Installed Rails 3.2.3 and MySQL 5.6 fine on my OSX 10.7.3 I created a new project called "simple_cms" and then, in the terminal, tried to launch webrick with "rails server" and got nothing. Hideyoshis-MacBook-Pro:simple_CMS gregpfeffer$ rails…
0
votes
1 answer

Setting up the Webrick to serve to internet my rails app

I try to host my ruby on rails app in my computer in Ubuntu but I cannot get it. I try to port forward from my router settings. I think I successfully forward the ports a source ports 80 - 8080 and destination port 3000. Then I start webrick in…
Eren Golge
  • 802
  • 2
  • 12
  • 27
0
votes
1 answer

Rails URLs Not working

I'm going to try to make a very long story short here. I was building an application in RefineryCMS on an Ubuntu server and everything was working fine until I started getting the following error…
Working Title
  • 254
  • 7
  • 28
0
votes
1 answer

SWFUpload and WEBrick. Problems with upload (error: 2038)

My WEBrick log reads: WARN Could not determine content-length of response body. Set content length of the response or set response#chunked = true I did some searching and found that that error could be because: File size permitted by the server…
Anuj More
  • 122
  • 8
-1
votes
2 answers

When I start the server in Ruby On Rails it exits as soon as it starts and sometimes doesn't even start, just gives an error

This is the error message in Windows: C:\Users\USER\Sites\new_cms>rails s C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogir .rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError) from…
-1
votes
3 answers

View not rendering

I am trying to render a view from the current one using jquery. I am using flexigrid for my project and I want to code for the info button. Here is my view. Using jquery I am calling the following, var name = $('.trSelected .sorted…
Strife
  • 243
  • 7
  • 22
-1
votes
1 answer

How to run .erb files in browser with a customized directory?

How can I run .erb files in the browser? It is not in the Rails framework so I can't run in terminal the "rails server" command. It is like a customized directory with .erb files. This is the directory structure: Do I need a webserver to run it…
marknt15
  • 5,047
  • 14
  • 59
  • 67
-1
votes
1 answer

Webrick Rails Server doesn't run correctly

I have spent the last 6 hours fixing issues like modifying the $PATH, installing Gems to finally get everything as it should be. but after I create the project folder with it's components and trying to run the server, I got this message :- \KAMAL$…
-2
votes
1 answer

linux webrick rails server could not start -- some errors

I've installed Ruby, rails and mysql2 successfully on linux (ubuntu 14.04). Now issue is when I run rails server I get the following errors /home/sharif/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs/runtimes.rb:48:in…
Amjad
  • 1,950
  • 5
  • 26
  • 41
-2
votes
3 answers

Rails 3.2 Routing Error

In my first approach with Rails I have simply create a void SayController and static hello.rhtml view but when the page http://localhost:3000/say/hello started return me a Routing Error like this: No route matches [GET] "/say/hello" Try running rake…
mariobros
  • 859
  • 4
  • 12
  • 31
-5
votes
1 answer

how do I start Webrick server on windows 10?

I am very new to Ruby on Rails. As I was setting up...everthing seem to be going fine until I ran "rails s".Webrik didnt start! my OS is Windows 10. I am using this tutorial http://installfest.railsbridge.org/installfest/windows
1 2 3
34
35