Ruby On Rails Girl (@ROR_Girl) header
Ruby On Rails Girl (@ROR_Girl) profile picture
Joined March 2014
(false && 1) returns false, true && 1 returns 1. #goingcrazy
on of the best git tutorial i've seen so far atlassian.com/git/
Convert hash keys to symbols: hash.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
NOT WORKING: where("attr_id IN (?)", [10, nil]). WORKING: where("attr_id = ? OR attr_id IS ?", 10, nil)
"Hide() and flash object" article. http://t.co/jNrSput3P9
ActiveModel::Dirty tracks changes as Active Record: user.email_changed? user.email_change #rails #rubyonrails
routes redirection: get '/stories/:id' => redirect('/posts/:id') #ror #rubyonrails #routes
Error Handling in ActiveRecord Transactions http://t.co/BfrpalVk39 #rubyonrails #rails #activerecord
in postgres to dump particular table: pg_dump db_name -t table_name > file.sql #psql #postgreSQL
1
(1..4).map { |i| i*i } #=> [1, 4, 9, 16]. Now i will remember what is 'map' method and how it works. #ruby #mapping
Arrays - Indexes may be negative, and they index backwards (eg -1 is last element). #array #Ruby
TODO: Learn to use Enumerable.
%w(foo bar) is a shortcut for ["foo", "bar"]. http://t.co/HQ0JcjoUiX #ror #rubyonrails #array
I work as ROR developer, but i'm still learning. Every day i'm trying to learn something new. Every day - new tweet with new for me info.