I'm creating an email notification in a .text.haml document. How does one denote a blank line? = @variable.name + " , you have a new update." = = = "There has been new activity." In the above example I would like the two lines that have just the HAML = on them to be blank lines but just having the = signs causes an error. What should I be doing?
So I'm trying to install Mysql through homebrew, using the standard procedure: brew install mysql But running Mysql gets this well-known error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (38) I'm trying this on a fresh new computer. There isn't a /etc/my.cnf, but editing the socket locations does seem to affect the above error message (but doesn't fix
I have read that errors.add_to_base should be used for errors associated with the object and not a specific attribute. I am having trouble conceptualizing what this means. Could someone provide an example of when I would want to use each? For example, I have a Band model and each Band has a Genre. When I validate the presence of a genre, if the genre is missing should the error be added to the bas
I understand the concept of some_instance.send but I'm trying to figure out why you can call this both ways. The Ruby Koans imply that there is some reason beyond providing lots of different ways to do the same thing. Here are the two examples of usage: class Foo def bar? true end end foo = Foo.new foo.send(:bar?) foo.__send__(:bar?) Anyone have any idea about this?
I've been working on installing Ruby on my mac, OSX Lion. I've installed XCode, GCC, Readline, Homebrew, and JewleryBox, but I have no idea what's going on. Any pointers? Here's what my terminal says? hugo-pc:ruby-1.9.3-p125 squantowalks$ rvm install 1.9.3 Fetching yaml-0.1.4.tar.gz to /Users/squantowalks/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/squantowalks/.rvm/src Error running 'tar
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く