Comments (5)
Can you try latest version 1.6.2?
from refinerycms-blog.
If you upgrade to the latest version of the blog and run the generator (rails g refinerycms_blog) and make sure you're not using an overridden version of that file (according to your path you're not)
But yea, you need 1.6.2, it fixes this bug in 1.6.1
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:
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:
20: <% end %>
21:
Trace of template inclusion: /usr/lib/ruby/gems/1.8/gems/refinerycms-blog-1.6.1/app/views/blog/posts/index.html.erbend of paste <<<<<<<
Reply to this email directly or view it on GitHub:
https://github.com/resolve/refinerycms-blog/issues/95
from refinerycms-blog.
OK, thanks I was reading the instructions on the install page where it says
Open up your Gemfile and add at the bottom this line:
gem 'refinerycms-blog', '~> 1.6.1'
You need to update that.
Anyway I worked out what the error was (tags = post.tag_list).any? should be (tags = post.tags).any?
But the 1.6.1 code must be failing in the Cucumber scenario which says
Scenario: The blog has a "tagged" route & view
Given there is a blog post titled "I love my city" and tagged "chicago"
When I visit the tagged posts page for "chicago"
Then I should see "Chicago"
And I should see "I love my city"
Because 1.6.1 also barfs when listing articles for a tag. Which would imply 1.6.1 was released with a failing scenario.
How do I run the tests? And how do I change the code on this stuff without having to re-install the gem?
Thanks for the quick response.
John Small
from refinerycms-blog.
Ah right, getting a version that fixes the bug, i.e. 1.6.2 requires a new version of Refinerycms 1.0.3 and a new version of Rails 3.0.9.
Which is very naughty. It should be possible to get a bug fix in without having to go through a whole long chase of dependencies, which might mess up the set up of people using the bloging engine.
As a courtesy could you please make sure that bug fix releases have the same dependencies as the code they're fixing. New feature releases are OK for changing the dependencies. If 1.6.2 is a set of bug fixes for 1.6.1 it should have the same dependencies. If it does more than fix bugs, i.e it adds features then it should go up to 1.7.0. Please try to keep bug fix releases separate from new feature releases.
from refinerycms-blog.
Unfortunately 1.6.2 required 1.0.3 for bugfix reasons.
from refinerycms-blog.
Related Issues (20)
- Error when trying to upgrade HOT 1
- Friendly urls are not generated on save HOT 8
- 'refinery_settings' already exists HOT 2
- Compatibility with Rails 5.2 HOT 4
- Updating to jquery-ui v6 HOT 1
- Upgrading to version 4 resulted in list of authors to no longer be available from the Posts form
- Log production HOT 5
- Installation breaks base install of refinerycms HOT 8
- Bundle take too loog time to work. HOT 4
- refinerycms-wymeditor not work HOT 2
- Don't release the version >= 4.0.0
- Fix N + 1 for Refinery::Blog::Post.live HOT 5
- [Bug: feature/refinery-5] Can no visit the posts management page
- Travis CI fails with job exceeded max time limit HOT 1
- query-ui/widgets/autocomplete not found HOT 3
- Disable RSS Feed HOT 2
- Failing to install HOT 3
- uninitialized constant Refinery::Application (NameError)
- Dependabot can't resolve your Ruby dependency files
- is this gem still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refinerycms-blog.