Git Product home page Git Product logo

engine's Introduction

Locomotive

Build Status Code Climate Coverage Status Join the chat at https://gitter.im/locomotivecms/engine

Locomotive is an open source platform to create, publish and edit sites (CMS). It is designed to save time and help you focus on what matters: front-end technology, standard development process and a very low learning curve for your clients.

Locomotive relies on a very original workflow:

  • Sites are coded locally using our open source tool: Wagon.
  • Sites are deployed to the platform (engine) thanks to our internal API.
  • A back-office for the end-users is automatically generated based on the custom models and editable regions described by the developers.

Locomotive

Visit the Locomotive official website here for more information.

Features

  • Multi-sites natively supported
  • Uses Liquid, a simple and clean templating language
  • Easy to add custom sections, content types, no SQL needed
  • Beautiful and intuitive editing interface
  • Can fully localize all the content and pages
  • Embed a Restful API to manage every site
  • Develop and preview sites locally with your favorite tools (Wagon)
  • Support for Webpack, SASS, HAML and Coffee Script (Wagon)

Instructions and help

Contribute

Have a look at our Trello board to see what's next or see where you can help out.

Technologies

Here is a list of the main gems used to power the Locomotive platform:

  • Ruby 3+
  • Rails 7 - web framework
  • Bootstrap - UI framework
  • Mongoid 7 - Object-Document-Mapper for MongoDB 6
  • Devise 4 - Authentication
  • Carrierwave - Upload
  • Pundit - Permissions

Translating the back-office

By default, the Locomotive back-office is fully translated in English, Dutch and Greek.

Adding a new language is pretty straightforward since we now manage all our I18n translation keys in Transifex, a platform dedicated to this kind of task.

Here is our Transifex portal page: https://www.transifex.com/locomotive/locomotive-engine. Feel free to sign up and translate!

How to contribute

Locomotive is an open source project, we encourage contributions. If you have found a bug and want to contribute a fix, or have a new feature you would like to add, follow the steps below to get your patch into the project:

  • Install ruby, mongoDB and phantomjs
  • Clone the project git clone [email protected]:locomotivecms/engine.git
  • Setup a virtual host entry for locomotive.local to point to localhost
  • Start mongodb if it is not already running
  • Run the tests bundle exec rake
  • Write your failing tests
  • Make the tests pass
  • Create a GitHub pull request

Contact

Feel free to contact me at didier at nocoffee dot fr.

Copyright (c) 2010-2024 NoCoffee, released under the MIT license

engine's People

Contributors

alexsanford avatar benjaminathlan avatar bjorntrondsen avatar boie0025 avatar chrisjeon avatar demental avatar did avatar dirkkelly avatar frisoft avatar garpit avatar greeneca avatar gridar avatar joel avatar kamechb avatar karlbright avatar keithpitt avatar kevzettler avatar leio10 avatar mariovisic avatar matus-tomlein avatar michalgritzbach avatar mkempe avatar mscottford avatar nielsenramon avatar papipo avatar paulsponagl avatar sgrove avatar siefca avatar westonganger avatar youroff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

engine's Issues

Templated pages in third menu level

Hi,
it seems as if templated pages can only exist in the first and second level of the menu.
The following scenario is not possible:

  • Homepage
    • Lawyers
      • City 1
        • TEMPLATE for the lawyers of city 1
      • City 2
        • TEMPLATE for the lawyers of city 2

Has somebody a solution for this one?
Thanks!

Standard set-up on heroku failing on installation step 2

I followed the installation guides at:
http://www.locomotivecms.com/support/installation/engine
and
http://www.locomotivecms.com/support/installation/heroku

and have been able to get up to installation step 1, but when I hit next, the application crashes, and heroku logs gives me:

2011-04-15T16:15:47+00:00 app[web.1]: Started GET "/admin/installation/2" for 66.230.74.242 at 2011-04-15 09:15:47 -0700
2011-04-15T16:15:47+00:00 app[web.1]: [fetch site] host = site.heroku.com / site.heroku.com
2011-04-15T16:15:47+00:00 app[web.1]:
2011-04-15T16:15:47+00:00 app[web.1]: ArgumentError (wrong number of arguments(1 for 0)):
2011-04-15T16:15:47+00:00 app[web.1]:

Is there some extra step that I'm missing that may not be in the install guide?

seo_metadata liquid filter fails when metadata isn't set

The failure is "could not apply string.strip" to nil.

