[typo] Lucid theme with SVN

Steve Longdo steve.longdo at gmail.com
Tue Mar 7 14:22:38 EST 2006


I have it working with the following in _article.rhtml, the article_html
syntax is different in Typo now:

<div class="post-title"><h1><%= article_link article.title, article
%></h1></div>
<p class="auth">Posted by <%= author_link(article) %>
<%= js_distance_of_time_in_words_to_now article.created_at %></p>
<div class="post-body">
<%= article_html(article,:body) %>
</div> <!-- end .post-body -->

I have been trying to get Lucid to work better in IE, not too much
progress.  The fluid layout is really broken because of IE probs.  Also the
sidebar corners round, um, odd.  If anyone can figure that out and share it
with me it would be INCREDIBLY appreciated.

-Steve
http://www.stevelongdo.com

On 3/7/06, phil <phil at cryer.us> wrote:
>
>
>
> On Tue, 7 Mar 2006 16:55:23 +0000, "Jon Lim" <snowblink at gmail.com> wrote:
> > I'm on r865 of Typo, and made this change:
> > <div class="post-body"><%= article_html(@article) %></div>
> >
> > HTH.
> > Jon
>
> Thanks Jon, but if I modify lucid/views/articles/_article.rhtm:
>
>       1 <div class="post-title"><h1><%= article_link article.title,
> article %></h1></div>
>       2 <p class="auth">Posted by <%= author_link(article) %>
>       3 <%= js_distance_of_time_in_words_to_now article.created_at %></p>
>       4 <div class="post-body"><%= article_html(@article) %></div>
>       5 <!-- end .post-body -->
>
> I can't even load the front page of my blog:
>
> NoMethodError in Articles#index
>
> Showing themes/lucid/views/articles/_article.rhtml where line #4 raised:
>
> undefined method `html' for nil:NilClass
>
> Extracted source (around line #4):
>
> 1: <div class="post-title"><h1><%= article_link article.title, article
> %></h1></div>
> 2: <p class="auth">Posted by <%= author_link(article) %>
> 3: <%= js_distance_of_time_in_words_to_now article.created_at %></p>
> 4: <div class="post-body"><%= article_html(@article) %></div>
> 5: <!-- end .post-body -->
>
> Trace of template inclusion: /app/views/articles/index.rhtml
>
> RAILS_ROOT: .
> Application Trace | Framework Trace | Full Trace
>
> #{RAILS_ROOT}/app/helpers/application_helper.rb:128:in `article_html'
> #{RAILS_ROOT}/app/views/../../themes/lucid/views/articles/_article.rhtml:4
> #{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
> #{RAILS_ROOT}/app/views/./articles/index.rhtml:3
> #{RAILS_ROOT}/app/views/./articles/index.rhtml:1
> #{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
>
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
> `compile_and_render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
> `render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
> `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:220:in
> `render'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:58:in
> `render_partial'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:33:in
> `benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
> `render_partial'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
> `compile_and_render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
> `render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
> `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:655:in
> `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:595:in
> `render_with_no_layout'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:220:in
> `render_without_benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
> `render'
> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
> `render'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:854:in
> `perform_action_without_filters'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
> `perform_action_without_benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue'
> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in
> `perform_action'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
> `process_without_session_management_support'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in
> `process'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
> `dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in
> `handle_dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in
> `service'
> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
> /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in
> `dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0
> /lib/commands/servers/webrick.rb:59
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
> `require'
> #{RAILS_ROOT}/script/server:3
>
> #{RAILS_ROOT}/app/helpers/application_helper.rb:128:in `article_html'
> #{RAILS_ROOT}/app/views/../../themes/lucid/views/articles/_article.rhtml:4
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
> `compile_and_render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
> `render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
> `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:220:in
> `render'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:58:in
> `render_partial'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:33:in
> `benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
> `render_partial'
> #{RAILS_ROOT}/app/views/./articles/index.rhtml:3
> #{RAILS_ROOT}/app/views/./articles/index.rhtml:1
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
> `compile_and_render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
> `render_template'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
> `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
> #{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:655:in
> `render_file'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:595:in
> `render_with_no_layout'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:220:in
> `render_without_benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
> `render'
> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
> `render'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:854:in
> `perform_action_without_filters'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
> `perform_action_without_benchmark'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue'
> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in
> `perform_action'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
> `process_without_session_management_support'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in
> `process'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
> `dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in
> `handle_dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in
> `service'
> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
> /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
> /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in
> `dispatch'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0
> /lib/commands/servers/webrick.rb:59
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
> `require'
> #{RAILS_ROOT}/script/server:3
>
> Request
>
> Parameters: None
>
> Show session dump
>
> ---
>
> Response
> Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
>
> I'm running r868 - hope the above points to something else I'm doing
> wrong, your site looks great btw!
>
> P
>
>
>
> >
> > --
> > http://www.snowblink.co.uk/
> >
> > _______________________________________________
> > Typo-list mailing list
> > Typo-list at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/typo-list
> --
> http://fak3r.com - you dont have to kick it
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/typo-list/attachments/20060307/7625af47/attachment-0001.htm 


More information about the Typo-list mailing list