rails-knowledge
Friday, 16 February 2018
React Ecosystem
›
Composition Model : Everything is a component. we create composition functions inoder to build UI with components. Declarative: Reduce...
Thursday, 9 June 2016
TypeError: (0 , _chai.expect)(...).toBe is not a function
›
Error while running Mocha tests: TypeError: (0 , _chai.expect)(...).toBe is not a function By doing some research, came to see that I n...
Wednesday, 8 June 2016
jsdom
›
A JavaScript implementation of the DOM and HTML standards Install: $ npm install jsdom Its much more like DOM its mainly used for t...
get latest code and rebase to local branch
›
> git branch > git checkout develop To fetch all remote branches. > git fetch origin To rebase local develop branch with ...
Tuesday, 7 June 2016
command to delete remote branch from git
›
Here is the command to delete branch from remote repo in git > git push origin --delete <Branch name> This will delete branc...
Monday, 15 February 2016
Git push asking for username and password
›
When I try to push the code to github, I need to submit username and password every time. I keep on asking for username and password while ...
get code from remote branch in git
›
When you want to pull the branch code from same repo, first navigate to main branch. Main branch is the reference branch. > git che...
Wednesday, 5 November 2014
assign default layout in controller
›
Here is the method to check layout in the controller. You can debug the controller self object and check there is any layout name like t...
Friday, 24 October 2014
Ruby on Rails Interview Questions
›
Ruby Interview Questions Ruby Interview Questions 1. What is a class method and how you will define it? Class methods are me...
Object-oriented programming in Ruby
›
Object-oriented programming in Ruby There are three widely used programming paradigms there. Procedural programming Functional pro...
›
Home
View web version