I see two solutions:

  1. Make sure that object.meta_description and meta_keywords return "" instead of nil (probably a default value) or

  2. Make the following change in engine/lib/locomotive/liquid/tags/seo_metadata.rb

    def sanitized_string(string)
      string.strip.gsub(/"/, '') if string # added "if string" at the end
    end
    

RTE in Admin formatting issues

Just been working on some content and got a weird issue within the admin rich text editor.

The steps are this:

  1. Add some content in
  2. Save
  3. Remove all the content
  4. Type some fresh content it.

Any text that is added as part of step 4 is wrapped in div tags and not paragraphs.

Can't upload or do anything with Locomotivecms

Everytime I try to add a new collection, upload a stylesheet, image I get a validation error saying: "Can't be blank". Development.log does not reveal any errors. Using Safari for browser. Any help would be greatly appreciated.

File-upload besides image-upload in tinymce editor

I extended the functionality of the imageuploader in tinymce. Now it is possible to upload other files like pdf, xls etc, too.
The uploading-process is the same and also in the same popup-window. The data will be saved in the same collection as the images. I thought this would be useful, because all user-data being used in the editor should be in the same place.
If you want to insert the file into your page a link to the file will be inserted. If you insert an image, this one will be shown/integrated as before.

I made a copy of the tinymce plugin locoimage, called it locomediafile, did my changes and integrated it into the editor. So you can always switch between the standard imageupload and the extended mediafile-upload.

If someone is interested in this feature I'd pack the files and make a pull request.

Bernd.

Bundle install fails running ruby19 w/ linecache

Get the following error doing a bundle install:

  • running rvm ruby 1.9.2 & bundler 1.0.0.... rc6

Installing linecache (0.43) with native extensions /Users/Philip/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/Users/Philip/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***

โ€ฆ
โ€ฆ
โ€ฆ
โ€ฆ
โ€ฆ


Poked around a bit and it seems you have to install "linecache19" instead, when running ruby19.
But I can't seem to figure out where the dependency for linecache gets included.

Default template for creating new pages.

Hi,
I think it would be very helpful for the customer, editing his own site, to be able to create a new page on his own. Therefor it should be possible to define a "default template" for new pages. At the moment I need to copy a template snippet from another page or create a new one.
Is someone else interested in such a feature or is it already in planning?
Regards,
Bernd

permalinks are not unique

Hi.
The permalinks are not unique and this is really bad, because you can not access all data.
Let's say you have a model with authors and you have two authors both called "Peter Pan". On your index page you're showing all authors with a link to the specific author pages:
{{ author.name }}
Both links will aim at /author/peter_pan
Could someone please fix this, so that every permalink is unique?

Thanks!
Bernd.

Inline Editing - need help?

Hey Guys,

I'm part of the Aloha Editor team and inline editing is a big thing for us. At the Aloha Editor Hackathon coming up this month I'm doing a talk on inline editing and how it could work with Flavors.me type services. So would love to help you guys out and collaborate with you if you'd like.

You can reach me via email on [email protected] and skype via balupton.

Keep up the good work guys :-)

Installation Woes

I'm running through http://www.locomotivecms.com/support/installation/source right now and just been having problem after problem:

$ bundle install
Fetching git://github.com/floehopper/mocha.git
remote: Counting objects: 3930, done.
remote: Compressing objects: 100% (1081/1081), done.
remote: Total 3930 (delta 2880), reused 3828 (delta 2821)
Receiving objects: 100% (3930/3930), 612.53 KiB | 151 KiB/s, done.
Resolving deltas: 100% (2880/2880), done.
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system: 
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Installing ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Installing tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Installing actionmailer-with-request (0.1.1) 
Installing arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Installing autotest (4.4.6) 
Installing bcrypt-ruby (2.1.4) with native extensions 
Installing bson (1.2.0) 
Installing bson_ext (1.2.0) with native extensions 
Using bundler (1.0.3) 
Installing celerity (0.8.7) 
Installing culerity (0.2.14) 
Installing nokogiri (1.4.3.1) with native extensions 
Installing ffi (0.6.3) with native extensions 
Installing childprocess (0.1.6) 
Installing json_pure (1.4.6) 
Installing rubyzip (0.9.4) 
Installing selenium-webdriver (0.1.2) 
Installing xpath (0.1.3) 
Installing capybara (0.4.0) 
Installing closure-compiler (1.0.0) 
Installing columnize (0.3.2) 
Using configuration (1.2.0) 
Installing crack (0.1.8) 
Using diff-lcs (1.1.2) 
Installing trollop (1.16.2) 
Installing gherkin (2.1.5) with native extensions 
/Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:180:in `fetch_path': Errno::EADDRNOTAVAIL: Can't assign requested address (http://rubygems.org/gems/term-ansicolor-1.0.5.gem) (Gem::RemoteFetcher::FetchError)
    from /Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:110:in `download'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:252:in `download_gem_from_uri'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:76:in `fetch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:45:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:44:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/bin/bundle:13
    from /usr/bin/bundle:19:in `load'
    from /usr/bin/bundle:19

$ bundle exec unicorn_rails
Could not find term-ansicolor-1.0.5 in any of the sources

$ sudo bundle exec unicorn_rails
Password:
git://github.com/floehopper/mocha.git (at master) is not checked out. Please run `bundle install
$ sudo bundle install
Fetching git://github.com/floehopper/mocha.git
remote: Counting objects: 3930, done.
remote: Compressing objects: 100% (1081/1081), done.
remote: Total 3930 (delta 2880), reused 3828 (delta 2821)
Receiving objects: 100% (3930/3930), 612.53 KiB | 168 KiB/s, done.
Resolving deltas: 100% (2880/2880), done.
Fetching source index for http://rubygems.org/
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Using ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Using actionmailer-with-request (0.1.1) 
Using arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Using autotest (4.4.6) 
Using bcrypt-ruby (2.1.4) 
Using bson (1.2.0) 
Using bson_ext (1.2.0) 
Using bundler (1.0.3) 
Using celerity (0.8.7) 
Using culerity (0.2.14) 
Using nokogiri (1.4.3.1) 
Using ffi (0.6.3) 
Using childprocess (0.1.6) 
Using json_pure (1.4.6) 
Using rubyzip (0.9.4) 
Using selenium-webdriver (0.1.2) 
Using xpath (0.1.3) 
Using capybara (0.4.0) 
Using closure-compiler (1.0.0) 
Using columnize (0.3.2) 
Using configuration (1.2.0) 
Using crack (0.1.8) 
Using diff-lcs (1.1.2) 
Using trollop (1.16.2) 
Using gherkin (2.1.5) 
Installing term-ansicolor (1.0.5) 
Installing cucumber (0.8.5) 
Installing cucumber-rails (0.3.2) 
Installing locomotive_carrierwave (0.5.0.1.beta2) 
Installing mongo (1.0.9) 
Using will_paginate (3.0.pre2) 
Installing mongoid (2.0.0.beta.19) 
Installing custom_fields (1.0.0.beta2) 
Installing daemons (1.1.0) 
Installing database_cleaner (0.6.0) 
Installing delayed_job (2.1.2) 
Installing delayed_job_mongoid (1.0.1) 
Installing warden (0.10.7) 
Installing devise (1.1.3) 
Installing excon (0.4.0) 
Installing factory_girl (1.3.3) 
Using thor (0.14.6) 
Using railties (3.0.3) 
Installing factory_girl_rails (1.0.1) 
Installing formatador (0.0.16) 
Using json (1.4.6) 
Installing net-ssh (2.0.24) 
Installing ruby-hmac (0.4.0) 
Installing fog (0.3.7) 
Installing formtastic (1.2.3) 
Installing growl-glue (1.0.7) 
Installing haml (3.0.18) 
Installing has_scope (0.5.0) 
Using launchy (0.3.7) 
Installing rest-client (1.6.1) 
Installing heroku (1.17.8) 
Installing httparty (0.7.3) 
Installing responders (0.6.2) 
Installing inherited_resources (1.1.2) 
Installing yui-compressor (0.9.3) 
Installing jammit (0.6.0) 
Installing kgio (2.1.1) with native extensions 
Installing linecache (0.43) with native extensions 
Installing mimemagic (0.1.7) 
Installing proxies (0.2.1) 
Installing s3 (0.3.7) 
Installing locomotive_jammit-s3 (0.5.4.4) 
Installing locomotive_liquid (2.2.2) 
Installing locomotive_mongoid_acts_as_tree (0.1.5.1) 
Installing mimetype-fu (0.1.2) 
Using mocha (0.9.10.20101125155727) from git://github.com/floehopper/mocha.git (at master) 
mocha at /Library/Ruby/Gems/1.8/bundler/gems/mocha-ef4439904bb8 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
    ["lib/mocha/integration/mini_test/version_142_and_above.rb"] are not files

Installing rspec-core (2.3.1) 
Installing rspec-expectations (2.3.0) 
Installing rspec-mocks (2.3.0) 
Installing rspec (2.3.0) 
Installing yard (0.6.4) 
Installing pickle (0.4.4) 
Using rails (3.0.3) 
Installing rmagick (2.12.2) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.12.2. Can't find Magick-config in /Users/balupton/bin:/usr/local/zend/bin:/usr/local/zend/mysql/bin:/usr/local/zend/apache2/bin:/usr/local/mysql*/bin:/usr/local/bin:/opt/local/libexec/git-core/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rmagick-2.12.2 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rmagick-2.12.2/ext/RMagick/gem_make.out
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `each'
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `build_extensions'
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:198:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:100:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:55:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:44:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/bin/bundle:13
    from /usr/bin/bundle:19:in `load'
    from /usr/bin/bundle:19
$ which brew
$ ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/share/man/man3
/usr/local/share/info
==> The following directories will have their group set to staff:
/usr/local/bin
/usr/local/share/man/man3
/usr/local/share/info

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+w /usr/local/. /usr/local/bin /usr/local/share/man/man3 /usr/local/share/info
Password:
==> /usr/bin/sudo /usr/bin/chgrp staff /usr/local/bin /usr/local/share/man/man3 /usr/local/share/info
==> Downloading and Installing Homebrew...
==> Installation successful!
$ brew install imagemagick
==> Downloading http://www.ijg.org/files/jpegsrc.v8b.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8b --disable-dependency-tracking
==> make install
/usr/local/Cellar/jpeg/8b: 17 files, 1.6M, built in 42 seconds
==> Downloading http://download.osgeo.org/libtiff/tiff-3.9.4.zip
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/3.9.4 --mandir=/usr/local/Cellar/libtiff/3.9.4/share/man
==> make install
/usr/local/Cellar/libtiff/3.9.4: 235 files, 3.6M, built in 44 seconds
==> Downloading http://www.littlecms.com/1/lcms-1.19.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/little-cms/1.19 --disable-debug
==> make install
/usr/local/Cellar/little-cms/1.19: 20 files, 932K, built in 29 seconds
==> Downloading http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
######################################################################## 100.0%
==> ./configure --disable-debug --disable-dependency-tracking --enable-shared --prefix=/usr/local/Cellar/jasper/1.900.1 --mandir=/usr/local/Cellar/jasper/1
==> make install
/usr/local/Cellar/jasper/1.900.1: 33 files, 1.2M, built in 43 seconds
==> Checking out https://www.imagemagick.org/subversion/ImageMagick/trunk
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.6.7-1 --disable-dependency-tracking --enable-shared 
==> make install
==> Caveats
If you get "repository moved" errors, try deleting the folder:
    ~/Library/Caches/Homebrew/imagemagick--svn

Because ImageMagick likes to remove tarballs, we're downloading their
stable release from their SVN repo instead. But they only serve the
repo over HTTPS, and have an untrusted certificate, so we auto-accept
this certificate for you.

If this bothers you, open a ticket with ImageMagick to fix their cert.

Some tools will complain if the ghostscript fonts are not installed in:
    /usr/local/share/ghostscript/fonts
==> Summary
/usr/local/Cellar/imagemagick/6.6.7-1: 1332 files, 33M, built in 3.7 minutes
$ sudo bundle install
Password:
Sorry, try again.
Password:
Fetching source index for http://rubygems.org/
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Using ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Using actionmailer-with-request (0.1.1) 
Using arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Using autotest (4.4.6) 
Using bcrypt-ruby (2.1.4) 
Using bson (1.2.0) 
Using bson_ext (1.2.0) 
Using bundler (1.0.3) 
Using celerity (0.8.7) 
Using culerity (0.2.14) 
Using nokogiri (1.4.3.1) 
Using ffi (0.6.3) 
Using childprocess (0.1.6) 
Using json_pure (1.4.6) 
Using rubyzip (0.9.4) 
Using selenium-webdriver (0.1.2) 
Using xpath (0.1.3) 
Using capybara (0.4.0) 
Using closure-compiler (1.0.0) 
Using columnize (0.3.2) 
Using configuration (1.2.0) 
Using crack (0.1.8) 
Using diff-lcs (1.1.2) 
Using trollop (1.16.2) 
Using gherkin (2.1.5) 
Using term-ansicolor (1.0.5) 
Using cucumber (0.8.5) 
Using cucumber-rails (0.3.2) 
Using locomotive_carrierwave (0.5.0.1.beta2) 
Using mongo (1.0.9) 
Using will_paginate (3.0.pre2) 
Using mongoid (2.0.0.beta.19) 
Using custom_fields (1.0.0.beta2) 
Using daemons (1.1.0) 
Using database_cleaner (0.6.0) 
Using delayed_job (2.1.2) 
Using delayed_job_mongoid (1.0.1) 
Using warden (0.10.7) 
Using devise (1.1.3) 
Using excon (0.4.0) 
Using factory_girl (1.3.3) 
Using thor (0.14.6) 
Using railties (3.0.3) 
Using factory_girl_rails (1.0.1) 
Using formatador (0.0.16) 
Using json (1.4.6) 
Using net-ssh (2.0.24) 
Using ruby-hmac (0.4.0) 
Using fog (0.3.7) 
Using formtastic (1.2.3) 
Using growl-glue (1.0.7) 
Using haml (3.0.18) 
Using has_scope (0.5.0) 
Using launchy (0.3.7) 
Using rest-client (1.6.1) 
Using heroku (1.17.8) 
Using httparty (0.7.3) 
Using responders (0.6.2) 
Using inherited_resources (1.1.2) 
Using yui-compressor (0.9.3) 
Using jammit (0.6.0) 
Using kgio (2.1.1) 
Using linecache (0.43) 
Using mimemagic (0.1.7) 
Using proxies (0.2.1) 
Using s3 (0.3.7) 
Using locomotive_jammit-s3 (0.5.4.4) 
Using locomotive_liquid (2.2.2) 
Using locomotive_mongoid_acts_as_tree (0.1.5.1) 
Using mimetype-fu (0.1.2) 
Using mocha (0.9.10.20101125155727) from git://github.com/floehopper/mocha.git (at master) 
mocha at /Library/Ruby/Gems/1.8/bundler/gems/mocha-ef4439904bb8 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
    ["lib/mocha/integration/mini_test/version_142_and_above.rb"] are not files

Using rspec-core (2.3.1) 
Using rspec-expectations (2.3.0) 
Using rspec-mocks (2.3.0) 
Using rspec (2.3.0) 
Using yard (0.6.4) 
Using pickle (0.4.4) 
Using rails (3.0.3) 
Installing rmagick (2.12.2) with native extensions 
Installing rspec-rails (2.3.1) 
Installing ruby-debug-base (0.10.4) with native extensions 
Installing ruby-debug (0.10.4) 
Installing spork (0.8.4) with native extensions 
Installing unicorn (3.3.1) with native extensions 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ sudo bundle exec unicorn_rails
Password:
$ bundle exec unicorn_rails
I, [2011-02-03T16:16:44.616432 #39776]  INFO -- : listening on addr=0.0.0.0:8080 fd=3
I, [2011-02-03T16:16:44.617114 #39776]  INFO -- : worker=0 spawning...
I, [2011-02-03T16:16:44.618935 #39776]  INFO -- : master process ready
I, [2011-02-03T16:16:44.620552 #39795]  INFO -- : worker=0 spawned pid=39795
I, [2011-02-03T16:16:44.621144 #39795]  INFO -- : Refreshing Gem list
/Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:483:in `connect': failed to connect to any given host:port (Mongo::ConnectionFailure)
    from /Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:137:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `new'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `_master'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:197:in `from_hash'
    from (eval):2:in `send'
    from (eval):2:in `from_hash'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/railtie.rb:54
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
    from /Users/balupton/Dropbox/Server/public_html/rails/locomotive/config/environment.rb:5
    from config.ru:3:in `require'
    from config.ru:3
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1
E, [2011-02-03T16:17:18.213675 #39776] ERROR -- : reaped #<Process::Status: pid=39795,exited(1)> worker=0
I, [2011-02-03T16:17:18.214841 #39776]  INFO -- : worker=0 spawning...
I, [2011-02-03T16:17:18.217735 #39835]  INFO -- : worker=0 spawned pid=39835
I, [2011-02-03T16:17:18.218268 #39835]  INFO -- : Refreshing Gem list
/Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:483:in `connect': failed to connect to any given host:port (Mongo::ConnectionFailure)
    from /Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:137:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `new'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `_master'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:197:in `from_hash'
    from (eval):2:in `send'
    from (eval):2:in `from_hash'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/railtie.rb:54
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
    from /Users/balupton/Dropbox/Server/public_html/rails/locomotive/config/environment.rb:5
    from config.ru:3:in `require'
    from config.ru:3
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1

The above just runs forever erroring.

Refresh issue in Firefox

When I hit refresh in Firefox, I am getting the following error

AbstractController::DoubleRenderError in Admin/renderingController#show

Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".

integrate i18n for content

Hi,

It would be great if you could integrate i18n for content from the start. It in my opinion this would be a real killer feature. I did a quick search on github and there is a already a gem for mongoid https://github.com/Papipo/mongoid_i18n

what do you think?

I've seen a lot of CMSes which do not have build in i18n content translations and it is really hard work to add it later on, as it very often conflicts with the base architecture.

thumbs up! great work so far :-)

cu edi

problems with custom-field "date"

Hi,
there are some issues related to the custom field "date".

  1. It is not possible to define a date as required or better said it is possible but to define it, but it won't work out :)
  2. If there are no data in the date-field, the model-instance can't be created. It will abort with NoMethodError in Admin/contentsController#create
  3. If you are using a locale (date format) other than english, it will abort, too.

Thanks for your help!
Bernd

How can we work with widgets?

As a CMS developer myself I'm wondering how widgets are handled with Locomotive?

Trying out the demo on the Locomotive website seems there is no support for them at all yet. What I'd really love to see is something like BalCMS's ContentList widget:
source: https://github.com/balupton/balcms/blob/master/application/data/fixtures/data.default.yml#L15
code: https://github.com/balupton/balcms/blob/master/application/modules/balcms/views/helpers/Content.php#L295
in action: http://balupton.com - the featured and recent lists are contentlist widgets.

So any thoughts? Progress? Ideas?

Weird behavior while editing options of a select box in a model

Hi,
I just recently created a new model with 2 select boxes. Afterwards I wanted to add a few entries for each of the select boxes. I didn't get any errors, but everytime I edit a box, a duplicate is created with different entries... This is really weird :)
For me it seems as if the saving method is not working as it should.
Thanks for your help!
Bernd.

Theme import doesn't work any more

Hi,

when trying to import a theme I get the following error:
Cannot serialize an object of class Site into BSON.

Is someone else having the same problem?
Thanks!

The following lines are from the logger.

[fetch site] host = new.getbenga.dev / new.getbenga.dev:8080
MONGODB locomotive_dev['sites'].find({:domains=>{"$in"=>["new.getbenga.dev"]}})
MONGODB locomotive_dev['accounts'].find({:_id=>BSON::ObjectId('4d5ac2aafaac271824000004')})
MONGODB locomotive_dev['accounts'].find({:_id=>{"$in"=>[BSON::ObjectId('4d5ac2aafaac271824000004')]}})
[Locomotive import] Cannot serialize an object of class Site into BSON. / ["/Users/hauser/.rvm/gems/ruby-1.9.2-p136/gems/bson-1.2.4/lib/bson/bson_c.rb:24:in `serialize'",

running it localhost - pervasive redirect

Hey, I seem to have run in to some problems with the local server redirecting me to index all the time..

Just to recap what I did.
Cloned, bundled, db:seeded etc. Worked fine.
Changed the default domain to "harrison", added a line in the hosts file, "127.0.0.1 harrison"
And fired up the local server. It renders the index fine. However, when trying to access the admin section I get some weird redirect status in the console..

What did I miss?

Started GET "/admin" for 127.0.0.1 at Wed Sep 01 22:27:43 +0200 2010
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].find({:_id=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {}).limit(-1)
Processing by Admin::PagesController#index as HTML
[fetch site] host = harrison / harrison:3000
MONGODB locomotive_le_dev['sites'].find({:domains=>{"$in"=>["harrison"]}}, {}).limit(-1)
Completed in 1ms
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].update({"_id"=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {"$set"=>{"data"=>"BAh7ByIUYWRtaW5fcmV0dXJuX3RvIgsvYWRtaW4iCmZsYXNoSUM6JUFjdGlv\nbkRpc3BhdGNoOjpGbGFzaDo6Rmxhc2hIYXNoewY6CmFsZXJ0IjZZb3UgbmVl\nZCB0byBzaWduIGluIG9yIHNpZ24gdXAgYmVmb3JlIGNvbnRpbnVpbmcuBjoK\nQHVzZWRvOghTZXQGOgpAaGFzaHsA\n", "updated_at"=>Wed Sep 01 20:27:44 UTC 2010}})

Started GET "/admin/sign_in" for 127.0.0.1 at Wed Sep 01 22:27:44 +0200 2010
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].find({:_id=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {}).limit(-1)
Processing by Admin::SessionsController#new as HTML
[fetch site] host = harrison / harrison:3000
MONGODB locomotive_le_dev['sites'].find({:domains=>{"$in"=>["harrison"]}}, {}).limit(-1)
[fetch site] host = harrison / harrison:3000
MONGODB locomotive_le_dev['sites'].find({:domains=>{"$in"=>["harrison"]}}, {}).limit(-1)
Redirected to http://harrison:3000/
Completed 302 Found in 2ms
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].update({"_id"=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {"$set"=>{"data"=>"BAh7ByIUYWRtaW5fcmV0dXJuX3RvIgsvYWRtaW4iCmZsYXNoSUM6JUFjdGlv\nbkRpc3BhdGNoOjpGbGFzaDo6Rmxhc2hIYXNoewY6CmFsZXJ0IjZZb3UgbmVl\nZCB0byBzaWduIGluIG9yIHNpZ24gdXAgYmVmb3JlIGNvbnRpbnVpbmcuBjoK\nQHVzZWRvOghTZXQGOgpAaGFzaHsGOwZU\n", "updated_at"=>Wed Sep 01 20:27:45 UTC 2010}})

Started GET "/" for 127.0.0.1 at Wed Sep 01 22:27:45 +0200 2010
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].find({:_id=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {}).limit(-1)
Processing by HomeController#show as HTML
Rendered home/show.html.haml within layouts/application (1.8ms)
Completed 200 OK in 7ms (Views: 7.0ms)
MONGODB locomotive_le_dev['action_dispatch_session_mongoid_store_sessions'].update({"_id"=>BSON::ObjectID('4c7eb575cc8258163b000001')}, {"$set"=>{"data"=>"BAh7BiIUYWRtaW5fcmV0dXJuX3RvIgsvYWRtaW4=\n"}})

Httparty::Webservice bad url parsing in consume method

I have tried to use consume liquid tag to parse data from http://www.worldweatheronline.com.

API url is http://free.worldweatheronline.com/feed/weather.ashx and it gets few parameters as a key, format, etc...

But it does not work. After some searching I found that Locomotive::Httparty::Webservice is parsing url using regexp

options[:base_uri], path = url.scan(/^(http[s]?:\/\/.+\.[a-z]{2,})(\/.+)*/).first

which failed to do its work because it tries to match scheme with double slash at the end followed by any characters ending with dot and 2 or more alpha characters - this is base_uri, rest of url is path.

In case of http://free.worldweatheronline.com/feed/weather.ashx?key=secretapikey&format=json base_uri will be http://free.worldweatheronline.com/feed/weather.ashx and path will be nil.

The problem is that dot with 2 or more alpha chars - it swallows all chars to the .ashx part included.

Solution is to change the regexp to allow suffixes of this type (.php, .html, .json etc) or use some library for parsing url - for instance URI.parse(url).

Errors with some fields name

Hi,
I've created a string filed named "link". But .link in the view returns the same result than ._permalink so it's impossible to get that field's content.
I've tried to rename the field but the result is the same, such as the name isn't changed at all.
I had to create a new field and copy the contents from a field to the other :-)

Probably it'd be useful to blacklist some field names, I remember i had the same issue some days ago with another name (sorry, I can't remember it..)

Rights to set roles

Currently a designer can give roles to other users, including an administrator-role. I'm guessing that this aint the intended functionality of the system due to adminstrators being higher up in the hierarchy.

using models inside of templates

Hi again,

Don't know if it's already working but just asking : how do I use custom-defined models in the templates?

For instance, how do I loop trough the collection or get one of them by id/slug/whatever ?

Thanks again :)

Change to new site upon creation

Was hoping we could get redirection to a new site once it has been created.

Have had an issue where i assumed i was logged into the new site's admin interface and uploaded a theme over the top of an older site.

How can I export my theme and content?

Hi,
I've created my theme and contents in the development environment. I'd like to deploy it on my server without copying by hand everithing.
It's possible to create a theme (like lawyer.zip) with some automagic command or tool?

Thanks

Error: No Site! make more descriptive?

Hi,

I'm trying to deploy on Heroku but after installation i get: No Site!
And it's on every page except the installation.
What do I wrong?

Thanks for this great CMS!!

Kieran

bundle install issue

Did you get this error? (with ruby 1.8.7)

Using ruby_core_source (0.1.4) 
Installing linecache19 (0.5.11) with native extensions /Users/seb/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/Users/seb/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby extconf.rb 
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/Users/seb/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby
extconf.rb:2:in `require': no such file to load -- ruby_core_source (LoadError)
        from extconf.rb:2

mongoid install

Hi!

Seems Mongoid has changed from: git://github.com/durran/mongoid.git
to: git://github.com/mongoid/mongoid.git
edit: from the Gemfile

cheers

Bug: impossible to edit model and show content on frontend

Hi,
i've found a new bug: it's appeared now and I can't find which action made it begin (maybe is a new bug came with the new push).

In a model i found a new custom string field "field name" and i can't delete it.
I can only rename it, but the deletion is impossible, although the update action seems to go well

Not possible to delete site

Hi,
it is so far not possible to delete a complete site.
The systems throughs the following error:

NoMethodError in Admin/sitesController#destroy
undefined method `destroy' for nil:NilClass

