Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
jussihirvi
@jussihirvi
@bricesanchez Thanks again. Using set_localeGET parameter works fine for me. I added a language-change link in the _site_bar.html.erb file.
Brice Sanchez
@bricesanchez
@jussihirvi You're welcome!
robacarp
@robacarp
Hey folks, I have an existing Rails 6 application, and need a CMS. I need to be able to embed admin-editable sections into pages all over the site, including the login page. As well, I'd like to be able to declare a template and allow pages to be created based off of that template. Are these things Refinery can do?
robacarp
@robacarp
Additionally, there are a bunch of gems in the refinery repository... given that I already have user management and a bunch of other features in place, what gem should I even be installing?
robacarp @robacarp kicks rock
Forrest Chang
@fkchang
Is there a way to require login for resources? I'm able to do it with the cms pages, but anyone can view the resources
Forrest Chang
@fkchang
Ok, it seems that dragonfly middleware is the reason why
it ignores my authenticate_user! filter in ApplicationController
Forrest Chang
@fkchang
So looks like I'll need a bump to refinerycms-dragonfly to 1.0.2 to include this PR refinery/refinerycms#3452
so that I can actually override the before_serve for dragonfly
I see this one was accepted https://github.com/refinery/refinerycms/pull/3451/files but it's not on rubygems yet. Can we get that pushed?
Forrest Chang
@fkchang
Using the sha for now
Forrest Chang
@fkchang
jussihirvi
@jussihirvi
This place is so silent. Is there a better place to discuss refinerycms?
jussihirvi
@jussihirvi

In my refinerycms 4.0.3 app, a logged-in refinery user can always access his own user page. This is necessary for example if they want to change their password.

However, on the user page, any user can also control their own plugin access. This rrenders the whole plugin access selection meaningless. Has this been fixed in newer versions?

I made a temporary hack where only a superuser can see and select plugin access permissions.

Brice Sanchez
@bricesanchez

This place is so silent. Is there a better place to discuss refinerycms?

@jussihirvi Sadly, it's the place where there is the more discussions

However, on the user page, any user can also control their own plugin access. This rrenders the whole plugin access selection meaningless. Has this been fixed in newer versions?

Are you sure you're not a superuser?

Brice Sanchez
@bricesanchez

I made a temporary hack where only a superuser can see and select plugin access permissions.

Nice! Do you think you could provide a Pull Request?

Anita Graham
@anitagraham
Sorry, I lost my pinned gitter page.
Anita Graham
@anitagraham
Hi. I have a troubled relationship with Git. ( Downfall/Git rant. )
I have made changes to some refinerycms gems, and I want to upload them to my own forks, but not have those changes appear as a PR on the original gems.
I have had this happen unexpectedly in the past. My question is: how do I isolate my uploads to my fork of the gem?
Many thanks for all help.
Daniel
@Znow
Hi guys;
Upgrading an older application to newest refinerycms version 4.0.3. When accessing the "Files" tab in Refinery backend, I get the following error generated by refinerycms-resources: "ActionView::Template::Error at /refinery/resources
undefined method `new' for BigDecimal:Class". I can provide the full stacktrace. Have also searched and searched for anything that relates to this, but havent found anything. Would be so glad for another pair of eyes on this issue, thanks.
Daniel
@Znow
Finally found the isssue. Refinery-resources table and translation table, is not updated from using bigint to int, have to do migration manually to change this
Anita Graham
@anitagraham
@Znow I have done that, but not tested and scrutinized enough to do a PR. Will be coming one day.
Dalleau Théo
@Shirikumo
Hello, I followed the guide to create an extension and I don't have an entry point in admin. I use refinery 4 with rails 5.1.7. I checked the routes, they do exist but I can't find the page by typing the url directly. any idea to solve the problem ?
Anita Graham
@anitagraham
look at the output of rake routes > routes.txt (routes.txt)
Dalleau Théo
@Shirikumo
Thanks, routes were correct, finally got the answer. It was a permission missing to the user, got confused because the devise superuser role makes my refinery redirect by looping but worked well with refinery role and access on the user settings for the extension.
Daemmon
@dhughesbc
HI, Refinery newbie here. I just set up a new install on Rails 6, along with Solidus and solidus-refinery-authentication. It works great except for the fact that anyone can add/edit/delete pages, etc in Refinery. How do I force Refinery to authenticate users who want to edit things?
Anita Graham
@anitagraham
If you (as the admin superuser) look at the Users panel in refinery, you can give users access to different plugins. Pages is a plugin. Within Refinery permissions don't go any further than that.
Matt Bjornson
@mbjornson

I'm trying to install refinerycms-blog into an existing rails 6 app that uses devise, I'm getting the following error,

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    administrate-field-active_storage (~> 0.3.0) was resolved to 0.3.5, which depends on
      rails (>= 6.0) was resolved to 6.0.3.2, which depends on
        railties (= 6.0.3.2)

    refinerycms-blog was resolved to 4.0.0, which depends on
      responders (~> 2.0) was resolved to 2.0.2, which depends on
        railties (< 5, >= 4.2.0.alpha)

my gem file contains...

gem 'responders', '~> 2.0'
gem 'refinerycms-blog', git: 'https://github.com/refinery/refinerycms-blog', branch: 'master'
gem 'refinerycms-authentication-devise', git: 'https://github.com/refinery/refinerycms-authentication-devise', branch: 'master'

I haven't seen anything in the closed issues...

Jan Jacobs
@jhjacobs81
am i the only one not getting refinerycms to work with a standard rails 6?
none of the "rails new app_name -m " work, the "refinerycms <sitename>" erorrs out...
Taylor Kems
@talitore
Hey all! How would I go about getting custom parts to work with refinerycms-blog extension? Either the config.default_parts or config.new_page_parts in the pages.rb initializer. My use case needs more than just 'Body' and 'Teaser'. Thanks!
Anita Graham
@anitagraham
@mbjornson I am using the branch 'features/rails5' with Rails 6. I do have some local changes for it which I shoudl do a PR for.
Anita Graham
@anitagraham

I have PR or two in the works, but I also have some problems that I don't know how to fix.

  1. refinerycms-wymeditor uses a call to find-asset which gets an error ActionView::Template::Error: undefined methodfind_asset' for #<Sprockets::Manifest:0x00007fd3fd15d0f0>`, which has been reported and fixed. However I still get the problem when testing.
    # Gemfile.lock
     refinerycms-wymeditor (2.2.0)
       refinerycms-core (>= 4.0.0, < 5.0)
  2. refinerycms-testing defines a helper refinery_login. However if I'm running tests in a gem such as refinerycms-inquiries, which uses refinerycms-testing I need to add refinery_login in a helper.

Any ideas for how to fix my basic setup?

P.S. These don't stop me using refinery, because I can fix them locally, but they do stop me submitting PRs.
Eliza Plowden
@elizaplowden
Hi all! I'm new to Refinery and am having issues with basic set up. I could not get the user sign in page (even after deleting the public/index.html file). I ran this command 'rails generate refinery:cms --fresh-installation' and migrated the db but am now getting an error message: 'cannot visit integer' whn i try to run the server. Any idea on what might have happened? I had to downgrade both bundler and sqlite3 to get even this far, so maybe something happened there?!
anitagraham
@anitagraham:perthchat.org
[m]

I find that installing a new refinerycms is a multi-step task. Once you have a basic installation up you need to update 1. Your Gemfile to ensure you are using the latest refinery gems from Github, and update your config/database.yml and build the database in the db of your choice.

```

anitagraham
@anitagraham:perthchat.org
[m]
I've put a couple of extracts from my Gemfile and database..yml into a gist. I will try to build a new refinery app from them and see how much more I need to do.
Anita Graham
@anitagraham
Gist is now updated, and fairly quickly gets to the point where refinery is running. I'm not sure I have the capability to make any changes which will fix the problems which stopped the install mid-stream, but I will try.