F:\Projects\generic>ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
F:\Projects\generic>rails --version
Rails 1.2.3
F:\Projects\generic>haml --version
Haml 1.5.2
F:\Projects\generic>rails hamlDemo
create
create app/controllers
...
F:\Projects\generic>haml --rails hamlDemo
C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:1443:in
`complete': invalid option: --rails (OptionParser::InvalidOption)
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1441:in `catch'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1441:in `complete'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1254:in `parse_in_order'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1247:in `catch'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1247:in `parse_in_order'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1241:in `order!'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1332:in `permute!'
from C:/Programme/Ruby/ruby186-25/lib/ruby/1.8/optparse.rb:
1353:in `parse!'
from C:/Programme/Ruby/ruby186-25/lib/ruby/gems/1.8/gems/
haml-1.5.2/lib/haml/exec.rb:20:in `parse!'
from C:/Programme/Ruby/ruby186-25/lib/ruby/gems/1.8/gems/
haml-1.5.2/bin/haml:8
from C:/Programme/Ruby/ruby186-25/bin/haml:16:in `load'
from C:/Programme/Ruby/ruby186-25/bin/haml:16
Any insight on this?
-- Irfy
On Apr 11, 6:57 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Actually, if you use the "haml --rails" functionality, Haml will load
> itself from the gem during the plugin initialization. That way, all you
> need in the plugin directory is init.rb.
>
> - Nathan
>
> Jeffrey Hardy wrote:
> >> Do I always have to install haml seperately as a plugin for my RoR
> >> project, or can I use the installed haml gem within my RoR project
>
> > Yeah, you do. The plugin needs to be installed in order to hook into
> > the Rails internals and enable Haml for your app. You use the Gem
> > when you're outside of Rails.
>
> > /Jeff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---