Giter Site home page Giter Site logo

codevise / pageflow Goto Github PK

View Code? Open in Web Editor NEW
684.0 33.0 125.0 27 MB

Multimedia story telling for the web.

Home Page: http://pageflow.io

License: MIT License

Ruby 35.90% JavaScript 54.68% HTML 1.01% CSS 2.56% Shell 0.02% SCSS 5.37% EJS 0.45% Procfile 0.01%
scrollytelling multimedia-storytelling storytelling

pageflow's Introduction

Pageflow

Gem Version Build Status Code Climate Reviewed by Hound

Multimedia storytelling for the web. Built in cooperation with WDR.

For a high level introduction and example Pageflow stories see pageflow.io.

Updating

For instructions on how to update from a prior version of the gem see the Updating Pageflow wiki page.

Ingredients

Pageflow is a Rails engine which roughly consists of the following components:

  • A full MVC stack to manage and display Pageflow stories
  • User and permission management with support for isolated accounts and user collaboration
  • A client side application for live preview editing of stories
  • Background jobs to process and encode images, audios and videos
  • Generators to quickly bootstrap a new Rails application

Pageflow assumes the following choice of libraries:

Requirements

Pageflow runs in environments with:

Accounts of the following cloud services have to be registered:

Installation

Generate a new Rails application using the MySQL database adapter:

$ rails new my_pageflow --database=mysql
$ cd my_pageflow

Do not name your application "pageflow" since it will cause conflicts which constant names created by Pageflow itself.

Database Setup

Enter valid MySQL credentials inside config/database.yml and create the database:

$ rake db:create

Gem Dependencies

Add these lines to your application's Gemfile, replacing X.Y.Z with the current Pageflow version number. It is recommended to depend on a specific minor version using the pessimistic version constraint operator. See Pageflow's versioning policy for details.

# Gemfile
gem 'pageflow', '~> X.Y.Z'

# The install generator sets up Resque as Active Job backend
gem 'resque', '~> 1.25'
gem 'resque-scheduler', '~> 4.10'
gem 'ar_after_transaction', '~> 0.8.0'
gem 'redis', '~> 3.0'
gem 'redis-namespace', '~> 1.5'

Run bundler to install dependencies:

$ bundle install

Running the Generator

Now you can run the generator to setup Pageflow and its dependencies:

$ rails generate pageflow:install

The generator will invoke Active Admin and Devise generators in turn and apply some configuration changes. When asked to overwrite the db/seeds.rb file, choose yes.

To better understand Pageflow's configuration choices, you can run the single steps of the install generator one by one. See the wiki page The Install Generator in Detail for more. If you'd rather not look behind the scenes for now, you can safely read on.

Database Migration

Now you can migrate the database.

$ rake db:migrate

Finally, you can populate the database with some example data, so things do not look too blank in development mode.

$ rake db:seed

Configuration

Pageflow stores files in S3 buckets also in development mode. Otherwise there's no way to have Zencoder encode them. See setting up external services.

The host application can utilize environment variables to configure the API keys for S3 and Zencoder. The variables can be found in the generated Pageflow initializer.

For available configuration options and examples see the inline docs in config/initializers/pageflow.rb in your generated rails app.

Ensure you have defined default url options in your environments files. Here is an example of default_url_options appropriate for a development environment in config/environments/development.rb:

config.action_mailer.default_url_options = {host: 'localhost:3000'}

In production, :host should be set to the actual host of your application.

Running Pageflow

In addition to the Rails server, you need to start two Rake tasks for the background job processing. These tasks are listed in Procfile which is generated in the project root folder by the Pageflow installer.

Consider using the foreman gem to start all of these processes (including the Rails server) with a single command in your development environment.

The built-in Resque web server is mounted at /background_jobs. Use it to inspect the state of background jobs, and restart failed jobs. This functionality is only available for admins.

Troubleshooting

If you run into problems during the installation of Pageflow, please refer to the Troubleshooting docs. If that doesn't help, consider filing an issue.

Security Policy

See SECURITY.md.

Contributing

Pull requests are welcome on GitHub at https://github.com/codevise/pageflow. Everyone interacting in the project's codebases, issue trackers and mailing lists is expected to follow the code of conduct.

See the Contributing section in the guides list for instructions on how to setup your development environment. The GitHub wiki contains high level guides on common development workflows.

License

The gem is available as open source under the terms of the MIT License.

Special Thanks

Built in cooperation with:

WDR

We would like to express our special thanks to the following services for supporting Pageflow through free open source plans:

BrowserStack

pageflow's People

Contributors

aviav avatar awaismbajwa avatar cschweingruber avatar danielkuhn avatar dependabot[bot] avatar egdbear avatar g-w avatar jrunkel avatar kioopi avatar ninoppp avatar paulmwatson avatar salbertson avatar schoetty avatar tf avatar tilsammans avatar tyranni avatar upsworld avatar usmanmuhammad 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

pageflow's Issues

jquery-ui-rails 5.0 breaks active_admin

The used active_admin version depends on jquery-ui-rails version >= 4.0.0. With version 5.0.0 the file jquery.ui.all cannot be found. We need to restrict the gem version to ~> 4.2.

Changing Impressum and Copyright Link?

Hi there,

Looks like we can't find a way to change the Impressum and Copyright links within the stories. How can we change them? There is nothing in the wiki about that.

Thanks and Cheers,

Player timeout

When I open a page that contains a video, the player elements are shown automatically. After a short time these elements are hidden (a few seconds). The player can be extended with text. If it contains texts, it's nearly unreadable due to the timeout. One has to push the mouse to show it again. Example page: http://reportage.wdr.de/haldern-pop#3141

The easiest fix would be to simply increase the timeout or add an option to pin the player. An advanced option would be to automatically set the timeout depending on the text length, but then we have to assume an average reading speed.

Image post-processing not working

Hi

Something must be wrong with my initial "playground" pageflow config.

When I upload an Image in the story editor. It says "upload successful" and the file is availabel in the mainbucket:

All Buckets /de-XXXXX-pageflow-development/XXXXXX/image_files/unprocessed_attachments/000/000/001/original/filename.png

