So…you want to add a module to your ruby class, huh?
Touche! It appears that if you want to add ‘just functions’ here’s how
def a end
b_instance = B.new()
B::CONSTANT # '3'
however if you want to add class functions use extend but define them as normal functions
def class_method end
so it turns out that to enable authorize.net with it, you go to admin/modules and install SIM or AIM. SIM is the ‘standard’ and AIM is actually developed by vger and is ‘on-site you take their credit card here’
The requested URL /store/checkout was not found on this server.Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.means ‘you need to setSubstruct.override_ssl_production_mode = true in your environment.rb (at the bottom where it already is set).
So…you want to put erb into erb itself? erb escaping for itself:use %%<%%= this_stuff_comes_out_as_another_erb_command %>
appdelete is free and uninstall apps on os x.
So…fcgi doesn’t work? Stuck with cgi, as in hostgator? Well you could try this experimental simple_proxy which attempts to (and poorly does) replace fcgi. It also has the added benefit of attempting to rewrite your url’s should you have any that are ‘hard coded’ so that you can use a rails app within a directory.
It is sweet.
To come should I ever be free with my time: auto-starting mongrel, doing some house keeping on it, etc.
To use it in .htaccess
RewriteRule ^(.*)$ forward.php [QSA,L]
(not perfect, I know)
How to make pagination ‘deeper’? — go to crud_helpers.rb, change :per_page
So…mongrel hangs every so often? Are your logs too huge maybe?so you start mysql and it fails? if innodb_log_file_size is smaller than the current log file sizes it will silently quit.
if it doesn’t (at all–500 error) check your error logs, scan all carefully (they’re ordered poorly), see if there is a permissions problem.
If it errs on db half-way through–did you follow the instructions to the letter, so that you have the right environment.rb which defines some constants at the bottom?It just doesn’t start:are you sure it is starting in the right ‘mode’? (development versus production)are you sure the #! all say ruby, in your public directory?It doesn’t show the first page–just a default.Did you copy over the files, exactly as specified?Note it doesn’t work with rails 2.0 yet. rake doesn’t work: use v. 0.7.3 as a last resort, Check your error logs (?)