similar to: eRuby & Rails: Not Compatible

Displaying 20 results from an estimated 600 matches similar to: "eRuby & Rails: Not Compatible"

2006 Jun 30
2
Eruby.import -> "uninitialized constant" error
I''m working on porting a dynamic website done in PHP over to mod_ruby. I have everything set up and working nicely (I can make a .rhtml page, put ruby code between <% %> and it works etc), but when I try to use "Eruby.import" as a sort of analog to PHP''s "require_once()", I run into trouble. 1) eruby is in my cgi-bin 2) here''s a sample of
2008 Sep 04
1
actionmailer sends from commandline but not from web
Hello all, I''m having trouble with this simple email class I made for postbacks. When I run this from the command line an email is sent, however when I access this .rb file through a browser nothing happens. ------------------------- #!/usr/bin/ruby require "rubygems" require "action_mailer" ActionMailer::Base.delivery_method = :smtp
2005 Apr 08
0
switch mod_ruby to fastcgi but still use eruby?
Hello there list- I have a question I hope someone can answer. I have a Debian server that currently has mod_ruby and eruby installed and working great for the last year or so. I also have one rails app working great on this box. My question is this: I want to switch to fastcgi so i can have more than one rails app, but there are already many scripts using eruby with no framework at all just
2005 Dec 14
14
Install problems: R-o-R on Debian with mod_ruby
Hello, I have tried to setup Ruby-on-rails on my debian Linux machine and can not get it to run. Maybe someone can help. The following was installed already: - apache2 2.0.54 (and PHP5) - Postgresql 8.1 Now, having the ''unstable'' branch in my /etc/apt/sources.list I did: apt-get install libapache2-mod-ruby and Apache reports a "mod_ruby/1.2.4 Ruby/1.8.4"
2007 Oct 01
1
Getting started on win32 - without Rails.
Hi, I''m trying to get started developing my first ruby-powered web-app. I wont be using Rails for this, at least I don''t see any reason why I should. However, the "getting started" sections in the documentation only shows you how to start a Rails application. My mindset comes from PHP/JSP-type languages where you embed code into HTML. It seems the way to do this with
2008 Oct 11
5
Rails + Apache2 + Balancer Manager - PHP doesn't work
Hi I have a Debian Server and I managed that Ruby works with Apache2 and the Balancer Manager that listen to the Mongrel server. The Problem is that PHP files don''t work anymore. How do I have to configurate the Balance Manager that PHP is working again like without the Balance Manager? Greetings Andi -- Posted via http://www.ruby-forum.com/.
2007 Sep 28
2
RoR uses something rather than erb or eRuby?
it seems that RoR doesn''t use erb or eRuby to generate its output for rhtml? the program erb and the description of eRuby at http://www.eruby.info both said that <% print "foo bar" %> or <% puts "hello" %> will be placed into the output... but currently for RoR, it won''t... only <%= expr %> is doing it and it cannot be print or
2006 Jan 03
2
Rails is slow on Apache !!!
Hi , I have rails running on my development machine. I have installed mod_ruby and set up the httpd.conf file to add handlers for .rb files. But the speed I get is still slow compared to webrick which is blazingly fast. I have 2 questions 1. How do I determine if mod_ruby is loaded and is being used to run my ruby scripts ? 2. Which of these fcgi /mod_ruby is faster ? Thanks vivek --------------
2005 Aug 03
0
Apache::RailsDispatcher for mod_ruby
Hi, I wrote Apache::RailsDispatcher to run Rails applications on mod_ruby. http://blog.shugo.net/articles/2005/08/03/running-rails-on-mod_ruby Apache::RailsDispatcher can run multiple applications in the same process. It works like this: * require loads libraries into the top level, and they are shared with all applications. * require_dependency loads libraries into an anonymous
2006 Jun 22
2
eRuby/erb
Hello. Prospective Mongrel user here. Can Mongrel act as a server for eruby or erb files? Example: <html> <body> <p>The time is <%= Time.now %></p> </body> </html> Pistos
2006 Apr 27
6
Why not mod_ruby?
Hi! I''ve understood that the mod_ruby apache module is not recommended for running Ruby on Rails applications. But I haven''t found any information as to why that is so. Please enlighten me. And could you point me to the (currently) prefered production environment. (That can handle both RoR and PHP sites). Thank you and best regards Hans-Eric Gr?nlund -- Posted via
2005 Oct 17
2
What to install/configure?
Hi railers, (railers? Rails-ers? How do you folks refer to yourselves?) I''m brand spankin'' new to most of this. I''m just learning ruby, just learning rails, just learning MySQL, and really just learning about Apache/CGI-type stuff. I have a long background with UNIX sysadmin and scripting (lots and lots of Perl and Bash), so the ruby is coming fast (and
2006 Aug 23
12
mod_ruby and rails
Can rails run under apache and mod_ruby? How? -- 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, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2008 May 02
6
looking for Mod_Ruby and easy Deployment Options? Sign Here
Hi, http://www.ruby-forum.com/topic/151662#669164 Hi, Please read more on the above link first, which is available in this section of Ruby on Rails. It will give you a clear understanding of Deployment scenario The Author of that thread and Me too, are frustrated with Lack of Shared Hosting and Tough Deployment Scenario, since nothing is shaping up. We do not want to get carried away with
2010 Nov 20
0
Enabling preprocessing in Erubis makes views much faster
I wrote a 5 line hack that you can drop into your initializers directory to enable preprocessing in Erubis. This will run code in < %=== %> brackets at compile time making views considerably faster for rails helpers that only need to be evaluated once instead of on each render (the Erubis docs mention 20-40% speed increase but obviously it depends on the amount you precompile). For example:
2006 Dec 16
1
Big Newbie - FreeBSD Apache2 & Rails?
Hello: I need some basic help. I have a server on which I want to run rails. It''s a freeBSD server with a current port of rails and a lot of other things. I''m a relative unix newbie too so there are some big barriers to entry here: Here''s what I''ve done 1. gem installed ruby 2. gem installed rails 3. gem installed mongrel I''ve also used
2005 Dec 04
10
web server q -- playing nice w/ PHP
I have a webserver that''s happily running apache2 and PHP. I''d like to deploy a site that I wrote using RoR on that same server but read that there might be some conflicts with PHP and RoR trying to access the same MySQL database. How real are those conflicts? Could I mess up my running PHP site if I install mod_ruby and try to use Apache2? Would I be better off
2005 Aug 11
6
Need just a little help to start a rails app
I''m very new to Ruby and RoR, have been trying to get it working with no success. I''m on Ubuntu, installed Rails correctly, run scripts for model, controller and scaffold no problem, installed fcgi which now appear in apache header. When I point browser to http://localhost/tada/public/category I get: Not Found The requested URL /tada/public/category was not found on this server.
2005 Aug 16
9
Needed - a step by step WAMP installation of Rails
I am finding the installation process for Rails a bit confusing. First of all I want to use: Windows 2000 Apache 1.3+ MySQL The above is accomplished with WAMP5 from wampserver.com The problem is that there is no complete step-by-step for installation in this enviroment. The wiki instructions hop around from One-click to Apache.conf and other items. Installing CGI support for languages on
2005 Mar 02
4
Development without server restart?
I thought that Rails was supposed to allow development of an application *without* having to restart the webserver? I know this works in WEBRick ... but this doesn''t seem to be the case in Apache (linux). Am I missing something here, or does this only work in webrick? I suppose one should argue that for development you should just use webrick, but this wasn''t an option for me