But the "processing image" (Verarbeitung läuft) keeps on going and going... How long should this take for a ordinary wallpaper sized PNG file?
The "gear-wheel" next to that text keeps on "breathing".

Some other observations:

While the first image I tried to upload was being "processed" (and that ended up in the path an S3 above and is accessible via a browser) I deleted it to stop it from hanging. Another file I uploaded afterwards also said "upload successful" and hangs in processing but this time I cannot find it on S3.

The "download original" is link is not working (says forbidden as actually the file referenced does not exist) for the second image (the first one is deleted in pageflow but still on S3 in the folder above). The non-working link references:
http://de-XXXX-pageflow-development.s3-website-eu-west-1.amazonaws.com/XXXXX/image_files/unprocessed_attachments/000/000/004/v1/large/filename2.jpg?1399644103 => not the "original folder".

So what does this behviour mean? Where is the error/misconfiguration/problem? Do you need me to provide some log files or something to narrow down the scope of the RCA?

Those two log-blocks keep on repeating in an endless loop over and over again:

Started GET "/entries/1" for <public IP replaced> at 2014-05-09 16:13:47 +0200
Processing by Pageflow::EntriesController#show as JSON
  Parameters: {"id"=>"1"}
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.2ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."slug" = '1' ORDER BY "pageflow_entries"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.1ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."id" = ? LIMIT 1  [["id", "1"]]
  Pageflow::Revision Load (0.1ms)  SELECT "pageflow_revisions".* FROM "pageflow_revisions" WHERE "pageflow_revisions"."entry_id" = ? AND (frozen_at IS NULL) ORDER BY "pageflow_revisions"."id" ASC LIMIT 1  [["entry_id", 1]]
  Pageflow::Entry Load (0.1ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" INNER JOIN "pageflow_memberships" ON "pageflow_entries"."id" = "pageflow_memberships"."entry_id" WHERE "pageflow_memberships"."user_id" = ?  [["user_id", 1]]
  Pageflow::ImageFile Load (0.1ms)  SELECT pageflow_image_files.*, pageflow_file_usages.id AS usage_id FROM "pageflow_image_files" INNER JOIN "pageflow_file_usages" ON "pageflow_image_files"."id" = "pageflow_file_usages"."file_id" WHERE "pageflow_file_usages"."revision_id" = ? AND "pageflow_file_usages"."file_type" = 'Pageflow::ImageFile'  [["revision_id", 1]]
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/editor/image_files/_image_file.json.jbuilder (1.8ms)
  Pageflow::AudioFile Load (0.1ms)  SELECT pageflow_audio_files.*, pageflow_file_usages.id AS usage_id FROM "pageflow_audio_files" INNER JOIN "pageflow_file_usages" ON "pageflow_audio_files"."id" = "pageflow_file_usages"."file_id" WHERE "pageflow_file_usages"."revision_id" = ? AND "pageflow_file_usages"."file_type" = 'Pageflow::AudioFile'  [["revision_id", 1]]
  Pageflow::VideoFile Load (0.1ms)  SELECT pageflow_video_files.*, pageflow_file_usages.id AS usage_id FROM "pageflow_video_files" INNER JOIN "pageflow_file_usages" ON "pageflow_video_files"."id" = "pageflow_file_usages"."file_id" WHERE "pageflow_file_usages"."revision_id" = ? AND "pageflow_file_usages"."file_type" = 'Pageflow::VideoFile'  [["revision_id", 1]]
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/entries/show.json.jbuilder (9.4ms)
Completed 200 OK in 26ms (Views: 18.2ms | ActiveRecord: 1.0ms)
[2014-05-09 16:13:47] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true


Started PUT "/entries/1/edit_lock?timestamp=1399644827711" for <public IP replaced> at 2014-05-09 16:13:47 +0200
Processing by Pageflow::EditLocksController#update as JSON
  Parameters: {"edit_lock"=>{"id"=>"6"}, "timestamp"=>"1399644827711", "entry_id"=>"1"}
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.2ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."slug" = '1' ORDER BY "pageflow_entries"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.1ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."id" = ? LIMIT 1  [["id", "1"]]
  Pageflow::Entry Load (0.1ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" INNER JOIN "pageflow_memberships" ON "pageflow_entries"."id" = "pageflow_memberships"."entry_id" WHERE "pageflow_memberships"."user_id" = ?  [["user_id", 1]]
  Pageflow::EditLock Load (0.1ms)  SELECT "pageflow_edit_locks".* FROM "pageflow_edit_locks" WHERE "pageflow_edit_locks"."entry_id" = ? ORDER BY "pageflow_edit_locks"."id" ASC LIMIT 1  [["entry_id", 1]]
Unpermitted parameters: timestamp, entry_id
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  SQL (169.4ms)  UPDATE "pageflow_edit_locks" SET "updated_at" = '2014-05-09 14:13:47.832447' WHERE "pageflow_edit_locks"."id" = 6
Completed 204 No Content in 178ms (ActiveRecord: 170.1ms)
[2014-05-09 16:13:48] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

Problem running the generator

Hi,

i can't run the generator. The following command "rails generate pageflow:install" throws the following error:

root@vps63020:/usr/local/pageflow# rails generate pageflow:install
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- active_admin (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `block in require'
        from /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:214:in `load_dependency'
        from /var/lib/gems/1.9.1/gems/activesupport-4.0.4/lib/active_support/dependencies.rb:229:in `require'
        from /usr/local/pageflow/lib/pageflow/engine.rb:13:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /var/lib/gems/1.9.1/gems/railties-4.0.4/lib/rails/engine/commands.rb:11:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
        from bin/rails:8:in `<main>'

Where is my problem?

cannot load such file -- resque_scheduler (LoadError)

Please help me :-)
The installation makes a problem.

$ rails generate active_admin:devise User --no-default-user

/Users/developer/.gem/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require': cannot load such file -- resque_scheduler (LoadError)
    from /Users/developer/.gem/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
    from /Users/developer/.gem/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
    from /Users/developer/.gem/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/pageflow-0.1.0/lib/pageflow/engine.rb:11:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/pageflow-0.1.0/lib/pageflow.rb:1:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/pageflow-0.1.0/lib/pageflow.rb:1:in `<top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'
    from /Users/developer/RubymineProjects/testPageflow/config/application.rb:7:in `<top (required)>'
    from /Users/developer/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:43:in `require'
    from /Users/developer/.gem/ruby/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:43:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

Unfortunately, I do not. It would be very kind if you could help me.
Thank you!

/Georg

Make Zencoder optional

There are so many open source tools like ffmpeg, why do we have to rely on a paid external service? Feature request: Make Zencoder optional in favor of a built in transcoding engine.

iOS 8: window.onload not Triggered if Audio Tag on Page

Under iOS 8.0.2 entries containing audio pages get stuck at the loading spinner since Safari fails to trigger the onload event on window. The problem does not occur if the page does not contain audio tags.

As a first workaround we'll hide the loading spinner after a timeout for iOS 8 browsers. As a more profound fix, one could consider creating audio tags dynamically (the way video tags are already handled now). This would require more browser testing though.

Problem running the generator to setup pagflow

Hi,

Following the README "rails generate pageflow:install" throws the following error:

...
Installing yajl-ruby (1.2.0)
Installing zencoder (2.4.6)
Installing pageflow (0.0.3)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
root@hostname [/mnt/data/pageflow]# rails generate pageflow:install
/mnt/data/pageflow/config/environments/development.rb:1:in `<top (required)>': undefined method `configure' for #<Pageflow::Application:0x00000002bea5f8> (NoMethodError)
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/engine.rb:590:in `each'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/engine.rb:590:in `block in <class:Engine>'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /usr/lib64/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
        from /usr/lib64/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
        from /usr/lib64/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/lib64/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
        from /usr/lib64/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
        from /usr/lib64/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
        from /usr/lib64/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
        from /usr/lib64/ruby/1.9.1/tsort.rb:180:in `each'
        from /usr/lib64/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
        from /usr/lib64/ruby/1.9.1/tsort.rb:148:in `tsort_each'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
        from /mnt/data/pageflow/config/environment.rb:5:in `<top (required)>'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'
        from /usr/local/lib64/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:44:in `<top (required)>'
        from bin/rails:8:in `require'
        from bin/rails:8:in `<main>'
root@hostname[/mnt/data/pageflow]# 

Where is my mistake/problem? Thanks a lot!

specific scroll speed causing audio cacophony

hi

there is a specific scroll speed that is
a) slow enough to start audio playback but
b) fast enough to skip stopping it on page flip
when skipping through the pages.

As a result all audio/video content is brought to the speakers in parallel which sounds kind of funny.

Do you need any specific client Info (like OS, browser) or is it independent of the client's setup? At least two different combinations were found.

Cheers

Uploading of Audio/Video does not work on Heroku

I've got a problem with pageflow on heroku. On my local environment everything works. When I deploy it to production image uploads/processing it still works but audio and video files are not uploaded anymore. The status says for instance that a audio file is uploaded and then stays in the uploading to s3 step. My guess is that it is somehow related to the heroku file system. Is there a way to configure pageflow to upload audio/video files directly to s3 without uploading them to the production system? Or is there another thing I can configure?

PS: After uploading a audio/video file I receive 404 errors like described in issue: #20

Update from 0.2.1 to 0.3.0: Translations missing or upgrade error..

hi there,

I wanted to report a bug for 0.2.1 that is that audio/video player is not working on a recent Safari browser powered by Mac OS since the update to this version.

During that process I noticed there is 0.3.0 available thus I decided to upgrade first and re-try Safari on 0.3.0.

On our playground/dev system I tried the upgrade from 0.2.1 to 0.3.0 by following the wiki instructions and checking the changelog for version specifics.

The update itself went pretty smooth however in the Editor there is a couple of placeholders instead of expected text (sorry I onyl have the German text):

In "Titel und Optionen" (Title and options?) there is a Tab called "Allgemein" (Common?) which features three textboxes that are labeled:
[missing "de.activerecord.attributes.pageflow/entry.title" translation]
[missing "de.activerecord.attributes.pageflow/entry.summary" translation]
[missing "de.activerecord.attributes.pageflow/entry.credits" translation]

There is a second Tab "labeled" [missing "de.editor.configuration_editor.tabs.widgets" translation]:
That has two checkboxes labeled:
[missing "de.activerecord.attributes.pageflow/entry.manual_start" translation]
[missing "de.activerecord.attributes.pageflow/entry.home_button_enabled" translation]

Every other text in the Editor is existing.

Before I can push this further I need to know if an what I did wrong during update.

Suggestions/Pointers are highly appreciated. :) Thanks a lot in advance!

Another small thing:
When I disabled the new home button in our custom theme it is no longer there (which is fine). However the new Top button seems to be no link. How to enable it point it to the first page?

Cheers,

SMTP config? E-Mails (Invitations) are not sent

Hi again,

As a workaround for #14 we tried to create a new user. It can't be activated due to the fact that no email is being delivered.

Is there some option where to configure SMTP connections?

And where to configure the "from" mail? I assume it is on your own interest that not all of them pretend to come from pageflow.at.codevise.de no matter which arbitrary installation did send them.

Thanks!

Is this maybe related to excluded environments in ./config/initializers/resque_mailer.rb? I did remove "development" there for now to test the mailer functionality but that didn't help

Cheers.

P.S.: log file for this activity:

Started POST "/admin/users/4/resend_invitation" for 95.208.154.107 at 2014-05-12 21:15:45 +0200
Processing by Admin::UsersController#resend_invitation as HTML
  Parameters: {"authenticity_token"=>"ukmFjVAKTuox6AeYKa57HfW7sd2rKp/yleIydc5b394=", "id"=>"4"}
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
  Pageflow::InvitedUser Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", "4"]]
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 4]]
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/user_mailer/invitation.html.erb (0.8ms)
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/user_mailer/invitation.text.erb (0.2ms)

Sent mail to [email protected] (28.4ms)
Date: Mon, 12 May 2014 21:15:45 +0200
From: pageflow.at.codevise.de
To: [email protected]
Message-ID: <53711de1daa2a_1d5a3fd04401eb28249d0@<hostname>.mail>
Subject: Ihre Pageflow Einladung
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--==_mimepart_53711de1d83b0_1d5a3fd04401eb282488d";
 charset=UTF-8
Content-Transfer-Encoding: 7bit


----==_mimepart_53711de1d83b0_1d5a3fd04401eb282488d
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hallo XXX!

Willkommen auf der Pageflow-Plattform. Bitte lege =C3=BCber den folgenden=

Link ein Kennwort fest. In Zukunft kannst Du Dich dann mit Deiner
E-Mail-Adresse anmelden.

http://localhost:3000/admin/password/edit.4?reset_password_token=3D525nqR=
GvqzGbagrhuBcr

Dankesch=C3=B6n und viel Spa=C3=9F,

Dein Pageflow-Team

----==_mimepart_53711de1d83b0_1d5a3fd04401eb282488d
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>Hallo XXX!</p>

<p>Willkommen auf der Pageflow-Plattform. Bitte lege =C3=BCber den
  folgenden Link ein Kennwort fest. In Zukunft kannst Du Dich dann mit
  Deiner E-Mail-Adresse anmelden.</p>

<p><a href=3D"http://localhost:3000/admin/password/edit.4?reset_password_=
token=3D525nqRGvqzGbagrhuBcr">http://localhost:3000/admin/password/edit.4=
?reset_password_token=3D525nqRGvqzGbagrhuBcr</a></p>

<p>Dankesch=C3=B6n und viel Spa=C3=9F,</p>

<p>Dein Pageflow-Team</p>

----==_mimepart_53711de1d83b0_1d5a3fd04401eb282488d--

Redirected to http://xxxx-yyyyy.de/admin/users/4
Completed 302 Found in 64ms (ActiveRecord: 0.5ms)


Started GET "/admin/users/4" for 95.208.154.107 at 2014-05-12 21:15:46 +0200
Processing by Admin::UsersController#show as HTML

Audio player displays incorrect audio file length

Hi

when using audio files that are longer than 09:59 the first digit is omitted in the audio player element. Example: An audio file with the length of 16 minutes and 45 seconds is displayed as having the length 6:45 instead of 16:45.

Cheers,

Video Encoding is stucked at 100%

Hi,

I have a test installation of pageflow.
Everything seems to work except the encoding of a video.
As it can be seen in the picture the encoding is stucked at 100%:

image

I can see the encoded files stored at Amazon S3. Also the Zencoder API is called 7 times with 200 and 201 as returned status codes.
Zencoder is in trial mode which means that there are only 5 seconds videos created. Could that be an issue?

As I cannot see any failures in the log messages, can somebody give me a hint where to look for the problem?

Thanks and Greetings,
Alex

Audio/Video playback broken for Safari@Mac OS X starting from 0.2(.1?)

Hi there,

Video/audio is not playing in current and pre-release Safari on Mac OS X. The only thing you see is an active gear-wheel behind the play button

Versions known not to work:
Safari 6.1.6 (7537.78.2) @ Mac OS X 10.7.5 (dated)
Safari 7.0.6 (9537.78.2) @ Mac OS X 10.9.4 (current)
Safari xxx @ Mac OS X 10.10.10 (pre-release)

Working is:
Firefox@Windows and Firefox@Linux are just fine
As it works with Firefox 31.0 on Mac OS X 10.7.5 I assume it is more a Browser than a OS specific issue (which makes sense anyways).

Interessting would be Safari@Windows however I have no such system at hands and/or do not want to bloat them with Safari.

Cheers,

Allow non S3 Storage for Image Files

As discussed in #47, it is already possible to configure SFTP output for Zencoder jobs. This allows to serve video and audio files from a custom location avoiding S3 access in production. To store image files in a custom location, one could override config.paperclip_s3_default_options to use filesystem storage. But at the moment this would break video/audio transfer to Zencoder since paperclip_s3_default_options is used by both ImageFile#processed_attachment and VideoFile#attachment_on_s3. Filesystem storage for video files does not make sense though since S3 is the only Zencoder input channel supported by Pageflow at the moment.

To resolve this problem, there needs to be a config option like paperclip_processed_image_file_default_options to specify the storage adapter used by ImageFile#processed_attachment.

The most complicated aspect probably is figuring out how to improve naming in this area. There needs to be a coherent naming scheme for these more fine grain options. Moreover, attachment names like attachment_on_s3 already code to much information about implementation details. This could be fixed in this context. Finally, the default configuration should not become more complicated. For the default setup, the S3 storage options should only be defined in one place.

Errors on actions in the GUI

Hi,

I have installed pageflow and I am able to login, but on certain actions in the GUI I get 500 Internal Server Error.

Clicking on Users:

Started GET "/admin/users" for x.x.x.x at 2014-08-17 12:06:08 +0000
Started GET "/admin/users" for x.x.x.x at 2014-08-17 12:06:08 +0000
Processing by Admin::UsersController#index as HTML
Processing by Admin::UsersController#index as HTML
Rendered vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/app/views/active_admin/resource/index.html.arb (33.8ms)
Rendered vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/app/views/active_admin/resource/index.html.arb (33.8ms)
Completed 500 Internal Server Error in 46ms
Completed 500 Internal Server Error in 46ms

ActionView::Template::Error (undefined method name' for nil:NilClass): 1: insert_tag renderer_for(:index) vendor/bundle/ruby/2.0.0/gems/pageflow-0.2.1/admins/pageflow/user.rb:15:inblock (3 levels) in module:Pageflow'
vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/lib/active_admin/view_helpers/method_or_proc_helper.rb:61:in call' vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/lib/active_admin/view_helpers/method_or_proc_helper.rb:61:incall_method_or_proc_on'
vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element.rb:175:in method_missing' vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/lib/active_admin/views/components/table_for.rb:88:inblock in build_table_cell'
vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element/builder_methods.rb:31:in block in build_tag' vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/context.rb:92:inwith_current_arbre_element'
vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element/builder_methods.rb:49:in with_current_arbre_element' vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element/builder_methods.rb:26:inbuild_tag'
vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element/builder_methods.rb:39:in insert_tag' vendor/bundle/ruby/2.0.0/gems/arbre-1.0.1/lib/arbre/element/builder_methods.rb:14:intd'
vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/lib/active_admin/views/components/table_for.rb:87:in `build_table_cell'
...

Clicking on create new "Beitrag":

Started GET "/admin/entries/new" for x.x.x.x at 2014-08-17 12:10:39 +0000
Started GET "/admin/entries/new" for x.x.x.x at 2014-08-17 12:10:39 +0000
Processing by Admin::EntriesController#new as HTML
Processing by Admin::EntriesController#new as HTML
Completed 500 Internal Server Error in 6ms
Completed 500 Internal Server Error in 6ms

NoMethodError (undefined method default_theming' for nil:NilClass): vendor/bundle/ruby/2.0.0/gems/pageflow-0.2.1/admins/pageflow/entry.rb:101:inblock in build_new_resource'
vendor/bundle/ruby/2.0.0/gems/pageflow-0.2.1/admins/pageflow/entry.rb:99:in tap' vendor/bundle/ruby/2.0.0/gems/pageflow-0.2.1/admins/pageflow/entry.rb:99:inbuild_new_resource'
vendor/bundle/ruby/2.0.0/bundler/gems/active_admin-7d477d1bf249/lib/active_admin/resource_controller/data_access.rb:129:in build_resource' vendor/bundle/ruby/2.0.0/gems/inherited_resources-1.4.1/lib/inherited_resources/actions.rb:19:innew'

In both cases it seems that account causes the issue. Is there something I forgot to initialize?

users.rb line 15: link_to(user.account.name, admin_account_path(user.account))
enttry.rb line 101: entry.theming ||= entry.account.default_theming

Thx and Greetings,
Alex

Rescue some common Exceptions

Some common exceptions that result into 500 responses that should just be rescued to silence exception notification.

  • entries#show (ActionController::UnknownFormat) for requests like /wp-login.php
  • pages#order/chapters#order (ActionController::ParameterMissing) "param not found: ids"

Missing image in default theme

Hi there,
maybe this should be cleaned in app/assets/stylesheets/pageflow/themes/default/navigation.css.scss:

283 .overview_mobile .credits a:before, .navigation_credits_box a:before {
284   background-image: image-url('pageflow/themes/#{$theme-name}/anchor_einslive.png');
285 }

;)

method 'configure' for #<Cmstest::Application:0xa313e04> (NoMethodError)

Hey everyone,

I am getting this error message when trying to run "rails generate pageflow:install".

k12@ubuntu:~/cmstest$ rails generate pageflow:install
/home/k12/cmstest/config/environments/development.rb:1:in <top (required)>': undefined methodconfigure' for #Cmstest::Application:0xa313e04 (NoMethodError)
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:inblock in require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in load_dependency' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:inrequire'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/engine.rb:591:in block (2 levels) in <class:Engine>' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/engine.rb:590:ineach'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/engine.rb:590:in block in <class:Engine>' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:30:ininstance_exec'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:30:in run' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:55:inblock in run_initializers'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:226:in block in tsort_each' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:inblock (2 levels) in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in block (2 levels) in each_strongly_connected_component_from' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:ineach_strongly_connected_component_from'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:417:in block in each_strongly_connected_component_from' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:44:ineach'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:44:in tsort_each_child' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:incall'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in each_strongly_connected_component_from' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:inblock in each_strongly_connected_component'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in each' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:incall'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in each_strongly_connected_component' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:intsort_each'
from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in tsort_each' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/initializable.rb:54:inrun_initializers'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/application.rb:215:in initialize!' from /home/k12/cmstest/config/environment.rb:5:in<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:in require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:inblock in require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:214:in load_dependency' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.0.5/lib/active_support/dependencies.rb:229:inrequire'
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/application.rb:189:in require_environment!' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-4.0.5/lib/rails/commands.rb:44:in<top (required)>'
from bin/rails:4:in require' from bin/rails:4:in

'

I am completely new to ruby on rails and happy that I got that far with the installation. Any help is highly appreciated. Thanks a lot in advance.

Multimedia-Tip & iPad

If you using an iPad with Safari you can not scroll over the Multimedia-Tip (if activated) in the front of a Story.

Documentation for configuration of MySQL

Hi there,

the default installation use SQLite. Is there some documentation on how to:

  1. switch to use MySQL
  2. migrate the data from the SQLite to MySQL?

EDIT 1 - just in case s/o faces the same task:
Ad 1) Sorry, found it - must have missed it during the inital setup: https://github.com/codevise/pageflow/wiki/Getting-Started
Ad 2) Also easy, http://fabianpeter.de/cloud/owncloud-migrating-from-sqlite-to-mysql/ helped a lot. Only watchouts were that MySQL <5.5 has MyISAM storage engine as default, had to switch it for that DB to InnoDB during the import session, and UTF8 default collation doesn't work so I did set DB's default collation to the corresponding ASCII collation

MySQL seems to perform faster (not measured, just felt).

Thanks and cheers,

View statistics?

Hi there,

Is there a way to count the number of story views easily? From the logs we can retrieve the IPs however one IP may represent multiple users so this is not an indication of the actual page views? Can maybe google analytics be used somehow? A simple view counter would also be sufficient.

Thanks and Cheers,

Image upload broken?

Hi there,
I am trying to test image upload using the 'test' environment (to avoid using s3-stroage). Uploading itself seems to work (the original files are uploaded to the tmp-directory) ... but within the editor I can't see any image. The app tries to load something from 'entries/:entry/undefined' ... here is the log:

Started POST "/editor/entries/2/image_files" for 172.16.11.6 at 2014-05-07 13:47:08 +0200
Processing by Pageflow::Editor::ImageFilesController#create as JSON
  Parameters: {"authenticity_token"=>"undefined", "image_file"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f35c4b7dff8 @tempfile=#<File:/tmp/RackMultipart20140507-4630-s9e45l>, @original_filename="Jellyfish.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"image_file[attachment]\"; filename=\"Jellyfish.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "entry_id"=>"2"}
  User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.3ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."slug" = '2' ORDER BY "pageflow_entries"."id" ASC LIMIT 1
  Pageflow::Entry Load (0.2ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" WHERE "pageflow_entries"."id" = ? LIMIT 1  [["id", "2"]]
  Pageflow::Revision Load (0.2ms)  SELECT "pageflow_revisions".* FROM "pageflow_revisions" WHERE "pageflow_revisions"."entry_id" = ? AND (frozen_at IS NULL) LIMIT 1  [["entry_id", 2]]
  Pageflow::Entry Load (0.1ms)  SELECT "pageflow_entries".* FROM "pageflow_entries" INNER JOIN "pageflow_memberships" ON "pageflow_entries"."id" = "pageflow_memberships"."entry_id" WHERE "pageflow_memberships"."user_id" = ?  [["user_id", 1]]
  Pageflow::EditLock Load (0.1ms)  SELECT "pageflow_edit_locks".* FROM "pageflow_edit_locks" WHERE "pageflow_edit_locks"."entry_id" = ? LIMIT 1  [["entry_id", 2]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", 1]]
   (0.1ms)  begin transaction
  SQL (0.4ms)  UPDATE "pageflow_edit_locks" SET "updated_at" = '2014-05-07 11:47:08.976581' WHERE "pageflow_edit_locks"."id" = 3
   (20.4ms)  commit transaction
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/28f4e638fbcacc4dcf40a55c12a218d020140507-4630-ipw95s.jpg[0]' 2>/dev/null
   (0.6ms)  begin transaction
Binary data inserted for `string` type on column `unprocessed_attachment_content_type`
  SQL (2.1ms)  INSERT INTO "pageflow_image_files" ("created_at", "entry_id", "height", "state", "unprocessed_attachment_content_type", "unprocessed_attachment_file_name", "unprocessed_attachment_file_size", "unprocessed_attachment_updated_at", "updated_at", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)  [["created_at", Wed, 07 May 2014 11:47:09 UTC +00:00], ["entry_id", 2], ["height", 768], ["state", "not_processed"], ["unprocessed_attachment_content_type", "image/jpeg"], ["unprocessed_attachment_file_name", "Jellyfish.jpg"], ["unprocessed_attachment_file_size", 775702], ["unprocessed_attachment_updated_at", Wed, 07 May 2014 11:47:09 UTC +00:00], ["updated_at", Wed, 07 May 2014 11:47:09 UTC +00:00], ["width", 1024]]
   (19.9ms)  commit transaction
   (0.1ms)  begin transaction
  SQL (0.7ms)  INSERT INTO "pageflow_file_usages" ("created_at", "file_id", "file_type", "revision_id", "updated_at") VALUES (?, ?, ?, ?, ?)  [["created_at", Wed, 07 May 2014 11:47:09 UTC +00:00], ["file_id", 5], ["file_type", "Pageflow::ImageFile"], ["revision_id", 2], ["updated_at", Wed, 07 May 2014 11:47:09 UTC +00:00]]
   (18.4ms)  commit transaction
   (0.2ms)  begin transaction
  SQL (0.7ms)  UPDATE "pageflow_image_files" SET "state" = ?, "updated_at" = ? WHERE "pageflow_image_files"."id" = 5  [["state", "processing"], ["updated_at", Wed, 07 May 2014 11:47:09 UTC +00:00]]
   (18.6ms)  commit transaction
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/editor/image_files/_image_file.json.jbuilder (2.6ms)
  Rendered /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.0.5/app/views/pageflow/editor/files/create.json.jbuilder (4.5ms)
Completed 200 OK in 405ms (Views: 7.6ms | ActiveRecord: 83.9ms)
Started GET "/entries/test/undefined" for 172.16.11.6 at 2014-05-07 13:47:09 +0200

Btw ... is there any chance to activate local storage within other enviroments, too? ;)

Michael

Issue updating page flow from 0.0.5 to 0.1.0

Hi there,

When doing an "bundle update" updating page flow from 0.0.5. to 0.1.0 I ran into the following issue:

When trying to view a story:

Showing /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.1.0/app/views/pageflow/entries/show.html.erb where line #4 raised:

undefined method `environment' for nil:NilClass
  (in /usr/local/lib64/ruby/gems/1.9.1/gems/pageflow-0.1.0/app/assets/stylesheets/pageflow/themes/default.css.scss)

When opening up the admin login screen:

Showing /usr/local/lib64/ruby/gems/1.9.1/bundler/gems/active_admin-7d477d1bf249/app/views/layouts/active_admin_logged_out.html.erb where line #9 raised:

undefined method `environment' for nil:NilClass
  (in /mnt/data/playground/app/assets/stylesheets/active_admin.css.scss)

What is wrong and who can I fix that?

Thanks a lot!

Cheers,

EDIT: Sorry, my bad. Forgot database migration. BTW, typo on the wiki page https://github.com/codevise/pageflow/wiki/Updating-Pageflow: Mirgations

Cannot edit article

Hi. I just installed pageflow and tried to edit the example page.
I received the following exception.

Backtrace:

pageflow (0.2.1) app/views/pageflow/page_types/_page_type.json.jbuilder:1:in `__usr_lib_ruby_gems_______gems_pageflow_______app_views_pageflow_page_types__page_type_json_jbuilder___3235721469885220499_70355095362360'
actionpack (4.0.2) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.2) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.2) lib/action_view/template.rb:141:in `render'
actionpack (4.0.2) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
actionpack (4.0.2) lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
actionpack (4.0.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.2) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.2) lib/action_view/renderer/partial_renderer.rb:278:in `render'
actionpack (4.0.2) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionpack (4.0.2) lib/action_view/renderer/renderer.rb:21:in `render'
actionpack (4.0.2) lib/action_view/helpers/rendering_helper.rb:24:in `render'
jbuilder (1.2.0) lib/jbuilder/jbuilder_template.rb:14:in `partial!'
pageflow (0.2.1) app/helpers/pageflow/render_json_helper.rb:19:in `block (2 levels) in render_json_partial'
jbuilder (1.2.0) lib/jbuilder.rb:70:in `initialize'
jbuilder (1.2.0) lib/jbuilder/jbuilder_template.rb:4:in `initialize'
jbuilder (1.2.0) lib/jbuilder.rb:49:in `new'
jbuilder (1.2.0) lib/jbuilder.rb:49:in `encode'
pageflow (0.2.1) app/helpers/pageflow/render_json_helper.rb:18:in `block in render_json_partial'
pageflow (0.2.1) app/helpers/pageflow/render_json_helper.rb:33:in `render_with_format'
pageflow (0.2.1) app/helpers/pageflow/render_json_helper.rb:17:in `render_json_partial'
pageflow (0.2.1) app/helpers/pageflow/page_types_helper.rb:6:in `page_type_json_seeds'
pageflow (0.2.1) app/views/pageflow/entries/edit.html.erb:44:in `__usr_lib_ruby_gems_______gems_pageflow_______app_views_pageflow_entries_edit_html_erb__3453176199442800913_40125480'
actionpack (4.0.2) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.2) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.2) lib/action_view/template.rb:141:in `render'
actionpack (4.0.2) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.2) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.2) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.2) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.2) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.2) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.2) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.2) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.2) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.2) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.2) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.2) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/usr/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
activesupport (4.0.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.2) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.2) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.2) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.2) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.2) lib/active_support/callbacks.rb:413:in `_run__1640597702776835216__process_action__callbacks'
activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.2) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.2) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
activerecord (4.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.2) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.2) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.2) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.2) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call'
railties (4.0.2) lib/rails/engine.rb:511:in `call'
railties (4.0.2) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call'
i18n-js (2.1.2) lib/i18n-js/middleware.rb:11:in `call'
warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
warden (1.2.3) lib/warden/manager.rb:34:in `catch'
warden (1.2.3) lib/warden/manager.rb:34:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/flash.rb:241:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.2) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
activerecord (4.0.2) lib/active_record/migration.rb:369:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.2) lib/active_support/callbacks.rb:373:in `_run__4292412873216297196__call__callbacks'
activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.0.2) lib/rails/engine.rb:511:in `call'
railties (4.0.2) lib/rails/application.rb:97:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
/usr/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
/usr/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
/usr/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'

