undefined method `html_safe' for nil:NilClass

550 views
Skip to first unread message

anywho

unread,
Mar 17, 2010, 7:24:44 PM3/17/10
to Haml
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'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/
lib/active_record/query_cache.rb:29:in `block in call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/
lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/
lib/active_record/query_cache.rb:9:in `cache'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/
lib/active_record/query_cache.rb:28:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta/
lib/active_record/connection_adapters/abstract/connection_pool.rb:
365:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/head.rb:14:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
methodoverride.rb:24:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/params_parser.rb:20:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/flash.rb:167:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/session/cookie_store.rb:107:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/cookies.rb:205:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/
activesupport-3.0.0.beta/lib/active_support/callbacks.rb:429:in
`_run_call_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/action_dispatch/middleware/callbacks.rb:44:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/show_exceptions.rb:62:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/
rails/rack/logger.rb:13:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
runtime.rb:17:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
lock.rb:11:in `block in call'",
"<internal:prelude>:8:in `synchronize'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
lock.rb:11:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta/
lib/action_dispatch/middleware/static.rb:30:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/
rails/application.rb:95:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/
rails/application.rb:41:in `method_missing'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta/lib/
rails/rack/log_tailer.rb:15:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
content_length.rb:13:in `call'",
"/Users/daniel/.rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/
handler/webrick.rb:48:in `service'",
"/Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/
httpserver.rb:111:in `service'",
"/Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/
httpserver.rb:70:in `run'",
"/Users/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/webrick/
server.rb:183:in `block in start_thread'"]

Nathan Weizenbaum

