I am stuck just trying to run rails plugin new handlers
First of all there is a typo on page 64 There should NOT be a dash in between plug and in
I did a lot of rvm management and now I am getting a openssl error
$ dpkg -l | grep openssl
Dave suggested that I check out:
https://groups.google.com/forum/#!topic/laruby-books/C1u-wZAYvHw
This didn't work
Cynthia suggested I install rvm
Interesting links people mentioned:
http://designinstruct.com/tool/responsive-html-email-framework-zurb-ink/
http://prose.io/
Rails Conf
http://www.railsconf.com/
Showing posts with label Crafting Rails 4 Applications. Show all posts
Showing posts with label Crafting Rails 4 Applications. Show all posts
Wednesday, April 23, 2014
Thursday, April 17, 2014
Block Procs Lambdas map&:(to_s) &:
How &: works? if it is a method, and where is it defined?
> It is rails addition to ruby obviously.
http://caboo.se/doc/classes/Symbol.html#M003931
Symbol#to_proc
This is tricky thing to document. It exploits a ruby syntax quirk where
prepending a & to a method argument calls "to_proc" on that object in an
attempt to make it eligible to be a block.
v.map(&:to_s)
Is the same as:
v.map { |i| i.to_s }
https://www.ruby-forum.com/topic/154453
http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
Subscribe to:
Posts (Atom)