I'm pretty sure I've made it work in tests before, but it's possible that
I'm crazy. Has anyone else gotten it to work?

On Mon, Jul 12, 2010 at 8:27 PM, Kevin Glowacz <[email protected]> wrote:

> For some reason I can't get any version of rails to load from init.rb or
> rails/init.rb for any non-vendored gem. Have you ever seen this work?
>
> On Jul 12, 2010, at 10:07 PM, Nathan Weizenbaum wrote:
>
> I believe Rails automatically requires either haml/init.rb or
> haml/rails/init.rb in Rails 2.3.*.
>
> On Mon, Jul 12, 2010 at 4:26 PM, Kevin Glowacz <[email protected]> wrote:
>
>> Yes, I have haml 3.0.13 installed as a gem. Everything works as expected
>> unless I remove vendor/plugins/haml/init.rb
>>
>> Could you maybe show me where in the code the gem calls init_rails or
>> require 'template'? As far as I can tell this only happens in init.rb
>>
>>
>> On Jul 12, 2010, at 6:07 PM, Nathan Weizenbaum wrote:
>>
>> Using config.gem should definitely work, and has in the past in my tests.
>> Are you sure you have the Haml gem installed?
>>
>> On Mon, Jul 12, 2010 at 3:12 PM, Kevin <[email protected]> wrote:
>>
>>> The docs seem to indicate that haml should no longer need the file in
>>> vendor/plugins/init.rb with rails, however I can't seem to get haml to
>>> work with out this file. init_rails never seems to be called when I
>>> load the gem only with config.gem 'haml' under Rails 2.3.7 (or 8)
>>> using haml 3.0.13.
>>>
>>> Am I misunderstanding something?
>>>
>>> --
>>> 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] <haml%[email protected]>.
>>> For more options, visit this group at
>>> http://groups.google.com/group/haml?hl=en.
>>>
>>>
>>
>> --
>> 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.
>>
>>
>>
>> --
>> 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] <haml%[email protected]>.
>> For more options, visit this group at
>> http://groups.google.com/group/haml?hl=en.
>>
>
>
> --
> 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.
>
>
>  --
> 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] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

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