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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -