dejan/auto_html — Issue #32: rails 3.2 compatibility
Author: drphaser
Created: 2012-02-15 05:01:24+00:00
State: open

i just upgraded from 3.0.10 to 3.2 and sadly auto_html stopped working. here is the code of my model:

```ruby
auto_html_for :text do
html_escape
lazyimage
youtube(:width => 450, :height => 300)
link :target => "_blank", :rel => "nofollow"
simple_format
end
```

and my view:

```ruby

<%=comment.text_html%>

```

this was working in rails 3.0.10 but when using 3.2 this happens:

> ActiveModel::MissingAttributeError in Posts#show
>
> Showing /Users/phaser/Sites/porlaputa/app/views/comments/_comment.html.erb where line #7 raised:
>
> can't write unknown attribute `text_html'
> Extracted source (around line #7):
>
> 4:
> 5:

> 6:

" id="comment<%=comment.id%>">
> 7:

<%=comment.text_html%>

> 8:

> 9:	<%=comment.vomits.sample()%>
> 10:	<% if comment.user %>