Thanks for the reply but this didn't work. Instead, I wrote this:

<%= form_tag '/sessions' do -%>
  <p><%= image_submit_tag 'login.png', :class => 'login' %></p>
<% end -%>

And it works and the deprecation method is gone.

Thanks!

On Sep 13, 3:53 pm, Greg Donald <[email protected]> wrote:
> On Mon, Sep 13, 2010 at 1:47 PM, rodrigo3n <[email protected]> wrote:
> > Hello everyone, I am using Rails 3 and receiving an deprecation
> > warning when running the specs of my app. The warning:
>
> > ****..*F.DEPRECATION WARNING: <% %> style block helpers are
> > deprecated. Please use <%= %>. (called from
> > <% form_tag 'sessions' do %>
>
> <%= form_tag do %>
>
> <% end %>
>
> --
> Greg Donald
> destiney.com | gregdonald.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to