Git Product home page Git Product logo

blogit's Introduction

blogit's People

Contributors

bodacious avatar cbarratt avatar chukitow avatar gavinlaking avatar grncdr avatar jjeb avatar philou avatar rodrigopereyradiaz avatar stewartmckee avatar zirconcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blogit's Issues

undefined method `this_blogger?'

Sorry I'm a relative newbie to Rails. I read somewhere that setting "config.author_edits_only = true" with ensure only the author of a blog can change it. However when I set this I get
undefined method `this_blogger?'

I can see where it is using this_blogger in the code but i can't see where/how I'm supposed to set it?

How to change the layout

Hi, could you please provide an example of how to change the default layout?

Tried this - doesn't work, all variables are nil

# in config/initializers/blogit.rb

module Blogit
   class PostsController < ::Blogit::ApplicationController
     layout 'blog'
   end
end

Error while deploying to Heroku

Hi

I am working on a web app which is deployed on Heroku.
My app's integration with blogit works absolutely fine on localhost.

However, it gives the below mentioned error while trying to push to Heroku.

Any ideas/suggestions would be much appreciated.
Thanks in advance.


rake aborted!
remote: Sass::SyntaxError: Invalid CSS after "": expected selector or at-rule, was "{"
remote: (in /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/blogit-1.1.1/app/assets/stylesheets/blogit/themes/default.css.map)
remote: (sass):1
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:1162:in expected' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:1098:inexpected'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:43:in parse' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/engine.rb:403:in_to_tree'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/engine.rb:278:in render' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/sass_compressor.rb:24:inevaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in render' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:197:inblock in evaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:194:in each' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:194:inevaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/bundled_asset.rb:25:in initialize' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:377:innew'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:377:in build_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:94:inblock in build_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/caching.rb:58:in cache_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:93:inbuild_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:287:in find_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:61:infind_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:211:in block in find_asset remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:257:inbenchmark'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:210:in find_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:119:inblock in compile'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:118:in each' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:118:incompile'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:70:in block (3 levels) in define' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/rake/sprocketstask.rb:146:inwith_logger'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !

nice to have with mongoid

now ActiveRecord::ConnectionNotEstablished - ActiveRecord::ConnectionNotEstablished when accessing /blog

Issue with other routes when adding links to the blogit template.

Firstly, great gem! However, I'm currently having trouble with my routes when I use the Gem. I'm trying to add paths to link the blog to other parts of my app but am getting errors such as;

     undefined local variable or method `destroy_user_session_path'  

Not sure if this is definitely the BlogIt gem but it only seems to be happening in these views.

Suggestions would be great!

James

SQLite support

Seems like blogit markup parsing doesn't work with SQLite.

Not like anyone cares or anything, I just stumbled across the issue while setting up a test app.

Installation Error

I've added the gem and mounted the engine here:
mount Blogit::Engine => "/blog"

Now when I go to <my_app>/blog I get the following error:
undefined local variable or method `blogit_conf' for Blogit::PostsController:Class

time tags are not valid HTML5

Currently, the time tags do not show a valid datetime attribute.

W3's validator kicks up this error:

The text content of element time was not in the required format: The literal did not satisfy the time-datetime format.

 <time>27 February, 2013</time>  

acts-as-taggable-on missing from gemspec?

I'm using blogit on rails 4, so I bundled the gem from the rails4 branch. After finishing the installation instructions, I encountered this error:

undefined local variable or method `acts_as_taggable' for #<Class:0x007fd01890a728>

I'm assuming this is because 10bce41 added the acts-as-taggable-on dependency to the Gemfile instead of the gemspec?

I was able to get the app working by adding this to my own Gemfile:

gem "acts-as-taggable-on", github: "mbleigh/acts-as-taggable-on"

I'd be happy to submit a pull request if someone can confirm that updating the gemspec is the proper solution.

Routing error when not launching app directly into the blog

Hello again!

I'm facing an issue when I set the root to outside the blog. If I start the app on a page other than /blog then I get the following routing error:

undefined method `blogit_authenticate' for Blogit::PostsController:Class

refreshing the page then delivers the following NoMethodError:

undefined method `current_page' for nil:NilClass

I took a look at the recent bug fixes but the one resembling a solution to this error was a tweak to the Posts Controller. I implemented this fix but am still getting these errors.

Any thoughts?

Thanks,

James

Add support for image uploads

We need to add support for uploading one or more images to a blog post. Any thoughts on the best way to implement this?

Would people be happy with using Carrierwave as the main uploader?

undefined method `blogit_authenticate'

i am getting this error for blogit 0.6.0 and 0.8.0 both versions:

ActionController::RoutingError - undefined method blogit_authenticate' for Blogit::CommentsController:Class: (gem) blogit-0.6.0/app/controllers/blogit/comments_controller.rb:4:inclass:CommentsController'
(gem) blogit-0.6.0/app/controllers/blogit/comments_controller.rb:2:in <module:Blogit>' (gem) blogit-0.6.0/app/controllers/blogit/comments_controller.rb:1:in<top (required)>'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:469:in load' (gem) activesupport-3.2.6/lib/active_support/dependencies.rb:469:inblock in load_file'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:639:in new_constants_in' (gem) activesupport-3.2.6/lib/active_support/dependencies.rb:468:inload_file'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:353:in require_or_load' (gem) activesupport-3.2.6/lib/active_support/dependencies.rb:502:inload_missing_constant'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:192:in block in const_missing' (gem) activesupport-3.2.6/lib/active_support/dependencies.rb:190:ineach'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:190:in const_missing' (gem) activesupport-3.2.6/lib/active_support/inflector/methods.rb:229:inblock in constantize'
(gem) activesupport-3.2.6/lib/active_support/inflector/methods.rb:228:in each' (gem) activesupport-3.2.6/lib/active_support/inflector/methods.rb:228:inconstantize'
(gem) activesupport-3.2.6/lib/active_support/dependencies.rb:554:in get' (gem) actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:69:incontroller_reference'
(gem) actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:54:in controller' (gem) actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:32:incall'
(gem) journey-1.0.4/lib/journey/router.rb:68:in block in call' (gem) journey-1.0.4/lib/journey/router.rb:56:ineach'
(gem) journey-1.0.4/lib/journey/router.rb:56:in call' (gem) actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:600:incall'
(gem) railties-3.2.6/lib/rails/engine.rb:479:in call' (gem) railties-3.2.6/lib/rails/railtie/configurable.rb:30:inmethod_missing'
(gem) journey-1.0.4/lib/journey/router.rb:68:in block in call' (gem) journey-1.0.4/lib/journey/router.rb:56:ineach'
(gem) journey-1.0.4/lib/journey/router.rb:56:in call' (gem) actionpack-3.2.6/lib/action_dispatch/routing/route_set.rb:600:incall'
(gem) sass-3.1.20/lib/sass/plugin/rack.rb:54:in call' (gem) better_errors-0.3.2/lib/better_errors/middleware.rb:51:inapp_call'
(gem) better_errors-0.3.2/lib/better_errors/middleware.rb:45:in call' (gem) bullet-4.1.5/lib/bullet/rack.rb:8:incall'
(gem) newrelic_rpm-3.4.1/lib/new_relic/rack/browser_monitoring.rb:12:in call' (gem) newrelic_rpm-3.4.1/lib/new_relic/rack/developer_mode.rb:24:incall'
(gem) warden-1.2.1/lib/warden/manager.rb:35:in block in call' (gem) warden-1.2.1/lib/warden/manager.rb:34:incatch'
(gem) warden-1.2.1/lib/warden/manager.rb:34:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
(gem) rack-1.4.1/lib/rack/etag.rb:23:in call' (gem) rack-1.4.1/lib/rack/conditionalget.rb:35:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/head.rb:14:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/params_parser.rb:21:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/flash.rb:242:in call' (gem) rack-1.4.1/lib/rack/session/abstract/id.rb:205:incontext'
(gem) rack-1.4.1/lib/rack/session/abstract/id.rb:200:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/cookies.rb:338:incall'
(gem) activerecord-3.2.6/lib/active_record/query_cache.rb:64:in call' (gem) activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' (gem) activesupport-3.2.6/lib/active_support/callbacks.rb:405:in_run__385806723__call__274648105__callbacks'
(gem) activesupport-3.2.6/lib/active_support/callbacks.rb:405:in __run_callback' (gem) activesupport-3.2.6/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
(gem) activesupport-3.2.6/lib/active_support/callbacks.rb:81:in run_callbacks' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/callbacks.rb:27:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/reloader.rb:65:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/remote_ip.rb:31:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
(gem) railties-3.2.6/lib/rails/rack/logger.rb:26:in call_app' (gem) railties-3.2.6/lib/rails/rack/logger.rb:16:incall'
(gem) actionpack-3.2.6/lib/action_dispatch/middleware/request_id.rb:22:in call' (gem) rack-1.4.1/lib/rack/methodoverride.rb:21:incall'
(gem) rack-1.4.1/lib/rack/runtime.rb:17:in call' (gem) activesupport-3.2.6/lib/active_support/cache/strategy/local_cache.rb:72:incall'
(gem) rack-1.4.1/lib/rack/lock.rb:15:in call' (gem) actionpack-3.2.6/lib/action_dispatch/middleware/static.rb:62:incall'
(gem) airbrake-3.1.2/lib/airbrake/rack.rb:42:in call' (gem) airbrake-3.1.2/lib/airbrake/user_informer.rb:12:incall'
(gem) railties-3.2.6/lib/rails/engine.rb:479:in call' (gem) railties-3.2.6/lib/rails/application.rb:220:incall'
(gem) railties-3.2.6/lib/rails/railtie/configurable.rb:30:in method_missing' (gem) passenger-3.0.19/lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request'
(gem) passenger-3.0.19/lib/phusion_passenger/abstract_request_handler.rb:516:in accept_and_process_next_request' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop'
(gem) passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb:206:in start_request_handler' (gem) passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb:171:inblock in handle_spawn_application'
(gem) passenger-3.0.19/lib/phusion_passenger/utils.rb:470:in safe_fork' (gem) passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb:166:inhandle_spawn_application'
(gem) passenger-3.0.19/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
(gem) passenger-3.0.19/lib/phusion_passenger/abstract_server.rb:180:in start' (gem) passenger-3.0.19/lib/phusion_passenger/rack/application_spawner.rb:129:instart'
(gem) passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb:253:in block (2 levels) in spawn_rack_application' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add'
(gem) passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb:82:inblock in synchronize'
internal:prelude:10:in synchronize' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
(gem) passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application' (gem) passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb:137:inspawn_application'
(gem) passenger-3.0.19/lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' (gem) passenger-3.0.19/lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
(gem) passenger-3.0.19/lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' (gem) passenger-3.0.19/helper-scripts/passenger-spawn-server:99:in

'

Not work in Rails 4.0

When I use rails g blogit:install then it gives error as follow:-

You should not use the match method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add via: [:get, :post] option.
If you want to expose your action to GET, use get in the router:
Instead of: match "controller#action"
Do: get "controller#action"

Calling posts into other models

Hello!

Sorry to write again so soon. I'm attempting to pull posts into another model (named locations). However whenever I try a simple @post = Post.all statement I get the following error:

uninitialized constant LocationsController::Post

Any suggestions for how this could be done?

Many Thanks!

Missing model Tagging?

Just getting up and running. When I browse to /posts/new I get a SQLite error saying the "taggings" table is missing. I'm using 1.0.0rc1. Any advice?

Also, is there a general admin route? I didn't see anything obvious.

Thanks.

Generate views

Nice work you have been doing here!

I wa wondering if there is any way to generate the blog views? If not I'm interested in create this feature, what do you think?

paths incorrect?

Hi Gavin, great gem. Thanks for maintaining this. I'm using rails 3.2

I'm trying to add it to my existing project. I did the installation properly as detailed in the README. I have added

mount Blogit::Engine => "/blog", as: :blogit

to my routes.rb

When I go to "/blog" on my development server, the link to the "New Blog Post" is:

http://xxxx/blog/assets?action=new&controller=blogit%2Fposts and thus errors out

When I go to http://xxxx/blog/posts/new directly, I see the form, but the form action is

/blog/assets?controller=blogit%2Fposts

I think I'm not understanding something about mounting Engines and how they affect paths. Do you have any ideas? Thanks a lot

Problems installing

The installation fails for me with:

rails g blogit:install
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': /Library/Ruby/Gems/1.8/gems/blogit-0.4.8/lib/blogit/configuration.rb:79: odd number list for Hash (SyntaxError)
      hard_wrap: true, 
                ^
/Library/Ruby/Gems/1.8/gems/blogit-0.4.8/lib/blogit/configuration.rb:79: syntax error, unexpected ':', expecting '}'
      hard_wrap: true, 
...

I have tried different versions of redcarpet which is what appears to be where it is failing from the code but to no avail.

Any ideas?

check_comments_config when not active record

I have blogit successfully working in all respects. I have turned on disqus comments in config/initializers/blogit.rb

Everything works fine, except when using rails_admin to view/add/edit a post I get the following error:

Posts only allow active record comments (check blogit configuration)

This is raised by the post model in check_comments_config

def check_comments_config
  raise RuntimeError.new("Posts only allow active record comments (check blogit configuration)") unless Blogit.configuration.include_comments == :active_record
end

All is well if I change the 'unless' to an 'if' but am hesitant to so without understanding the implications.

No such column: taggings_count

I set up blogit as per the instructions, however when I try to create my first post, I get the following error:

ActiveRecord::StatementInvalid in Blogit::PostsController#create

SQLite3::SQLException: no such column: taggings_count: UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1

Parameters:

{"utf8"=>"โœ“",
 "authenticity_token"=>"IKRelkWfThMuzD51E72MFiot+vaCPCefCdTh/u9NGwI=",
 "post"=>{"title"=>"I love bananas",
 "body"=>"They are awesome\r\n\r\ntest\r\n---\r\n\r\n\r\nmarkdown?",
 "tag_list"=>"fruit,
 love,
 me"},
 "commit"=>"Create Post"}

I am using Rails 3.2.11 with blogit-0.8.0.
I restarted the server a few times and also ran rake db:migrate.

Thank You.

Full Error:

Started POST "/blog/posts" for 127.0.0.1 at 2014-04-14 17:16:59 +0200
Processing by Blogit::PostsController#create as HTML
  Parameters: {"utf8"=>"โœ“", "authenticity_token"=>"IKRelkWfThMuzD51E72MFiot+vaCPCefCdTh/u9NGwI=", "post"=>{"title"=>"I love bananas", "body"=>"They are awesome\r\n\r\ntest\r\n---\r\n\r\n\r\nmarkdown?", "tag_list"=>"fruit, love, me"}, "commit"=>"Create Post"}
  Admin Load (0.2ms)  SELECT "admins".* FROM "admins" WHERE "admins"."id" = 1 LIMIT 1
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" IS NULL AND "taggings"."taggable_type" = 'Blogit::Post' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
   (0.0ms)  begin transaction
  SQL (5.7ms)  INSERT INTO "blog_posts" ("blogger_id", "blogger_type", "body", "comments_count", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)  [["blogger_id", 1], ["blogger_type", "Admin"], ["body", "They are awesome\r\n\r\ntest\r\n---\r\n\r\n\r\nmarkdown?"], ["comments_count", 0], ["created_at", Mon, 14 Apr 2014 15:17:00 UTC +00:00], ["title", "I love bananas"], ["updated_at", Mon, 14 Apr 2014 15:17:00 UTC +00:00]]
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE (LOWER(name) = LOWER('fruit') OR LOWER(name) = LOWER('love') OR LOWER(name) = LOWER('me'))
  ActsAsTaggableOn::Tag Exists (0.1ms)  SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'fruit' LIMIT 1
  SQL (0.1ms)  INSERT INTO "tags" ("name") VALUES (?)  [["name", "fruit"]]
  ActsAsTaggableOn::Tag Exists (0.1ms)  SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'love' LIMIT 1
  SQL (0.0ms)  INSERT INTO "tags" ("name") VALUES (?)  [["name", "love"]]
  ActsAsTaggableOn::Tag Exists (0.1ms)  SELECT 1 AS one FROM "tags" WHERE "tags"."name" = 'me' LIMIT 1
  SQL (0.0ms)  INSERT INTO "tags" ("name") VALUES (?)  [["name", "me"]]
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = 1 AND "taggings"."taggable_type" = 'Blogit::Post' AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
  ActsAsTaggableOn::Tagging Exists (0.1ms)  SELECT 1 AS one FROM "taggings" WHERE ("taggings"."tag_id" = 1 AND "taggings"."taggable_type" = 'Blogit::Post' AND "taggings"."taggable_id" = 1 AND "taggings"."context" = 'tags' AND "taggings"."tagger_id" IS NULL AND "taggings"."tagger_type" IS NULL) LIMIT 1
  SQL (0.3ms)  INSERT INTO "taggings" ("context", "created_at", "tag_id", "taggable_id", "taggable_type", "tagger_id", "tagger_type") VALUES (?, ?, ?, ?, ?, ?, ?)  [["context", "tags"], ["created_at", Mon, 14 Apr 2014 15:17:00 UTC +00:00], ["tag_id", 1], ["taggable_id", 1], ["taggable_type", "Blogit::Post"], ["tagger_id", nil], ["tagger_type", nil]]
  ActsAsTaggableOn::Tag Load (0.1ms)  SELECT "tags".* FROM "tags" WHERE "tags"."id" = 1 LIMIT 1
  SQL (0.2ms)  UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
SQLite3::SQLException: no such column: taggings_count: UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1
   (0.1ms)  rollback transaction
Completed 500 Internal Server Error in 336ms


ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: taggings_count: UPDATE "tags" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "tags"."id" = 1):
  sqlite3 (1.3.9) lib/sqlite3/database.rb:91:in `initialize'
  sqlite3 (1.3.9) lib/sqlite3/database.rb:91:in `new'
  sqlite3 (1.3.9) lib/sqlite3/database.rb:91:in `prepare'
  activerecord (3.2.11) lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `block in exec_query'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
  activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
  activerecord (3.2.11) lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'
  activerecord (3.2.11) lib/active_record/connection_adapters/sqlite_adapter.rb:268:in `exec_delete'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:96:in `update'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
  activerecord (3.2.11) lib/active_record/relation.rb:294:in `update_all'
  activerecord (3.2.11) lib/active_record/relation.rb:278:in `update_all'
  activerecord (3.2.11) lib/active_record/querying.rb:7:in `update_all'
  activerecord (3.2.11) lib/active_record/counter_cache.rb:84:in `update_counters'
  activerecord (3.2.11) lib/active_record/locking/optimistic.rb:166:in `update_counters'
  activerecord (3.2.11) lib/active_record/counter_cache.rb:103:in `increment_counter'
  activerecord (3.2.11) lib/active_record/associations/builder/belongs_to.rb:30:in `block in add_counter_cache_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__820720759__create__451311992__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activerecord (3.2.11) lib/active_record/callbacks.rb:268:in `create'
  activerecord (3.2.11) lib/active_record/persistence.rb:348:in `create_or_update'
  activerecord (3.2.11) lib/active_record/callbacks.rb:264:in `block in create_or_update'
  activesupport (3.2.11) lib/active_support/callbacks.rb:436:in `_run__820720759__save__451311992__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activerecord (3.2.11) lib/active_record/callbacks.rb:264:in `create_or_update'
  activerecord (3.2.11) lib/active_record/persistence.rb:104:in `save!'
  activerecord (3.2.11) lib/active_record/validations.rb:56:in `save!'
  activerecord (3.2.11) lib/active_record/attribute_methods/dirty.rb:33:in `save!'
  activerecord (3.2.11) lib/active_record/transactions.rb:264:in `block in save!'
  activerecord (3.2.11) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  activerecord (3.2.11) lib/active_record/transactions.rb:208:in `transaction'
  activerecord (3.2.11) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
  activerecord (3.2.11) lib/active_record/transactions.rb:264:in `save!'
  activerecord (3.2.11) lib/active_record/associations/has_many_association.rb:14:in `insert_record'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:436:in `block (2 levels) in create_record'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:344:in `add_to_target'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:434:in `block in create_record'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:149:in `block in transaction'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  activerecord (3.2.11) lib/active_record/transactions.rb:208:in `transaction'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:148:in `transaction'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:433:in `create_record'
  activerecord (3.2.11) lib/active_record/associations/collection_association.rb:123:in `create!'
  activerecord (3.2.11) lib/active_record/associations/collection_proxy.rb:46:in `create!'
  acts-as-taggable-on (3.1.1) lib/acts_as_taggable_on/acts_as_taggable_on/core.rb:397:in `block (2 levels) in save_tags'
  acts-as-taggable-on (3.1.1) lib/acts_as_taggable_on/acts_as_taggable_on/core.rb:396:in `each'
  acts-as-taggable-on (3.1.1) lib/acts_as_taggable_on/acts_as_taggable_on/core.rb:396:in `block in save_tags'
  acts-as-taggable-on (3.1.1) lib/acts_as_taggable_on/acts_as_taggable_on/core.rb:350:in `each'
  acts-as-taggable-on (3.1.1) lib/acts_as_taggable_on/acts_as_taggable_on/core.rb:350:in `save_tags'
  activesupport (3.2.11) lib/active_support/callbacks.rb:427:in `_run__954643570__save__451311992__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  activerecord (3.2.11) lib/active_record/callbacks.rb:264:in `create_or_update'
  activerecord (3.2.11) lib/active_record/persistence.rb:84:in `save'
  activerecord (3.2.11) lib/active_record/validations.rb:50:in `save'
  activerecord (3.2.11) lib/active_record/attribute_methods/dirty.rb:22:in `save'
  activerecord (3.2.11) lib/active_record/transactions.rb:259:in `block (2 levels) in save'
  activerecord (3.2.11) lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  activerecord (3.2.11) lib/active_record/transactions.rb:208:in `transaction'
  activerecord (3.2.11) lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
  activerecord (3.2.11) lib/active_record/transactions.rb:259:in `block in save'
  activerecord (3.2.11) lib/active_record/transactions.rb:270:in `rollback_active_record_state!'
  activerecord (3.2.11) lib/active_record/transactions.rb:258:in `save'
  blogit (0.8.0) app/controllers/blogit/posts_controller.rb:58:in `create'
  actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action'
  actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  activesupport (3.2.11) lib/active_support/callbacks.rb:425:in `_run__898640690__process_action__92572029__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action'
  actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
  activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process'
  actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process'
  actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
  railties (3.2.11) lib/rails/engine.rb:479:in `call'
  railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call'
  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.3) lib/warden/manager.rb:34:in `catch'
  warden (1.2.3) lib/warden/manager.rb:34:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.5) lib/rack/etag.rb:23:in `call'
  rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__236821733__call__451311992__callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/reloader.rb:65:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
  railties (3.2.11) lib/rails/engine.rb:479:in `call'
  railties (3.2.11) lib/rails/application.rb:223:in `call'
  rack (1.4.5) lib/rack/content_length.rb:14:in `call'
  railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
  rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
  /usr/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  /usr/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  /usr/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

beginner question: how to start?

Hi! I'm a beginner over here so I hope you can bear with me.

I'm trying to figure out how to set up a blog. Do I just create a blank rails project and include blogit in my gemfile? Or am I also supposed to be setting up models etc.?

Thanks!

Error:Login required

undefined local variable or method `login_required' for #Blogit::PostsController:0xab9a7f8 when clicking on "new post"

Split configurations into modules...

As more and more feature are added, many of the configurations will become inter-dependent.

For example:

Blogit.configure do |config|

  # What kind of comments do you want to add to your blog ? (:active_record, :disqus or :no)
  config.include_comments = :disqus

  # When using disqus comments, what is the shortname of your forum ?
  config.disqus_shortname = "katanacode"

  # Should there be a share bar on every post ?
  config.include_share_bar = true

  # Twitter username used in the share bar
  config.twitter_username = "KatanaCode"
end

would be better as:

Blogit.configure do |config|

  config.comments do
    store :disqus
    disqus_shortname "katanacode"
  end

  config.share_bar do
    twitter_username  "KatanaCode"
  end
end

I reckon we could add ActiveModel validations too to enforce valid configurations.
Aim for this for the release of version 1.0.0

Dependency: pygmentize

I'm getting two failing tests from a clean clone of the blogit repository:

rspec ./spec/lib/blogit/parsers/markdown_parser_spec.rb:18 # (1) 
rspec ./spec/lib/blogit/parsers/markdown_parser_spec.rb:22 # (2)

(1) Blogit::Parsers::MarkdownParser code highlighting requires pygmentize to run
(2) Blogit::Parsers::MarkdownParser code highlighting should highlight code if highlight_code_syntax is true

