6 in config/environments/development.rb:
9 config.sass.debug_info = true
10 config.sass.line_comments = false
13 config.assets.debug = false
17 <%= render 'article', full: true %>
18 <%= render 'article' %>
20 <% if local_assigns[:full] %>
27 read_more_html: "read <b>more</b>..."
31 # config/application.rb
32 config.exceptions_app = self.routes
34 get '/404', to: 'errors#not_found'
35 get '/500', to: 'errors#server_error'
37 class ErrorsController
39 render status: :not_found
49 Article.distinct.pluck('author')
53 scope :with_drafts, -> {
54 uniq.joins(:articles).merge(Article.draft)
59 scope :recent, -> { order created_at: :desc }
63 .group("to_char(created_at, 'YYYY-MM')")
64 .group("to_char(created_at, 'YYYY-MM')").count