This is a little project to see if we can write a tidy underlying framework.
refinery / refinerycms-blog Goto Github PK
View Code? Open in Web Editor NEWThe very best blogging engine for Refinery CMS
Home Page: http://refinerycms.com
The very best blogging engine for Refinery CMS
Home Page: http://refinerycms.com
12:17:ruby → gem install refinerycms-blog
ERROR: While executing gem ... (NameError)
uninitialized constant Syck::Syck
does not happen on 1.8.7
Error:
No route matches {:path=>["about"], :controller=>"admin//pages", :id=>nil, :action=>"show"}
Steps to reproduce (on edge Refinery):
./refinerycms/bin/refinerycms dummy
cd dummy
bundle install
rails g refinerycms_blog
rake db:migrate
rails s
Note that this is not an issue with any of the included engines, the inquiries or news engines, the two custom engines I've created.
I just came across this issue. I'm using Rails 3.0.7 on Ruby 1.9.2. As the subject line says, if your Rails application is called blog, Rails 3 creates a Blog module for it in config/application.rb that seems to cause a conflict with refinerycms-blog. Trying the generator I get "Refinery is not missing constant Application! (ArgumentError)".
Renaming my application to MyBlog fixed the problem.
After I update from 0.9.9.x to 1.0 I got this error.
Psych::SyntaxError in Pages#home
Showing /usr/local/lib/ruby/gems/1.9.1/gems/refinerycms-core-1.0.0/app/views/shared/_footer.html.erb where line #2 raised:
couldn't parse YAML at line 1 column 0
Extracted source (around line #2):
1:
2: <%= t('.copyright', :year => Time.now.year,
3: :site_name => RefinerySetting.find_or_set(:site_name, "Company Name")) %>
4:
Is it possible to add page controls to the bottom of the blog index?
If I delete a Blog Post that has comments if I try to view the comment in refinery I get this:
NoMethodError in Admin/blog/comments#show
Showing /usr/lib/ruby/gems/1.8/gems/refinerycms-blog-1.1/app/views/admin/blog/comments/show.html.erb where line #29 raised:
undefined method `title' for nil:NilClass
Extracted source (around line #29):
26: <%= t('.blog_post') %>
27:
28:
29: <%= link_to @blog_comment.post.title,
30: blog_post_url(@blog_comment.post, :anchor => "comment-#{@blog_comment.to_param}"),
31: :target => '_blank' %>
32:
Should comments not be dependent destroy?
Running:
$ rake refinery:override view=blog/∗∗/∗
returns:
Couldn't match any view template files in any engines like blog/∗∗/∗
Other than that the blog engine seems to work fine for me, I've got:
Using rails (3.0.9)
Using refinerycms-base (1.0.3)
Using refinerycms-generators (1.0.2)
Using refinerycms-core (1.0.3)
Using refinerycms-pages (1.0.3)
Using refinerycms-resources (1.0.3)
Using refinerycms (1.0.3)
Using refinerycms-blog (1.6.1)
Did the path change?
I don't know, maybe it could be a plugin for a plugin, but anyway, it would be nice to have for comments. The signal to spam ratio is very low for most sites.
If anyone else wants this, I could probably fork and implement this relatively quickly.
When logged in, clicking on "view this blog post live" displays the entry as not found
error report:
$ rails g refinerycms_blog Could not find generator refinerycms_blog.
reported by krongk
SQLite3::ConstraintException: users.password_salt may not be NULL
refinerycms 0.9.9.11
Yesterday 0.9.9.10 would not run rails g refinerycms, today it does with0.9.9.11 however this exception occurs when I tried to add the first user to a new app.
Javascript error - Uncaught Syntax error, unrecognized expression: [href$=/refinery/blog/]
hi, guys
While I'm trying to create database with blog engine in Refinery 9.9.7, I got the following error:
-- create_table(:blog_categories, {:id=>true})
-> 0.0072s
-- add_index(:blog_categories, :id)
-> 0.0691s
-- create_table(:blog_categories_blog_posts, {:id=>false})
-> 0.0047s
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Unknown column 'custom_title' in 'field list': INSERT INTO `pages` (`browser_title`, `path`, `meta_description`, `created_at`, `link_url`, `custom_title_type`, `draft`, `title`, `skip_to_first_child`, `deletable`, `updated_at`, `position`, `rgt`, `custom_title`, `meta_keywords`, `parent_id`, `menu_match`, `lft`, `show_in_menu`, `depth`) VALUES (NULL, NULL, NULL, '2011-03-10 16:32:08', '/blog', 'none', 0, 'Blog', 0, 0, '2011-03-10 16:32:08', 2, 8, NULL, NULL, NULL, '^/blogs?(/|/.+?|)$', 7, 1, NULL)
(See full trace by running task with --trace)
any idea?
best regards,
Ken
I am attempting to install the refinerycms-blog per the
github instructions, but continually run into this error:
tim@ubuntu:~/Sites/SITENAME$ rails g refinerycms_blog
identical db/seeds/refinerycms_blog.rb
create db/migrate/20110303214956_create_blog_structure.rb
Now run:
tim@ubuntu:~/Sites/SITENAME$ rake db:migrate
(in /home/tim/Sites/SITENAME)
rake aborted!
Multiple migrations have the version number 20110303214956
My app gemfile includes refinerycms, 0.9.9.4 AND refinerycms-blog ~> 1.2. I have deleted the migration files and reran, but that's not working of course because the generate command is dupping the version number...thanks
I cloned the repo and tried rspec ./spec but I get the error:
I know this is probably an issue with my rspec setup or lack of knowledge on how to test refinery engines, but I thought maybe I would ask anyway.
/Users/ivan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- spec_helper (LoadError) from /Users/ivan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from /Users/ivan/Development/ruby/refinerycms-link/spec/models/blog_category_spec.rb:1:in <top (required)>' from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
load'
from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in block in load_spec_files' from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
map'
from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in load_spec_files' from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in
run'
from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in run_in_process' from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in
run'
from /Users/ivan/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in `block in autorun'
I'm getting an error after installing the blog engine. The other resolve engines are working fine. This thread was linked, and looks very similar - https://github.com/resolve/refinerycms/issues/457. I am on ubuntu, and have updated gems, using ruby1.9.2 and rails 3.0.7.
Here is the error I get from the homepage after installing the blog engine:
Psych::SyntaxError in PagesController#home
couldn't parse YAML at line 1 column 0
Rails.root: /home/username/dev/apps/rimshott
Application Trace | Framework Trace | Full Trace
Request
Parameters:
{"locale"=>:en}
Show session dump
Show env dump
Response
Headers:
None
Now that params[:tag_name] is optional, if the param is blank (due to crazy foreign characters, it would seem), it shows ?tag_name = in the URL, which is just plain horkey.
I'm not sure, off the top of my head, how to solve this. But I can look into it. Just wanted to note the issue, and of course I welcome anyone else to check into it.
This means that it will keep copying the same migrations over and over and generally has lots more code in lib/generators than need be.
I haven't checked it out much, but it would be nice to replace the basic commenting system with disqus instead.
Here is what I got in meta info row:
Posted on 31 January 2011.
i18n: en.blog.posts.post.filed_in Tech Stuff
This line is okay in post preview:
Posted on 31 January 2011.
Filed in Tech Stuff
Difference in templates:
shared/_post.html.erb:
11. <%= t('filed_in', :scope => 'blog.posts.show') %>
posts/_post.html.erb:
15. <%= t('.filed_in') %>
Get an error using last gems:
gem 'rails', '3.0.9'
gem 'refinerycms-blog', '~> 1.6.1'
[1mSELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags".id = "taggings".tag_id WHERE (("taggings".taggable_id = 1) AND ("taggings".taggable_type = 'BlogPost')) AND (taggings.context = 'tags' AND taggings.tagger_id IS NULL)
Rendered /home/lsoave/.rvm/gems/ruby-1.9.2-p136/gems/refinerycms-blog-1.6.1/app/views/blog/shared/post.html.erb (228.9ms)
Rendered /home/lsoave/.rvm/gems/ruby-1.9.2-p136/gems/refinerycms-blog-1.6.1/app/views/blog/posts/index.html.erb within layouts/application (572.5ms)
Completed 500 Internal Server Error in 2029ms
ActionView::Template::Error (undefined method `id' for "nullam":String):
15: <% if (tags = post.tag_list).any? %>
16:
It would be nice if refinerycms could add in floating left and right for image insert for page or blog, as this is common for popular blog/cms software nowadays for end user to customize their image in the blog/post.
Thanks!
Hi,
The method blog_archive_list can not be called.
It appears blog_posts_helper.rb is not loaded.
I've solved it (quickly) because I need this functionality,
by copying the file to my applications app/helpers.
bye,
Steven
Tryng to install refinery_blog I did :
gem 'refinerycms-blog', :git => 'http://github.com/resolve/refinerycms-blog.git'
bundle install
rails generate refinery_blog
rake db:migrate
no error comes up, but the blog tab doesn't show up into admin dashboard.
Only after re-initialize the DB ( rake db:reset ) it shows up ... but you know,
this is not always possible, specially in production ...
blog tab doesn't show up in admin
While looking for a reason why the $ function does not work on the blog page, I found a small bug. The default refinery-blog CSS and javascript files are being loaded twice.
When I try to do rails generate refinery_blog I get No generator found
On local dev machine, blog displays nicely on the blog-tab page, but when I click on the blog (read more), it shows all the html formatting as blog content (see below). This does not seem correct.
testing out refinery blog
Posted on 24 October 2010.
with some different styles
CommentsI have been seeing markup such as "Posted on {{when}}" and "{{create}}" showing up on the pages. I am using the 0.9.8.6 version of Refinery.
Click on Moderation under Settings, nothing happens.
ver.: 1.3
I am in the process of integrating a syntax highlighter and noticed that line breaks and whitespace was not preserved on the index page of the blog. I was mainly concerned for the content within "pre" and "code" tags. The show page seemed to render fine.
I traced it back to the teaser helper:
def blog_post_teaser(post)
if post.respond_to?(:custom_teaser) && post.custom_teaser.present?
post.custom_teaser.html_safe
else
truncate(post.body, {
:length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
:preserve_html_tags => true
}).html_safe
end
end
It seems that the truncate method is not preserving html properly. I had a look at the rails api and I couldn't find a method to support the :preserve_html_tags being passed. In addition, the truncate method states in the documentation that it does not preserve valid html.
Does the blog use another custom truncate method to preserve tags? Is this a valid option? Perhaps something like this would be better?
Thanks!
gem 'rails', '3.0.9'
gem "refinerycms", "~> 1.0.3"
gem 'refinerycms-blog', '~> 1.6.1', :git => 'git://github.com/resolve/refinerycms-blog.git'
ruby - 1.9.2
when I trying to add russian tag like тег
I see:
No route matches {:controller=>"blog/posts", :action=>"tagged", :tag_id=>5, :tag_name=>""}
Extracted source (around line #18):
15: <% if (tags = post.tags).any? %>
16: <aside class='tagged'>
17: <%= t('tagged', :scope => 'blog.posts.show') %>
18: <%=raw tags.collect { |tag| link_to tag, tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>
19: </aside>
20: <% end %>
21: </section>
I've enabled the gems for news, blogs, themes. They all tested fine in dev mode on local machine. After I pushed up to heroku, however, even though news shows up correctly as a tab in the admin area, but blogs does not. blogs does show up on the website as a menubar item, but there is not an admin blogs tab for creating blogs, nor for managing comments. Also, comments settings do not appear in the settings area.
It would be nice to have tags for blog posts.
I'm using refinerycms 1.0.3 with refinerycms-blog engine 1.6.2 for a test project. I've added my first blog post with title, body and tags in Bulgarian. Then when I requested Blog/posts#index (/blog) I've got this:
ActionController::RoutingError in Blog/posts#index
Showing refinerycms-blog-1.6.2/app/views/blog/shared/_post.html.erb where line #18 raised:
No route matches {:controller=>"blog/posts", :action=>"tagged", :tag_id=>1, :tag_name=>""}
It seems that :tag_name is empty which is not but filled with string in Bulgarian. When I rename the tag in English there is no error and the post is listed.
I'm getting some problems getting the site to load with the blog plugin installed.
This is the most recent error I'm seeing:
Psych::SyntaxError in Pages#home
Showing /home/tim/.rvm/gems/ruby-1.9.2-p180@global/gems/refinerycms-
core-0.9.9.4/app/views/welcome.html.erb where line #1 raised:
couldn't parse YAML at line 17 column 14
Extracted source (around line #1):
1: <% content_for :header, t('.there_are_no_users') %>
2:
3: <%=t('.remember_admin_location')%>
4:
I have also seen this one:
Showing /home/tim/.rvm/gems/ruby-1.9.2-p180@global/gems/refinerycms-
core-0.9.9.4/app/views/shared/_footer.html.erb where line #2 raised:
couldn't parse YAML at line 17 column 14
Extracted source (around line #2):
1:
2: <%= t('.copyright', :year => Time.now.year,
3: :site_name =>
RefinerySetting.find_or_set(:site_name, "Company Name")) %>
4:
Last week I examined interesting and weird issue. I have set one primary localization ('ru') for the site. But when I surf to the site for the first time it shows in 'en' localization (menu and content are different). I can refresh, try another browser or even computer (the site is hosted on heroku). Nothing happens. I'm still on the 'en'. Then I log in to refinerycms for the site. I just enter login and password. I don't do anything else => refresh my site and it becomes in 'ru' localization. And it's in russian localization from everywhere — another browser/mac/etc. Then i leave it for a couple of hours and it become 'en' again.
I have tried to disable i18n Translation to have it in one russian localization only. I have set everything related to localization to 'ru' in settings. But the issue still appears.
That's really strange. The site is kranelektro-test.heroku.com
Thank you in advance.
When I go to "blog" tab immediately after generating and migrating the blog, I get this error:
SQLite3::SQLException: no such table: blog_posts: SELECT "blog_posts".* FROM "blog_posts" ORDER BY published_at DESC LIMIT 30 OFFSET 0
Use a familiar API like: Movable Type API / AtomPub API / MetaWeblog API / Blogger API for editing with third party clients like MarsEdit.
Would love to help out on this if other people also deem this useful and we can decide on a API.
joemsak (hubble) will fix
It would be nice to have a default category like 'general' or 'uncategorized' and the posts having no category assigned can go to this category.
This way it will be easier to find posts with no categories assigned.
Hi,
I just followed the install instructions for the blog engine, and it successfully added a 'Blog' link on the home page. Clicking it (localhost:3000/blog) led to an error page:
ActiveRecord::RecordNotFound in PagesController#show
Couldn't find Page with ID=blog
Any clues as to resolution? It might be obvious, so apologies in advance, but it's 1AM here in Australia. Goodnight!
Hello.
I use Rails 3.
I installed 'refinerycms-blog':
1.) In a Gemfile: gem 'refinerycms-blog', '~> 1.0.rc15'
2.) bundle install
3.) rails generate refinery_blog
4.) rake db:migrate
It works very good, but if I go to any post page - I see HTML tags and content.
I deployed my project to heroku, where you can see it.
http://russlteam.heroku.com/blog/
You can see this problem in a each post in a blog.
For example:
http://localhost:3000/blog/mysql-for-beginners
What can I do to use fully-functional 'refinerycms-blog'?
The new page part "Teaser" was introduced in refinerycms-blog 1.6.2. But there is no key for it in the locale file (config/locale/en.yml), so it can't be translated in other languages.
IMHO this should be added to the locale file:
activerecord:
attributes:
blog_post:
teaser: Teaser
This is critical for a company using Refinery CMS that wants to blog. There's multiple users that will be blogging. Currently, I can't see a place to set the author.
I just created a test blog, added my first article, put a tag on it, went to view it and it blew up. If I take the tag off then it works. If I view the page directly via "view this blog post live" then it displays OK even with a tag.
The problem seems to be when viewing the index of articles, not a single article. Here's the error message
beginning of paste <<<<<
Showing /usr/lib/ruby/gems/1.8/gems/refinerycms-blog-1.6.1/app/views/blog/shared/_post.html.erb where line #18 raised:
undefined method `name' for "vim":String
Extracted source (around line #18):
15: <% if (tags = post.tag_list).any? %>
16:
end of paste <<<<<<<
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.