Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seeds.rb not creating page parts correctly #55

Open
richardm90 opened this issue Feb 4, 2018 · 3 comments
Open

seeds.rb not creating page parts correctly #55

richardm90 opened this issue Feb 4, 2018 · 3 comments

Comments

@richardm90
Copy link

refinerycms v3.0.6
refinery-calendar v3.0.0

seeds.rb has code to generate page parts for events and venues but this results in refinery_page_parts with values for slug = 'title_body_slug_body' and title = '{:title=>"Body", :slug=>"body"}'

I think this code ...
Refinery::Pages.default_parts.each_with_index do |default_page_part, index| page.parts.create(:title => default_page_part, :body => nil, :position => index) end

should be ...
Refinery::Pages.default_parts.each_with_index do |default_page_part, index| page.parts.create(:title => default_page_part[:title], :slug => default_page_part[:slug], :body => nil, :position => index) end

@bricesanchez
Copy link
Member

Hi @richardm90! thanks for your bug report! Could you provide a bugfix? :)

@richardm90
Copy link
Author

Absolutely, more than happy to. This will be my first contribution to a public open source project. Is the following guide the correct flow I should follow?
https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project

@bricesanchez
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants