- http://edgeguides.rubyonrails.org/4_1_release_notes.html
- http://coherence.io/blog/2013/12/17/whats-new-in-rails-4-1.html
- http://www.slideshare.net/godfreykfc/rails-41
- https://gist.github.com/chancancode/7781341
- http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-0-to-rails-4-1
This file contains 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
Abby's Ninja Cole z Jesenicke smecky | |
Abby's Ninja Jay z Jesenicke smecky | |
Alexa Cherubic Soul | |
Alfie Amadeus Cherubic Soul | |
Alice Tipota Red Fox | |
Aliya Cherubic Soul | |
Amalia Cherubic Soul | |
Amalka Tipota Red Fox | |
Amalka z Kotarskych luk | |
Amber Cherubic Soul |
This file contains 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
!define GWI_BG_COLOR #d4007b | |
!define GWI_BORDER_COLOR #abcdef | |
skinparam rectangle<<gwi_system>> { | |
StereotypeFontColor ELEMENT_FONT_COLOR | |
FontColor #ELEMENT_FONT_COLOR | |
BackgroundColor GWI_BG_COLOR | |
BorderColor GWI_BORDER_COLOR | |
} |
This file contains 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
# lib/tasks/db.rake | |
namespace :db do | |
desc 'Maintains database by running command as ANALYZE, VACUUM and REINDEX' | |
task maintain: :environment do | |
verbose = ENV['VERBOSE'].present? | |
connection = ActiveRecord::Base.connection | |
puts "Maintaining database #{connection.current_database} ..." | |
connection.execute("VACUUM FULL #{'VERBOSE' if verbose}") |
This file contains 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
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
cs: | |
errors: | |
messages: | |
already_confirmed: 'byl již potvrzen, prosím, zkuste se přihlásit' | |
confirmation_period_expired: 'musí být potvrzen během %{period}, požádejte prosím o nový' | |
expired: 'vypršel, požádejte prosím o nový' | |
not_found: 'nenalezen' | |
not_locked: 'nebyl uzamčen' |
This file contains 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
rails _3.2.15_ new rails_update --database=postgresql --skip-bundle | |
rails _4.1.0_ new rails_update --database=postgresql --skip-bundle |
This file contains 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
class Player | |
def play_turn(warrior) | |
warrior.walk! | |
end | |
end |
This file contains 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
CREATE EXTENSION tablefunc; | |
CREATE TABLE sales(year int, month int, qty int); | |
INSERT INTO sales VALUES(2007, 1, 1000); | |
INSERT INTO sales VALUES(2007, 2, 1500); | |
INSERT INTO sales VALUES(2007, 7, 500); | |
INSERT INTO sales VALUES(2007, 11, 1500); | |
INSERT INTO sales VALUES(2007, 12, 2000); | |
INSERT INTO sales VALUES(2008, 1, 1000); | |
INSERT INTO sales VALUES(2009, 5, 2500); |
This file contains 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
# db/migrate/20131118172653_create_transactional_items_view.rb | |
class CreateTransactionalItemsView < ActiveRecord::Migration | |
def up | |
select_sql = File.open("#{Rails.root}/db/migrate/20131118172653_create_transactional_items_view.sql", 'r') { |f| f.read } | |
# for materialized view: | |
view_sql = "CREATE MATERIALIZED VIEW transactional_items AS (#{select_sql})" | |
# for normal view: | |
view_sql = "CREATE VIEW transactional_items AS (#{select_sql})" | |
This file contains 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
Senior (enterprise) | |
Analyse and profile an application for performance and memory issues | |
Analyses and profile an application for security issues | |
Understand database modeling and query analysis | |
Tune a production deployment (Passenger, Thin, Apache etc) | |
Understand and use Ruby metaprogramming | |
Mentoring skills | |
Communication skills | |
Planning and Estimation |
NewerOlder