summaryrefslogtreecommitdiff
path: root/app/controllers/content_controller.rb
AgeCommit message (Collapse)Author
6 daysStage 4: Rails 5.2 -> 6.1 on Ruby 2.7.2erdgeist
- routing-filter 0.6.3 -> 0.7.0 (Rails 6.1 compatibility) - RSS named routes rss_xml/rss_rdf added - RouteWithParams workarounds: will_paginate_patch, content_path shim, safe_path helper - Paperclip removed, replaced with FileAttachment concern (preserves URL scheme) - Assets resource moved to /admin/assets (Sprockets middleware conflict) - ApplicationRecord base class added, all models migrated - Strong parameters added to Assets, Occurrences, Events, MenuItems controllers - update_attributes -> update throughout - render :nothing -> head :ok/:not_found throughout - language_selector rewritten (removes :overwrite_params) - Environment files updated for Rails 6.1 (eager_load, public_file_server, ActionMailer) - Arel::Visitors::DepthFirst and Integer/Float duration patches removed from test_helper - AssetsController tests added (10 tests covering upload, variants, destroy, auth) - ImageMagick geometry: 460x250! for headline crop (not # which is invalid in IM6) 129 runs, 311 assertions, 5 failures (all pre-existing), 0 errors
6 daysRails 5.2 application fixeserdgeist
- Rename before_filter → before_action across all controllers - Fix string conditions in validators to lambda syntax (node.rb) - Fix publish_draft!: move staged slug/parent logic outside draft guard, use move_to_child_of for parent changes, add nil guard for no-op calls - Fix update_unique_names_of_children: use parent_id traversal instead of lft/rgt descendants (awesome_nested_set 3.x lft/rgt update bug) - Fix unique_path to return Array instead of String - Fix Occurrence.delete_all syntax for Rails 5 - Fix Page.find_with_outdated_translations: use includes instead of all - Fix outdated_translations?: use find instead of splat array
8 daysStage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgradeerdgeist
- Converted plugins to gems (Gemfile) - Updated config structure (application.rb, boot.rb, environment.rb) - Converted routes to Rails 3 DSL - Converted named_scope to scope throughout models - Converted find(:all, :conditions) to where() chains - Fixed has_many :order to use ordering scope - Updated session store and secret token configuration - Fixed exception_notification middleware configuration - Patched Ruby 2.4 / Rails 3.2 incompatibilities: - Integer/Float duration arithmetic (ActiveSupport) - Arel visit_Integer for PostgreSQL adapter - create_database String/Integer coercion - ActionController consider_all_requests_local - Migrated taggings schema for acts-as-taggable-on - Replaced dynamic_form gem with custom form_error_messages helper - Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for) - Fixed admin layout yield - Updated test suite for Rails 3 APIs
2025-01-28Big overhaul patch and style changesCharlie Root
2010-05-09return 404 for non existent gallerieshukl
2009-11-02expires in 20 minutes nowhukl
2009-10-17small clean up in the content controllerhukl
2009-10-08setting expiry headerhukl
2009-09-12Moved galery template and changed width of headline image thumbnail presethukl
2009-09-06Marked Controllers private / public and added authorization filters accordinglyhukl
2009-09-01added expirimental routing for image galerieshukl
added plain image gallery template refinements
2009-03-09only render pages if their published_at date is either nil or set to a time < Time.now. The render_page method will render a 404 otherwise.hukl
2009-03-03introducing page templates - need to add edit capabilitieshukl
renamed the custom template folder forgot one fix for the new custom template path page templates refined renamed page attribute template to template_name as i suspected it to be a reserved word. it still didn't work until i discovered that simon defined the accessible attributes! That costed me 40 minutes of lifetime. But he apologized ;) tests for public and custom page templates
2009-02-19not needed anymorehukl
2009-02-07added globalize2 plugin as well as some modificationshukl
which use the new translation facilities. backend mostly.
2009-02-03added lots of comments to describe what thehukl
methods are doing. this will get everyone a better start. I hope
2009-02-01added test for retrieving a specific revision via hukl
a given node. turned out it wasn't working the way I thought so I rewrote it to use only Fixnums
2009-02-01fix for content_controllerhukl
2009-01-31added everything needed to render a pagehukl
2009-01-29added node model to make basic functional tests pass. added awesome_nested_set pluginhukl
2009-01-29added the content controller which will be responsible for rendering all public pages later on. added a new custom route for the public url schema as well ↵hukl
as a functional test which tests the correct mapping of the custom route