Thanks for your help.

Dashes instead of underscores in slugs

It's something I've taken for granted for the last five years or so: dashes are better than underscores in URLs. Is there a reason Locomotive uses underscores? I'd be happy to fix it, I just wanted to know if it would be accepted.

Exception with Generator `locomotive:install`

I am running Ubuntu 10.10 and Ruby 1.9.2-p136 (RVM).

I am following the steps at http://www.locomotivecms.com/support/installation/engine

I have completed steps 1-3. The revision in my Gemfile.lock is 0dbc7261696c4d6f0ab3963280f7e653a0957cd7, which is (at the time of posting) the current refs/heads/master.

I am at step 4, and running into the following exception:

$ rails g locomotive:install
...loading Locomotive engine
/home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 182 column 9 (Psych::SyntaxError)
    from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
    from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:119:in `parse'
    from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:106:in `load'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:6:in `<module:LATEX>'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:3:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `block in require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `block in load_dependency'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth.rb:21:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `block in require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `block in load_dependency'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/bundler/gems/engine-0dbc7261696c/lib/locomotive/engine.rb:18:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `each'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `block in require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `each'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.10/lib/bundler.rb:120:in `require'
    from /home/user/path/to/application/config/application.rb:12:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.0.3/lib/rails/commands.rb:15:in `require'
    from /home/user/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.0.3/lib/rails/commands.rb:15:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Error on /admin/theme_assets/new

Running as engine

NoMethodError in Admin/theme_assets#new

Showing /Users/inmacinmac/.rvm/gems/ruby-1.9.2-p136/bundler/gems/engine-d56af954f2ae/app/views/admin/theme_assets/_form.html.haml where line #22 raised:

undefined method `+' for {:api_accounts=>"Notified Accounts"}:Hash

