No, you don't. config.gem is sufficient.

On Fri, Apr 16, 2010 at 11:23 AM, Matt Martini <[email protected]> wrote:
> Rhett,
>
> That's great, just what I was looking for.  Tested and works fine.
>
> Also, I did some testing and using a :version in config/environment.rb
> does the right thing also:
>
>    config.gem "haml", :version => '2.2.23'
>
> A related question, if I include the gem (as above) do I need to add the
> the plugin via
>
>    haml --rails /path/to/project
>
>  also?  and visa versa?
>
> Matt
>
>
>
> On Apr 16, 2010, at 1:49 PM, Rhett Sutphin wrote:
>
>> Hi,
>>
>> Generally with rubygems executables you can do this sort of thing:
>>
>> $ haml _2.2.23_ --rails /path/to/project
>>
>> I just tried it and it seems to work fine with haml:
>>
>> $ haml _2.2.14_ --version
>> Haml/Sass 2.2.14 (Powerful Penny)
>> $ haml _2.2.2_ --version
>> Haml 2.2.2 (Powerful Penny)
>>
>> Rhett
>>
>> On Apr 16, 2010, at 12:00 PM, Nathan Weizenbaum wrote:
>>
>>> Hmm... not at the moment. Note that the "haml" executable is chosen by
>>> Rubygems before it runs, so you might be asking Haml 3.0.0.beta.3 to
>>> give you Haml 2.2.23, which it might not know how to do. Although with
>>> a gem command, it might work...
>>>
>>> On Fri, Apr 16, 2010 at 9:51 AM, Matt <[email protected]> wrote:
>>>>
>>>> To clarify my question, when adding Haml to a rails project:
>>>>
>>>>  haml --rails /path/to/project
>>>>
>>>> could I do something like:
>>>>
>>>>  haml --version 2.2.23 --rails /path/to/project
>
> --
> 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].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to