views:

230

answers:

4

How do I add a the http://github.com/technoweenie/restful-authentication/tree/master plugin to my Rails project and the commit it to the git repo ? I need it to be committed with the project.

I have tried a few times but it's ignored by git.

Thanks.

+4  A: 

From the README:

  • either use git clone git://github.com/technoweenie/restful-authentication.git restful_authentication
  • or rename the plugin’s directory to be restful_authentication after fetching it.

Did you do that?

After doing a git clone, you'll want to rm -rf restful_authentication/.git to make your project happy to add it (or use submodules).

Dustin
A: 

Either way git status doesn't report anything that needs to be added, it's like it doesn't see it.

You must have some git ignores set up. I can't reproduce this problem. Here's a full transcript: http://pastebin.com/fc78f7fd
Dustin
A: 

@Dustin has likely nailed your problem.

Also note that if you don't already have a "lib" directory in your project, I found the generator will fail:

ruby script/generate authenticated user sessions

So mkdir lib first.

I posted a narration of restful_authentication + openid that covers these details and may be a little help.

tardate
A: 

thanks, I am not sure what happened but it seems to be ok now :)

Be careful, StackOverflow isn't a forum and replies can get reordered based on voting. If you want to reply to a particular answer then you should use a comment like I am here
Gareth