Extracted source (around line #22):

19: - if @theme_asset.new_record?
20: = f.input :plain_text_name
21:
22: = f.custom_input :content_type do
23: = f.select :content_type, %w(stylesheet javascript)
24:
25: = f.custom_input :plain_text, :css => 'full', :with_label => false do

Trace of template inclusion: /Users/inmacinmac/.rvm/gems/ruby-1.9.2-p136/bundler/gems/engine-d56af954f2ae/app/views/admin/theme_assets/new.html.haml

no git submodules for Aloha editor plugins. Inline editing does not work

I've encountered and issue with Aloha. I've pulled the latest version of the engine to make sure if it still there and the Aloha plugin dirs are empty. If I try git submodule status I get:
No submodule mapping found in .gitmodules for path 'public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product'

So no inline editing works for me now.

Liquid error: Document not found - has_many

Hi,

I'm getting a liquid error, while using the has_many feature and I'm struggeling with it now for many hours.... I can't say for sure how to reproduce the error, but I got it on both my local and my live-system.

I have a model "Events" and a model "Musicians". One Event has many Musicians.
Now I have a page where I see all events with all the musicians. This could be done like that:

{% for event in contents.events %}
{{ event.name }}

{% for musician in event.musicians %}
{{ musician.name }}


{% endfor %}
{% endfor %}

Looks dead simple. Now I create an event and round about 15 musicians. I attach all these musicians to the one event. Everything is working so far. But if I head over to the musicians-model-index page in the backend, update this page and go back to the frontend to update this page, too I get an liquid error like that:

Liquid error: Document not found for class ContentContentType4dca47a9c150e45aa10009d6 with id(s) 4dcefd11c150e4237b0037a2.

To get rid of the error, there are several ways. I can remove one musician from the event and update the event. Now everything looks fine again. But if I go to the musicians-index-page again, I see the error again. I can restart the apache server, too to get rid of the error.
This tells me, that it has to do something with the cache or something into this direction...

I started to test every possible case. It doesn't matter if the above code is on a normal page or a templatized one. It doesn't matter if you have 2 or 20 musicians. Sometimes you get this error on one of the musicians, sometimes not.

I'm really weird and I have to deliver my work tomorrow.... So if anyone of you has an idea on this I WOULD BE SO THANKFUL!!!

Bernd

Documentation or any tutorial

Hi, I successfully installed locomotive.
Now I'm in the admin section and going to add some pages. But couldn't find any help/info on what to write on that blank textarea. Is there any tutorial of wiki to start with designing and building themes/content??
If the site http://locomotiveapp.org, is that project opensourced?

Installing bundle

Hej,

I just wanted to check out locomotive and ran "bundle install"

And got the following error:

Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "mongoid":
In Gemfile:
delayed_job_mongoid (= 1.0.1) depends on
mongoid (~> 2.0)

mongoid (2.0.0.beta.19)

I have mongoid 2.0.0.beta.19 installed on my system.
And wouldn't it be better to use the latest RC of mongoid 2.0?

Best,
Sebastian

template inheritance

Hi,

I had a little bit of time to play more with Locomotive. I'm wondering how to use template inheritance.

Let's say I have an "homepage" at the root with a template (containing blocks and editable texts). And I have an "about" page under "homepage" as a child. How do I set "about" to use its parent's template ?

Thanks !

Multi-valued attributes in models

I would like to be able to add a multi-valued simple field to a model. For example, a model "News" may have a "Links" field which can store multiple strings of type "Simple Input".

Aloha Styles Broken

In the past few days something has happened to the inline editor's styles.

Yellow borders don't appear around editable elements, and the formatting toolbar doesn't show up.

I've had a poke at aloha.css and gone over the commits. I saw the mongoid related one, but that doesn't seem relevant.

Can someone confirm that they're also having these issues?

Cheers,
:Dirk

SEO Suggestions

A couple of SEO suggestions if I may. (one I've discussed with Did already)

  1. Use hyphens instead of underscores to separate words in the slugs - http://www.searchenginejournal.com/google-underscores-hyphens/6010/ (this may be out of date info now, but hyphens do still seem to be standard across most sites)
  2. Have a SEO section per page, to set a SEO specific page title, keywords and description.

John

throw error when creating a new model

Hi everybody,

I've tried to create a model using the locomtive way and the execution throw:

SyntaxError ((eval):1: syntax error, unexpected tIDENTIFIER, expecting $end
alias :project-name :custom_field_1
^):
lib/locomotive/inherited_resources.rb:13:in create' lib/locomotive/middlewares/fonts.rb:23:incall'

So I've removed fields from my model pattern and it has worked .

I try to reproduce his bug without success

Using ruby 1.9.2 and rails 3.0.7

Can't have a date as the first custom field

I was just playing around with a content type, where I was going to have the first custom field as a date. As soon as I created a record I got the following error, on every admin page. I guess you either need to allow for this possibility, or stop people creating a date as the first custom field.

`undefined method 'truncate' for Sun, 02 Oct 2011:Date
Extracted source (around line #24):

21: %ul
22: - content_type.contents.latest_updated.each do |content|
23: %li
24: = link_to truncate(content.send(content_type.highlighted_field_name), :length => 30), edit_admin_content_path(content_type.slug, content)
25: %span= time_ago_in_words(content.updated_at)
26:
27: .action
Trace of template inclusion: /Users/johnpolling/.rvm/gems/ruby-1.9.2-p136@global/bundler/gems/engine-083debc516b5/app/views/admin/pages/index.html.haml`

Problem deleting custom field options

I have a custom field which is of type select. I went to "edit options" and added the options I wanted. I then needed to delete one, but for some reason it won't delete. I've tried refreshing the whole screen and doing the delete again, but it just keeps ignoring my requests.

See the postback details below

"custom_field"=>{"category_items_attributes"=>{"0"=>{"_destroy"=>"0", "name"=>"Blue", "id"=>"4d5d8d9c650aeb565800002c"}, "1"=>{"position"=>"0", "name"=>"Blue", "id"=>"4d5d8d9e650aeb565800002e"}, "2"=>{"position"=>"1", "name"=>"Brown", "id"=>"4d5d8d9e650aeb565800002f"}, "3"=>{"position"=>"2", "name"=>"Green", "id"=>"4d5d8d9e650aeb5658000030"}, "-1"=>{"position"=>"0", "name"=>""}}}, "parent"=>"content_type", "slug"=>"bin_dates", "id"=>"4d5d8d5d650aeb5658000025"}

The destroy part seems to be being ignored.

John

Custom field "Select" values and exception

Hi,

when creating a custom field "Select" I have not found yet how to setup its values...
Moreover, when creating a new Asset or Content that has a select custom field (which is empty), clicking on "Edit options" fails with the following exception :

NoMethodError (undefined method `content_custom_fields' for nil:NilClass):
  app/controllers/admin/custom_fields_controller.rb:34:in `set_parent_and_fields'
  lib/locomotive/middlewares/fonts.rb:23:in `call'

Thanks.
If select custom field is not completely implemented I'll try to contribute :).

Nicolas.

failed to bundle gem systemTimer

hi, i'm using Locomotive since a few months for personnal use and tests and maybe soon in production but this morning i tried to install locomotive locally and the bundle install command throw an error when installing system timer :

rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

If needed, i can send you the full error stack.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.