Topic: Learning about GEMs, Plugins, & Generator Setup/Install
I've stumbled with these a few times now and I'm wondering if there's a resource someone could recommend that explains how they work. Specifically... the paths they use to find things and any configuration files they use--under windows. When I open the cmd window I still have trouble figuring out what my RAILS_ROOT and RAILS_PATH are... and their not in my env.
For instance, I tried to modify the "trestle" (like scaffold) generator to do things my way... but I couldn't figure out where to put the files to make script/generate find them. I tried 6 different combinations I found online... with no luck:
5. gems ending in _generator
6. built-in ones (inside rails gem)
I tried changing GEM_PATH too.
Recently, I tried to install a plugin--acts_as_favorite and I got this error:
/opt/local/lib/ruby/1.8/open-uri.rb:290:in `open_http': 404 Not Found ...
I even tried installing cygwin, because most of the things I find online talk about setting things up in your .bash_rc file, or some other unix-specific thing. But that only made things more confusing.
So, I'm still trying to figure out where things live and how to get basic rails scripts and stuff to work again. I'm starting to wonder if part of the issue is that I have no "rails/" directory. I used to run all my projects out of C:/ruby/project_name, then created a c:/ruby/projects directory. Maybe it's an issue with subversion.
I feel like I'm spending more time as a sys admin then a developer, and it's not easy to find the documentation for this stuff. Does anyone have a suggestion?