R
R
rockdev2015-06-08 15:26:17
Ruby on Rails
rockdev, 2015-06-08 15:26:17

Are railcasts lessons up to date?

I recently started learning RoR and ran into a series of railscasts, but the problem is that a lot of videos were filmed for version 3 of rails. How relevant is what it says? How many changes have been made in version 4 of rails? How to filter the forgotten from the actual?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
O Di, 2015-06-08
@insiki

Relevant. Somewhere the syntax has changed, faced with this, there are no particular problems in the search for a new one.

C
caution, 2015-06-09
@caution

try to do ... and understand what has changed

B
Befomet, 2015-06-09
@Befomet

The so-called strong parameters (access to model objects)
in rails 4 have changed significantly; they are written in the controller in the form
def book_params
params.require(:book).permit(:title)
end
in rails 3.1, access was in models in the form
attr_accessible :title
In the rest of the "castes" of the video are still relevant, or corrections have been written in the comments to the videos.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question