Questions tagged [refinery]

Refinery is a Ruby on rails CMS that supports Rails 5.1+.

Refinery is a Ruby on rails CMS that supports Rails 5.1+, it is perfect for creating custom content manageable websites the "The Rails Way".

49 questions
5
votes
2 answers

How do you loop through a field on a custom engine in refinery cms

I'm creating a custom engine in refinery cms and I have a field called "PDF" that is a refinery resource field type. Some entries in the engine will only have one pdf, while others will have multiple pdf's. Is there a way to do this without creating…
Lee McAlilly
  • 9,084
  • 12
  • 60
  • 94
5
votes
1 answer

Refinery CMS: generating migrations for existing models within an engine

I want to add an attribute to a model I've created within a Refinery CMS engine. I know I could do the following: rails generate migration AddPartNumberToProducts part_number:string Manually move the migration file from db/migrate to…
Mike
  • 9,692
  • 6
  • 44
  • 61
3
votes
4 answers

how to add custom routes to refinerycms

i need to add a custom path to refinerycms project, here is how i did it: mount Refinery::Core::Engine, :at => '/' get 'news/more' => 'refinery::news::items#view_more', as: :news_view_more now 'rake routes' can prints correct routes, but i can't…
dfang
  • 1,366
  • 15
  • 41
3
votes
0 answers

RefineryCMS Custom Layout Template works in host app but not with engine

So I followed the refinery guide to create a custom layout template. I switched my about page to use my new template in the advanced options and it worked like a charm. Then I created a new engine called clients and selected the new template in…
rakitin
  • 1,943
  • 6
  • 25
  • 51
3
votes
2 answers

Refinery CMS inquiries - NoMethodError for content_for when rendering :body content

I'm using the 'refinerycms-inquiries' gem in my app to render an inquiry on my contact page. The problem that I'm getting is that although I can use the <%= raw @page.content_for(:body) %> code on my other pages to render the content, I have no idea…
raulp
  • 196
  • 2
  • 15
2
votes
0 answers

Refinerycms and public folder => Couldn't find Refinery::Page with 'id'=404

I had a project with refinerycms(branch master) and rails 4.1.1. I'm using carrierwave to upload images and related to a model. The file upload works fine, I saw the images in the public folder: public/uploads/related_file/file/1/test.jpg I'm trying…
dobleUber
  • 566
  • 6
  • 22
2
votes
1 answer

Overriding layouts in RefineryCMS

I have just started working with ruby on rails properly like for a week and now I have started working on RefineryCMS, I followed the official guide and created a demo application and got to know the interface and the CMS itself a little bit, now I…
Hassan
  • 111
  • 1
  • 14
2
votes
1 answer

Unable to Implement itemprop attribute into Refinery CMS - Rails 4

If you're familiar with Refinery CMS - a CMS for Rails - is that I can't make schema.org attributes. I open a page, go to edit, and state:
Example
1
vote
0 answers

Upload a document and display it to the user straight away

Requirement : I should upload a document (say ppt and pdf) and display it straight away to the User. Note: The ppt and pdf should be displayed like a webpage for viewing Questions: 1. Is there any out of the box solution for this in Refinery…
GjA
  • 13
  • 3
1
vote
1 answer

RefineryCMS images upload not working in production

I've got a website running on RefineryCMS for some time already. However there's one thing I cannot figure out. Images uploaded via CMS do not work in the production environment. It works fine in development on my local machine, but in production on…
kellins
  • 90
  • 9
1
vote
0 answers

Set value to belongs_to attributes in rails create action

I'm trying to set the title of a Page in my create action. I would need to page.translation.title = params[:page][:title] def create @page = Page.new(params[:page]) @page.translation.title = params[:page][:title] if @page.save …
neo
  • 4,078
  • 4
  • 25
  • 41
1
vote
1 answer

Error when I implement ruby on rails with refinery

I am trying to implement the blog of the getting started of ruby on rails with refinery and when I want to write a comment it say that: NoMethodError in CommentsController#create undefined method `permit' for {"commenter"=>"lkjlkm",…
1
vote
0 answers

Is there any way to get the images from a Refinery CMS account using API

I am using Refinery CMS for content management system. I have the images and pages-images plugin. Is there a way to access images or pagesimages of a user account using REST API? Thanks! Satya
satya on rails
  • 392
  • 2
  • 13
1
vote
0 answers

PG::Error - Refinery CMS - Blog Post Create Error

I'm getting an error whenever I try to create a new blog post. I am running refinery 2.1 with the blog gem installed. I have recently upgraded from 2.0 and have migrated and seeded the database. I am getting a PG Constraint error in my…
Case
  • 111
  • 2
  • 7
1
vote
1 answer

I can not run the task of rake refinery:testing:dummy

guys! I am a newbie for Ruby on Rails and refinerycms. Currently, I am study the refinerycms. I want to find all the missing key so as to translate refinerycms. According to the tutorial, I should run the command bundle exec rake…
1
2 3 4