unread,
Mar 18, 2010, 1:28:12 AM3/18/10
to ha...@googlegroups.com
Try updating to the latest stable branch of Haml (http://github.com/nex3/haml/commits/stable), and see if the error still occurs.


--
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.


anywho

unread,
Mar 18, 2010, 12:02:20 PM3/18/10
to Haml
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/
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

> > lib/action_dispatch/middleware/callbacks.rb:44:in `call'",...
>
> read more »

Nathan Weizenbaum

unread,
Mar 18, 2010, 5:51:18 PM3/18/10
to ha...@googlegroups.com
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.


--

alexandre fracazu

unread,
Mar 18, 2010, 7:01:36 PM3/18/10
to Haml
haml its not like html, u cant read the documentation in 30 minutes
and says: im know all about haml. Im sorry.


On Mar 18, 6:51 pm, Nathan Weizenbaum <nex...@gmail.com> 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 <eydai...@gmail.com> 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-...>

> > > > lib/action_dispatch/routing/route_set.rb:419:in `call'",...
>
> read more »

anywho

unread,
Mar 19, 2010, 1:10:21 PM3/19/10
to Haml
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 <nex...@gmail.com> 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 <eydai...@gmail.com> 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-...>

> > > > lib/action_dispatch/routing/route_set.rb:419:in `call'",...
>
> read more »

Nathan Weizenbaum

unread,
Mar 19, 2010, 4:37:49 PM3/19/10
to ha...@googlegroups.com
That looks once again like a Bundler issue to me.

>
> read more »

anywho

unread,
Mar 19, 2010, 5:42:08 PM3/19/10
to Haml
I upgraded to the latest version as you suggested. It also only
happens with Haml. If it was a bundler issue, I'd file a bug for it if
I had a clue what it was about. Do you have any ideas what could be
causing it?

Nathan Weizenbaum

unread,
Mar 19, 2010, 5:53:16 PM3/19/10
to ha...@googlegroups.com
I just meant that the rake failure looked like it had to do with Bundler.

Could you try creating a minimal Rails 3 app that demonstrates the issue, so I can see if I can reproduce it?

anywho

unread,
Mar 19, 2010, 6:13:19 PM3/19/10
to Haml
ok. also, for the record, it worked with gem 'haml', but it broke when
I changed to gem 'haml', :git => 'git://
github.com/nex3/haml.git'

> > haml+uns...@googlegroups.com <haml%2Bunsu...@googlegroups.com>.

anywho

unread,
Mar 19, 2010, 6:19:17 PM3/19/10
to Haml
1077 rails testhaml
1078 cd testhaml/
1079 echo "gem 'haml', :git => 'git://github.com/nex3/haml.git'" >>
Gemfile
1080 bundle install vendor/bundle
1081 rake -T
1082 history

pretty easy

> > haml+uns...@googlegroups.com <haml%2Bunsu...@googlegroups.com>.

Nathan Weizenbaum

unread,
Mar 19, 2010, 6:21:21 PM3/19/10
to ha...@googlegroups.com
Sorry, I wasn't clear: the Rake issue isn't the one I want to be able to reproduce. That's what I think is Bundler's issue. I want to be able to reproduce the original issue you had with form_for.

To unsubscribe from this group, send email to haml+uns...@googlegroups.com.

anywho

unread,
Mar 19, 2010, 7:03:24 PM3/19/10
to Haml
ah, ok. I'll try. I still don't see it being a bundler issue when the
other version of haml and all other libraries work fine.

> > haml%2Bunsu...@googlegroups.com<haml%252Buns...@googlegroups.com>

Rhett Sutphin

unread,
Mar 19, 2010, 7:08:01 PM3/19/10
to ha...@googlegroups.com
Hi,

On Mar 19, 2010, at 6:03 PM, anywho wrote:

> ah, ok. I'll try. I still don't see it being a bundler issue when the
> other version of haml and all other libraries work fine.

bundler's behavior for :git included gems is different from the behavior for actual packaged gem, so it's a reasonable thing to suspect.

Rhett

> To unsubscribe from this group, send email to haml+uns...@googlegroups.com.

anywho

unread,
Mar 20, 2010, 7:43:10 PM3/20/10
to Haml

Nathan Weizenbaum

unread,
Mar 20, 2010, 11:17:36 PM3/20/10
to ha...@googlegroups.com
I get a "Template is missing" for users/free when I try to navigate to the root page of that app.

anywho

unread,
Mar 21, 2010, 4:52:49 PM3/21/10
to Haml
Looks like I missed setting the root correctly.

http://0.0.0.0:3000/user_session/new

or set root :to => "user_sessions#new"

On Mar 20, 8:17 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:
> I get a "Template is missing" for users/free when I try to navigate to the
> root page of that app.
>
>
>

> On Sat, Mar 20, 2010 at 4:43 PM, anywho <eydai...@gmail.com> wrote:
>
> >http://rghost.net/download/1208840/d2ec930b075775e901216e7c507bcd4639...

> > > >>> haml%2Bunsu...@googlegroups.com<haml%252Buns...@googlegroups.com>
> > <haml%252Buns...@googlegroups.com<haml%25252Bunsubscribe@googlegroups. com>

Nathan Weizenbaum

unread,
Mar 21, 2010, 6:57:07 PM3/21/10
to ha...@googlegroups.com
All right, I've reproduced it. I'll poke around.

To unsubscribe from this group, send email to haml+uns...@googlegroups.com.

Nathan Weizenbaum

unread,
Mar 21, 2010, 7:38:06 PM3/21/10
to ha...@googlegroups.com
I've pushed a fix for this to stable. I'll release it as part of 2.2.22 some time today.

anywho

unread,
Mar 22, 2010, 12:05:14 AM3/22/10
to Haml
sweet. what was the issue? I assume this will make itself available as
a gem soon?

-d


On Mar 21, 4:38 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:
> I've pushed a fix for this to stable. I'll release it as part of 2.2.22 some
> time today.
>
>
>
> On Sun, Mar 21, 2010 at 3:57 PM, Nathan Weizenbaum <nex...@gmail.com> wrote:
> > All right, I've reproduced it. I'll poke around.
>

> >> > > <haml%252Buns...@googlegroups.com<haml%25252Bunsubscribe@googlegroups. com>

Nathan Weizenbaum

unread,
Mar 22, 2010, 12:18:11 AM3/22/10
to ha...@googlegroups.com
I had set html-escaping on form_for for Rails 3 master, where form_for returns a string. I just needed to have it accept nil as well for purposes of the beta.

To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages