diff --git a/app/models/post.rb b/app/models/post.rb index 72f5b8298..1cc40926a 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -571,7 +571,7 @@ class Post < ActiveRecord::Base count = Cache.get(count_cache_key(tags)) if count.nil? - count = select_value("SELECT post_count FROM tags WHERE name = ?", tags.to_s) + count = select_value_sql("SELECT post_count FROM tags WHERE name = ?", tags.to_s) end count diff --git a/app/views/post_appeals/_new.html.erb b/app/views/post_appeals/_new.html.erb index ad2bd8dcc..f8ae1090d 100644 --- a/app/views/post_appeals/_new.html.erb +++ b/app/views/post_appeals/_new.html.erb @@ -4,9 +4,9 @@

All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.

- <%= simple_form_for(@post_appeal, :remote => true, :format => :js) do |f| %> + <%= form_tag(post_appeals_path(:format => :js), :remote => true) do %> <%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %> - <%= f.text_field :reason, :size => "40x5" %> + <%= text_area :post_appeal, :reason, :size => "40x5" %> <% end %> diff --git a/app/views/post_flags/_new.html.erb b/app/views/post_flags/_new.html.erb index 726bcb351..b555512ee 100644 --- a/app/views/post_flags/_new.html.erb +++ b/app/views/post_flags/_new.html.erb @@ -20,10 +20,10 @@

Enter a reason:

- - <%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %> - <%= f.input :post_id, :as => :hidden %> - <%= f.text_field :reason %> + + <%= form_tag(post_flags_path(:format => :js), :remote => true) do %> + <%= hidden_field :post_flag, :post_id %> + <%= text_area :post_flag, :reason, :size => "40x5" %> <% end %>