Which version of Ruby?

Scott

On 7/18/06, Steve Longdo <[EMAIL PROTECTED]> wrote:
> Trac #1005.  For some reason It won't come up though.  I have an update for
> some reason the @article.text_filter is returning a YAML String instead of a
> TextFilter object.  This is probably the culprit for Trac #1006 as well.  I
> confirmed this in the console loading the saved new post(a) and an older one
> that still renders correctly(b):
>
> >> b.text_filter
> => #<TextFilter:0x26569bc @attributes={"name"=>"none", "filters"=>"--- []",
> "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}>
> >> a.text_filter
> => "--- !ruby/object:TextFilter \nattributes: \n  name: none\n  filters: ---
> []\n  params: --- {}\n  description: None\n  markup: none\nnew_record:
> true\n"
>
> Don't see anything that has changed with this in the last few changesets, so
> I am not sure what is up.
>
> In the console I had to do the follwoing actions to get the page to load
> correctly:
> >> a.text_filter_id=1
> => 1
> >> a.text_filter=TextFilter.find 1
> => #<TextFilter:0x250deac @attributes={"name"=>"none", "filters"=>"--- []",
> "id"=>"1", "params"=>"--- {}", "description"=>"None", "markup"=>"none"}>
> >> a.body_html="<p>Steve is LORD!</p>"
> => "<p>Steve is LORD!</p>"
>
>
>
>
> On 7/18/06, Scott Laird <[EMAIL PROTECTED]> wrote:
> > Go ahead and add it.  If nothing else, it has a good stack trace, so
> > it should be easy enough to fix.
> >
> >
> > Scott
> >
> > On 7/18/06, Steve Longdo <[EMAIL PROTECTED]> wrote:
> > > 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="form">
> > > 11: <div><%= @article.full_html %></div>
> > > 12: <p class="meta"><label>Posted:</label> <%=h @
> > > article.published_at.to_formatted_s(:long_weekday) %>
> by
> > > <%=h @article.author %></p>
> > > 13: <p class="meta"><label>Last updated:</label> <%=h
> > > @article.updated_at.to_formatted_s
> > > (:long_weekday) %></p>
> > > 14: <p class="meta"><label>Published:</label> <%=h
> > > (@article.published? ? "Yes" : "No") %></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
> > > _______________________________________________
> > > Typo-list mailing list
> > > [email protected]
> > > http://rubyforge.org/mailman/listinfo/typo-list
> > >
> > >
> > _______________________________________________
> > Typo-list mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/typo-list
> >
>
>
>
> --
>
> Thanks,
> -Steve
> http://www.stevelongdo.com
> _______________________________________________
> Typo-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/typo-list
>
>
_______________________________________________
Typo-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to