Where did you see validate
? I have not seen it before...
Don't do it if you don't like it. Go ahead and keep sharpening your PHP skills. PHP is good.
I prefer Air. Especially if you are going to bring it around. Buy the 8GB model
hmm I only started looking Slim yesterday, I think you can do something like this
| Text1 #{ link_to 'LINKA', '#'} Text2 #{ link_to 'LINKB', '#' } Text3
However I have not tested it.
Slim renders faster than Haml, or so I was told.
Yes, change it to bootstrap or something
You come from python?
Self is the default
Deprecated
usertimesheet.hrid= custom.value.to_s
you called hrid
on usertimesheet
usertimesheet = usertimesheetMap[entry.user.id.to_i]
so usertimesheet
is an element in usertimesheetMap
.
We know usertimesheetMap
is a hash, but not usertimesheet
. usertimesheet
is probably an array
btw this is not how we name ruby variables.
高手可以不用任何 Ruby 已有的东西 - String Integer if def … 通通不用,只用一个 Proc 编出所有东西来 XD
其实 mixin 也是继承,不过是经过巧妙设计的继承
Which service? Different service providers use different terms.
Usually an instance means a "resource bundle" - typically includes CPU time, memory, disk quota and bandwidth. You can see an instance as a VPS.
However it can mean other things.
yes, top to bottom
Please for once try rails server , so that we can know whether the problem is in your app or in the web server .
rails server
then visit localhost:3000
#59 楼 @orion_chang just install command line tools, where is the trouble?
Is it hosted on GitHub?
No problem here
#5 楼 @syutran nono, that's not what I mean. We should not hold back our words just to avoid being blocked. However, we tend to judge other people by their political stands. That is normal - political stands reveal one's worldview after all. The problem is many Chinese people - myself included - were not educated to mutually accept different values. We start labelling each other on these issues. Then we form small circles. Then the small circles fight on every topics. Then people are annoyed and leave the community.
This happened in so many forums, and is still happening. The recent example would be the V forum. Political discussions are necessary. But there are forums dedicated to them. Ruby China is a tech forum in its very nature. I enjoyed its purity. So I don't feel comfortable seeing a political topic - especially when it may lead to destruction.
No offence. Just my 2c.
I've seen too many forums fell apart due to political discussions. I like ruby-china. Please don't ruin it.