views:

28

answers:

0

Hey, I'm very new to rails and have been trying to experiment with using Mongodb on a web app.

I have been following this railscast tutorial here word for word and have been running into issues with it not connecting to my local Mongodb.

I'm sure Mongodb is up and running since mongod shows up in my activity monitor and going to

http://localhost:28017/

shows:

http://imgur.com/KJ0JI.png

The problem is when I go to 0.0.0.0:3000/projects/new and try to add a new project name, this comes up:

http://imgur.com/yxRwC.png

Here is my output when running script/server:

http://imgur.com/A9JTE.png

On my other apps, I have been using sqlite and haven't been having any issues. I tried uninstalling mongodb and running it anyways for testing purposes and I get the exact some issue. I guess Mongodb simply isn't being detected through rails and MongoMapper.

Anyone have any idea how to fix this thing? I spent many hours trying to fix this and resorted to getting a stackoverflow account and asking on here. Let me know if there's anything else anyone needs to possibly help diagnose the problem. Any help would be appreciated.

note: sorry, since I'm new, I can't post pictures of the errors. I hope you can take the time to view them on imgur