refinerycms

How to install Refinery CMS using Rails 4

拥有回忆 提交于 2019-12-21 16:55:56
问题 I previously never had a problem with Refinery. I was refreshing my knowledge by following along to the tutorial http://railscasts.com/episodes/332-refinery-cms-basics .Then when I created a new app with Refinery CMS, I got this error Bundler could not find compatible versions for gem "actionmailer": In Gemfile: refinerycms (~> 2.1.0) ruby depends on actionmailer (< 3.3, >= 3.1.3) ruby rails (= 4.0.0) ruby depends on actionmailer (4.0.0) But should not these things be there by default with

Heroku timeout when uploading big file to s3

一笑奈何 提交于 2019-12-20 20:26:15
问题 I got a problem with my application based on RefineryCMS 1.0.8 deployed on heroku. Heroku have a request timeout of 30 seconds. When uploading a file > 4MO through the RefineryCMS admin, it will sometimes take more than 30 seconds to perform the request (mostly because of the time needed to upload the file to s3). In this case, the dyno will be "frozen" and unresponsive for around 30 minutes (every request during this time end up by a H12 Error request timeout). This behaviour is exactly what

RefineryCMS: apply bootstrap styles to navigation menu

主宰稳场 提交于 2019-12-20 16:31:10
问题 I have upgraded Refinery CMS to the newest version (2.1.0), where there is a new approach in rendering the navigation menu : (in partial _header.html.erb ) <%= Refinery::Pages::MenuPresenter.new(refinery_menu_pages, self).to_html %> The older version of the same partial : <%= render(:partial => "/refinery/menu", :locals => { :dom_id => 'menu', :css => 'menu' }) %> How could I add bootstrap styles to the navbar using MenuPresenter ? 回答1: It can be done, but the solution is not pretty because

Custom fields in Refinery CMS

风格不统一 提交于 2019-12-20 05:49:12
问题 How do you add custom fields in Refinery CMS? That is, I would like to extend the basic page model to include a bunch of other stuff, like screenshots, publisher name, category, and assorted other fields. How do you implement that? 回答1: Have a look at the (excellent) Getting Started with Refinery guide. In Section 6 the guide lays out how to add extra fields - in the example date, picture and blurb - using engines: http://refinerycms.com/guides/getting-started-with-refinery#extending-refinery

refinerycms image not loading - dragonfly error

*爱你&永不变心* 提交于 2019-12-19 06:04:27
问题 I'm working on developing a refinerycms rails app that was working good locally and now i've moved it to my VPS and I was having issues with images that i uploaded through refinerycms not loading and i've been reading that i needed to upgrade my version of imagemagick. I upgraded from 6.2.8 to 6.7.8. Now the images all load on some pages, but not on the admin side. What is causing this issue? Here's the stacktrace of the error. Dragonfly::Shell::CommandFailed (Command failed (convert '/var

How do I change the Refinery CMS admin path?

99封情书 提交于 2019-12-12 18:23:57
问题 I have done this: MyApp::Application.routes.draw do get 'admin', :to => redirect('/refinery') mount Refinery::Core::Engine, :at => '/' end It allows me to give to my users a friendlier URL, one that makes sense to them, but the path still changes to localhost:3000/refinery . So, how do I do this? Without redirection perhaps? 回答1: EDIT, sorry you actually can use the file at config/initializers/refinery/core.rb just add this line config.backend_route= "admin" 来源: https://stackoverflow.com

RefineryCMS routes for Home page doesn't work

老子叫甜甜 提交于 2019-12-12 14:18:48
问题 just started with RefineryCMS, sorry for newbie question. It runs fine locally and deployed luckily on Heroku Cedar stack. Created a page called Home. /pages/home responds fine. routes.rb root :to => 'pages#home' and works on localhost:3000 but on Heroku it gives error. The app is here: http://refkocedar.herokuapp.com/home works http://refkocedar.herokuapp.com/ does not work How to set Home page to root on Heroku? Thanks for help! $ heroku logs 2012-04-03T02:19:57+00:00 heroku[router]: GET

Refinery CMS on Ruby Rails: Translating / Localising the Strings in the Blog Module

我的梦境 提交于 2019-12-12 03:15:25
问题 In the blog module for refinery CMS there are some strings in the source code that I would like to translate. When I override the view for _post.html.erb of the blog module there is code like this inside: <%= content_tag(:span, "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.username}", :class => "blog_author") if @post.author.present? %> I would like to localize the "by" string, so that in the blog, the default english "By authorname" is replaced by a phrase in another

Site dead. “ACTION REQUIRED: Rails Security Vulnerability ”

半世苍凉 提交于 2019-12-11 11:08:23
问题 My site is currently dead therefore I can't explain how urgent for me this is. Situation: A few days ago I received an e-mail from Heroku "ACTION REQUIRED: Rails Security Vulnerability " advising me to update rails to version '3.2.11'. After I followed all the steps in the e-mail I tried to open my web site. I was extremely surprised when I saw that I can't open my site. My site is made with RefineryCMS . Is it possible, using git, to restore my site to the previous point in time when

Connecting refinery cms with Amazon S3 web services

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 03:23:40
问题 I'm having problem connecting refinery cms's web site with amazon s3 service for storing data. I've found this tutorial on official refinerycms web site: http://refinerycms.com/guides/amazon-s3-for-uploads 1) I'm having problems concerning keys: - S3_KEY - S3_SECRET - S3_BUCKET - S3_REGION My question is - can I arbitrarily choose keys, or are these keys somewhere to be found in Amazon/Refinery? If later -yes, where can I found them? What should I type for S3_REGION (I'm in Austria)? 2) After