Gemfile

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
#gem 'rails', '4.1.4'
gem 'rails', '4.0.2'
# Use mysql as the database for Active Record
gem 'mysql2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
#gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
#gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring',        group: :development

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

gem 'devise', '3.0.2'

gem 'jbuilder', '1.2'

gem 'activeadmin', :git => 'https://github.com/codevise/active_admin.git', :branch => 'rails4'
gem 'ransack'
gem 'inherited_resources', '1.4.1'
gem 'formtastic', '2.3.0.rc2'

gem 'pageflow'

Problem configuring external service "Amazon S3"

hi,

Maybe I am just dumb but I do not manage configure my pageflow installation to the Amazon S3 service. I have several questions when trying to follow the instructions from the wiki:
https://github.com/codevise/pageflow/wiki/Setting-up-External-Services:
"Grant Zencoder access to the buckets by adding the Zencoder Bucket Policies."
=> See also Using Zencoder with S3: https://app.zencoder.com/docs/guides/getting-started/working-with-s3

There it says:
"Another option is to use a bucket policy, which lets you set permissions on all of the files in your bucket. To get started, visit AWS Console. Select your bucket on the left side of the screen, then click "properties". On the last row click "Add bucket policy"."

First question/problem:

  1. There is no row labeled "Add bucket policy" in the bucket properties (the other stuff Everyone/View and Static website hosting works/exists) in AWS console.
    So how to add the policy?
    screen

