Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Error with paper_trail

paper_trail

  • Please log in to reply
No replies to this topic

#1 dailammoc

dailammoc

    Dispatcher

  • Members
  • 38 posts
  • Location/

Posted 06 April 2014 - 09:37 AM

I got the error

<a data-method="post" href="/versions/54/revert" rel="nofollow">undo</a>

when using paper_trail, I tried to fix by adding raw in this code:

        <div id="container">
		<% flash.each do |name, msg|%>
			<%= content_tag :div, raw(msg), :id => "flash_#{name}" %>
		<% end %>

		<%= yield %>
	</div>

but nothing changed. Can someone give another solutions?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users