About this blog
This is an old blog I coded back in the day. It’s no longer active, but I’m keeping it online as a piece of history and a digital time capsule from 2015.
This is an old blog I coded back in the day. It’s no longer active, but I’m keeping it online as a piece of history and a digital time capsule from 2015.
<%= div_for @post do %>
<%= @post.body %>
<% end %>
Эквивалентно
<div id='post_<%= @post.id %>' class='post'>
<%= @post.body %>
</div>
truncate("Я великий маг огня!", length: 7) # => Я велик...
truncate("Я великий маг огня!", length: 7, separator: ' ') # => Я...
Приветствуем, <%= @user.name.titelize %> # => Приветствуем, Василий Пупкин
Роли: <%= @role_names.to_sentence %> # => Роли: Админ, Автор, Гадский Гад
В посте речь пойдёт о работе с ресурсными файлами в Rails.
Кратко рассмотрим возможности работы с почтой в Rails
Пост про маршруты в Rails и соответствующие им хелперы