Is pygmentize a real dependency and if so, should the documentation for development reflect this?

Missing Pygments dependency for OSX

Tried to install blogit on a new bare application (only user)

I added the first post with a code block and it spews out the error listed below. Only search I could find talked about installing Pygments. After a little more searching, I found the fix for Mac OSX

sudo easy_install Pygments

Just though you'd want to add it to your notes. Apparently Albino does not look for the package. Now I just have to figure out why no css.

The error for your reference:

No such file or directory - posix_spawnp
Extracted source (around line #1):

1: <%= format_content(post.body) %>
Trace of template inclusion: /Users/salex/.rvm/gems/ruby-1.9.3-p327/gems/blogit-0.7.0/app/views/blogit/posts/_post.html.erb, /Users/salex/.rvm/gems/ruby-1.9.3-p327/gems/blogit-0.7.0/app/views/blogit/posts/index.html.erb

Rails.root: /Users/salex/work/salex

Application Trace | Framework Trace | Full Trace
posix-spawn (0.3.6) lib/posix/spawn.rb:187:in `_pspawn'
posix-spawn (0.3.6) lib/posix/spawn.rb:187:in `pspawn'

posix-spawn (0.3.6) lib/posix/spawn.rb:160:in `spawn'
posix-spawn (0.3.6) lib/posix/spawn.rb:307:in `popen4'
posix-spawn (0.3.6) lib/posix/spawn/child.rb:105:in `exec!'
posix-spawn (0.3.6) lib/posix/spawn/child.rb:80:in `initialize'
albino (1.3.3) lib/albino.rb:87:in `new'
albino (1.3.3) lib/albino.rb:87:in `execute'
albino (1.3.3) lib/albino.rb:91:in `colorize'
albino (1.3.3) lib/albino.rb:73:in `colorize'
blogit (0.7.0) lib/blogit/renderers/html_with_albino.rb:5:in `block_code'
blogit (0.7.0) lib/blogit/parsers/markdown_parser.rb:14:in `render'
blogit (0.7.0) lib/blogit/parsers/markdown_parser.rb:14:in `parsed'
blogit (0.7.0) app/helpers/blogit/application_helper.rb:28:in `format_content'
blogit (0.7.0) app/views/blogit/posts/_post_body.html.erb:1:in `___sers_salex__rvm_gems_ruby_______p____gems_blogit_______app_views_blogit_posts__post_body_html_erb__473769633676305497_2163340860'

Installation error: undefined local variable or method `blogs' in User model

Hi - I've followed the installation process and it all seemed really simple, but when I try to start the server it simply won't accept 'blogs' as a method it recognises in the User model.

The full error is pasted below - anyone else had this problem? Any idea what could be causing it?

I have an STI model setup with 2 child's of User, but its not caused me any other issues in months of development; and I already has acts_as_taggable installed, so it skipped one of the migrations because it was called the same thing (Migration 20110814103306_acts_as_taggable_on_migration.rb from blogit has been skipped. Migration with the same name already exists).

They are the only non-standard things I can think that would be causing an issue.

Thanks for any help...
Mark

/Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activerecord-3.2.11/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `blogs' for #<Class:0x007f9cdc89a460> (NameError)
    from app/models/user.rb:52:in `<class:User>'
    from app/models/user.rb:49:in `<top (required)>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:469:in `load'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:469:in `block in load_file'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:639:in `new_constants_in'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:468:in `load_file'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:353:in `require_or_load'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:313:in `depend_on'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:225:in `require_dependency'
    from /Users/markwalker/Xavy2/config/initializers/preload_sti_models.rb:3:in `block in <top (required)>'
    from /Users/markwalker/Xavy2/config/initializers/preload_sti_models.rb:2:in `each'
    from /Users/markwalker/Xavy2/config/initializers/preload_sti_models.rb:2:in `<top (required)>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/engine.rb:587:in `each'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/engine.rb:587:in `block in <class:Engine>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/markwalker/Xavy2/config/environment.rb:5:in `<top (required)>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
    from /Users/markwalker/Xavy2/config.ru:3:in `block in <main>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/builder.rb:51:in `initialize'
    from /Users/markwalker/Xavy2/config.ru:in `new'
    from /Users/markwalker/Xavy2/config.ru:in `<main>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/builder.rb:40:in `eval'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/builder.rb:40:in `parse_file'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/server.rb:200:in `app'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/server.rb:304:in `wrapped_app'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/rack-1.4.3/lib/rack/server.rb:254:in `start'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
    from /Users/markwalker/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Draft, Published States

It didn't appear to me that there was any concept of a draft post. One of the key features in most blogging tools is the ability to create a post in draft status, come back to it, and later publish it.

blogit engine on heroku wont display blogs

I can't seem to figure out why, I'm unable to get the posts index to show up on heroku. Heroku logs show a router error
heroku[router]: at=info method=GET path=/blog/posts/

I can get to the index when there are no posts in the database. The moment i add a new post, i get the routing error. Is it a database issue, as heroku uses pg and i'm using sqllite on my dev machine.

NOTE:
I'm using active_admin with blogit, everything works fine on my local machine. I can add new post, edit, delete, view index page of posts. Would appreciate any help i can get..

Error when creating new blog posts

ActiveModel::MassAssignmentSecurity::Error in Blogit::PostsController#create
Can't mass-assign protected attributes: title, body, tag_list

Rails 3.2.8, Ruby 1.9.3

Gems: Devise, Blogit

Mass Assignment Error

When updating a post with active admin, I get this error:

Can't mass-assign protected attributes: blogger_type

Adding images to blog

This is just a suggestion, not a bug. Do you plan on implementing a way to add images to blogs or probably using the auto_html gem with apis like flickr to accomplish adding images/videos?

Thank you for the great work so far.

Access application route helper in template file.

I'm wondering if you've run across this. I want to use the same layout for the blog, which is working as expected. However, the application routes are not available.

I tried adding this in the Blogit.configure block, which almost works, but it is rooted as blog/

module Blogit
  module ApplicationHelper
    # almost
    include Rails.application.routes.url_helpers
  end
end

get blog posts outside of engine..

IE a list of new posts in a div somewhere

I've installed and am testing out your really good engine, but have hit a snag.

Its installed as suggested in your docs and mounted on /blog in my routes file.

I want a list of posts to show on the front page of my site but am not sure how to achieve this, can you give me a pointer.

(not really an issue I know :-) )

Error when trying to create a new post for the first time?

The "New Post" link takes me to /blog/assets?action=new&controller=blogit%2Fposts, which results in:

Routing Error
No route matches [GET] "/blog/assets"
Try running rake routes for more information on available routes.

Any idea why this is happening? If I go to /blog/posts/new manually, I see the form, but the action also goes to /blog/assets. Thoughts?

Route issue.

Hi guys,
I have just installed blogit into my Rails 4 application. When I go to /blog I get routing error of every single route I have got. I get "undefined local variable or method". It is like that it won't load my router at all.

Not sure if it make sense though. Please let me know what you want me to put here so you guys can have a look.

I have current_user defined in ApplicationController.
In the installation what I didn't understand is "declare which of your models acts as blogger in your app".
Where should I declare that? so that might be the issue here.

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.