List Info

Thread: Admin posting broken r1139




Admin posting broken r1139
user name
2006-07-19 00:28:24
Running MySQL/Lightty on r1139.  The following happens after posting through the admin interface.  No textfilter was used/selected.  Not sure if this the same as Trac ticket #948 or not.  Didn't want to enter a ticket if it is the same issue. 

NOTE: The published date was not populated with anything and I entered a past date. ; When I return to the admin/articles page, it is there, but the same error happens after clicking on it.  Also it breaks when trying to load the homepage?

NoMethodError in Admin/content#show

Showing app/views/admin/content/show.rhtml where line #11 raised:

undefined method `filter_text_for_controller' for #<String:0x225e59c>

Extracted source (around line #11):

8:   <h3><%=h article.title %></h3>
9:
10: <div class=&quot;form";>
11: <div>;<%= article.full_html %></div>
12: <p class=&quot;meta";><label>Posted:</label> <%=h article.published_at.to_formatted_s(:long_weekday) %> by <%=h article.author %></p>
13: <p class=&quot;meta";><label>Last updated:&lt;/label>; <%=h article.updated_at.to_formatted_s (:long_weekday) %></p>
14: <p class=&quot;meta";><label>Published:</label> <%=h (article.published? ? "Yes&quot; : "No&quot;) %></p>

#{RAILS_ROOT}/app/models/content.rb:132:in `populate_html_fields'
#{RAILS_ROOT}/app/models/content.rb:130:in `populate_html_fields'
#{RAILS_ROOT}/app/models/content.rb:140:in `html'
#{RAILS_ROOT}/app/models/content.rb:126:in `full_html'
#{RAILS_ROOT}/app/views/admin/content/show.rhtml:11:in `_run_rhtml_admin_content_show'


Looking at the data stored in the table shows that body_html is NULL? ; The textfilter that is stored looks like this:
--- !ruby/object:TextFilter
attributes:
  name: none
 ; filters: --- []
  params: --- {}
  description: None
 ; markup: none
new_record: true

Do I need to add a new ticket to Trac?

--
Thanks,
-Steve
http://www.stevelongdo.com
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )