refinerycms

Problems installing imagemagick

纵然是瞬间 提交于 2019-12-03 10:14:48
Im trying to start my first refinery cms project, and am already having trouble. I am trying to get imagemagick going, and am getting errors. I looked on stackoverflow about changing permissions to my profile, or the directories that have problems, also uninstalling and reinstalling, but so far no luck. I was hoping maybe someone could walk me through fixing this. Thanks so much. Mac-Pro:local user$ brew install imagemagick Error: You must `brew link jpeg' before imagemagick can be installed Mac-Pro:local user$ brew link jpeg Linking /usr/local/Cellar/jpeg/8d... Error: Could not symlink file:

Heroku timeout when uploading big file to s3

久未见 提交于 2019-12-03 05:57:17
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 describe christos in the last message in this discussion From this other discussion and the heroku

RefineryCMS: apply bootstrap styles to navigation menu

蹲街弑〆低调 提交于 2019-12-03 04:43:05
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 ? It can be done, but the solution is not pretty because the Menu Presenter in Refinery 2.1 doesn't support all the right CSS options out of the box. But with a bit

Augmenting a model from an external gem

a 夏天 提交于 2019-12-03 04:38:37
问题 I'm using refinerycms in our site to let the less technical staff update content. Inside the gem, they have a Page class that maps each top level page on the site. I'd like to use the acts_as_taggable gem on this Page class. Now I can add the acts_as_taggle declaration directly to the page.rb file, but then I'd have to maintain a separate git repo to track differences between my version and the official release. Based on some other questions here on SO I created an initializer and extension

AWS S3/Ruby on Rails/ heroku: Security hole in my app

自古美人都是妖i 提交于 2019-12-01 02:20:06
I have a route in my config which says that for a page, say /secure , there is a login required (done via authlogic). A before_filter in my controller takes care of that. That works fine, the page and its resources have restricted access - through the application. Trouble is, we are using Amazon S3 for storage on this app (based on refinerycms) deployed to heroku. I have a bucket and it works fine. However, any resource inserted in the secure part of the application is directly accessible through the browser. In other words, the /secure page contains items like pdf files. While through the app

AWS S3/Ruby on Rails/ heroku: Security hole in my app

耗尽温柔 提交于 2019-11-29 23:50:14
问题 I have a route in my config which says that for a page, say /secure , there is a login required (done via authlogic). A before_filter in my controller takes care of that. That works fine, the page and its resources have restricted access - through the application. Trouble is, we are using Amazon S3 for storage on this app (based on refinerycms) deployed to heroku. I have a bucket and it works fine. However, any resource inserted in the secure part of the application is directly accessible

Rails Bootstrap Navbar and refineryCMS

拜拜、爱过 提交于 2019-11-29 03:05:12
问题 Does anyone have implemented the Rails Bootstrap Navbar in refineryCMS? I'm having a hard time trying to figure out how to render the dropdown menu. which should be the right way of accomplish this? _menu.html.erb <% if (roots = local_assigns[:roots] || (collection ||= refinery_menu_pages).roots).present? dom_id ||= 'menu' css = [(css || 'menu'), 'clearfix'].flatten.join(' ') hide_children = Refinery::Core.menu_hide_children if hide_children.nil? -%> <div class="navbar"> <div class="navbar

Connection refused - connect(2) Ruby on Rails Mail Setup

百般思念 提交于 2019-11-28 11:24:18
I have set smtp settings in both config/environments/production.rb and development.rb also i have added the settings in `config/initializers/setup_mail.rb config.action_mailer.default_url_options = { :host => 'ipaddress' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => 'smtp.gmail.com', :port => 587, :domain => 'gmail.com', :user_name => 'EMAIL_ADDRESS@gmail.com', :password => 'pass', :authentication => :plain, :enable_starttls_auto => true, :openssl_verify_mode => 'none' } config/initializers/setup_mail.rb ActionMailer::Base.smtp_settings = {

Connection refused - connect(2) Ruby on Rails Mail Setup

别来无恙 提交于 2019-11-27 19:20:09
问题 I have set smtp settings in both config/environments/production.rb and development.rb also i have added the settings in `config/initializers/setup_mail.rb config.action_mailer.default_url_options = { :host => 'ipaddress' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => 'smtp.gmail.com', :port => 587, :domain => 'gmail.com', :user_name => 'EMAIL_ADDRESS@gmail.com', :password => 'pass', :authentication => :plain, :enable_starttls_auto => true,