HAML - style block helpers are deprecated -
i have following view used render without warnings:
#listing -if flash[:notice] .success =flash[:notice] .input-container -form_for @user |f| =f.error_messages =render :partial => 'form', :locals => {:f => f}
but when render view running functional test, following warning:
deprecation warning: - style block helpers deprecated. please use =.
does know warning means?
yeah, instead of:
-form_for @user |f|
use
=form_for @user |f|
in other words, suggests. flip dash equals. new in rails 3.
http://edgeguides.rubyonrails.org/3_0_release_notes.html#action-view (section 7.4.2)
Comments
Post a Comment