This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
What is Ruby DSL? # As you already know, DSL means domain-specific language. It’s like a language in a language. Here are some examples that we use every day: copy class User attr_reader :name end class Profile < ActiveRecord :: Base has_many :posts end class ApiController < ActionController :: Base before_action :authenticate end But all these examples use rails-provided DSL, how about your…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.