Discussions

Ask a Question

Would you recommend to create an ecommerce based on LocomotiveCMS ?

We need to create a E-commerce ? I'd like to know if you would recommend doing it with Locomotive ? Do you have some example sites ? We come from PHP and Wordpress world.... Is there any woocommerce plugin like ?

Rake routes error

Hello, I am getting errors when running rake routes. I ran the "Install Locomotive Engine" example program exactly as specified in https://locomotive-v3.readme.io/docs/getting-started-with-locomotive. My Gemfile has gem 'locomotivecms', '~> 3.1.0' github: 'rails/rails' gem 'rails', '4.2.6' When I then run "rake routes" I get : Prefix Verb URI Pattern Controller#Action locomotive /locomotive Locomotive::Engine /locomotive(/:site_handle)/api #<Rack::Builder:0x007fa2b4fa5740 @warmup=nil, @run=Locomotive::API::Dispatch, @map=nil, @use=[#<Proc:0x007fa2b4f95700@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f7d768@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f66090@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>]> / #<Rack::Builder:0x007fa2b4f5ea48 @warmup=nil, @run=#<Locomotive::Steam::Middlewares::Renderer:0x007fa2b4f5cf40 @app=nil>, @map=nil, @use=[#<Proc:0x007fa2b4f5e868@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e7c8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e728@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e610@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e548@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e458@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e3b8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e278@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5e160@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5df80@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5db48@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5daa8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d968@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d8c8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d800@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d530@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d3a0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d2b0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d210@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d120@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5d058@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b4f5cf68@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>]> Routes for Locomotive::Engine: new_locomotive_account_session GET /sign_in(.:format) locomotive/sessions#new locomotive_account_session POST /sign_in(.:format) locomotive/sessions#create destroy_locomotive_account_session DELETE /sign_out(.:format) locomotive/sessions#destroy locomotive_account_password POST /password(.:format) locomotive/passwords#create new_locomotive_account_password GET /password/new(.:format) locomotive/passwords#new edit_locomotive_account_password GET /password/edit(.:format) locomotive/passwords#edit PATCH /password(.:format) locomotive/passwords#update PUT /password(.:format) locomotive/passwords#update sign_up GET /sign_up(.:format) locomotive/registrations#new POST /sign_up(.:format) locomotive/registrations#create sign_in GET /sign_in(.:format) locomotive/sessions#new sign_out DELETE /sign_out(.:format) locomotive/sessions#destroy root GET / locomotive/sites#index sites GET /sites(.:format) locomotive/sites#index POST /sites(.:format) locomotive/sites#create new_site GET /sites/new(.:format) locomotive/sites#new edit_site GET /sites/:id/edit(.:format) locomotive/sites#edit site GET /sites/:id(.:format) locomotive/sites#show PATCH /sites/:id(.:format) locomotive/sites#update PUT /sites/:id(.:format) locomotive/sites#update DELETE /sites/:id(.:format) locomotive/sites#destroy regenerate_api_key_my_account PUT /my_account/regenerate_api_key(.:format) locomotive/my_account#regenerate_api_key my_account POST /my_account(.:format) locomotive/my_account#create new_my_account GET /my_account/new(.:format) locomotive/my_account#new edit_my_account GET /my_account/edit(.:format) locomotive/my_account#edit GET /my_account(.:format) locomotive/my_account#show PATCH /my_account(.:format) locomotive/my_account#update PUT /my_account(.:format) locomotive/my_account#update DELETE /my_account(.:format) locomotive/my_account#destroy GET /:site_handle(.:format) locomotive/dashboard#show dashboard GET /:site_handle/dashboard(.:format) locomotive/dashboard#show developers_documentation GET /:site_handle/developers(.:format) locomotive/developers_documentation#show sort_page PUT /:site_handle/pages/:id/sort(.:format) locomotive/pages#sort get_path_pages GET /:site_handle/pages/get_path(.:format) locomotive/pages#get_path pages GET /:site_handle/pages(.:format) locomotive/pages#index POST /:site_handle/pages(.:format) locomotive/pages#create new_page GET /:site_handle/pages/new(.:format) locomotive/pages#new edit_page GET /:site_handle/pages/:id/edit(.:format) locomotive/pages#edit page GET /:site_handle/pages/:id(.:format) locomotive/pages#show PATCH /:site_handle/pages/:id(.:format) locomotive/pages#update PUT /:site_handle/pages/:id(.:format) locomotive/pages#update DELETE /:site_handle/pages/:id(.:format) locomotive/pages#destroy update_all_editable_elements PATCH /:site_handle/pages/:page_id/editable_elements/update_all(.:format) locomotive/editable_elements#update_all editable_elements GET /:site_handle/pages/:page_id/editable_elements(.:format) locomotive/editable_elements#index update_all_current_site_metafields PATCH /:site_handle/current_site_metafields/update_all(.:format) locomotive/current_site_metafields#update_all current_site_metafields GET /:site_handle/current_site_metafields(.:format) locomotive/current_site_metafields#index accounts GET /:site_handle/accounts(.:format) locomotive/accounts#index POST /:site_handle/accounts(.:format) locomotive/accounts#create new_account GET /:site_handle/accounts/new(.:format) locomotive/accounts#new edit_account GET /:site_handle/accounts/:id/edit(.:format) locomotive/accounts#edit account GET /:site_handle/accounts/:id(.:format) locomotive/accounts#show PATCH /:site_handle/accounts/:id(.:format) locomotive/accounts#update PUT /:site_handle/accounts/:id(.:format) locomotive/accounts#update DELETE /:site_handle/accounts/:id(.:format) locomotive/accounts#destroy memberships GET /:site_handle/memberships(.:format) locomotive/memberships#index POST /:site_handle/memberships(.:format) locomotive/memberships#create new_membership GET /:site_handle/memberships/new(.:format) locomotive/memberships#new edit_membership GET /:site_handle/memberships/:id/edit(.:format) locomotive/memberships#edit membership GET /:site_handle/memberships/:id(.:format) locomotive/memberships#show PATCH /:site_handle/memberships/:id(.:format) locomotive/memberships#update PUT /:site_handle/memberships/:id(.:format) locomotive/memberships#update DELETE /:site_handle/memberships/:id(.:format) locomotive/memberships#destroy translations GET /:site_handle/translations(.:format) locomotive/translations#index POST /:site_handle/translations(.:format) locomotive/translations#create new_translation GET /:site_handle/translations/new(.:format) locomotive/translations#new edit_translation GET /:site_handle/translations/:id/edit(.:format) locomotive/translations#edit translation GET /:site_handle/translations/:id(.:format) locomotive/translations#show PATCH /:site_handle/translations/:id(.:format) locomotive/translations#update PUT /:site_handle/translations/:id(.:format) locomotive/translations#update DELETE /:site_handle/translations/:id(.:format) locomotive/translations#destroy bulk_create_content_assets POST /:site_handle/content_assets/bulk_create(.:format) locomotive/content_assets#bulk_create content_assets GET /:site_handle/content_assets(.:format) locomotive/content_assets#index POST /:site_handle/content_assets(.:format) locomotive/content_assets#create new_content_asset GET /:site_handle/content_assets/new(.:format) locomotive/content_assets#new edit_content_asset GET /:site_handle/content_assets/:id/edit(.:format) locomotive/content_assets#edit content_asset GET /:site_handle/content_assets/:id(.:format) locomotive/content_assets#show PATCH /:site_handle/content_assets/:id(.:format) locomotive/content_assets#update PUT /:site_handle/content_assets/:id(.:format) locomotive/content_assets#update DELETE /:site_handle/content_assets/:id(.:format) locomotive/content_assets#destroy new_account_public_submission_accounts GET /:site_handle/content_types/:slug/public_submission_accounts/new_account(.:format) locomotive/public_submission_accounts#new_account edit_public_submission_accounts GET /:site_handle/content_types/:slug/public_submission_accounts/edit(.:format) locomotive/public_submission_accounts#edit public_submission_accounts PATCH /:site_handle/content_types/:slug/public_submission_accounts(.:format) locomotive/public_submission_accounts#update PUT /:site_handle/content_types/:slug/public_submission_accounts(.:format) locomotive/public_submission_accounts#update show_in_form_content_entries GET /:site_handle/content_types/:slug/entries/show_in_form(.:format) locomotive/content_entries#show_in_form sort_content_entries PUT /:site_handle/content_types/:slug/entries/sort(.:format) locomotive/content_entries#sort export_content_entries GET /:site_handle/content_types/:slug/entries/export(.:format) locomotive/content_entries#export content_entries GET /:site_handle/content_types/:slug/entries(.:format) locomotive/content_entries#index POST /:site_handle/content_types/:slug/entries(.:format) locomotive/content_entries#create new_content_entry GET /:site_handle/content_types/:slug/entries/new(.:format) locomotive/content_entries#new edit_content_entry GET /:site_handle/content_types/:slug/entries/:id/edit(.:format) locomotive/content_entries#edit content_entry GET /:site_handle/content_types/:slug/entries/:id(.:format) locomotive/content_entries#show PATCH /:site_handle/content_types/:slug/entries/:id(.:format) locomotive/content_entries#update PUT /:site_handle/content_types/:slug/entries/:id(.:format) locomotive/content_entries#update DELETE /:site_handle/content_types/:slug/entries/:id(.:format) locomotive/content_entries#destroy new_option_custom_fields_select_options GET /:site_handle/content_types/:slug/fields/:name/select_options/new_option(.:format) locomotive/custom_fields/select_options#new_option edit_custom_fields_select_options GET /:site_handle/content_types/:slug/fields/:name/select_options/edit(.:format) locomotive/custom_fields/select_options#edit custom_fields_select_options PATCH /:site_handle/content_types/:slug/fields/:name/select_options(.:format) locomotive/custom_fields/select_options#update PUT /:site_handle/content_types/:slug/fields/:name/select_options(.:format) locomotive/custom_fields/select_options#update new_domain_current_site GET /:site_handle/current_site/new_domain(.:format) locomotive/current_site#new_domain new_locale_current_site GET /:site_handle/current_site/new_locale(.:format) locomotive/current_site#new_locale new_url_redirection_current_site GET /:site_handle/current_site/new_url_redirection(.:format) locomotive/current_site#new_url_redirection current_site POST /:site_handle/current_site(.:format) locomotive/current_site#create new_current_site GET /:site_handle/current_site/new(.:format) locomotive/current_site#new edit_current_site GET /:site_handle/current_site/edit(.:format) locomotive/current_site#edit GET /:site_handle/current_site(.:format) locomotive/current_site#show PATCH /:site_handle/current_site(.:format) locomotive/current_site#update PUT /:site_handle/current_site(.:format) locomotive/current_site#update DELETE /:site_handle/current_site(.:format) locomotive/current_site#destroy preview /:site_handle/preview #<Rack::Builder:0x007fa2b3f684e0 @warmup=nil, @run=#<Locomotive::Steam::Middlewares::Renderer:0x007fa2b3f52168 @app=nil>, @map=nil, @use=[#<Proc:0x007fa2b3f62d10@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f623b0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f61e88@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f61820@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f60628@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f60308@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5be20@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5bc90@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5bad8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5b998@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5b808@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5b560@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f5b3f8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f59490@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f590a8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f585e0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f58270@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f53d88@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f531d0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f528e8@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f52578@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>, #<Proc:0x007fa2b3f522d0@/Users/brian/.rvm/gems/ruby-2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:86>]> How can I fix these errors? I am getting the exact same errors in the real app that I am working on. Thanks, Brian
ANSWERED

Problems installing Engine

I'm having problems installing Engine on my own server, following instructions here: https://locomotive-v3.readme.io/docs/getting-started-with-locomotive I get a bunch or errors like this: Action Controller Exception - /usr/local/lib/ruby/gems/2.1.0/gems/locomotivecms-3.1.1/app/models/locomotive/concerns/site/metafields.rb:72: syntax error, unexpected ':', expecting => ...=> { 'type' => 'string', 'not': { 'enum': ['dom_id', 'model_... ... ^ I'm using Ruby 2.1.6, Rails 4.2.6 and Apache 2.4.10 + Passenger installed as a gem for the server. You can see the complete output here: http://locomotive.creativecocos.com/ What am I missing? Thanks.
ANSWERED

Support assets PDF?

Hi, I can upload assets like pdf ? or an external host, I have in mind buy the host, but I try in my free acaount but dont load the files pdf This appears to be a default in Engine

Search/Filter function on content entries

Hi, the old locomotive hosting admin pages had a function to search for entries. I can't seem to find it in the locomotive works portal. We have about 700 events on the site, and it's borderline unusable without it. Please halp! Thanks! Vlad
ANSWERED

Include font-awesome

Has anyone successfully managed to include font-awesome in a wagon project (outside of using the built-in bootstrap theme that includes font-awesome)? I've tried using the official Font Awesome gem (https://github.com/FortAwesome/font-awesome-sass) with no success. Including just `font-awesome` in my application scss looks for the fonts at the path `/fonts/font-awesome/`, which gives a 404. Including `font-awesome-sprockets` as well gives the error `Custom asset_path helper is not implemented`.

Error: Mongo::Error::NoServerAvailable

Mongo::Error::NoServerAvailable (No primary server is available in cluster: #<Cluster topology=Unknown[localhost:27017] servers=[#<Server address=localhost:27017 UNKNOWN>]> with timeout=30, LT=0.015. The following servers have dead monitor threads: #<Server address=localhost:27017 UNKNOWN>):

'undefined method `force_encoding'' on wagon clone

I'm getting the following error when trying to clone our site. ``` undefined method `force_encoding' for {"de"=>"false"}:Hash ``` Seems to be a locale issue. German is the only language used on the site. Top line of backtrace: ``` /home/vagrant/.rvm/gems/ruby-2.2.3/gems/locomotivecms_wagon-2.1.1/lib/locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern.rb:19:in `replace_asset_urls' ``` Any idea on how to fix this?
ANSWERED

Error : Resource invalid: slug is already taken, entries_custom_fields

Hi there, I am trying to push live the first changes that I have made in my code, however when I try to deploy I got this error massage and I cannot find the problem, any ideas?
ANSWERED

what would cause the error "Deploying... Resource invalid: local_path is already taken"

when i try and push to my locomotive site i get this error .. "Deploying... Resource invalid: local_path is already taken" how do i go about diagnosing the cause? >bundle exec wagon version 2.0.1 ************************ answering my own question if i use the command > bundle exec wagon deploy production -v the -v causes it to be verbose, which in turn tells me spaces arent workign in a file name.