Displaying 4 results from an estimated 4 matches for "ykxua7oipo9wk0htik3j".
2005 Dec 12
9
Webrick is being stupid...no info on a brand new project
I created a project, made a migration, generated scaffolding...start
up webrick and I get nothing. To simplify things, I just started
another project and generated a controller, still getting nothing.
The index page loads fine, but nothing beyond that. If I go to
anything that should give me a 404, the page is just blank. The
Webrick console just says a 500 (nothing explaining why), and
2005 Dec 15
5
initialize called more than once?
Hi,
In my test case below, it seems that ''initialize'' is called everytime
''hello'' is called. Is this by design, a bug, or my pilot error?
class FooController < ApplicationController
def initialize
print "\n initialize \n"
end
def hello
print "\n hello \n"
end
end
I
2005 Dec 22
8
Payflow Pro (was Re: FatWreck.com - New Rails Site)
Several years ago, before PHP introduced their built-in pfpro functions, I
rolled my own crappy interface, which of course delegated to the commandline
payflow client. I could certainly do the same in Ruby today.
Thinking back on it, I realized at the time, and realize again now, that
delegating this functionality to a commandline app is a security risk unless
you''re the *only* user on
2005 Dec 16
12
validates_presence_of not working
Hi,
I''m new to ruby and rails. I just created a simple update page and the
update works fine if all form fields are filled in. However there is one
field that should never be allowed to be blank. So I put this in my
model:
class Topic < ActiveRecord::Base
validates_presence_of :dr_title
validates_length_of :dr_title, :minimum => 1
So, when I submit the form with a blank