Thanks a lot!

Cheers,

pageflow doesn't "find" "zencoded" content

hi again,

After some fiddling with images which works fine now. We tried to upload some video files.

What works:

  1. Upload to main bucket
  2. Zencoding works (Zencoder says that Jobs complete just fine)
  3. Zencoder can store output in output bucket. I can browse the generated content there.

What doesn't work?

Pageflow doesn't seem to notice the that zencoding is done. It is "breathing" and says "Encoding läuft"/Encoding is running".

According to the log it is running in circles. Probably polling for the results which fails (but can't see a "permission" denied" or something that indicates a problem).

Output bucket has View permissions for Everyone (as in installation directions).

What is wrong? Is there some information that I need to provide to resolve this issue?

Thanks!

Pending job in "log/jobs/development/resizing.log"

I, [2014-05-12T20:27:08.881836 #20721]  INFO -- : Pageflow::ProcessImageFileJob - result ok for Pageflow::ImageFile 4
I, [2014-05-12T20:31:09.257040 #21227]  INFO -- : Pageflow::PollZencoderJob - perform for Pageflow::AudioFile 1
I, [2014-05-12T20:31:09.841028 #21227]  INFO -- : Pageflow::PollZencoderJob - result pending for Pageflow::AudioFile 1
I, [2014-05-12T20:34:43.723990 #21656]  INFO -- : Pageflow::PollZencoderJob - perform for Pageflow::VideoFile 1
I, [2014-05-12T20:34:44.456045 #21656]  INFO -- : Pageflow::PollZencoderJob - result pending for Pageflow::VideoFile 1

Result okay in "log/jobs/development/slow.log"

I, [2014-05-12T20:31:04.140646 #21203]  INFO -- : Pageflow::UploadFileToS3Job - perform for Pageflow::AudioFile 1
I, [2014-05-12T20:31:06.275465 #21203]  INFO -- : Pageflow::UploadFileToS3Job - result ok for Pageflow::AudioFile 1
I, [2014-05-12T20:34:29.888944 #21619]  INFO -- : Pageflow::UploadFileToS3Job - perform for Pageflow::VideoFile 1
I, [2014-05-12T20:34:38.155221 #21619]  INFO -- : Pageflow::UploadFileToS3Job - result ok for Pageflow::VideoFile 1

And in default.log also result okay. So resizing is pending? Note: We are currently using an Zencoder integration API key for Zencoder.

Cheers,

404 errors on XHR calls during media upload

When uploading anything using the editor, there are two calls to 'undefined' that produce 404's.:

GET /entries/test/undefined

Could not see any negative functional impact so far.

Error while running db:migrate

I'm using RVM on OS X 10.9. When running rake db:migrate I get the following errors:

== 20140508132319 AddAttributesToUsers: migrating =============================
-- add_column(:users, :failed_attempts, :integer, {:default=>0})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

SQLite3::SQLException: no such table: users: ALTER TABLE "users" ADD "failed_attempts" integer DEFAULT 0/Users/ulf/.rvm/gems/ruby-2.1.0@rails4/gems/sqlite3-1.3.9/lib/sqlite3/database.rb:91:in `initialize'

Getting started with Themes

I know that the theming stuff isn't ready in the documentation. But could you please provide a small example how to get started with creating a new theme. Thanks in advance.

general performance

Do you can say anything about the general performance in production ?

How many requests are on how many RAM possible ?

Which setup do you run ? Nginx ?

How many request do you or your customer serve ?

Routing Error

Hi,

did a fresh install, the link to view my profile results in a routing error:

Started GET "/admin/users/me" for 172.16.11.6 at 2014-05-07 10:34:54 +0200

ActionController::RoutingError (uninitialized constant Admin::UsersController):
  activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `const_get'
  activesupport (4.0.4) lib/active_support/inflector/methods.rb:228:in `block in constantize'
  activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `each'
  activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `inject'
  activesupport (4.0.4) lib/active_support/inflector/methods.rb:224:in `constantize'
  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:66:in `controller'
  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:44:in `call'
  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:71:in `block in call'
  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `each'
  actionpack (4.0.4) lib/action_dispatch/journey/router.rb:59:in `call'
  actionpack (4.0.4) lib/action_dispatch/routing/route_set.rb:674:in `call'
  i18n-js (2.1.2) lib/i18n-js/middleware.rb:11:in `call'
  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.3) lib/warden/manager.rb:34:in `catch'
  warden (1.2.3) lib/warden/manager.rb:34:in `call'
  rack (1.5.2) lib/rack/etag.rb:23:in `call'
  rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
  rack (1.5.2) lib/rack/head.rb:11:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/flash.rb:241:in `call'
  rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
  rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/cookies.rb:486:in `call'
  activerecord (4.0.4) lib/active_record/query_cache.rb:36:in `call'
  activerecord (4.0.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
  activerecord (4.0.4) lib/active_record/migration.rb:373:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  activesupport (4.0.4) lib/active_support/callbacks.rb:373:in `_run__3309974970957359156__call__callbacks'
  activesupport (4.0.4) lib/active_support/callbacks.rb:80:in `run_callbacks'
  actionpack (4.0.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/reloader.rb:64:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.0.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.0.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.0.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.0.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
  activesupport (4.0.4) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  actionpack (4.0.4) lib/action_dispatch/middleware/static.rb:64:in `call'
  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
  railties (4.0.4) lib/rails/engine.rb:511:in `call'
  railties (4.0.4) lib/rails/application.rb:97:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
  /usr/lib64/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  /usr/lib64/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  /usr/lib64/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'


  Rendered /usr/lib64/ruby/gems/1.9.1/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.8ms)
  Rendered /usr/lib64/ruby/gems/1.9.1/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (6.6ms)
  Rendered /usr/lib64/ruby/gems/1.9.1/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (5.6ms)
  Rendered /usr/lib64/ruby/gems/1.9.1/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.4ms)
  Rendered /usr/lib64/ruby/gems/1.9.1/gems/actionpack-4.0.4/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (152.5ms)

Error on using custom theme in precompile phase

Hi,

I created a new theme as described here: https://github.com/codevise/pageflow/wiki/Customizing-Themes-for-Accounts

I get an error that "$main-color" is not defined. I have no idea where I need to define this variable.

The following is the console output:

Running: rake assets:precompile
[...]
I, [2014-08-18T15:34:05.639358 #260] INFO -- : Writing /tmp/staged/app/public/assets/pageflow/themes/mytheme/video_sprite-cfe8aee719824141cbae31a89a9c2669.png
rake aborted!
Sass::SyntaxError: Undefined variable: "$main-color".
(in /tmp/staged/app/app/assets/stylesheets/pageflow/themes/mytheme/anchors.css.scss:2)
/tmp/staged/app/app/assets/stylesheets/pageflow/themes/mytheme/anchors.css.scss:2
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/script/variable.rb:49:in _perform' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/script/node.rb:40:inperform'
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:327:in visit_variable' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:invisit'
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in visit' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:inblock in visit_children'
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in map' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:invisit_children'
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in block in visit_children' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:inwith_environment'
/tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in visit_children' /tmp/staged/app/vendor/bundle/ruby/2.0.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:inblock in visit'

Can somebody help me with this issue?

Thx,
Alex

Configuration problem

Hi,

thanks a lot for your installation guide, but I'm having a little trouble with the correct configuration and thought you might have a tipp for me...

The Upload onto the S3 works, but somehow the path seems to be mixed up and I can't figure out where to set it correctly.

After uploading the image, the "Download" link tries to open:

...amazonaws.com/testapp/mmm.local/image_files/unprocessed_attachments/000/000/027/original/large/1.jpg

which does not exist while this would be correct (same, just without the "large" folder):

...amazonaws.com/testapp/mmm.local/image_files/unprocessed_attachments/000/000/027/original/1.jpg

Any idea why this get mixed up and how to correct it?

LoadError for active_admin while running the generator

Hi there,

I'm having trouble installing pageflow on my local machine. The bundler works fine, but when it comes to running the generator $ rails generate pageflow:install I get a LoadError for "active_admin".

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- active_admin (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
    from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
    from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
    from /Users/stekhn/Development/pageflow/lib/pageflow/engine.rb:13:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/railties-4.1.1/lib/rails/engine/commands.rb:11:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from bin/rails:8:in `<main>'

Is the dependency itself missing or is there something wrong with it? I'm really stuck.

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.