F:\Projects\generic\SWA_Rails\vendor\plugins\haml>ll -a
total 1
drwx------+ 2 root Kein  0 Jan 14 23:07 .
drwx------+ 6 root Kein  0 Jan 14 23:07 ..
-rwx------+ 1 root Kein 59 Jan 14 23:07 init.rb

F:\Projects\generic\SWA_Rails\vendor\plugins\haml>cat init.rb
require 'rubygems'
require 'haml'
Haml.init_rails(binding)

===

F:\Projects\shared\jruby-1.1RC1\lib\ruby\gems\1.8\gems\haml-1.8.0>ll -a
total 22
drwx------+  5 root Kein    0 Jan 13 22:58 .
drwx------+ 13 root Kein    0 Jan 13 22:58 ..
-rwx------+  1 root Kein 1062 Jan 13 22:58 MIT-LICENSE
-rwx------+  1 root Kein 6928 Jan 13 22:58 README
-rwx------+  1 root Kein 5134 Jan 13 22:58 Rakefile
-rwx------+  1 root Kein    6 Jan 13 22:58 VERSION
drwx------+  2 root Kein    0 Jan 13 22:58 bin
-rwx------+  1 root Kein   40 Jan 13 22:58 init.rb
drwx------+  4 root Kein    0 Jan 13 22:58 lib
drwx------+  4 root Kein    0 Jan 13 22:58 test

F:\Projects\shared\jruby-1.1RC1\lib\ruby\gems\1.8\gems\haml-1.8.0>cat init.rb
require 'haml'
Haml.init_rails(binding)

===

I know it's not the expert approach :), but I tried

F:\Projects\shared\jruby-1.1RC1\lib\ruby\gems\1.8\gems\haml-1.8.0>mv
init.rb _init.rb_

I get

F:\Projects\generic\SWA_Rails>jruby script/server
=> Booting WEBrick...
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml/template.rb:44:
No such file or directory - F:/Projects/shared/jruby-1.1RC1/lib/ru
by/gems/1.8/gems/haml-1.8.0/lib/haml/../../init.rb (Errno::ENOENT)
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
`new_constants_in'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:318:in
`require'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
`to_proc'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml.rb:762:in
`each'
        from 
F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml.rb:762:in
`init_rails'
        from F:/Projects/generic/SWA_Rails/vendor/plugins/haml/init.rb:3:in
`eval'

===

On the other hand if I try renaming the other init.rb

F:\Projects\shared\jruby-1.1RC1\lib\ruby\gems\1.8\gems\haml-1.8.0>mv
_init.rb_ init.rb
F:\Projects\generic\SWA_Rails\vendor\plugins\haml>mv init.rb _init.rb_

then the .html.haml files are not interpreted correctly, as foreseeable:

[Browser output]
Template is missing

Missing template sessions/new.html.erb in view path
F:/Projects/generic/SWA_Rails/app/views
[/Browser output]

F:\Projects\generic\SWA_Rails\app\views\sessions>ll
total 1
-rwx------+ 1 root Kein 322 Jan 14 23:24 new.html.haml

===

Later I'll try recreating the project from scratch with a say/hello
controller and it's view written in Haml, as well as doing the same
steps in parallel on a ruby/rails combination and post the results.

-- Irfy

2008/1/14, Nathan Weizenbaum <[EMAIL PROTECTED]>:
> It looks like FileUtils doesn't want to copy for some reason. What are the
> contents of
> F:/Projects/generic/SWA_Rails/vendor/plugins/haml/init.rb
> and
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/init.rb?
>
>
> On Jan 13, 2008 2:13 PM, Irfan Adilovic <[EMAIL PROTECTED]> wrote:
> >
> >
> > F:\Projects\generic\SWA_Rails>jruby --version
> > ruby 1.8.6 (2008-01-07 rev 5512) [x86-jruby1.1RC1]
> >
> > F:\Projects\generic\SWA_Rails>jruby -S rails --version
> > Rails 2.0.2
> >
> > F:\Projects\generic\SWA_Rails>jruby -S gem install haml
> --no-ri
> > Successfully installed haml-1.8.0
> > 1 gem installed
> > Installing RDoc documentation for haml-1.8.0...
> > F:\Projects\generic\SWA_Rails>jruby -S haml --rails .
> > Haml plugin added to .
> >
> > F:\Projects\generic\SWA_Rails>jruby script/server
> > => Booting WEBrick...
> >
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/1.8/fileutils.rb:1394:in
> > `fu_each_src_dest': same file:
> >
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml/../../init.rb
> > and
> F:/Projects/generic/SWA_Rails/vendor/plugins/haml/init.rb
> > (ArgumentError)
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/1.8/fileutils.rb:1393:in
> > `fu_each_src_dest0'
> >        from F:/Projects/shared/jruby-
> 1.1RC1/lib/ruby/1.8/fileutils.rb:1393:in
> > `fu_each_src_dest'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/1.8/fileutils.rb:1393:in
> > `cp'
> >        from F:/Projects/shared/jruby-1.1RC1/lib/ruby/1.8/fileutils.rb:382
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
> > `new_constants_in'
> >        from F:/Projects/shared/jruby-1.1RC1
> /lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:318:in
> > `require'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
> > `to_proc'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml.rb:762:in
> > `each'
> >        from
> F:/Projects/shared/jruby-1.1RC1/lib/ruby/gems/1.8/gems/haml-1.8.0/lib/haml.rb:762:in
> > `init_rails'
> >        from
> F:/Projects/generic/SWA_Rails/vendor/plugins/haml/init.rb:3:in
> > `eval'
> >
> > F:\Projects\generic\SWA_Rails>
> >
> > :(
> >
> > -- Irfy
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to