RailsCasts Pro episodes are now free!

Learn more or hide this

codex37's Profile

GitHub User: codex37

Comments by

Avatar

def find_commentable
params.each do |name, value|
if name =~ /(.+)_id$/
return $1.classify.constantize.find(value)
end
end
nil
end

Always raises the exception, it seems it doesn't get the commentable_id parameter, so what can i do to make this work.

Avatar

OK, EHM how can i start:

im newb, but:

I followed your instructions and after i started 'rake db:setup ' MY WHOLE WEBSITE BROKES APART!!! WHAT THE HELL HAPPENEND??? I CANT EVEN SIGN IN OR UP TO ME WEBSITE AND I GET "TEMPLATE IS MISSING" AND WHEN I LOOK IN PGADMIN ALL COLUMNS ARE GONE. YOU HAVE TO HELP ME OR I WILL GO INSANE I SWEAR