diff options
| author | hukl <contact@smyck.org> | 2009-09-10 12:50:41 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-10 12:50:41 +0200 |
| commit | cc401c9bf20995bc4e02ba835847a7578e727d0c (patch) | |
| tree | 7222a0c6176f912b24a6be019eea2c588f11c62c /app | |
| parent | 27fafacabbfa06ee9e74a14ab7687978cbe931e8 (diff) | |
going back to raisl 2.3.3 as 2.3.4 has weird issues when translationg active record validation errors
also changing the german error messages to english as the interface is english only so far
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 1 | ||||
| -rw-r--r-- | app/views/nodes/new.html.erb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index cfc9e7b..538e2f6 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -38,7 +38,6 @@ class NodesController < ApplicationController | |||
| 38 | @node.draft.update_attributes(:title => params[:title]) | 38 | @node.draft.update_attributes(:title => params[:title]) |
| 39 | redirect_to(edit_node_path(@node)) | 39 | redirect_to(edit_node_path(@node)) |
| 40 | else | 40 | else |
| 41 | @node.errors.add_to_base("Titel zu kurz") if @node.errors["slug"] | ||
| 42 | render :new | 41 | render :new |
| 43 | end | 42 | end |
| 44 | end | 43 | end |
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index e11030e..850207b 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | <h1>Create new node</h1> | 1 | <h1>Create new node</h1> |
| 2 | 2 | ||
| 3 | <%= error_messages_for :node %> | 3 | <%= error_messages_for( :node ).gsub("Slug", "Title") %> |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | <p>What kind of node do you want to create?</p> | 6 | <p>What kind of node do you want to create?</p> |
