List Info

Thread: Admin posting broken r1139




Admin posting broken r1139
user name
2006-07-19 03:17:48
12-207-207-84:~ rhesus$ ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0]

Did anything change in the admin code besides the css?

On 7/18/06, Scott Laird <sigkill.org">scottsigkill.org> wrote:
Or, more explicitly, are you sure that you aren't running Ruby 1.8.3?


Scott

On 7/18/06, Scott Laird <sigkill.org">scottsigkill.org> wrote:
>; Which version of Ruby?
>
>
> Scott
>
> On 7/18/06, Steve Longdo < gmail.com">steve.longdogmail.com> wrote:
>; > Trac #1005.&nbsp; For some reason It won't come up though.&nbsp; I have an update for
> > some reason the article.text_filter is returning a YAML String instead of a
> > TextFilter object.&nbsp; This is probably the culprit for Trac #1006 as well. ; I
&gt; > 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"=&gt;"--- []",
> > "id&quot;=>&quot;1", "params"=&gt;"--- {}", "description&quot;=>&quot;None";, "markup"=&gt;"none"}>;
> > >> a.text_filter
> > => "--- !ruby/object:TextFilter \nattributes: \n &nbsp;name: none\n&nbsp; filters: ---
> > []\n  params: --- {}\n  description: None\n&nbsp; markup: none\nnew_record:
&gt; > true\n&quot;
> >
> > 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
&gt; > => 1
> > >> a.text_filter=TextFilter.find 1
> > => #<TextFilter:0x250deac attributes={"name"=>;"none", "filters"=&gt;"--- []",
> > "id&quot;=>&quot;1", "params"=&gt;"--- {}", "description&quot;=>&quot;None";, "markup"=&gt;"none"}>;
> > >> a.body_html="<;p>Steve is LORD!</p>"
> > => "<p>Steve is LORD!</p>"
> >
> >
> >
> >
> > On 7/18/06, Scott Laird <sigkill.org">scottsigkill.org> wrote:
&gt; > > Go ahead and add it. &nbsp;If nothing else, it has a good stack trace, so
> > > it should be easy enough to fix.
> > >
> > >
> > > Scott
> > >
> > > On 7/18/06, Steve Longdo < gmail.com">steve.longdogmail.com> wrote:
>; > > > Running MySQL/Lightty on r1139.&nbsp; The following happens after posting
&gt; > through
&gt; > > > the admin interface.  ;No textfilter was used/selected. &nbsp;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. &nbsp;Also it breaks when trying to
> > load
> > > > the homepage?
> > > > NoMethodError in Admin/content#show
&gt; > > >
> > > >  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
&gt; > > > article.updated_at.to_formatted_s
> > > > (:long_weekday) %></p>
> > > > 14: <p class=&quot;meta";><label>Published:</label> <%=h
&gt; > > > (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,
&gt; > > > -Steve
>; > > > http://www.stevelongdo.com
> > > > _______________________________________________
> > > > Typo-list mailing list
> > > > rubyforge.org">Typo-listrubyforge.org
> > > > http://rubyforge.org/mailman/listinfo/typo-list
> > > >
> > > >
> > > _______________________________________________
> > > Typo-list mailing list
> > > rubyforge.org">Typo-listrubyforge.org
> > > http://rubyforge.org/mailman/listinfo/typo-list
> > >
> >
> >
> >
> > --
> >
> > Thanks,
&gt; > -Steve
>; > http://www.stevelongdo.com
> > _______________________________________________
> > Typo-list mailing list
> > rubyforge.org">Typo-listrubyforge.org
> > http://rubyforge.org/mailman/listinfo/typo-list
> >
> >
>
_______________________________________________
Typo-list mailing list
rubyforge.org">Typo-listrubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list



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

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