<%=
adminpanel_form_for(
resource,
url: url_for({
controller: params[:controller],
action: :twitter_publish,
id: resource
}),
method: :post
) do |f|
%>
<%= f.text_area :twitter_message, 'id' => "twitter-message-#{resource.id}", 'label' => I18n.t('twitter.message'), value: resource.share_link, rows: 4, maxlength: 140 %>
<% end %>