Skip to content

Instantly share code, notes, and snippets.

View obelich's full-sized avatar
:octocat:
Aprendiendo Dart + Flutter

Oscar Miguel Amezcua Estrella obelich

:octocat:
Aprendiendo Dart + Flutter
View GitHub Profile
@obelich
obelich / rb
Last active November 15, 2017 17:31
Desabilita la generación de estilos, helpers y javascripts al hacer un scaffold
config.generators do |g|
g.stylesheets false
g.helper false
g.javascripts false
end
@obelich
obelich / rb
Created November 15, 2017 17:51
post '$Path$', to: '$Controller$#$Action$', on: :collection
@obelich
obelich / rb
Created November 15, 2017 17:52
, path: '', path_names: {sign_in: 'login', sign_out: 'logout', sign_up: 'register'}
@obelich
obelich / rb
Created November 15, 2017 17:53
, as: "$Nombre$"
@obelich
obelich / rb
Created November 15, 2017 17:54
, to: redirect("$Route$")
@obelich
obelich / rb
Created November 15, 2017 17:57
belongs_to :$Modelo$
@obelich
obelich / rb
Created November 15, 2017 17:58
belongs_to :$nombre$, polymorphic: true
@obelich
obelich / rb
Created November 15, 2017 17:58
scope :$Nombre$, -> { where($END$) }
@obelich
obelich / rb
Created November 15, 2017 17:58
scope :$Nombre$, -> { where($END$) }
@obelich
obelich / rb
Created November 15, 2017 17:58
def self.$name$
where($END$)
end