Archived
LOTS of stuff
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
||||
if html_tag =~ /\<label/
|
||||
html_tag
|
||||
else
|
||||
errors = Array(instance.error_message).join(',')
|
||||
%(<span class="field_with_errors">#{html_tag}<span class="validation-error">#{errors}</span></span>).html_safe
|
||||
end
|
||||
end
|
||||
+3
-6
@@ -23,12 +23,9 @@ Site::Application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
resources :forums, path: 'forums' do
|
||||
resources :forumthreads, path: 'threads'
|
||||
collection do
|
||||
resources :forumgroups, path: 'groups'
|
||||
end
|
||||
end
|
||||
resources :forums, path: 'forums'
|
||||
resources :forumthreads, path: '/forums/threads'
|
||||
resources :forumgroups, path: 'forums/groups'
|
||||
|
||||
match '/status' => 'status#show'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user