mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Getting functional tests running.
This commit is contained in:
parent
fd433d76d8
commit
76340b780c
22 changed files with 267 additions and 216 deletions
|
|
@ -101,7 +101,7 @@ module ApplicationHelper
|
|||
# actions or multiple actions
|
||||
#
|
||||
def count_undone_todos_phrase(todos_parent)
|
||||
@controller.count_undone_todos_phrase(todos_parent)
|
||||
controller.count_undone_todos_phrase(todos_parent)
|
||||
end
|
||||
|
||||
def count_undone_todos_phrase_text(todos_parent)
|
||||
|
|
@ -268,5 +268,13 @@ module ApplicationHelper
|
|||
all_done_todos_path
|
||||
end
|
||||
end
|
||||
|
||||
def get_list_of_error_messages_for(model)
|
||||
error_messages = ""
|
||||
if model.errors.any?
|
||||
list_of_messages = model.errors.full_messages.inject("") { |all, msg| all += content_tag(:li, msg) }
|
||||
error_messages = content_tag(:ul, list_of_messages)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue