Hi and thank you Nathan, That does solve the issue. I'm now using gem 'haml', :git => 'git:// github.com/nex3/haml.git' successfully.
However, rake will now fail unless I comment haml out from the gemfile. Any ideas about this one? $ rake -T (in /Users/daniel/km/sio/trunk) /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:32: warning: already initialized constant RAKEVERSION WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:381: warning: already initialized constant EMPTY_TASK_ARGS /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:429: warning: already initialized constant EMPTY /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:939: warning: already initialized constant RUBY /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1004: warning: already initialized constant LN_SUPPORTED /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1213: warning: already initialized constant ARRAY_METHODS /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1216: warning: already initialized constant MUST_DEFINE /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1220: warning: already initialized constant MUST_NOT_DEFINE /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1224: warning: already initialized constant SPECIAL_RETURN /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1230: warning: already initialized constant DELEGATING_METHODS /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1540: warning: already initialized constant DEFAULT_IGNORE_PATTERNS /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1546: warning: already initialized constant DEFAULT_IGNORE_PROCS /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1583: warning: already initialized constant FileList /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1609: warning: already initialized constant EARLY /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/rake.rb:1930: warning: already initialized constant DEFAULT_RAKEFILES /Users/daniel/km/sio/trunk/vendor/bundle/bundler/gems/haml- f80647e55c738bc68fcbb53bae23448ef58de128-master/haml.gemspec:8: warning: already initialized constant HAML _GEMSPEC /Users/daniel/km/sio/trunk/vendor/bundle/gems/tlsmail-0.0.1/lib/net/ smtp.rb:806: warning: already initialized constant SMTPSession /Users/daniel/km/sio/trunk/vendor/bundle/gems/tlsmail-0.0.1/lib/net/ pop.rb:687: warning: already initialized constant POP /Users/daniel/km/sio/trunk/vendor/bundle/gems/tlsmail-0.0.1/lib/net/ pop.rb:688: warning: already initialized constant POPSession /Users/daniel/km/sio/trunk/vendor/bundle/gems/tlsmail-0.0.1/lib/net/ pop.rb:689: warning: already initialized constant POP3Session /Users/daniel/km/sio/trunk/vendor/bundle/gems/tlsmail-0.0.1/lib/net/ pop.rb:702: warning: already initialized constant APOPSession rake aborted! stack level too deep /Users/daniel/km/sio/trunk/Rakefile:10:in `<top (required)>' (See full trace by running task with --trace) On Mar 18, 2:51 pm, Nathan Weizenbaum <[email protected]> wrote: > You need to upgrade your bundler. > > Also, remember to check out the stable branch, which is not the default. > What you've got there is the master branch. > > > > On Thu, Mar 18, 2010 at 9:02 AM, anywho <[email protected]> wrote: > > I've got version 2.2.21 > > > I tried doing > > > gem 'haml', :git => 'git://github.com/nex3/haml.git' > > > but got: > > > $ bundle install > > /Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.5/lib/bundler/ > > installer.rb:81:Warning: Gem::Dependency#version_requirements is > > deprecated and will be remove > > d on or after August 2010. Use #requirement > > Updating git://github.com/nex3/haml.git > > /Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/bundler-0.9.5/lib/bundler/<http://github.com/nex3/haml.git%0A/Users/daniel/.rvm/gems/ruby-1.9.1-...> > > source.rb:242:in `eval': No such file or directory - ./VERSION > > (Errno::ENOENT) > > from (eval):12:in `block (3 levels) in specs' > > from /Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/ > > site_ruby/1.9.1/rubygems/specification.rb:425:in `initialize' > > from (eval):8:in `new' > > from (eval):8:in `block (2 levels) in specs' > > [ ... SNIP ... ] > > > which I don't know what to make of since there's clearly a VERSION > > file in the root folder for your project. > > > I don't know how else to get to this "latest stable" > > > -d > > > On Mar 17, 10:28 pm, Nathan Weizenbaum <[email protected]> wrote: > > > Try updating to the latest stable branch of Haml ( > >http://github.com/nex3/haml/commits/stable), and see if the error still > > > occurs. > > > > On Wed, Mar 17, 2010 at 4:24 PM, anywho <[email protected]> wrote: > > > > Using rails3 and just installed haml and ran haml --rails myapp > > > > > I get "undefined method `html_safe' for nil:NilClass" > > > > > Error when trying to access form_for @user > > > > > The rails error is quite uninteresting and can be seen here: > > > >http://pastie.org/874602 > > > > > I added > > > > > class NilClass > > > > def html_safe > > > > Rails.logger.info caller.pretty_inspect > > > > end > > > > end > > > > > To get some more useful information, and below is the result. I'm a > > > > haml noob and I don't know what to make of this. > > > > > All other pages I have render just fine > > > > > Rendered users/_form.erb (2.0ms) > > > > ["/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.21/lib/haml/ > > > > util.rb:216:in `html_safe'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.21/lib/haml/ > > > > helpers/xss_mods.rb:118:in `form_for_with_haml_xss'", > > > > "/Users/daniel/km/sio/trunk/app/views/users/edit.html.erb:10:in > > > > `_render_template_603321693_2166771908_0'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_view/template.rb:40:in `render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_view/render/rendering.rb:101:in `block in > > > > _render_template'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/notifications/ > > > > instrumenter.rb:18:in `instrument'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/notifications.rb:49:in > > > > `instrument'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_view/render/rendering.rb:98:in `_render_template'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_view/render/rendering.rb:92:in `render_template'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/rendering.rb:84:in `_render_template'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/rendering.rb:65:in `render_to_body'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/layouts.rb:308:in `render_to_body'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/rendering.rb:28:in `render_to_body'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/renderers.rb:46:in `render_to_body'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/compatibility.rb:113:in `render_to_body'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/rendering.rb:49:in `render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/rendering.rb:21:in `render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/localized_cache.rb:39:in `render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:39:in `block (2 levels) > > > > in render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/core_ext/benchmark.rb: > > > > 17:in `block in ms'", > > > > "/Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/ > > > > benchmark.rb:309:in `realtime'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/core_ext/benchmark.rb: > > > > 17:in `ms'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:39:in `block in > > > > render'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:77:in > > > > `cleanup_view_runtime'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/ > > > > lib/active_record/railties/controller_runtime.rb:15:in > > > > `cleanup_view_runtime'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:38:in `render'", > > > > "/Users/daniel/km/sio/trunk/app/controllers/users_controller.rb:48:in > > > > `show'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/base.rb:44:in `send'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/base.rb:44:in `send_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/base.rb:145:in `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/callbacks.rb:18:in `block in process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/callbacks.rb:438:in > > > > `_run__1446808593__process_action__66377272__callbacks'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/callbacks.rb:423:in > > > > `_run_process_action_callbacks'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/callbacks.rb:88:in > > > > `run_callbacks'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/callbacks.rb:17:in `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/rendering.rb:12:in `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/compatibility.rb:66:in `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:29:in `block in > > > > process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/notifications/ > > > > instrumenter.rb:18:in `instrument'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/ > > > > activesupport-3.0.0.beta/lib/active_support/notifications.rb:49:in > > > > `instrument'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/instrumentation.rb:28:in > > > > `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/rescue.rb:8:in `process_action'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/abstract_controller/base.rb:115:in `process'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal.rb:64:in `dispatch'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal/rack_delegation.rb:19:in `dispatch'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_controller/metal.rb:89:in `call'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_dispatch/routing/route_set.rb:27:in `call'", > > > > "/Users/daniel/km/sio/trunk/vendor/bundle/gems/rack-mount-0.4.7/lib/ > > > > rack/mount/recognition/route_set.rb:70:in `block in call'", > > > > "/Users/daniel/km/sio/trunk/vendor/bundle/gems/rack-mount-0.4.7/lib/ > > > > rack/mount/recognition/code_generation.rb:97:in `block in recognize'", > > > > "/Users/daniel/km/sio/trunk/vendor/bundle/gems/rack-mount-0.4.7/lib/ > > > > rack/mount/recognition/code_generation.rb:73:in `optimized_each'", > > > > "/Users/daniel/km/sio/trunk/vendor/bundle/gems/rack-mount-0.4.7/lib/ > > > > rack/mount/recognition/code_generation.rb:96:in `recognize'", > > > > "/Users/daniel/km/sio/trunk/vendor/bundle/gems/rack-mount-0.4.7/lib/ > > > > rack/mount/recognition/route_set.rb:65:in `call'", > > > > "/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/ > > > > lib/action_dispatch/routing/route_set.rb:419:in `call'",... > > read more » -- 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.
