Looking at this snippet:
thufir@arrakis ~/strawr $ thufir@arrakis ~/strawr $ cat app/views/feeds/show.rhtml -n | head -n 36
tail -n 13
24 25 <% if @feed.tags.empty? %> 26 (None)<p> 27 <% else %> 28 <% for tag in @feed.tags %> 29 <%= tag.tag %> 30 <%= link_to 'Remove', { :action => 'remove_tag', 31 :id => @feed, :which_tag => tag.id }, 32 :confirm => 'Are you sure?', :post => true %> 33 <br /> 34 <% end %> 35 <% end %> 36 thufir@arrakis ~/strawr $
http://strawr.googlecode.com/svn/trunk/
I believe that the :post in line 32 is, or will be, deprecated:
Tag Load (0.003368) SELECT tags.* FROM tags INNER JOIN memberships ON tags.id = memberships.tag_id WHERE ((memberships.feed_id = 1)) Tag Columns (0.001263) SHOW FIELDS FROM tags DEPRECATION WARNING: Passing :post as a link modifier is deprecated. Use :method => "post" instead. :post will be removed in Rails 2.0. See Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern. for details. (called from convert_options_to_javascript! at /usr/lib/ruby/gems/1.8/gems/ actionpack-1.13.5/lib/action_view/helpers/url_helper.rb:331)
Do I just make line 32:
:confirm => 'Are you sure?', :method => "post" => true %>
I'm not sure what they're getting at. Yes, I'll read those links in the morning more thoroughly.
thanks,
Thufir