similar to: webbrick and logger output

Displaying 20 results from an estimated 2000 matches similar to: "webbrick and logger output"

2005 Dec 19
2
Validation that works in the controller
Hi, Is there a way of validating input inside the controller? or an equivalent to ActiveRecord::Validations::ClassMethods.validates_presence_of ? Cheers, -- Colin
2005 Mar 08
3
Configuring WEBBrick for Port 80
I''ve looked everywhere [except the right place], but I can''t find where to change WEBbrick from listening to port 3000 to port 80. Can anyone point me in the right direction. Thanks Neville _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jul 02
1
typo working only when webbrick is running?
hi. i currently have tyop setup on a shared rails hosting server. my problem is that the ''links'' on my blog site are not ''active''. the home page is fine, but when you try to click on the menu, the buttons take you nowhere. but when I start webbrick, the site then becomes fully functional. any ideas? -- Posted via http://www.ruby-forum.com/.
2005 Dec 27
2
Error when starting WebBrick after installing Login Engine.
I''ve installed and configured my app according to the instructions of the README file. When I try to start WebBrick i get the following error: ./script/../config/../config/environment.rb:55: undefined method `config'' for LoginEngine:Module (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'' from
2005 Dec 08
7
Help shut down webbrick on mac?
Hello, I just installed radrails and it will not run the webbrick because a version is already running on my mac. I do not know how to shut down the mac version. Thanks Regards, Frank Rocco farocco-H+0wwilmMs3R7s880joybQ@public.gmane.org
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my controller, all the other actions use the application.rhtml layout, so what i''m doing is ... class SomeController < ApplicationController layout "simple", :only=> :some_action ...... end and the "simple" layout is applied to all the actions, can someone please give me a hint?
2006 Aug 14
8
How search engine friendly are RoR sites?
I am a total RoR virgin, and took my first steps this weekend into the Ruby world. A lot of sites I create need to be as SEO friendly as possible, particularly for google. Before I delve any further, can anyone tell me how friendly the dynamic URLs or if there is the usual rewrite mod for rugby? Thanks Mike -- Posted via http://www.ruby-forum.com/.
2006 Apr 21
4
WebDAV library for fastcgi/webbrick
Hello, I am trying to find a WebDAV library for Ruby that works with fastcgi (production) and Webbrick (development). I''ve found this link which mentions a Webbrick WebDAV library: http://redhanded.hobix.com/inspect/ webrickWebdavHandlerSafelyExtractedFromTheWild.html Unfortunately it sounds limited to Webbrick which will not suit the production environment. Does anyone know of a
2007 May 09
7
Webbrick and/or Mongrels Dies Overnight
I have a SuSE 10.0 server that was first running Webbrick, and now Mongrel. In both cases, I can have them running and used all day. However, either one of them will go unresponsive in the middle of the night for seemingly no reason. Being that I only use Mongrel now, I check the mongrel.log, and nothing unusual there. I check /var/log/ messages, and nothing there. Still, a request to
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc) and I would like to redirect them back to the last page they were at before calling that action. Is there an easy way to do this? -- Posted via http://www.ruby-forum.com/.
2006 Jan 06
2
replace unkown action with 404
is there a way to replace unkown action error with a pretty 404 page ? I set the ErrorDocument 404 in .htaccess, however when someong goes to http://www.mysite.com/bogus i would like it to show a 404 error instead of just "Uknown action". Is this possible with a rescue or something? adam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 11
3
sanitize dangers
I''ve noticed that it is possible to pass javascript unaltered through the sanitize function using CSS. For example: sanitize( "<style type=''text/css''>body{background-image:url(''javascript:window.alert(1)'') }</style>" ) IE will execute the javascript. Firefox will not. I haven''t tried it with any other browsers.
2006 May 25
0
ActiveRecord Base, undefined method in mongrel but works in webbrick
Hey all, I have a problem where for one class in my web application, any of the methods inherited from activeRecord Base do not work using Mongrel, but everything works perfectly using webbrick. Any pointers would be great since I''m rather befuddled. Also, if more information is needed to help figure this out just let me know. thanks, Sean Here are two example error messages: Example
2006 Feb 25
2
A Couple of Questions
Hi All, I have been using Ruby and Rails for only a few short days and I am loving it so far. I have a couple of questions relating to a specific project I am working. 1. I am wondering about sessions expiring after a set period of in activity and what would be the easiest way to set it up. 2. I would like to be able to users on the system. Each of these users has a login of there own. Each
2006 May 14
6
file and directory layout below app/models
Hiall, Is it possible to organize my model files below app/models into subfolders? E.g. I would like to put admin related models into their own subfolder. This kind of structuring works for controllers and views (scaffolding creates the right subfolder-model mappings), but app/models always stays flat. I''d really like to be able to group my code into logical, well packages :-) Yes, I
2007 Feb 23
2
how to remove spaces from phone number
Hi, I need to allow login based on the phone number. During the signup they can give the number in any format with spaces, slash or (). But for storing in database and then during login to compare I just want the 10 digit number. How can I remove the special char from phone number before storing to db ? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
5
simple question
How do I pass parameters from one controller to another during redirect_to command? I want to pass both model and non-model objects. The solution I use is via session, but I rather pass it as parameters to the redirect_to Thanks. -- Posted via http://www.ruby-forum.com/.
2006 May 11
2
pages in /public cant find CSS
Hi everyone, I have a rails project that I''ve been serving via WebBrick at work, and its been working fine (low traffic). For the last few days I''ve been trying to deploy it under Apache which already serves our groups static and PHP pages. I have the dynamic rails part working now, but am having problems with stylesheet references in static pages. My URL using WebBrick was (and
2006 Jan 11
2
Wiki Home Page Has Spam Links
It seems the wiki-spam bot has been at work again. There are numerous hidden links toward the top of the page that might be better gardened out right away, if you know what I mean ;-| -- Posted via http://www.ruby-forum.com/.
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my testing with webbrick and it refuses to display the cached page for a particular action. I''ve modified my paginator helper to put the page parameter in the url so that the paginated page can be used with caching. This works perfectly when the page parameter is in the url (ie browse/2006/2 or