wearefine / fae Goto Github PK
View Code? Open in Web Editor NEWCMS for Rails. For Reals.
Home Page: https://www.faecms.com
License: MIT License
CMS for Rails. For Reals.
Home Page: https://www.faecms.com
License: MIT License
At the moment, is it possible to integrate Fae into an existing application?
From #135
Re Fae::VERSION: the ActionView::Template Error (uninitialized constant Fae::VERSION)
issue - I found a solution and didn't deep dive, although this issue needs to be properly resolved before considering Fae Rails 5-ready.
Set config.eager_load
to false
in config/environments/production.rb
. Like I said, this will have to be revisited because we obviously want eager loading. Maybe requiring the gem for use in views?
It would be really cool if we could upload images from the markdown editor (like on github)
We already implemented this feature in our fork. Please look our PR and let us know if it's something the Fae team would consider merging. (making pr at the moment)
So, I am relatively new to Ruby on Rails, but I got everything setup and finished the Quickstart on FAE. Now, I am running into a problem of where exactly are the articles posting to? So, I assume it will be in the app/views/layout folder, since the admin folder is the actual admin interface. Can someone guide me into the next step of how to show my content to the client side? Thank you!
I need to allow users to create "posts" with embedded images. I am thinking about adding a JavaScript WYSIWYG editor such as Trumbowyg and store the HTML in the database. Also, the images should be uploaded to the server via Ajax when they are inserted in the text editor.
It looks like a sizable task, so I wanted to ask here first in case anyone thought about this before. Also, how likely is that FAE would incorporate this feature if it gets coded.
Rails 5.0.1
Fae 1.4.0
(gem 'fae-rails', github: 'wearefine/fae', branch: 'issue-147'
)
Following documentation found here: https://github.com/wearefine/fae/blob/master/docs/helpers/form_helpers.md#fae-datepicker
This code throws NoMethodError: undefined method
fae_datepicker' `
= simple_form_for @email_form, url: submit_emails_path, html: { id: "book-your-event-form", class: "form validate-form js-thanks" } do |f|
.form-inputs
= f.input :number_of_guests, validate: true
= fae_datepicker f, :preferred_dates, validate: true
...
.form-footer
= f.button :submit, 'Submit'
Running the install generator causes this error :
Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for: class AddUserTable < ActiveRecord::Migration[4.2]
This is due to Rails 5 major changes on the migration api :
For example, I have a contact form which stores inquiries and want to display the admin portal of Fae. However I am just curious, if there is an API existing maybe that I am looking over in documentation for making a view only scaffold or maybe being brainstormed about as feature.
My alternative solution for now is to create a design that matches the backend for displaying the respective types as display only or disable all fields on edit form.
Thanks,
Arin
See at https://www.faecms.com/documentation/quickstart-guide
I think it should be validates instead of validated
See at https://www.faecms.com/documentation/helpers-form_helpers
I think it should be is instead of it
From #135
Another error:
Steps to recreate
ActiveRecord::ReadOnlyRecord (Fae::TextArea is marked as readonly):
activerecord (5.0.0) lib/active_record/persistence.rb:533:in `create_or_update'
activerecord (5.0.0) lib/active_record/callbacks.rb:298:in `block in create_or_update'
activesupport (5.0.0) lib/active_support/callbacks.rb:126:in `call'
activesupport (5.0.0) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
activesupport (5.0.0) lib/active_support/callbacks.rb:455:in `call'
activesupport (5.0.0) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
activesupport (5.0.0) lib/active_support/callbacks.rb:750:in `_run_save_callbacks'
activerecord (5.0.0) lib/active_record/callbacks.rb:298:in `create_or_update'
activerecord (5.0.0) lib/active_record/persistence.rb:125:in `save'
activerecord (5.0.0) lib/active_record/validations.rb:44:in `save'
activerecord (5.0.0) lib/active_record/attribute_methods/dirty.rb:22:in `save'
activerecord (5.0.0) lib/active_record/transactions.rb:319:in `block (2 levels) in save'
activerecord (5.0.0) lib/active_record/transactions.rb:395:in `block in with_transaction_returning_status'
activerecord (5.0.0) lib/active_record/connection_adapters/abstract/database_statements.rb:230:in `transaction'
activerecord (5.0.0) lib/active_record/transactions.rb:211:in `transaction'
activerecord (5.0.0) lib/active_record/transactions.rb:392:in `with_transaction_returning_status'
activerecord (5.0.0) lib/active_record/transactions.rb:319:in `block in save'
activerecord (5.0.0) lib/active_record/transactions.rb:334:in `rollback_active_record_state!'
activerecord (5.0.0) lib/active_record/transactions.rb:318:in `save'
activerecord (5.0.0) lib/active_record/suppressor.rb:41:in `save'
activerecord (5.0.0) lib/active_record/autosave_association.rb:440:in `save_has_one_association'
Temporary solution:
models/concerns/fae/text_area_concern.rb
:module Fae::TextAreaConcern
extend ActiveSupport::Concern
def readonly?
false
end
end
Fae::TextFieldConcern
.I tried using the latest release of fae on Rails 5.1 (Ruby 2.3.1). I was able to work around the copied generators error, but then could not create a new Article (following the example in the quick start). I traced this to the Hero Image and PDF being (implicitly) required at the model layer, but not in the UI. Overriding the Fae::File with
belongs_to :fileable, polymorphic: true, touch: true, optional: true
...and similar on the Fae::Image allowed the interface to work.
There was an additional oddity with the UX in the form, related (I suspect) to the system marking these form elements as not required. After submitting the form, I would briefly see an error message at the top saying that I should "check the form fields for errors". This would disappear after a very short time, but no fields were marked as having errors. When I added = debug @item.errors.full_messages
to the relevant _form partial, I was able to see that the image and file were being required, as noted above.
Hi, I would like to propose a faeture.
We have an ArticleCategory
model which is implemented as a tree using the act_as_tree
gem.
I believe it is common to want to arrange categories in a parent -> child relationship.
My proposition, is to implement something similar to the Fae::UtilitiesController#sort
action, but call it #sort_tree
.
I will share an example app.
Need to upgrade kaminari gem to resolve error.
http://stackoverflow.com/a/34437768/5261969
"Attempting to generate a URL from non-sanitized request parameters! An attacker can inject malicious data into the generated URL, such as changing the host. Whitelist and sanitize passed parameters to be secure."
I created a static page ‚gallery‘ .
there I want to include a form where the user can upload multiple images.
# app/models/gallery_page.rb
class GalleryPage < Fae::StaticPage
@slug = 'gallery'
# required to set the has_one associations, Fae::StaticPage will build these associations dynamically
def self.fae_fields
{
body: { type: Fae::TextArea }
}
end
has_many :gallery_images, -> { where(attached_as: 'gallery_images') },
as: :imageable,
class_name: '::Fae::Image',
dependent: :destroy
accepts_nested_attributes_for :gallery_images, allow_destroy: true
end
# app/views/admin/content_blocks/gallery.html.slim
= simple_form_for @item, url: fae.update_content_block_path(slug: @item.slug), method: :put do |f|
header.content-header.js-content-header
== render 'fae/shared/form_header', header: @item
main.content
= fae_content_form f, :body, markdown: true
/ = fae_image_form f, :gallery_images <- this isnt working
how can I implement this?
Looking into a solution for a personal project. Rails 4.1 is the version it's locked at.
When I added Fae to an existing project that had Devise + Devise Token Auth for JSON API. Upon my request to my Customer Devise model (mounted by devise_auth_token). All before_actions
from Fae's controller are being called.
Any thoughts? Something to do with extending ApplicationController?
Started POST "/api/v1/customers/sign_in" for 127.0.0.1 at 2017-08-11 22:49:53 -0700
Processing by Overrides::SessionsController#create as JSON
Parameters: {"customer"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}, "session"=>{"customer"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}}}
Can't verify CSRF token authenticity.
Fae::User Load (0.8ms) SELECT "fae_users".* FROM "fae_users" INNER JOIN "public"."fae_roles" ON "public"."fae_roles"."id" = "fae_users"."role_id" WHERE "fae_users"."active" = $1 AND "fae_roles"."name" = $2 ORDER BY "fae_users"."first_name" ASC, "fae_users"."last_name" ASC [["active", "t"], ["name", "super admin"]]
Redirected to http://lvh.me:3000/admin/first_user
Ruby 2.3.1
Rails 5.0.5
Fae 1.5.1
Devise Auth Token 0.1.42
Devise 4.3.0
When I have filters saved via cookies I get the following error:
Attempting to generate a URL from non-sanitized request parameters! An attacker can inject malicious data into the generated URL, such as changing the host. Whitelist and sanitize passed parameters to be secure.
To recreate go to the release index page in the dummy app locally (http://localhost:3000/admin/releases). You may have to use the filters and refresh to get the cookie to save the filter.
thanks
I have only tested this on Pages. I have a nested form with images. When I add and image, instead of ajaxing the form up, it takes me to another, unstyled page. I have another nested page form, with no image, and it works as intended.
make sure you have rails 4.2.9 installed
gem uninstall rails # ( select All option)
gem uninstall railties # ( select All option)
gem install rails -v 4.2.9
# or any other way you know how to create a rails app with a specific version
you can paste this shell script into a file and execute it or paste it in the terminal:
rails _4.2.9_ new failing_image_example
cd failing_image_example
echo "gem 'fae-rails', '1.5.1'" >> ./Gemfile
echo "gem 'carrierwave'" >> ./Gemfile
bundle install
bundle exec rails g fae:install
rails g fae:scaffold Article title:string hero_image:image
rake db:migrate
rake fae:seed_db
cat <<EOF > ./app/models/article.rb
class Article < ActiveRecord::Base
include Fae::BaseModelConcern
has_fae_image :hero_image
validate :hero_image_is_valid
validate :title_is_valid
def hero_image_is_valid
return if hero_image.asset?
errors.add(:"hero_image.asset", 'hero_image asset cannot be nil')
end
def title_is_valid
return if title.include? 'this string'
errors.add(:title, "title must include 'this string'")
end
def fae_display_field
title
end
end
EOF
this string
a
(validation will fail with: title must include 'this string')a this string
go to the edit page (admin/articles/1/edit)
and the article will not have an image
For debugging, I followed these steps:
echo "gem 'pry-rails'" >> ./Gemfile
bundle install
bundler open fae-rails
I put binding.pry on the first line inside the Fae::BaseController#update method and repeated Steps 2 and 3. I inspect the params and the value of @image.hero_image.asset but I still can't tell what the problem is...
I was able to solve this by adding this code in the Article
class:
class Article
after_save :save_hero_image
def save_hero_image
hero_image.save if hero_image.asset?
end
end
I am using Fae in a few projects and I would like to solve this problem at the Fae level rather then implementing this code in all my projects.
Please let me know if 1. you were able to reproduce and 2. if there is anything we can do to solve this.
Thanks
I have a money field on my model, managed with the money-rails
gem:
class Product < ApplicationRecord
include Fae::BaseModelConcern
def fae_display_field
name
end
acts_as_list add_new_at: :top
default_scope { order(:position) }
# Money
monetize :price_cents, allow_nil: true
end
If I use the fae_input
in my form, it works
= fae_input f, :price
But I'd like to use fae_suffix
instead (to display the currency symbol next to the input):
= fae_suffix f, :price, suffix: 'EUR'
Now it breaks (Fae::undefined method 'price' for #<Product:0x007f7e26ead3b8>
), because fae_suffix
is checking is_attribute_or_association?
, and money-rails
does not create an attribute named price
.
Solution
A simple fix is to declare the attribute manually on the model:
class Product < ApplicationRecord
# ...
# Money
attribute :price
monetize :price_cents, allow_nil: true
end
Do you think there is a way to handle this in Fae, maybe by updating is_attribute_or_association?
?
Just working through the Quick start...
running
rails g fae:page AboutUs hero_image:image hero_text:string introduction:text body:text annual_report:file
does not create the file
app/views/fae/pages/about_us.html.slim
And there is nowhere to admin pages in the /admin area.
After trying to install with bundler, I'm attempting to install gem fae-rails 1.5.1 on Debian 9,
Rubygems 2.6.11
Ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
Platform x86_64-linux
I also tried 1.4.1 with similar results
/usr/lib/ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in
'read': failed to allocate memory (NoMemoryError) from /usr/lib/ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in
read'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:384:inblock (3 levels) in extract_tar_gz' from /usr/lib/ruby/2.4.0/rubygems/package.rb:383:in
open'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:383:inblock (2 levels) in extract_tar_gz' from /usr/lib/ruby/2.4.0/rubygems/package/tar_reader.rb:65:in
each'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:365:inblock in extract_tar_gz' from /usr/lib/ruby/2.4.0/rubygems/package.rb:459:in
block in open_tar_gz'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:456:inwrap' from /usr/lib/ruby/2.4.0/rubygems/package.rb:456:in
open_tar_gz'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:364:inextract_tar_gz' from /usr/lib/ruby/2.4.0/rubygems/package.rb:345:in
block (2 levels) in extract_files'
from /usr/lib/ruby/2.4.0/rubygems/package/tar_reader.rb:65:ineach' from /usr/lib/ruby/2.4.0/rubygems/package.rb:342:in
block in extract_files'
from /usr/lib/ruby/2.4.0/rubygems/package/file_source.rb:30:inopen' from /usr/lib/ruby/2.4.0/rubygems/package/file_source.rb:30:in
with_read_io'
from /usr/lib/ruby/2.4.0/rubygems/package.rb:339:inextract_files' from /usr/lib/ruby/2.4.0/rubygems/installer.rb:772:in
extract_files'
from /usr/lib/ruby/2.4.0/rubygems/installer.rb:302:ininstall' from /usr/lib/ruby/2.4.0/rubygems/resolver/specification.rb:97:in
install'
from /usr/lib/ruby/2.4.0/rubygems/request_set.rb:166:inblock in install' from /usr/lib/ruby/2.4.0/rubygems/request_set.rb:156:in
each'
from /usr/lib/ruby/2.4.0/rubygems/request_set.rb:156:ininstall' from /usr/lib/ruby/2.4.0/rubygems/commands/install_command.rb:205:in
install_gem'
from /usr/lib/ruby/2.4.0/rubygems/commands/install_command.rb:255:inblock in install_gems' from /usr/lib/ruby/2.4.0/rubygems/commands/install_command.rb:251:in
each'
from /usr/lib/ruby/2.4.0/rubygems/commands/install_command.rb:251:ininstall_gems' from /usr/lib/ruby/2.4.0/rubygems/commands/install_command.rb:158:in
execute'
from /usr/lib/ruby/2.4.0/rubygems/command.rb:310:ininvoke_with_build_args' from /usr/lib/ruby/2.4.0/rubygems/command_manager.rb:169:in
process_args'
from /usr/lib/ruby/2.4.0/rubygems/command_manager.rb:139:inrun' from /usr/lib/ruby/2.4.0/rubygems/gem_runner.rb:55:in
run'
from /usr/bin/gem:21:in `
I tried importing:
//= require fae/vendor/trumbowyg
Error:
couldn't find file 'fae/vendor/trumbowyg' with type 'application/javascript'
Checked in these paths:
/Users/Shared/rails_projects/portfolio/app/assets/config
/Users/Shared/rails_projects/portfolio/app/assets/images
/Users/Shared/rails_projects/portfolio/app/assets/javascripts
/Users/Shared/rails_projects/portfolio/app/assets/stylesheets
So I included trumbowyg manually as a temporary solution. However it appears with the option html: true
is not rendering the html editor. Still a regular input. Any thoughts?
Ruby 2.3.1
Rails 5.0.0
Fae Rails 1.5.1
Development Env
Fae looks great, I'd love to build some sites using it. But the doc seems to stop at explaining the admin tools. Can you point me to any sample code for building an actual website using the tools?
For example, taking your tutorial to the next step and building pages that show the articles and the about page would save me a lot of time. Does it already exist?
This is apparently related to sass/sass#1599 (it's no longer allowed to extend a compound selector, ie. .icon-something:before
).
I use sass 3.5.1 and sass-rails 5.0.6
11:16:27 web.1 | DEPRECATION WARNING on line 10 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/_plugins.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 29 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/_plugins.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_up:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 36 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/_plugins.scss:
11:16:27 web.1 | Extending a compound selector, .icon-search:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 10 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/layout/_breadcrumbs.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_right:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 70 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_sidenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 120 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_sidenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_up:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 31 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_right:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 59 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_left:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 118 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-logout:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 124 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-settings:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 130 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-support:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 136 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_mobilenav.scss:
11:16:27 web.1 | Extending a compound selector, .icon-offlink:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 81 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/navigation/_utility.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 42 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_sorting.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 56 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_sorting.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_up:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 9 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_collapsible.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_up:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 31 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_collapsible.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 55 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_collapsible.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 73 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/tables/_collapsible.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_up:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 32 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/_buttons.scss:
11:16:27 web.1 | Extending a compound selector, .icon-heavy_plus:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 69 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/_modal.scss:
11:16:27 web.1 | Extending a compound selector, .icon-delete_x:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 27 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/_alerts.scss:
11:16:27 web.1 | Extending a compound selector, .icon-check:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 37 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/_alerts.scss:
11:16:27 web.1 | Extending a compound selector, .icon-alert:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 47 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/_alerts.scss:
11:16:27 web.1 | Extending a compound selector, .icon-alert:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 86 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_base.scss:
11:16:27 web.1 | Extending a compound selector, .icon-plus:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 13 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_checkbox.scss:
11:16:27 web.1 | Extending a compound selector, .icon-check:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 66 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_asset-actions.scss:
11:16:27 web.1 | Extending a compound selector, .icon-trash:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 105 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_select.scss:
11:16:27 web.1 | Extending a compound selector, .icon-delete_x:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 278 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_select.scss:
11:16:27 web.1 | Extending a compound selector, .icon-delete_x:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 284 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_select.scss:
11:16:27 web.1 | Extending a compound selector, .icon-check:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 131 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_date.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_left:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 139 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_date.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_right:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 202 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_date.scss:
11:16:27 web.1 | Extending a compound selector, .icon-calendar:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 269 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_date.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_right:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 276 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_date.scss:
11:16:27 web.1 | Extending a compound selector, .icon-chevron_left:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 9 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/modules/forms/_hints.scss:
11:16:27 web.1 | Extending a compound selector, .icon-support:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 457 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/legacy/_pre-1.3.scss:
11:16:27 web.1 | Extending a compound selector, button[type=button], is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 463 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/legacy/_pre-1.3.scss:
11:16:27 web.1 | Extending a compound selector, .icon-arrow_down:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 537 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/legacy/_pre-1.3.scss:
11:16:27 web.1 | Extending a compound selector, .icon-alert:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
11:16:27 web.1 |
11:16:27 web.1 | DEPRECATION WARNING on line 600 of /usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/assets/stylesheets/fae/globals/legacy/_pre-1.3.scss:
11:16:27 web.1 | Extending a compound selector, .icon-delete_x:before, is deprecated and will not be supported in a future release.
11:16:27 web.1 | See https://github.com/sass/sass/issues/1599 for details.
When I run a generator with Ruby 2.4, I get the following error:
bundle exec rails g fae:scaffold Product name description:text position:integer
Running via Spring preloader in process 25740
[WARNING] Could not load generator "generators/fae/scaffold_generator". Error: undefined method `expand_path' for Fae::File (call 'Fae::File.connection' to establish a connection):Class.
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activerecord-5.1.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fae-rails-1.5.1/lib/generators/fae/base_generator.rb:3:in `<class:BaseGenerator>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fae-rails-1.5.1/lib/generators/fae/base_generator.rb:2:in `<module:Fae>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fae-rails-1.5.1/lib/generators/fae/base_generator.rb:1:in `<top (required)>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fae-rails-1.5.1/lib/generators/fae/scaffold_generator.rb:1:in `require_relative'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/fae-rails-1.5.1/lib/generators/fae/scaffold_generator.rb:1:in `<top (required)>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/behavior.rb:82:in `block (2 levels) in lookup'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/behavior.rb:78:in `each'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/behavior.rb:78:in `block in lookup'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/behavior.rb:77:in `each'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/behavior.rb:77:in `lookup'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/generators.rb:250:in `find_by_namespace'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/generators.rb:267:in `invoke'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands/generate/generate_command.rb:24:in `perform'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command/base.rb:63:in `perform'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/command.rb:44:in `invoke'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.2/lib/rails/commands.rb:16:in `<top (required)>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:292:in `require'
/home/hans/projects/eleutheratahiti.com/bin/rails:9:in `<top (required)>'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `block in load'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.2/lib/active_support/dependencies.rb:286:in `load'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/opt/rbenv/versions/2.4.1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
-e:1:in `<main>'
Expected boolean default value for '--markerb'; got :erb (string)
Could not find generator 'fae:scaffold'. Maybe you meant 'css:scaffold', 'erb:scaffold' or 'scaffold'
Run `rails generate --help` for more options.
To make it compatible with Ruby 2.4, I think you need to replace this line:
source_root File.expand_path('../templates', __FILE__)
with
source_root ::File.expand_path('../templates', __FILE__)
If you approve, I can prepare a PR with this change in all generators.
Let me know.
When I click on the little trash bin icon to delete an image, I get the JS confirmation popup, and when I confirm, nothing happens. Actually, the Ajax request goes through and deletes the image, but as there is an Internal Server Error (shown in the logs below) I don't get a visual confirmation of the deletion.
[76d46501-cfa1-42cf-92e0-649f10821cb4] Started DELETE "/admin/images/12/delete_image" for 92.154.88.74 at 2017-08-16 16:04:24 +0000
[76d46501-cfa1-42cf-92e0-649f10821cb4] Processing by Fae::ImagesController#delete_image as JS
[76d46501-cfa1-42cf-92e0-649f10821cb4] Parameters: {"id"=>"12"}
[76d46501-cfa1-42cf-92e0-649f10821cb4] Fae::User Load (1.8ms) SELECT "fae_users".* FROM "fae_users" INNER JOIN "fae_roles" ON "fae_roles"."id" = "fae_users"."role_id" WHERE "fae_users"."active" = $1 AND "fae_roles"."name" = $2 ORDER BY "fae_users"."first_name" ASC, "fae_users"."last_name" ASC [["active", "t"], ["name", "super admin"]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] Fae::User Load (1.5ms) SELECT "fae_users".* FROM "fae_users" WHERE "fae_users"."id" = $1 ORDER BY "fae_users"."first_name" ASC, "fae_users"."last_name" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] Fae::Option Load (1.1ms) SELECT "fae_options".* FROM "fae_options" ORDER BY "fae_options"."id" ASC LIMIT $1 [["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] Fae::Image Load (0.9ms) SELECT "fae_images".* FROM "fae_images" WHERE "fae_images"."id" = $1 LIMIT $2 [["id", 12], ["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] (0.5ms) BEGIN
[76d46501-cfa1-42cf-92e0-649f10821cb4] Story Load (1.1ms) SELECT "stories".* FROM "stories" WHERE "stories"."id" = $1 ORDER BY "stories"."position" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] Fae::Change Load (1.3ms) SELECT "fae_changes".* FROM "fae_changes" WHERE "fae_changes"."changeable_id" = $1 AND "fae_changes"."changeable_type" = $2 ORDER BY "fae_changes"."id" DESC LIMIT $3 [["changeable_id", 4], ["changeable_type", "Story"], ["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] CACHE Fae::User Load (0.1ms) SELECT "fae_users".* FROM "fae_users" WHERE "fae_users"."id" = $1 ORDER BY "fae_users"."first_name" ASC, "fae_users"."last_name" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] CACHE Story Load (0.1ms) SELECT "stories".* FROM "stories" WHERE "stories"."id" = $1 ORDER BY "stories"."position" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
D, [2017-08-16T16:04:24.272759 #25063] DEBUG -- : [76d46501-cfa1-42cf-92e0-649f10821cb4] SQL (1.2ms) INSERT INTO "fae_changes" ("changeable_id", "changeable_type", "user_id", "change_type", "updated_attributes", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["changeable_id", 4], ["changeable_type", "Story"], ["user_id", 3], ["change_type", "updated"], ["updated_attributes", "---\n- cover_landscape\n"], ["created_at", "2017-08-16 16:04:24.267049"], ["updated_at", "2017-08-16 16:04:24.267049"]]
[76d46501-cfa1-42cf-92e0-649f10821cb4] (4.6ms) COMMIT
[76d46501-cfa1-42cf-92e0-649f10821cb4] Completed 500 Internal Server Error in 80ms (ActiveRecord: 14.3ms)
[76d46501-cfa1-42cf-92e0-649f10821cb4]
[76d46501-cfa1-42cf-92e0-649f10821cb4] ActionView::MissingTemplate (Missing template fae/images/delete_image, fae/application/delete_image with {:locale=>[:en], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", :html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :svg, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :gzip], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :slim, :jbuilder]}. Searched in:
* "/home/deploy/myapp/releases/20170816153326/app/views"
* "/home/deploy/myapp/shared/bundle/ruby/2.4.0/gems/kaminari-0.17.0/app/views"
* "/home/deploy/myapp/shared/bundle/ruby/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/views"
* "/home/deploy/myapp/shared/bundle/ruby/2.4.0/gems/devise-4.3.0/app/views"
):
[76d46501-cfa1-42cf-92e0-649f10821cb4]
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/path_set.rb:46:in `find'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/lookup_context.rb:116:in `find'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:38:in `determine_template'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:8:in `render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/renderer/renderer.rb:42:in `render_template'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/renderer/renderer.rb:23:in `render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/rendering.rb:103:in `_render_template'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/streaming.rb:217:in `_render_template'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/rendering.rb:83:in `render_to_body'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/renderers.rb:141:in `render_to_body'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/abstract_controller/rendering.rb:24:in `render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/rendering.rb:36:in `render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /home/deploy/.rbenv/versions/2.4.1/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/core_ext/benchmark.rb:12:in `ms'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activerecord (5.1.3) lib/active_record/railties/controller_runtime.rb:29:in `cleanup_view_runtime'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:43:in `render'
[76d46501-cfa1-42cf-92e0-649f10821cb4] remotipart (1.3.1) lib/remotipart/render_overrides.rb:16:in `render_with_remotipart'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /home/deploy/myapp/shared/bundle/ruby/2.4.0/bundler/gems/fae-fbf5cdb90b78/app/controllers/fae/images_controller.rb:14:in `delete_image'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/abstract_controller/base.rb:186:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/rendering.rb:30:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/callbacks.rb:131:in `run_callbacks'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/abstract_controller/callbacks.rb:19:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/rescue.rb:20:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/notifications.rb:166:in `block in instrument'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/notifications.rb:166:in `instrument'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activerecord (5.1.3) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/abstract_controller/base.rb:124:in `process'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionview (5.1.3) lib/action_view/rendering.rb:30:in `process'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal.rb:189:in `dispatch'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_controller/metal.rb:253:in `dispatch'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:31:in `serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/engine.rb:522:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/railtie.rb:185:in `public_send'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/railtie.rb:185:in `method_missing'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:17:in `block in '
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:46:in `serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] remotipart (1.3.1) lib/remotipart/middleware.rb:32:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] warden (1.2.7) lib/warden/manager.rb:35:in `catch'
[76d46501-cfa1-42cf-92e0-649f10821cb4] warden (1.2.7) lib/warden/manager.rb:35:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/etag.rb:25:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/head.rb:12:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/cookies.rb:613:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/callbacks.rb:97:in `run_callbacks'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/rack/logger.rb:36:in `call_app'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/rack/logger.rb:24:in `block in call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `block in tagged'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/tagged_logging.rb:26:in `tagged'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `tagged'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/rack/logger.rb:24:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/request_id.rb:25:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/method_override.rb:22:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/runtime.rb:22:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] activesupport (5.1.3) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] actionpack (5.1.3) lib/action_dispatch/middleware/executor.rb:12:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] railties (5.1.3) lib/rails/engine.rb:522:in `call'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:160:in `accept_and_process_next_request'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
[76d46501-cfa1-42cf-92e0-649f10821cb4] /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
Hi!
I recently started using Fae in a new project and I'm missing some internationalization functionalities. In my project I needed to override the "set_locale" private method in Fae's ApplicationController to set the locale with the configured default locale in my rails app. Also there are many terms in the views that do not use I18n, like the links in application/_header partial.
When using either regex or complete validators, the label name is appended before the message.
There are two problems with this pattern.
The Message returns null
when the field contains helper text.
Coercing the input label's name before the message might work for the default message that Fae returns for each validation type (ex. Email Address is invalid
), however, if someone wants to add something like:
Please enter a valid email address
...returning the input label before the message will yield:
Email Address Please enter a valid email address
Guys you have done such an amazing job ! Guess you have found the right balance between what is managed by the gem and what remains to be developed. Great flexibility !
You should concider setting up a Circle CI or Travis account (in addition to your jenkins) and create support channel on Slack to increase popularity.
Regards
Fae::Setup controller and Fae::Application does not work with
config.action_controller.include_all_helpers = false
I understand that you are not required to provide compatibility.
But you have a few helpers, you can add them to the necessary controllers.
Folks,
Can someone from the team validate that FAE is NOT prone to CVE-2016-3714? According to the CVE's description this might be a critical security vulnerability if not patched in timely manner.
Here are few more links on the subject:
Thanks!
First I know this is a bad place to ask how-to question. I don’t see any other groups that would allow me to communicate (i.e. slack)
I’m attempting to setup a nested form using fae. I’ve reviewed the documentation, but something is unclear so I’m getting errors. Wanted to see if anyone can help me with issue.
Error
NoMethodError in Admin::Itinerary1s#new
undefined method `link' for #Itinerary1:0x007fa1555e05d0
= simple_form_for(['admin', @item], html: {multipart: true, novalidate: true, class: 'js-file-form'}, remote: true, data: {type: "html"}) do |f|
= fae_input f, :name
= fae_input f, :link
= fae_input f, :start_date
= fae_input f, :end_date
My setup
class Activity1 < ActiveRecord::Base
include Fae::BaseModelConcern
belongs_to :itinerary, touch: true
def fae_nested_parent
:itinerary
end
def fae_display_field
name
end
belongs_to :Itinerary
end
class Itinerary1 < ActiveRecord::Base
include Fae::BaseModelConcern
def fae_display_field
name
end
acts_as_list add_new_at: :top
default_scope { order(:position) }
end
Added activity to navigation
Update _form.html.slim for itinerary
= simple_form_for(['admin', @item]) do |f|
header.content-header.js-content-header
== render 'fae/shared/form_header', header: @klass_name
== render 'fae/shared/errors'
main.content
= fae_input f, :name
= fae_input f, :body
= fae_input f, :active
== render 'admin/activity1s/form'
Also update routes, but really don’t think it’s needed.
namespace :admin do
resources :itinerary1s do
resources :activity1s
end
resources :articles
resources :article_categories
end
Hi there I'm using v1.5.0, devise for regular users, and rails 5.0.2, and notice that my overrides for where to redirect on logout just don't work in production environments. They redirect only to the admin login page instead of the home page.
Do you have any idea why that could be happening? I know I could probably override the base controller files but trying the concern route isn't working.
Thanks
I tried to install fae on a server with 2 GB memory, and every time I get the following.
Can it be related to Fae itself? I never had any issue installing gems when I have 2 GB of RAM...
$ bundle install -j $(nproc) --path vendor
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.0.0
Installing rake 12.0.0
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.8.6
Installing i18n 0.8.6
Fetching minitest 5.10.2
Installing minitest 5.10.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.6.1
Installing erubi 1.6.1
Fetching mini_portile2 2.2.0
Installing mini_portile2 2.2.0
Fetching rack 2.0.3
Installing rack 2.0.3
Fetching nio4r 2.1.0
Installing nio4r 2.1.0 with native extensions
Fetching websocket-extensions 0.1.2
Installing websocket-extensions 0.1.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching public_suffix 2.0.5
Installing public_suffix 2.0.5
Fetching bcrypt 3.1.11
Installing bcrypt 3.1.11 with native extensions
Fetching bindex 0.5.0
Installing bindex 0.5.0 with native extensions
Fetching browser 0.8.0
Installing browser 0.8.0
Using bundler 1.15.2
Fetching byebug 9.0.6
Installing byebug 9.0.6 with native extensions
Fetching json 2.1.0
Installing json 2.1.0 with native extensions
Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching method_source 0.8.2
Installing method_source 0.8.2
Fetching thor 0.19.4
Installing thor 0.19.4
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching remotipart 1.3.1
Installing remotipart 1.3.1
Fetching rmagick 2.13.4
Installing rmagick 2.13.4 with native extensions
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching tilt 2.0.7
Installing tilt 2.0.7
Fetching temple 0.8.0
Installing temple 0.8.0
Fetching multi_json 1.12.1
Installing multi_json 1.12.1
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching pg 0.21.0
Installing pg 0.21.0 with native extensions
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Fetching redcarpet 3.4.0
Installing redcarpet 3.4.0 with native extensions
Fetching rubyzip 1.2.1
Installing rubyzip 1.2.1
Fetching turbolinks-source 5.0.3
Installing turbolinks-source 5.0.3
Fetching tzinfo 1.2.3
Installing tzinfo 1.2.3
Fetching nokogiri 1.8.0
Installing nokogiri 1.8.0 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching addressable 2.5.1
Installing addressable 2.5.1
Fetching childprocess 0.7.1
Installing childprocess 0.7.1
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching slim 3.0.8
Installing slim 3.0.8
Fetching turbolinks 5.0.1
Installing turbolinks 5.0.1
Fetching activesupport 5.1.2
Installing activesupport 5.1.2
Fetching loofah 2.0.3
Installing loofah 2.0.3
Fetching xpath 2.1.0
Installing xpath 2.1.0
Fetching mail 2.6.6
Installing mail 2.6.6
Fetching selenium-webdriver 3.4.4
Installing selenium-webdriver 3.4.4
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 0.4.0
Installing globalid 0.4.0
Fetching activemodel 5.1.2
Installing activemodel 5.1.2
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching capybara 2.14.4
Installing capybara 2.14.4
Fetching sass 3.5.1
Installing sass 3.5.1
Fetching activejob 5.1.2
Installing activejob 5.1.2
Fetching activerecord 5.1.2
Installing activerecord 5.1.2
Fetching carrierwave 0.10.0
Installing carrierwave 0.10.0
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching actionview 5.1.2
Installing actionview 5.1.2
Fetching acts_as_list 0.9.7
Installing acts_as_list 0.9.7
Fetching actionpack 5.1.2
Installing actionpack 5.1.2
Fetching actioncable 5.1.2
Installing actioncable 5.1.2
Fetching actionmailer 5.1.2
Installing actionmailer 5.1.2
Fetching railties 5.1.2
Installing railties 5.1.2
Fetching sprockets-rails 3.2.0
Installing sprockets-rails 3.2.0
Fetching simple_form 3.5.0
Installing simple_form 3.5.0
Fetching kaminari 0.17.0
Installing kaminari 0.17.0
Fetching route_translator 5.4.1
Installing route_translator 5.4.1
Fetching responders 2.4.0
Installing responders 2.4.0
Fetching jquery-rails 4.3.1
Installing jquery-rails 4.3.1
Fetching jquery-ui-rails 4.2.1
Installing jquery-ui-rails 4.2.1
Fetching slim-rails 3.1.2
Installing slim-rails 3.1.2
Fetching web-console 3.5.1
Installing web-console 3.5.1
Fetching webpacker 2.0
Installing webpacker 2.0
Fetching rails 5.1.2
Installing rails 5.1.2
Fetching sass-rails 5.0.6
Installing sass-rails 5.0.6
Fetching devise 4.3.0
Installing devise 4.3.0
Fetching judge 2.1.1
Installing judge 2.1.1
Fetching mountain_view 0.11.0
Installing mountain_view 0.11.0
Fetching judge-simple_form 1.0.0
Installing judge-simple_form 1.0.0
Fetching fae-rails 1.5.1
Installing fae-rails 1.5.1
NoMemoryError: failed to allocate memory
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in `read'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader/entry.rb:134:in `read'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:384:in `block (3 levels) in extract_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:383:in `open'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:383:in `block (2 levels) in extract_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader.rb:65:in `each'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:365:in `block in extract_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:459:in `block in open_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:456:in `wrap'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:456:in `open_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:364:in `extract_tar_gz'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:345:in `block (2 levels) in extract_files'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/tar_reader.rb:65:in `each'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:342:in `block in extract_files'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/file_source.rb:30:in `open'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package/file_source.rb:30:in `with_read_io'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/package.rb:339:in `extract_files'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:779:in `extract_files'
/usr/local/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:302:in `install'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/source/rubygems.rb:145:in `block in install'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/rubygems_integration.rb:195:in `preserve_paths'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/source/rubygems.rb:135:in `install'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/gem_installer.rb:55:in `install'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/gem_installer.rb:15:in `install_from_spec'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/installer/parallel_installer.rb:115:in `block in worker_pool'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:63:in `apply_func'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:58:in `block in process_queue'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:55:in `loop'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:55:in `process_queue'
/usr/local/bundle/gems/bundler-1.15.2/lib/bundler/worker.rb:89:in `block (2 levels) in create_threads'
Bundler 1.15.2
Rubygems 2.6.12
Ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
GEM_HOME /builds/eleuthera/eleutheratahiti.com/vendor/ruby/2.4.0
GEM_PATH
Git 2.1.4
Platform x86_64-linux
OpenSSL OpenSSL 1.0.1t 3 May 2016
path
Set for your local app (/usr/local/bundle/config): "vendor"
Set via BUNDLE_PATH: "/usr/local/bundle"
jobs
Set for your local app (/usr/local/bundle/config): 2
disable_shared_gems
Set for your local app (/usr/local/bundle/config): true
silence_root_warning
Set via BUNDLE_SILENCE_ROOT_WARNING: true
app_config
Set via BUNDLE_APP_CONFIG: "/usr/local/bundle"
bin
Set via BUNDLE_BIN: "/usr/local/bundle/bin"
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.1'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# CMS
gem 'fae-rails'
# Slim and Markdown support
gem 'slim-rails'
gem 'redcarpet'
# I18n
gem 'route_translator'
# Styleguide
gem 'mountain_view'
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.2)
actionpack (= 5.1.2)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.2)
actionpack (= 5.1.2)
actionview (= 5.1.2)
activejob (= 5.1.2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.2)
actionview (= 5.1.2)
activesupport (= 5.1.2)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.2)
activesupport (= 5.1.2)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.2)
activesupport (= 5.1.2)
globalid (>= 0.3.6)
activemodel (5.1.2)
activesupport (= 5.1.2)
activerecord (5.1.2)
activemodel (= 5.1.2)
activesupport (= 5.1.2)
arel (~> 8.0)
activesupport (5.1.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
acts_as_list (0.9.7)
activerecord (>= 3.0)
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
arel (8.0.0)
bcrypt (3.1.11)
bindex (0.5.0)
browser (0.8.0)
builder (3.2.3)
byebug (9.0.6)
capybara (2.14.4)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
childprocess (0.7.1)
ffi (~> 1.0, >= 1.0.11)
concurrent-ruby (1.0.5)
devise (4.3.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0, < 5.2)
responders
warden (~> 1.2.3)
erubi (1.6.1)
execjs (2.7.0)
fae-rails (1.5.1)
acts_as_list (~> 0.9.0)
browser (~> 0.8.0)
carrierwave (~> 0.10.0)
devise (>= 3.4.1)
jquery-rails (>= 3.1.1)
jquery-ui-rails (~> 4.2.1)
judge (~> 2.1.1)
judge-simple_form (~> 1.0.0)
kaminari (~> 0.17.0)
rails (>= 4.1)
remotipart (~> 1.3.1)
rmagick (~> 2.13.3)
sass (>= 3.4.0)
sass-rails (>= 5.0.3)
simple_form (>= 3.1.0)
slim
uglifier
ffi (1.9.18)
globalid (0.4.0)
activesupport (>= 4.2.0)
i18n (0.8.6)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.2.1)
railties (>= 3.2.16)
json (2.1.0)
judge (2.1.1)
rails (>= 3.1)
judge-simple_form (1.0.0)
judge (~> 2.0)
simple_form (>= 2.0)
kaminari (0.17.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.6)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.2.0)
minitest (5.10.2)
mountain_view (0.11.0)
rails (>= 3.2.0)
multi_json (1.12.1)
nio4r (2.1.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
orm_adapter (0.5.0)
pg (0.21.0)
public_suffix (2.0.5)
puma (3.9.1)
rack (2.0.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.1.2)
actioncable (= 5.1.2)
actionmailer (= 5.1.2)
actionpack (= 5.1.2)
actionview (= 5.1.2)
activejob (= 5.1.2)
activemodel (= 5.1.2)
activerecord (= 5.1.2)
activesupport (= 5.1.2)
bundler (>= 1.3.0, < 2.0)
railties (= 5.1.2)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.1.2)
actionpack (= 5.1.2)
activesupport (= 5.1.2)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
redcarpet (3.4.0)
remotipart (1.3.1)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
rmagick (2.13.4)
route_translator (5.4.1)
actionpack (>= 5.0.0.1, < 5.2)
activesupport (>= 5.0.0.1, < 5.2)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.1)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.4.4)
childprocess (~> 0.5)
rubyzip (~> 1.0)
simple_form (3.5.0)
actionpack (> 4, < 5.2)
activemodel (> 4, < 5.2)
slim (3.0.8)
temple (>= 0.7.6, < 0.9)
tilt (>= 1.3.3, < 2.1)
slim-rails (3.1.2)
actionpack (>= 3.1)
railties (>= 3.1)
slim (~> 3.0)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
temple (0.8.0)
thor (0.19.4)
thread_safe (0.3.6)
tilt (2.0.7)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.3)
tzinfo (1.2.3)
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
warden (1.2.7)
rack (>= 1.0)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webpacker (2.0)
activesupport (>= 4.2)
multi_json (~> 1.2)
railties (>= 4.2)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
xpath (2.1.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
byebug
capybara (~> 2.13)
fae-rails
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
mountain_view
pg (~> 0.18)
puma (~> 3.7)
rails (~> 5.1.1)
redcarpet
route_translator
sass-rails (~> 5.0)
selenium-webdriver
slim-rails
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
webpacker
BUNDLED WITH
1.15.1
I'd like to prevent users with role user
from deleting objects from the website (basically, CRUD without D). After reading the documentation about authorization it seems there is no built-in way of doing this.
Do you have ideas on how to implement this? I'm familiar with Pundit, so I may try using this for more granular rights managament, but I wanted to check with you first, in case there is a simple way of doing it with Fae.
Thanks!
Is there an easy way to create an association between a static page and a model?
Ex: I would like to select n People (Person model) on a about_us page.
I have a model ("article") that has an associated gallery of images. I've defined the relationship as:
has_many :gallery_images, -> { where(attached_as: 'gallery_images') },
as: :imageable,
class_name: '::Fae::Image',
dependent: :destroy
accepts_nested_attributes_for :gallery_images, allow_destroy: true
However, I can't find a way to add this to the associated form. I've tried:
= fae_image_form f, :gallery_images, attached_as: 'gallery_images', required: true
But that doesn't show up at all, and I can't see any errors in the log. Looking at nested tables and nested forms, it seems that I would need to create my own model on top of Fae::Image
just to define the parent association, as I can't change Fae::Image
itself.
But I'd like to avoid that and just have a form that handles uploading multiple images. Is there such a thing, and if not, how do I go about creating it?
Here are some fun deprecation warnings I get when running the tests on Rails 5. Not urgent we but should eventually address.
DEPRECATION WARNING: Passing the separator argument as a positional parameter is deprecated and will soon be removed. Use `separator: '_'` instead. (called from block in ___ibrary__eb_erver__ocuments_work_fine__fae_app_views_fae_shared__form_header_html_slim__3258569578465688496_70346386054760 at /Library/WebServer/Documents/work/fine/_fae/app/views/fae/shared/_form_header.html.slim:34)
DEPRECATION WARNING: ActiveModel::Errors#get is deprecated and will be removed in Rails 5.1. To achieve the same use model.errors[:name]. (called from get at /Users/james/.rvm/gems/ruby-2.3.1@fae/gems/activemodel-5.0.0.1/lib/active_model/errors.rb:124)
DEPRECATION WARNING: use_transactional_fixtures= is deprecated and will be removed from Rails 5.1 (use use_transactional_tests= instead) (called from <top (required)> at /Library/WebServer/Documents/work/fine/_fae/spec/requests/wines_spec.rb:25)
DEPRECATION WARNING: Passing string to define callback is deprecated and will be removed in Rails 5.1 without replacement. (called from <class:ReleaseNote> at /Library/WebServer/Documents/work/fine/_fae/spec/dummy/app/models/release_note.rb:19)
DEPRECATION WARNING: [Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
For controller tests, please include `Devise::Test::ControllerHelpers` instead.
(called from <top (required)> at /Library/WebServer/Documents/work/fine/_fae/spec/controllers/fae/application_controller_spec.rb:3)
thanks
I set up Fae cms in a docker container and published it on my web server behind a nginx proxy. When I open and login to admin area over PC there is no problem. When I do the same on android mobile chrome browser I get an invalid access token error.
For those who like to test the docker image search for k1ngf15h3r/fae at the docker hub.
Currently the tests of this repository run in private Jenkins server that belongs to WeAreFine, so collaborators cannot see the results of the tests.
It could be a good idea to move the CI to a public service, such as CircleCI or TravisCI, that have free plans for Open Source projects.
Am getting an uninitialized constant AddSeoFieldsToRelease
error when trying to do a rake db:migrate
from within the Fae dummy app on the v1.6 branch. My hunch says this is related to the recent work done for acronym formatting in admin form labels, but I'm not sure!
Fix: This is easily fixable by changing the class capitalization in the latest migration from AddSEOFieldsToRelease
to AddSeoFieldsToRelease
, but I didn't want to do so without first checking to see if this error has further reaching implications.
@jasonfine @jamesmk any ideas?
Full error:
-> % rake db:migrate
rails aborted!
NameError: uninitialized constant AddSeoFieldsToRelease
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:268:in `const_get'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:268:in `block in constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `each'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `inject'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:961:in `load_migration'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:956:in `migration'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:951:in `disable_ddl_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1289:in `use_transaction?'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1219:in `rescue in execute_migration_in_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1208:in `execute_migration_in_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1185:in `block in migrate_without_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1184:in `each'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1184:in `migrate_without_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1132:in `block in migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1301:in `with_advisory_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1132:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1006:in `up'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:984:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
NameError: uninitialized constant AddSeoFieldsToRelease
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:268:in `const_get'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:268:in `block in constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `each'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `inject'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/inflector/methods.rb:266:in `constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activesupport-5.0.2/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:961:in `load_migration'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:956:in `migration'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:951:in `disable_ddl_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1289:in `use_transaction?'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1281:in `ddl_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1213:in `execute_migration_in_transaction'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1185:in `block in migrate_without_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1184:in `each'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1184:in `migrate_without_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1132:in `block in migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1301:in `with_advisory_lock'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1132:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:1006:in `up'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/migration.rb:984:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/activerecord-5.0.2/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/aransley/.rvm/gems/ruby-2.3.2@fae/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Heads up:
Running rails g fae:install got me:
`rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateFaeRoles < ActiveRecord::Migration[4.2]
/vagrant/db/migrate/20170712130807_create_fae_roles.fae.rb:2:in `<top (required)>'
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateFaeRoles < ActiveRecord::Migration[4.2]
/vagrant/db/migrate/20170712130807_create_fae_roles.fae.rb:2:in <top (required)>' Tasks: TOP => db:migrate (See full trace by running task with --trace) rake fae:seed_db rake aborted! ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: fae_roles: DELETE FROM "fae_roles" /vagrant/lib/tasks/fae_tasks.rake:4:in
block (2 levels) in <top (required)>'
SQLite3::SQLException: no such table: fae_roles
/vagrant/lib/tasks/fae_tasks.rake:4:in block (2 levels) in <top (required)>' Tasks: TOP => fae:seed_db (See full trace by running task with --trace)
Adding class CreateFaeRoles < ActiveRecord::Migration**[5.1]** in all migrations similar solved this. Dont know if it's a global issue tho, but for future reference.
Hi,
my nested new-form does not make an ajax request (remote=true) but submit the parent form.
Any ideas?
thx
I'm trying to following the tutorial Quickstart Guide on Documentation and in when I try to do:
rails g fae:install
Was complained an error on migration and was needed to put on every migration for example this:
class AddUserTable < ActiveRecord::Migration[5.1]
And then was generated the migrations, but when try the migration for CreateFaeTextFields
, was complained another error:
20170629134829 CreateFaeTextFields: migrating ==============================
-- create_table(:fae_text_fields)
E, [2017-06-29T15:58:19.500905 #19207] ERROR -- : fsevent: running worker failed: wrong number of arguments (given 2, expected 1):
here is the complete log for the terminal:
rails g fae:install
Running via Spring preloader in process 19202
run bundle install from "."
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.4
Using minitest 5.10.2
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.6.1
Using mini_portile2 2.2.0
Using rack 2.0.3
Using nio4r 2.1.0
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 8.0.0
Using public_suffix 2.0.5
Using bcrypt 3.1.11
Using bindex 0.5.0
Using browser 0.8.0
Using byebug 9.0.6
Using json 2.1.0
Using ffi 1.9.18
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using method_source 0.8.2
Using thor 0.19.4
Using orm_adapter 0.5.0
Using bundler 1.14.6
Using remotipart 1.3.1
Using rmagick 2.13.4
Using sass 3.4.24
Using tilt 2.0.7
Using temple 0.8.0
Using multi_json 1.12.1
Using rb-fsevent 0.10.1
Using ruby_dep 1.5.0
Using puma 3.9.1
Using rubyzip 1.2.1
Using sqlite3 1.3.13
Using turbolinks-source 5.0.3
Using tzinfo 1.2.3
Using nokogiri 1.8.0
Using rack-test 0.6.3
Using warden 1.2.7
Using sprockets 3.7.1
Using websocket-driver 0.6.5
Using mime-types 3.1
Using addressable 2.5.1
Using childprocess 0.7.1
Using rb-inotify 0.9.10
Using coffee-script 2.4.1
Using uglifier 3.2.0
Using slim 3.0.8
Using turbolinks 5.0.1
Using activesupport 5.1.2
Using loofah 2.0.3
Using xpath 2.1.0
Using mail 2.6.6
Using selenium-webdriver 3.4.3
Using listen 3.1.5
Using rails-dom-testing 2.0.3
Using globalid 0.4.0
Using activemodel 5.1.2
Using jbuilder 2.7.0
Using spring 2.0.2
Using rails-html-sanitizer 1.0.3
Using capybara 2.14.4
Using activejob 5.1.2
Using activerecord 5.1.2
Using carrierwave 0.10.0
Using spring-watcher-listen 2.0.1
Using actionview 5.1.2
Using acts_as_list 0.9.5
Using actionpack 5.1.2
Using actioncable 5.1.2
Using actionmailer 5.1.2
Using railties 5.1.2
Using sprockets-rails 3.2.0
Using simple_form 3.5.0
Using kaminari 0.17.0
Using coffee-rails 4.2.2
Using responders 2.4.0
Using jquery-rails 4.3.1
Using jquery-ui-rails 4.2.1
Using web-console 3.5.1
Using rails 5.1.2
Using sass-rails 5.0.6
Using devise 4.3.0
Using judge 2.1.1
Using judge-simple_form 1.0.0
Using fae-rails 1.5.1
Bundle complete! 16 Gemfile dependencies, 89 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
insert config/routes.rb
identical lib/tasks/fae_tasks.rake
identical app/assets/stylesheets/fae.scss
identical app/assets/javascripts/fae.js
identical app/models/concerns/fae/navigation_concern.rb
identical app/models/concerns/fae/authorization_concern.rb
conflict config/initializers/fae.rb
Overwrite /Users/romenigld/workspace/tutorials/fae_cms/fae/config/initializers/fae.rb? (enter "h" for help) [Ynaqdh] a
force config/initializers/fae.rb
insert config/initializers/fae.rb
identical config/initializers/judge.rb
rake fae:install:migrations
rake db:migrate
== 20170629134823 CreateFaeRoles: migrating ===================================
-- create_table(:fae_roles)
-> 0.0014s
== 20170629134823 CreateFaeRoles: migrated (0.0015s) ==========================
== 20170629134824 CreateFaeImagesTable: migrating =============================
-- create_table(:fae_images)
-> 0.0036s
== 20170629134824 CreateFaeImagesTable: migrated (0.0037s) ====================
== 20170629134825 CreateFaeOptions: migrating =================================
-- create_table(:fae_options)
-> 0.0009s
-- add_index(:fae_options, :singleton_guard, {:unique=>true})
-> 0.0009s
== 20170629134825 CreateFaeOptions: migrated (0.0019s) ========================
== 20170629134826 CreateFaeFiles: migrating ===================================
-- create_table(:fae_files)
-> 0.0051s
== 20170629134826 CreateFaeFiles: migrated (0.0052s) ==========================
== 20170629134827 CreateFaeTextAreas: migrating ===============================
-- create_table(:fae_text_areas)
-> 0.0241s
== 20170629134827 CreateFaeTextAreas: migrated (0.0242s) ======================
== 20170629134828 CreateFaePages: migrating ===================================
-- create_table(:fae_static_pages)
-> 0.0036s
== 20170629134828 CreateFaePages: migrated (0.0038s) ==========================
== 20170629134829 CreateFaeTextFields: migrating ==============================
-- create_table(:fae_text_fields)
E, [2017-06-29T15:58:19.500905 #19207] ERROR -- : fsevent: running worker failed: wrong number of arguments (given 2, expected 1):/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:41:in `block (2 levels) in configure'
/Users/romenigld/.rvm/gems/[email protected]/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:71:in `_run_worker'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:55:in `_run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:78:in `block in start'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb:6:in `block in add' called from: /Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:70:in `_run_worker'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:55:in `_run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:78:in `block in start'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb:6:in `block in add'
-> 0.0327s
== 20170629134829 CreateFaeTextFields: migrated (0.0328s) =====================
== 20170629134830 CreateFaeChanges: migrating =================================
-- create_table(:fae_changes)
-> 0.0013s
-- add_index(:fae_changes, :changeable_id)
-> 0.0023s
-- add_index(:fae_changes, :changeable_type)
-> 0.0033s
-- add_index(:fae_changes, :user_id)
-> 0.0046s
== 20170629134830 CreateFaeChanges: migrated (0.0131s) ========================
rake fae:seed_db
E, [2017-06-29T15:58:25.347829 #19221] ERROR -- : fsevent: running worker failed: wrong number of arguments (given 2, expected 1):/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:41:in `block (2 levels) in configure'
/Users/romenigld/.rvm/gems/[email protected]/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:71:in `_run_worker'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:55:in `_run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:78:in `block in start'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb:6:in `block in add' called from: /Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:70:in `_run_worker'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/darwin.rb:55:in `_run'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/adapter/base.rb:78:in `block in start'
/Users/romenigld/.rvm/gems/[email protected]/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb:6:in `block in add'
➜ fae git:(master) ✗
Love FAE.
Its missing some documentation on the views though. It demonstrates how to call a page with .instance but retrieving something like articles, it lacks the documentation for it.
My controller:
class ArticlesController < Fae::BaseController
layout :set_layout
def index
@articles = Article.all
end
#
def show
@article = Article.find(params[:id])
end
private
def build_assets
@item.build_hero_image if @item.hero_image.blank?
@item.build_pdf if @item.pdf.blank?
end
def set_layout
'frontend'
end
def set_article
@article = Article.find(params[:id])
end
def article_params
params.require(:article).permit(:title )
end
end
and for Article show.slim.html:
- @article.fae_display_field
Am I missing something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.