# Install Haml in vendor/gems under Windows

**URL:** <https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140>\
**Category:** Rails\
**Created:** [July 3, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140 "2008-07-03T20:08:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoopzoop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/59ef9b/32.png) [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Post date:** [July 3, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140/1 "2008-07-03T20:08:28Z")

</div>

Following this blog entry →

> **[Vendor Everything — err.the\_blog](http://errtheblog.com/posts/50-vendor-everything)**
>
> Err the Blog: Ruby and Rails from the front.

I am trying to install Haml in vendor/gems on a Windows environment.  
What I did was

my\_project\vendor\gems\gem fetch haml  
Downloaded haml-2.0.1

my\_project\vendor\gems\gem unpack haml-2.0.1.gem  
Unpacked gem: ‘my\_project/vendor/gems/haml-2.0.1.gem’

The next step in the install instructions (http://  
[haml.hamptoncatlin.com/download/](http://haml.hamptoncatlin.com/download/)) is

haml --rails path/to/app

Where is this haml command supposed to exist?  
Is it the haml.rb in my\_project/vendor/gems/haml-2.0.1/lib?  
I tried

my\_project\vendor\gems\haml-2.0.1\lib\ruby haml.rb --rails …/…/…/…

and

my\_project\ruby vendor\gems\haml-2.0.1\lib\haml.rb --rails .

Both do not generate any output.  
I understand there should be generated a init.rb in the vendor/plugins  
directory but it’s empty.  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![zoopzoop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/59ef9b/32.png) [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Post date:** [July 4, 2008, 3:57pm UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140/2 "2008-07-04T15:57:45Z")

</div>

Is there any significant difference in putting Haml in vendor/gems vs  
keeping it in vendor/plugins [under git submodule]? I know the  
recommended manner is to use the gem. Just wondering if there’s  
anything noticeably different. [And too lazy to suss it out for  
myself.]

RSL

---

<div class="post-metadata">

**Author:** ![zoopzoop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/59ef9b/32.png) [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Post date:** [July 4, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140/3 "2008-07-04T16:05:21Z")

</div>

one difference is that when you do gem update the plugins dont get  
updated you have to go into each and evry one of them in each and  
every one of the rails projects you have done and type svn up.

---

<div class="post-metadata">

**Author:** ![zoopzoop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/59ef9b/32.png) [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Post date:** [July 4, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140/4 "2008-07-04T17:39:14Z")

</div>

if you’re vendoring rails, you wouldn’t want an automatically updated  
haml either though. and freezing haml to vendor seems much like using  
it as a plugin. just my take.

RSL

---

<div class="post-metadata">

**Author:** ![zoopzoop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/59ef9b/32.png) [@zoopzoop](https://www.ruby-forum.com/u/zoopzoop)\
**Post date:** [July 4, 2008, 10:51am UTC](https://www.ruby-forum.com/t/install-haml-in-vendor-gems-under-windows/142140/5 "2008-07-04T10:51:00Z")

</div>

haml is an executable you “just” type in the root of your rails app

haml --rails .

or one directory up

haml --rails name\_of\_folder\_app\_is\_in

hope it helps

On Jul 3, 7:07 pm, zoopzoop [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Following this blog entry → [Vendor Everything — err.the\_blog](http://errtheblog.com/posts/50-vendor-everything)  
> I am trying to install Haml in vendor/gems on a Windows environment.  
> What I did was
> 
> my\_project\vendor\gems\gem fetch haml  
> Downloaded haml-2.0.1

you dont need to do this explicitely,

you can just do gem install haml

> my\_project\vendor\gems\gem unpack haml-2.0.1.gem  
> Unpacked gem: ‘my\_project/vendor/gems/haml-2.0.1.gem’
> 
> The next step in the install instructions (http://  
> [haml.hamptoncatlin.com/download/](http://haml.hamptoncatlin.com/download/)) is
> 
> haml --rails path/to/app
> 
> Where is this haml command supposed to exist?

windows/system32 i think
