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
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.
http://stackoverflow.com/questions/12120414/ruined-database-through-rake-dbsetup-ror
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