Alchemy::Engine not generating new_admin_user and edit_admin_user

8 views
Skip to first unread message

Piotr Majewski

unread,
Feb 14, 2018, 9:54:11 AM2/14/18
to Alchemy CMS
Hi, 

I have a strange issue, in my project I have 2 branches with the same Gemfile's and routes.rb but when I run `rails routes` inside my docker container in one case I get routes generated properly and in the other, there are no `new_` and `edit_` paths. By any chance, someone else encountered this issue?


Gemfile


git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
end

# Extensions
gem 'rack-cors'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'
# Use sqlite3 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', '~> 3.0'
# # See https://github.com/rails/execjs#readme for more supported runtimes
gem 'therubyracer', '0.11.4'

# # Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# 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

# React integration
gem "react_on_rails", "10.0.0"
gem "webpacker", "~> 3.0"
gem "alchemy_cms", "~> 4.0.0"
gem "alchemy-devise", "~> 4.0.0"
gem 'rails-i18n', '~> 5.0.0'

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'
  gem 'rspec-rails', '~> 3.6'
  gem 'pry'
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'
  gem 'foreman'
end

group :test do
  gem 'database_cleaner'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

routes.rb

Rails.application.routes.draw do
  root 'hello_world#index'

  get 'hello_world', to: 'hello_world#index'

  resources :customers, only: [:new, :create]

  resources :sessions, only: [:new, :create]
  resource :sessions, only: [:destroy]

  mount Alchemy::Engine => '/'
end

Piotr Majewski

unread,
Feb 15, 2018, 1:42:36 AM2/15/18
to Alchemy CMS
Resolved, it was an issue with Rails application.rb config
Reply all
Reply to author
Forward
0 new messages