From e0a7e0fec760ba12c8067a37e10c96f1f05876e2 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 24 Jun 2026 04:13:16 +0200 Subject: Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade - 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 --- app/views/assets/edit.html.erb | 6 +-- app/views/assets/new.html.erb | 6 +-- app/views/content/_search.html.erb | 2 +- app/views/content/_tags.html.erb | 2 +- .../public/no_date_and_author_with_map.html.erb | 8 ++++ app/views/events/edit.html.erb | 6 +-- app/views/events/new.html.erb | 6 +-- app/views/layouts/admin.html.erb | 2 +- app/views/layouts/application.html.erb | 2 +- app/views/layouts/application.html.erb.bak | 54 ++++++++++++++++++++++ app/views/menu_items/edit.html.erb | 4 +- app/views/menu_items/new.html.erb | 4 +- app/views/nodes/edit.html.erb | 10 ++-- app/views/nodes/index.html.erb | 2 +- app/views/nodes/new.html.erb | 9 ++-- app/views/occurrences/edit.html.erb | 6 +-- app/views/occurrences/new.html.erb | 6 +-- app/views/pages/edit.html.erb | 4 +- app/views/pages/new.html.erb | 4 +- app/views/revisions/diff.html.erb | 4 +- app/views/revisions/index.html.erb | 6 +-- app/views/sessions/new.html.erb | 4 +- app/views/users/edit.html.erb | 11 +++-- app/views/users/new.html.erb | 11 +++-- 24 files changed, 129 insertions(+), 50 deletions(-) create mode 100644 app/views/custom/page_templates/public/no_date_and_author_with_map.html.erb create mode 100644 app/views/layouts/application.html.erb.bak (limited to 'app/views') diff --git a/app/views/assets/edit.html.erb b/app/views/assets/edit.html.erb index d60db94..e65d600 100644 --- a/app/views/assets/edit.html.erb +++ b/app/views/assets/edit.html.erb @@ -1,7 +1,7 @@

Editing asset

-<% form_for(@asset) do |f| %> - <%= f.error_messages %> +<%= form_for(@asset) do |f| %> + <%= form_error_messages(f) %>

<%= f.submit 'Update' %> @@ -9,4 +9,4 @@ <% end %> <%= link_to 'Show', @asset %> | -<%= link_to 'Back', assets_path %> \ No newline at end of file +<%= link_to 'Back', assets_path %> diff --git a/app/views/assets/new.html.erb b/app/views/assets/new.html.erb index 366488f..6c1310a 100644 --- a/app/views/assets/new.html.erb +++ b/app/views/assets/new.html.erb @@ -1,7 +1,7 @@

New asset

-<% form_for(@asset, :html => { :multipart => true }) do |f| %> - <%= f.error_messages %> +<%= form_for(@asset, :html => { :multipart => true }) do |f| %> + <%= form_error_messages(f) %>

<%= f.label :name %>
@@ -14,4 +14,4 @@

<% end %> -<%= link_to 'Back', assets_path %> \ No newline at end of file +<%= link_to 'Back', assets_path %> diff --git a/app/views/content/_search.html.erb b/app/views/content/_search.html.erb index e654462..aa91424 100644 --- a/app/views/content/_search.html.erb +++ b/app/views/content/_search.html.erb @@ -1,3 +1,3 @@ -<% form_tag search_path, :method => 'get' do %> +<%= form_tag search_path, :method => 'get' do %>
<%= text_field_tag :search_term, params[:search_term], :placeholder => 'suchen', :type => 'search' %>
<% end %> diff --git a/app/views/content/_tags.html.erb b/app/views/content/_tags.html.erb index fd808b6..169ae84 100644 --- a/app/views/content/_tags.html.erb +++ b/app/views/content/_tags.html.erb @@ -1,4 +1,4 @@ -<% unless @page.tags.empty? %> +<% unless @page.nil? || @page.tags.empty? %>

Tags