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 _app_views_sessions_new_html_erb___526016660_85924870_644960759 at / home/orygens/code/narciso/app/views/sessions/new.html.erb:9) .F.F......*. This message is about the following code: <% form_tag ''sessions'' do %> <p><%= image_submit_tag ''login.png'', :class => ''login'' %></p> <% end %> This logs in the user who remains at the same path after the login. Do you know how to correct the code so I can ensure this code won''t break my app in the future? Thanks! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Mon, Sep 13, 2010 at 1:47 PM, rodrigo3n <rodrigo3n-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Sep 13, 2010 at 1:47 PM, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
watch this http://railscasts.com/episodes/208-erb-blocks-in-rails-3 On Mon, Sep 13, 2010 at 4:09 PM, rodrigo3n <rodrigo3n-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Mon, Sep 13, 2010 at 1:47 PM, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks! On Sep 13, 7:48 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> watch this > > http://railscasts.com/episodes/208-erb-blocks-in-rails-3 > > > > On Mon, Sep 13, 2010 at 4:09 PM, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > 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 <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Mon, Sep 13, 2010 at 1:47 PM, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.