Displaying 20 results from an estimated 20000 matches similar to: "Have to restart Webrick when changing a view template/layout"
2006 Apr 28
0
RE: Rails Digest, Vol 19, Issue 784
I am having a bit of trouble with the error. I hava a product and category table and wanting to display the categories in a drop down list. Below is the error I get. Any suggestion on how I can fix this.
undefined method `name'' for #<Category:0x3652448>
9: <select name="product[category_id]">
10: <% @categories.each do |category| %>
11:
2006 Apr 26
0
Unusual WEBrick caching behavior
Has anyone ever seen cases where WEBrick caches pages even though it
isn''t supposed to/isn''t configured to?
I have an application where one of my view templates contains an
<IFRAME>.
This iframe has a "src" attribute that points to a file that I upload to
my RoR server. Then various things happen in the app. and the file is
sometimes overwritten, and then
2006 May 30
5
Implementing HTTPS with WEBrick?
All,
I would like to test some secure pages that I''m developing in my
WEBrick-based development environment.
I''ve done some research and it appears that I need to create a new
command that will start a HTTPS based WEBrick server. Is this correct?
Also, it appears that the https.rb module is not included with the
WEBrick bundled in Rails. So, I will need to go get that
2006 Sep 25
2
Managing requests for static content in WEBrick and Mongrel
All,
Is there a way to set things up so that requests for static files in
either WEBrick or Mongrel will just cause a regular HTTP request and not
cause the dynamic routing-based invocation to occur?
I had an issue where a request for a missing .js file was causing
another request to be registered, thus blowing away my flash data.
I tried to do this in my routing file, but I don''t
2006 Mar 21
3
Do module source code changes require reboot of WEBrick?
Assume that I refactor some code into a module and "require it into" my
controller.
Do I then need to restart my WEBrick server each time that I change the
module?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Nov 23
1
Script to restart webrick
Enjoy this little script to restart webrick:
#!/bin/sh
pid=$(ps -o pid,command | grep ''\<ruby script/server\>'' | awk ''{print
$1}'')
kill -9 $pid
ruby script/server
Run on prompt by entering: sh scriptname.sh
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Mar 22
0
How does WEBrick load Gems requested at runtime?
I am trying to use a Gem in my application.
I have verified that I am "requiring" it correctly in my controller.
When I go to access a name in the Gem, I get an "uninitialized constant"
error.
However, if I wait a few minutes, it seems like the symbol then becomes
available.
Is there some kind of polling going on here in WEBrick where it''s
attempting to discover
2006 Sep 06
1
WEBrick mime-type configuration
Does anyone know how I can get at the guts of how WEBrick handles
mime-types?
I have a suspicion that it is returning an incorrect mime-type in a
response.
Wes
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2011 Aug 15
3
- WEBrick server refuses to launch
Running Ruby 1.8.7, Rails 3.0.7 on a Windows 7 machine - tried going
through an upgrade to Ruby 1.9.2 over the weekend, but ran into
issues, so have since gone back to 1.8.7. After restoring my app and
re-installing all of the gems, the application finally launches with
rails s:
=> Booting WEBrick
=> Rails 3.0.7 application starting in development on http://0.0.0.0:3000
=> Call with -d
2008 Jan 11
8
How do you run WEBrick under Rails 2.x?
It appears that Mongrel is now the default development server for Rails
as of 2.x.
I''m assuming this because I''m unable to run Mongrel (for reasons I don''t
totally understand yet - I am running Windows and I keep getting asked
for MSVCR80.dll which is a _64 bit_ dll on my Win XP machine) and if I
issue ruby script/server, I see the same errors that I get when I try to
2006 May 16
0
Can you run WEBrick with ruby -d somehow?
I have finally gotten to the point where I have to use the debugger to
figure out a class loading problem.
Is there a way to run WEBrick under the debugger (ruby -d)?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Mar 14
0
WEBrick alternate port specification
I''m posting this for the next guy...
To use an alternate port for WEBrick, do
ruby script/server --port=port_num
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Jan 12
3
File Upload Problems With Apache and Lighttpd But Not Webrick...
I am having trouble uploading files through a form when using Apache
(production) or Lighttpd (development). The odd thing is that when I force
script/server to load Webrick, the upload works just fine on the same
code-base.
When it fails, the upload just sits there forever. Some browsers eventually
return an error code, others spin for a long time... Anyway, it never
recovers.
The file is a
2006 Dec 17
1
Markaby template & layout (can't get them to work together)
Hi all,
I am starting a new rails app with the Markaby plugin (had some issues
installing, but think its working).
First, i created an index.mab file for a controller containing:
h1 "First template"
That rendered fine. Also, I do not have a "def index ..." in the
controller.
Then I created an app/layouts/application.mab file. It didn''t get picked
up until after
2010 Mar 24
10
Trouble starting WEBrick server
Hello every body, I just started working on Ruby on Rails and as i am
progressing I noticed that I can not start my WEBrick server on the
Command prompt. The following are the various error messages that I am
going.
Microsoft Windows [Version 6.0.6002]
C:\Users\imedia2\Desktop\test\helloworld>ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on
2006 Dec 08
5
WEBrick development environment not reloading views in Windows
I recently RoR on a machine running Windows 2003 server. When I fire
WEBrick using the development environment, it does not reload the app
with changed views. I have to shut down WEBrick and restart it to see
the changes. Has anyone else had this problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2005 Aug 25
0
multiple refreshs clicks cause errors in WEBrick
Hi all
I am new to rails, so I hope it is not a trivial question...
I am using rails with webrick and MySql4.1 on win XP.
I enter a simple action (with a post method) which fetches some data from a ''users'' table and present it in a rhtml view.
Now when I press the refresh button quickly a few times I get in the command line window errors such as this:
[2005-08-25 17:08:55]
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 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
2007 Jan 24
8
Viewing Rails from non-localhost using WEBrick server
During development, I''d like to see my Rails app from a computer other
than localhost on a Linux system and also want to change the default
port#. I thought this would do it:
Linux server:
$ script/server -b 10.4.1.84 -p 5432
=> Booting WEBrick...
=> Rails application started on http://10.4.1.84:5432
=> Ctrl-C to shutdown; call with --help for options
...
Windows browser URL: