refinerycms

Rails 4 link_to url causes browser to GET when it should DELETE

你离开我真会死。 提交于 2020-01-17 04:14:06
问题 Searching around, I see that variations on this question used to be asked on StackOverflow fairly often, but nothing in recent years. That makes me wonder if perhaps I have something that is out of date, perhaps a Javascript library. We just started working on a new Rails 4 site, using Ruby 2, however we accepted the frontend code from our designer, and we used it mostly untouched. That includes: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> We have

Move RefineryCMS from Local to Production

匆匆过客 提交于 2020-01-15 05:15:13
问题 We decided to try using RefineryCMS for our current project and have run into some issues. We began the project in a local development environment. The deadline is very quickly approaching. At first, we tried to move the project into production using a DreamHost server. There were issues with the images (Refinery uses Dragonfly), where our database dump wasn't brining any images over (or thumbnails). We have exhausted our resources and still can't find a solution to our problem. I've done

How to add a lightbox style image gallery to a refinery-cms website?

走远了吗. 提交于 2020-01-06 14:04:10
问题 How can I add lightbox style image gallery to Ruby-on-Rails website that is using Refinery-cms? I want the content managers to be able upload images to a page but have the page automatically display thumbnails with links that show the full-size image in a lightbox style window. 回答1: First step is to download jquery_lightbox from Github https://github.com/krewenki/jquery-lightbox/archive/master.zip Unzip and copy the files to the correct locations Copy jquery_lightbox.js to app/assests

Why is there no image after creating a record in Refinery CMS?

依然范特西╮ 提交于 2020-01-05 05:47:08
问题 I tried to create a refinerycms engine with a photo field in it, and came across this problem when rendering a page with an image. I searched for answers with no result. ArgumentError (Didn't recognise the geometry string ): dragonfly (0.9.15) lib/dragonfly/image_magick/processor.rb:104:in `thumb' dragonfly (0.9.15) lib/dragonfly/function_manager.rb:39:in `call' dragonfly (0.9.15) lib/dragonfly/function_manager.rb:39:in `block (2 levels) in call_last' dragonfly (0.9.15) lib/dragonfly/function

Rails App “Permission Denied” error when installing refinerycms

岁酱吖の 提交于 2019-12-25 01:49:58
问题 While trying to install refinery, a rails app, I keep getting the following error: ESL@new-host-2 ~$ refinerycms /Application/MAMP/htdocs/goodwatching create /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /Application (Errno::EACCES) from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p' from /usr

Dynamic routes on runtime in Rails

喜夏-厌秋 提交于 2019-12-24 12:51:24
问题 I'm developing a site using refinery. Now for one specific page that is created in the back-end of refinery, i want to use my own controller and views. All the User can do with this page is to set the menu-position, title, meta-info etc. The URL for this page has to look the same as all the other pages. So for example, the menu structure looks like: menux menu1 menu2 specific page menux And the URL for "specific page" looks like "locale/menu1/menu2/specific page" The site is available in

How to login a user in RefineryCMS tests?

南笙酒味 提交于 2019-12-24 00:45:55
问题 I'm developing a custom controller in refineryCMS, that placed in the root of the app class ExchangeController < ApplicationController def exchange end end It works fine, but to have it tested I need to login a refinery user like this describe "Exchange action" do login_refinery_user it 'should return a 200' do get '/exchange' response.code.should == '200' end end But it just doesn't work :( (undefined local variable or method `login_refinery_user') Without calling that login method im

Overriding backend assets in production environment

烈酒焚心 提交于 2019-12-23 10:50:14
问题 I am working on a project that needs to alter Refinery's WYMEditor behavior a bit. This is easily done by overriding jquery.refinery.wymeditor.js using rake refinery:override and editing it to my own needs, which works fine in development environment. However, when it comes to production, overrides are ignored. That is, the compiled asset just contains jquery.refinery.wymeditor.js from bundle, and editing that file directly there may give the desired effect, but that's just not the way it

Move database from 1.0.9 to 2.0.0

大兔子大兔子 提交于 2019-12-22 17:58:13
问题 Had some problem with updating it from 1.0.9 , so I made a new project in 2.0.0 and now I just need to move the database. How do I do that ? 回答1: Got answer on groups.google.com: http://blog.craigambrose.com/past/2012/3/4/upgrading_to_refinery_cms_20/ Pete Higgins :"Craig Ambrose wrote an unofficial guide on upgrading Refinery 1.x to 2.0.x: http://blog.craigambrose.com/past/2012/3/4/upgrading_to_refinery_cms_20/ pete" "I've got an upgrade guide at blog.craigambrose.com which includes a

RefineryCMS Engines Error: did not have a valid gemspec

寵の児 提交于 2019-12-22 05:48:15
问题 I can't install any engines. After installing the first event engines from guide, I had an error saying I don't have a valid gem spec. Using refinerycms-events (1.0) from source at vendor/extensions refinerycms-events at /Users/lydia/Desktop/projects/cmsex/vendor/extensions/events did not have a valid gemspec. This prevents bundler from installing bins or native extensions, but that may not affect its functionality. The validation message from Rubygems was: authors may not be empty Now