rails new archivo
cd archivo
La instrucción scaffold, ejecuta la instrucción model y controller para hacer un CRUD de un recurso dado. Es como hacer rails g model y rails g controller.
#!/usr/bin/env ruby | |
# | |
# Syncs Ruby binstubs for ruby-communal-gems. | |
# Run this everytime you install a new Ruby, or when you install a new gem | |
# with a bin/ command. (ie, when you typically do rbenv rehash) | |
# | |
# See: https://github.com/tpope/rbenv-communal-gems/issues/5 | |
# | |
require 'fileutils' |
def assets_with_encoding_problems | |
results = {} | |
paths = ["app/assets", "lib/assets", "vendor/assets"] | |
paths.each do |path| | |
Dir[Rails.root + path + "**" + "*.{js,css}"].each do |file| | |
# make sure we're not trying to process a directory | |
raise "directory bad named: #{file} " if File.directory?(file) | |
# read the file and check its encoding | |
data = File.read(file) | |
results[file] = data unless data.valid_encoding? |
es-AR: | |
errors: | |
messages: | |
not_found: 'no encontrado' | |
already_confirmed: 'ya ha sido confirmada' | |
not_locked: 'no está bloqueada' | |
devise: | |
failure: | |
unauthenticated: 'Necesitas acceder a tu cuenta o registrarte antes de continuar.' |