Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Mongoid? #170

Open
PragTob opened this issue Aug 29, 2013 · 13 comments
Open

Move to Mongoid? #170

PragTob opened this issue Aug 29, 2013 · 13 comments

Comments

@PragTob
Copy link
Member

PragTob commented Aug 29, 2013

From what I hear around MongoDB mongoid is by far more actively developed and mongo_mapper is behind by a fair bit. The mongoid maintainer also works pretty closely with the people from the MongoDB company (formerly known as 10gen).

I think at one point or another, moving over the mongoid would be well worth it.

Thoughts?

@jacqueline-homan
Copy link

I like that idea. BTW, I am signed up for two upcoming free courses at 10gen for Mongo because I need to learn Mongo stuff anyway.

@jacqueline-homan
Copy link

BTW, still having problems with getting app to run when firing up the rails server. Here's the Gist of the error I get:

https://gist.github.com/jacqueline-homan/6384497

Now, the way I have fixed it temporarily just so I could work on the project was to uncomment the secret token string, and comment out the string that puts the token key in an environment variable. But this is not good for security reasons. Is there a better way to handle the secret token for the app in Rails 3.1.11 (the app's Rails version we are using right now)?

@steveklabnik
Copy link
Member

Not opposed.

@steveklabnik
Copy link
Member

@jacqueline-homan it should just work, hm.

@jacqueline-homan
Copy link

Well it's not, Steve.

@PragTob
Copy link
Member Author

PragTob commented Aug 30, 2013

@jacqueline-homan do you have the latest version from master? E.g. does your config/initializers/secret_token.rb look like this and do you have a config/config.yml.sample ?

@steveklabnik
Copy link
Member

@jacqueline-homan I know, I'm just saying 'bummer'!

@jacqueline-homan
Copy link

@PragTob , No, I don't have a config/config.yml.sample file.

@PragTob
Copy link
Member Author

PragTob commented Sep 1, 2013

@jacqueline-homan then you do not have the most current version of hackety-hack.com - I fixed something regarding this on master. I don't know what your current setup is but you should try to the get the newest changes e.g. ``git pull upstream master, where upstream is the remote of this repository. E.g. git remote add upstream git@github.com:hacketyhack/hackety-hack.com.git` and then do that. Hope that helps.

@jacqueline-homan
Copy link

I have been struggling over the weekend trying to get this to work, but can't seem to get the repo you've mentioned:

➜ hackety-hack.com git:(rails-composer) ✗ git pull upstream master
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
➜ hackety-hack.com git:(rails-composer) ✗ git remote add upstream git@github.com:hackety-hack.com.git
➜ hackety-hack.com git:(rails-composer) ✗ git pull upstream master
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
➜ hackety-hack.com git:(rails-composer) ✗

@jacqueline-homan
Copy link

And when I tried to install it via git clone, I had to run 'bundle' because not all the gems wanted to behave themselves and install. But now having re-installed the project copy it this way, I finally DO have the correct filed that Tobi was referring to.

@PragTob
Copy link
Member Author

PragTob commented Sep 3, 2013

Good that you have it now :-)

You entered one line incorrectly (at least according to your log), it should be:

git remote add upstream git@github.com:hacketyhack/hackety-hack.com.git

(the hacketyhack/ was missing)

@jacqueline-homan
Copy link

I know, I caught it when I went to look at my .git/config file after the fact. (Hindsight is always 20/20).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants