We are writing this brief tutorial on how to easily get into Ruby programming language and Ruby on Rails framework so our community can grow with new developers. First thing first. Ruby on Rails framework is based on Ruby programming language, and the learning should start from learning Ruby. Before
Using Lodash library will make writing JS code so much easier. The good definition is: "Applicative programming is the pattern of defining a function that takes a function and then invokes that function for each element in a collection/list". It has a very nice documentation [https://lodash.com/docs]
A Cucumber is a software tool based on Behavior Driven Development (BDD) framework which is used to write acceptance tests for the web application. The tests are written in easily readable and understandable format for Business Analysts, Developers and Testers. It is like reading plain English texts! Syntax Cucumber tests
Have you ever wanted to make changes in your Rails app and immediately see the changes in Browser? If so, you can consider using Live Reload Rails feature. Install Live Reload Ubuntu sudo apt-get install python-livereload Install Chrome extension https://chrome.google.com/webstore/detail/livereload Enable http fecth in
In order to install Mongo DB you should create a bash script and run following lines: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 sudo echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list sudo apt-get -y update sudo
A model should only talk to its immediate association. According to the Law of Demeter, you shouldn’t talk to the association’s property or association’s association. Here we talk about Rails delegate approach. BAD SMELL class Profile < ActiveRecord::Base belongs_to :user end <%= @profile.user.address %> <%= @profile.user.