This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# potrebujeme uzivatela v pravidelnych intervaloch udrziavat "pri zivote" | |
# musime mu teda niekde aktualizovat cas poslednej aktivity | |
# pomocou before filtra to docielime pri kazdom prekliku aplikaciou | |
# umiestnit do kazdeho controlleru, kde potrebujeme | |
before_filter :do_last_act | |
# application.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pole s polozkami | |
@menu_items = [ | |
['messaging', messagging_path, 'Zpravy'], | |
['admin', admin_path, 'Administrace'] | |
] | |
# Generator menu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fancy(str) | |
str = str.gsub(/[ ]+/," ") | |
str = str.gsub(/ /,"-") | |
str = str.downcase | |
str = str.mb_chars.normalize(:kd).gsub(/[^\-x00-\x7F]/n, '').to_s | |
return str | |
end |
NewerOlder