加载中
Rake DB Commands

Rake is a utility built into Ruby and Rails, which provides an efficient way for managing database changes. You can easily migrate database changes to servers by only using a co...

2018/03/26 14:24
4
Rails join table: Ultimate tutorial

This will a complete tutorial for creating join table in Ruby on Rails. It will show you how to generate the model, address associations and join table model. Also, it will show...

2018/01/29 18:11
5
Rails Scaffold

Scaffolding in Ruby on Rails refers to the auto-generation of a set of a model, views and a controller usually used for a single database table. For example, you can auto-genera...

2018/02/07 20:14
7
Rails RSpec Setup

RSpec is an awesome tool for testing Rails apps. It is a hugely popular BDD-oriented (Behavior Driven Development) testing framework in the Ruby community. It makes writing test...

2018/02/07 22:52
1
Rails Bundle Install and Gemfile

Bundler makes sure that Ruby applications always use the exact gems and versions that you need while keeping a consistent environment and gem dependencies satisfied. This is don...

2018/02/12 16:46
7
Everything There Is to Know About Associations in Rails

An association is a connection between two Active Record models. It makes much easier to perform various operations on the records in your code. We will divide associations into...

How to Work with Git Branches

In the current era, most software development companies work in a collaborative environment where several developers contribute to the same source code. While some will be fixin...

How to Git Stash Your Work in the Correct Way

Imagine that you are working on a part of a project and it starts getting messy. There has been an urgent bug that needs your immediate attention. It is time to save your change...

Rails redirect_to

Rails redirect_to takes two parameters, option and response_status (optional). It redirects the browser to the target specified in options. This parameter can be: Hash - The URL...

2018/02/06 23:07
53
Multiple Ways to Change Database Column in Rails

While working on a Rails application, we all have had to change the database column in some way. You can change the column name and the column type, as well as changing the colu...

FactoryGirl (Bot) - create vs build vs build_stubb

If you are new to writing RSpec tests in Rails using FactoryGirl (bot), you can ask yourself what is the difference between create, build and build_stubbed. In this article, we ...

2018/02/09 17:08
19
Git Commands Ultimate Tutorial [Part 2]

In the last Git Commands article, we have learned how to use Git options and what they can do. Today, we will extend our reach and discover everything there is to know about com...

RSpec Let Vs Before

In RSpec, there are two different ways to write DRY tests, by using before or let . Their purpose is to create variables that are common across tests. In this post, we will expl...

2018/02/07 22:44
4
Rspec Let vs Before

In RSpec, there are two different ways to write DRY tests, by using before or let. Their purpose is to create variables that are common across tests. In this post, we will explo...

2018/02/07 17:06
2

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部