Tags » Rails

Day 2: JavaScript and jQuery.

So, today I learned about the two things above.

My experience with the MOOC Java course really came in handy. I already understand variables, strings, ints, if, while, methods (functions in JavaScript) and it was mainly just requiring my brain to think in JavaScript syntax. 159 more words

Css

Set up vagrant for Rails

After you have setup vagrant and created your first rails application and forwarded the port from guest to host with:

config.vm.network "forwarded_port", guest: 3000, host: 3000… 98 more words

Ruby On Rails

Gagal menginstall gem di windows 7

gem install sass

ERROR: Could not find a valid gem ‘sass’ (>= 0) , here is why:
Unable to download data from https://rubygems.org/ – SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed…

109 more words
Rails

formtastic and has_one relationship: workaround

I’ve implemented many belongs_to and has_many relationships via ActiveAdmin and formtastic, but never a has_one relationship. I found a quick fix via this git issue… 48 more words

Programming

Rails - JSON encoding performance analysis

Scrutinize problem piece of code –

  1. Rather than using Ruby array manipulation functions on activerecord objects fetched, try to use the sql filter, order, group etc.
  2. 162 more words
ROR