Nope, this:
- content_class ||= ''
.box{html_options}
%div{:class => "#{content_class}"}
=body
If you copy and paste that it should work.
- content_class ||= ''
The dash tells haml that it is code to be executed vice markup. The
rest is Ruby that means: If content_class is nil set it to blank,
otherwise leave it alone.
On Mon, May 18, 2009 at 8:44 PM, mike muldoon <[email protected]> wrote:
>
> My first edge cut, as it were.
>
> I've tried a few permutations of your suggestion, with no luck. Is
> this what you meant?
>
> .box{html_options}
> - content_class ||= "
> %div{:class => "#{ content_class }"}
> =body
>
> I'm unsure what this is meant to do, can you share a clue?
>
> On Mon, May 18, 2009 at 5:38 PM, Carl Fyffe <[email protected]> wrote:
>>
>> FYI, The template is using edge, so things will get broken. Sorry for
>> the confusion.
>>
>> On Mon, May 18, 2009 at 8:37 PM, Carl Fyffe <[email protected]> wrote:
>>> Hmmmm... Looks like Bruno is in the middle of some tweaking :-)
>>>
>>> If you add:
>>>
>>> - content_class ||= ''
>>>
>>> To _box.html.haml you should be able to get it working.
>>>
>>> On Mon, May 18, 2009 at 8:29 PM, Carl Fyffe <[email protected]> wrote:
>>>> I am getting this too... checking into it now...
>>>>
>>>> On Mon, May 18, 2009 at 8:09 PM, angrysponge <[email protected]>
>>>> wrote:
>>>>>
>>>>> fyi:
>>>>> *** LOCAL GEMS ***
>>>>>
>>>>> actionmailer (2.3.2, 2.1.0)
>>>>> actionpack (2.3.2, 2.1.0)
>>>>> activerecord (2.3.2, 2.1.0)
>>>>> activeresource (2.3.2, 2.1.0)
>>>>> activesupport (2.3.2, 2.1.0)
>>>>> aws-s3 (0.6.2)
>>>>> builder (2.1.2)
>>>>> capistrano (2.5.5)
>>>>> cgi_multipart_eof_fix (2.5.0)
>>>>> columnize (0.3.0)
>>>>> daemons (1.0.10)
>>>>> desert (0.5.0)
>>>>> fastthread (1.0.7)
>>>>> gem_plugin (0.2.3)
>>>>> haml (2.0.9)
>>>>> highline (1.5.1)
>>>>> hpricot (0.8.1)
>>>>> htmlentities (4.0.0)
>>>>> linecache (0.43)
>>>>> mime-types (1.16)
>>>>> mongrel (1.1.5)
>>>>> net-scp (1.0.2)
>>>>> net-sftp (2.0.2)
>>>>> net-ssh (2.0.11)
>>>>> net-ssh-gateway (1.0.1)
>>>>> rails (2.3.2, 2.1.0)
>>>>> rake (0.8.4)
>>>>> RedCloth (4.1.9)
>>>>> rmagick (2.9.2, 2.9.1)
>>>>> ruby-debug (0.10.3)
>>>>> ruby-debug-base (0.10.3)
>>>>> sqlite3-ruby (1.2.4)
>>>>> xml-simple (1.0.12)
>>>>>
>>>>>
>>>>>
>>>>> On May 18, 4:59 pm, angrysponge <[email protected]> wrote:
>>>>>> This install succeeds:
>>>>>> rails cetest -mhttp://www.communityengine.org/install_template.rb
>>>>>>
>>>>>> However, after starting the server, the browser reports:
>>>>>> ActionView::TemplateError (undefined local variable or method
>>>>>> `content_class' for #<ActionView::Base:0xb6fdca94>) on line #2 of
>>>>>> vendor/plugins/community_engine/app/views/shared/_box.html.haml:
>>>>>> 1: .box{html_options}
>>>>>> 2: %div{:class => "#{content_class}"}
>>>>>> 3: =body
>>>>>>
>>>>>> Tests also fail to run:
>>>>>> rake test
>>>>>> (in /home/muldoon/rails/cetest)
>>>>>> /usr/local/bin/ruby -I"/home/muldoon/rails/cetest/lib" -I"/home/
>>>>>> muldoon/rails/cetest/test" "/usr/local/lib/ruby/gems/1.8/gems/
>>>>>> rake-0.8.4/lib/rake/rake_test_loader.rb"
>>>>>> /usr/local/bin/ruby -I"/home/muldoon/rails/cetest/lib" -I"/home/
>>>>>> muldoon/rails/cetest/test" "/usr/local/lib/ruby/gems/1.8/gems/
>>>>>> rake-0.8.4/lib/rake/rake_test_loader.rb"
>>>>>> /usr/local/bin/ruby -I"/home/muldoon/rails/cetest/lib" -I"/home/
>>>>>> muldoon/rails/cetest/test" "/usr/local/lib/ruby/gems/1.8/gems/
>>>>>> rake-0.8.4/lib/rake/rake_test_loader.rb"
>>>>>>
>>>>>> My versions:
>>>>>> Ruby version 1.8.8 (i686-linux)
>>>>>> RubyGems version 1.3.2
>>>>>> Rack version 1.0 bundled
>>>>>> Rails version 2.3.2
>>>>>> Active Record version 2.3.2
>>>>>> Action Pack version 2.3.2
>>>>>> Active Resource version 2.3.2
>>>>>> Action Mailer version 2.3.2
>>>>>> Active Support version 2.3.2
>>>>>> Environment development
>>>>>> Database adapter sqlite3
>>>>>>
>>>>>> The database is intact. content_class is mentioned in _box.html.haml,
>>>>>> and 6 files related to tiny_mce.
>>>>>>
>>>>>> Any suggestions, fine peoples?
>>>>>> Mike
>>>>> >>>
>>>>>
>>>>
>>>
>>
>> >
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---