ebouchut + rubyonrails   601

Rails Console Magic Tricks – Luis Vasconcellos – Medium
Seven techniques to increase the developer experience during a Rails Console session. Please note that some of them will come from Ruby itself, and thus won’t be necessarily restricted to the…
rails  console  sandbox  rollback  app  help  view  application  rubyonrails  method  source  code  location  find  search  name  grep  tips 
september 2018 by ebouchut
thoughtbot/terrapin: Run shell commands safely, even with user-supplied values
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects.
geem  library  rails  rubyonrails  ruby  run  shell  command  launch 
june 2018 by ebouchut
INSERTing 50,000 records into a database in ActiveRecord, Arel, SQL, activerecord-import and Sequel. · GitHub
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
rails  rubyonrails  bulk  insert  example  mass  database 
may 2018 by ebouchut
Status update on paperclip? · Issue #2597 · thoughtbot/paperclip
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
paperclip  migrate  migration  activestorage  rails  rubyonrails  gem  deprecated 
may 2018 by ebouchut
jemalloc is a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support. jemalloc first came into use as the FreeBSD libc allocator in 2005, and since then it has found its way into numerous applications that rely on its predictable behavior. In 2010 jemalloc development efforts broadened to include developer support features such as heap profiling and extensive monitoring/tuning hooks. Modern jemalloc releases continue to be integrated bac...
ruby  rails  rubyonrails  gem  library  malloc  memory  RAM  consumption  increase  leak  allocation  reduce  size  small  large 
may 2018 by ebouchut
Rails: Reset the test database
A solution that worked for me to recreate and populate the test database from scratch

bin/rake db:schema:dump
RAILS_ENV=test bin/rake db:drop
RAILS_ENV=test bin/rake db:create
RAILS_ENV=test bin/rake db:test:prepare


bin/rake db:setup # Create the database, load the schema, and initialize with the seed data
bin/rake db:reset # Drop the database + (rake db:setup)
rails  rubyonrails  test  database  db:test:prepare  db:reset  db:drop  db:create  db:setup  from notes
april 2018 by ebouchut
Rails Asset Pipeline - Everything You Should Know
- the basics of how to use the asset pipeline
- best practices for structuring where to put your assets
- how to use the precompile array to specify what files are processed by the asset pipeline
- how Sass and Coffeescript can be leveraged
- how to use Rails asset helper methods, and
- some gotchas
rails  rubyonrails  asset  pipeline  learn  compile  sass  coffeescript 
march 2018 by ebouchut
Execute SQL statement from the Rails console
ActiveRecord::Base.connection.execute "SQL statement here"
rails  console  execute  SQL  statement  query  run  launch  rubyonrails  from notes
february 2018 by ebouchut
Fast JSON API serialization with Ruby on Rails – Netflix TechBlog – Medium
We are pleased to announce the open source release of the Fast JSON API gem geared towards Ruby on Rails applications. Fast JSON API is aimed at providing all the major functionality that Active Model…
JSON  serialize  serialization  API  gem  fast  speed  AMS  active  model  serializer  rails  rubyonrails 
february 2018 by ebouchut
"open source project classification system that takes a lot more than popularity into account.

It breaks projects down into three main components:


Source: http://rubyfacets.com/7
rubygems  ruby  library  gem  maturity  maintenance  popularity  find  search  health  state  viable  rails  rubyonrails  github  opensource 
may 2017 by ebouchut
Developing Rails API Applications
"The web is changing. Modern applications now have to deliver interactivity and options that server-rendered HTML just can’t provide. With more clients being written in JavaScript and native mobile technologies, we need to write applications that speak the web’s new bridge language — JSON.

As a Rails developer, your experience gives you a head start when it comes to developing API applications, but to be effective, you need to learn to apply your skills to a new set of problems. This course will help you make the jump with complete confidence.

Topics covered:
RESTful Resources • Authentication • Serialization
Endpoint Testing • Design Patterns "
rails  rubyonrails  API  course  PDF  learn  application  email  rails5  5 
may 2017 by ebouchut
Rails: Minitest: Run a single test by name
bundle exec rake db:test:prepare test TEST=test/models/user_test.rb TESTOPTS="-n '/name required/'"

Source: http://stackoverflow.com/a/23045740/386517
rails  rubyonrails  test  minitest  single  method  function  name  one  from notes
february 2017 by ebouchut
norman/friendly_id: FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
"FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models. "

For instance, to use "http://example.com/states/washington" instead of "http://example.com/states/4323454".
rails  rubyonrails  gem  permalink  slug  URL  pretty  short  custom  id  generate  transform  create  build  friendly  user  string  convert  activerecord  model 
december 2016 by ebouchut
Track errors with modern exception logging for JavaScript, Python, Ruby, Java, and Node.js
real-time error tracking gives you insight into production deployments and information to reproduce and fix crashes.
logging  error  monitoring  rails  rubyonrails  javascript  nodejs  node  log  stack  trace  notify  monitor 
december 2016 by ebouchut
Ruby on Rails - Strong Parameters
"With strong parameters, Action Controller parameters are forbidden to be used in Active Model mass assignments until they have been whitelisted. This means that you'll have to make a conscious decision about which attributes to allow for mass update. This is a better security practice to help prevent accidentally allowing users to update sensitive model attributes."
rails  rubyonrails  strong  parameter  forbidden  attributes  mass  assignment  update  permit  permitted  whitelist  authorize  controller  forbid  allow  post  put  security 
november 2016 by ebouchut
PostgreSQL's Foreign Data Wrapper
Want to "combine data from two PostgreSQL databases"?

"PostgreSQL has a useful feature called Foreign Data Wrapper, which lets you create foreign tables in a PostgreSQL database that are proxies for some other data source. When you make a query against a foreign table, the Foreign Data Wrapper will query the external data source and return the results as if they were coming from a table in your database."
postgres  multiple  database  foreign  data  wrapper  use  rails  rubyonrails  proxy  from pocket
october 2016 by ebouchut
« earlier      
per page:    204080120160

related tags

1.9.3  2.0  2.1  2.2  4.1  4.2  5.1  37signals  a  abstract  acceptance  accepts_nested_attributes  access  accessibility  action  ActionController  activate  active  active-record  ActiveControler::Live  activemodel  ActiveModel::Model  activerecord  activeresource  activestorage  activesupport  active_model_serializers  add  add-on  additional  address  admin  administration  advantage  advice  after  aggregator  agile  agld  ago  ails  ajax  all  allocation  allow  amazon  AMS  analyse  analysis  analytics  analyze  analyzer  anayse  anaytics  anchor  android  angular  angularjs  animation  annotate  annotation  anti-pattern  apache  api  aplication  app  appengine  apple  application  application.rb  ApplicationController  arel  argument  around  ascending  ASCII  assembla  assert  assertion  assert_equal  asset  assets  assignment  association  asynchronous  as_json  atribute  attach  attachment  attack  attribute  attributes  attr_accessible  attr_protected  audio  authentication  authenticity  authenticity_token  authorization  authorize  autoload  automate  automatic  automation  autotest  availability  avdi  back  backward  bar  base  bdd  before  begin  beginner  benchmark  berkeley  berkey  best  best-practices  between  big  bin  binstub  bissextile  bit  block  blog  blogging  blogs  bo  book  boolean  boost  boot  bootstrap  botstrap  breach  brew  browse  browser  bug  build  builder  bulk  bundle  bundler  buster  buton_to  button  button_to  buy  by  byebug  cache  caching  call  callback  cancan  cantango  capistrano  capybara  card  career  carousel  carriage  carrierwave  catch  CB  cell  change  character  chart  cheat  cheatsheet  check  checkbox  checking  checkpoint  child  CI  cipher  class  clean  cleaner  clearance  CLI  client  clone  cloud  cluster  CMS  code  codeschool  coffeescript  collect  collection  color  column  command  comment  commit  common  community  company  compare  comparison  compatibility  compatible  compilation  compile  complex  complexity  compliance  compliant  component  compress  computation  compute  concern  condition  conference  config  configuration  configure  conform  connect  connection  console  constaint  constant  constraint  construct  consumption  container  content  context  continuous  control  controller  convention  conversion  convert  cookie  cookies  copy  correct  count  coupling  course  CR  create  credit  CRM  cross  CRUD  crypt  CSRF  css  CSV  ctags  curl  currency  custom  CVE  cygwin  dalli  dashboard  data  data-disable-with  data-format  data-local  database  databasee  datamapper  datbase  date  datetime  day  days  db  db:create  db:drop  db:reset  db:setup  db:test:prepare  deactivate  debian  debug  debugger  debugging  decimal  decision  declared  decorator  decrypt  default  defer  delete  dependencies  dependency  dependent  deploy  deployment  deprecated  desactivate  descending  describe  description  design  developer  development  devise  dhh  diagram  diff  difference  digest  digit  directory  disable  disconnected  display  distinct  distribution  djando  django  doc  docker  documentation  DOM  domain  dot  double  down  download  downtime  dreamhost  drop  druid  drupal  dry  DSL  dump  duplication  duration  dynamic  eager  eblog  ebook  edit  editor  education  elasticsearch  elearning  emacs  email  embed  embedded  ember.js  emploi  empty  enable  encode  encoding  end  ending  endpoint  engine  ensure  entity  entreprise  entry  enum  enumeration  environment  EOS  erb  error  escape  etags  europe  evan  event  ewpression  example  excel  exception  exclude  executable  execute  exist  exit  expectation  explain  export  exposure  expression  extension  external  facebook  facet  factor  factories  factory  factory-girl  factorygirl  factory_girl  fail  failure  fake  fast  fat  favicon  feature  feed  feedback  female  ferret  field  file  filetype:mov  filetype:mp3  filetype:pdf  filter  find  finder  first  fixed  flag  flame  flamegraph  flash  float  folklogic  forbid  forbidden  foreign  forgery  form  format  forum  forward  fragment  framework  francais  france  free  freelance  freelancing  freeze  french  friendly  FTP  full  full_message  full_messages  function  functional  GA  gae  gallery  gdiff  geem  gel  gem  Gemfile  gemify  gemset  gender  generate  generator  get  girl  git  github  gitlab  given  global  go  god  gogle  good  google  google-analytics  grape  graph  graphic  graphviz  gratuit  greater  grep  group  groupby  growl  guard  GUI  guide  guideline  guidelines  GWT  haml  handle  handler  hash  header  health  hebergement  help  helper  here  heredoc  heroku  hide  hierarchy  hint  historical  history  home  hook  host  hosting  hot  howto  hoy  html  HTTP  huge  human  hypermedia  i18n  IaaS  icon  id  ide  identifier  identify  identite  identity  ILIKE  image  image_tag  immutable  improve  improvement  in?  includes  includes?  increase  indeice  indentation  index  infinite  inflection  inflexion  info  information  injection  inline  input  insert  inside  install  installation  installer  instance  integer  integration  integrity  interface  internal  internationalization  interruption  interuption  interval  introduction  invariant  inverse_of  ios  iphone  irb  iso8601  isolate  isolated  isolation  issue  item  java  javascript  jekyll  job  jobboard  join  joomla  josh  jquery  jruby  js  json  jump  jumpstartlab  keep  key  keyboard  keynote  kickstarter  knowles  L10N  label  lambda  LAMP  language  large  last_response  launch  lazy  LDAP  ldmobile  leading  leak  lean  leap  learn  legacy  less  level  LF  li  lib  library  license  lifecycle  light  LIKE  lin  line  link  link_to  lint  linter  linux  lion  list  live  load  loading  local  locale  localization  local_time  locate  location  lock  log  logging  login  logout  long  longrails  lookup  low  lower  lucene  mac  machine  macos  macthers  maintenance  male  malloc  manage  management  manager  markup  mass  match  matcher  matrix  maturity  mavericks  MEAN  measure  media:audio  media:document  media:video  memoizable  memoization  memoize  memory  message  method  methodology  middle  migrate  migration  MIME  minitest  mint  missing  mobile  mock  mode  model  modification  modify  modular  module  money  mongoid  mongomapper  mongrel  monitor  monitoring  MRI  mulitple  multi  multiline  multipart  multiple  mvc  mysql  N+1  name  namespace  naming  navigate  navigation  nested  nested_form  netbeans  network  networking  new  news  newsletter  nginx  nil  nitrous.io  no  node  node.js  nodejs  nokogiri  non  normalize  not  notes  notice  notification  notify  now  null  number  nutshell  obfuscate  object  observer  ODS  off  offre  omniauth  on  onctroller  one  online  only  OOM  open  openid  opensource  operational  operator  opportunity  optimization  option  OR  order  oreilly  ORM  ouput  output  overflow  PAAS  PaaS  package  page  paid  pair  paperclip  parallel  param  parameter  parameters  parent  paris  parse  parser  parsing  partial  party  pass  passed  passenger  path  pattern  pay  payment  pdf  pdfkit  peepcode  people  percent  percentage  performance  permaling  permalink  permit  permitted  persist  pg  phone  php  phusion  pie  pipeline  place  placeholder  playback  plugin  plural  pluralization  podcast  point  popularity  populate  portal  post  postgres  postgreSQL  pow  practice  practices  pragmatic  pragprog  prawn  pre  precision  preload  presence  presence_in  present  presentation  pretty  prevent  price  primary  print  problem  proc  process  processing  production  profile  profiler  profiling  program  programming  project  promotion  pronto  protect  protection  protector  protect_from_forgery  provider  proxy  pry  pull  puma  push  put  python  query  rack  rack-mini-profiler  rail  rails  rails-api  rails-asset  rails3  rails4  rails5  railscasts  railsconf  railsenvy  railsv  raise  rake  Rakefile  RAM  random  rbenv  RDF  rdoc  react  reactive  reactjs  read  read-only  reader  reading  readline  real  receive  recipe  recipes  record  recreate  recruitment  recursive  redirect  redis  reduce  refactor  refactoring  reference  references  referential  regex  regexp  registrar  regular  reguldar  relation  relationship  release  reload  remote  remove  rename  render  reorder  repetition  replay  reponse  report  reporting  request  rescuable  rescue  rescue_from  rescue_with_handler  research  reset  resource  resources  respond  responder  respond_to  respond_with  response  resque  REST  restore  restrict  restriction  result  retrieve  return  reuse  reverse  review  rewrite  rfc822  Rhodes  rhomobile  ri  rimuhosting  roadmap  role  rollback  rolling  ror  round  route  rspec  rss  rub  rubocop  ruby  rubygem  rubygems  rubymine  rubyology  rubyonrails  rule  run  running  runtime  rvm  s  saas  safe_join  sample  san-diego  sandbox  sass  save  saved  scan  schema  SCM  scope  scraping  screen  screencast  script  scrolling  search  SearchEngine  secret  section  secure  security  see  seed  seeds.rb  select  semantic  semaphore  send  serialization  serialize  serializer  server  service  session  set  setting  settings  setup  several  SFTP  share  shared  sharing  sheet  shell  shop  shopify  short  shortcut  shoulda  show  showcase  side  sierra  signal  significant  signin  signout  simpleform  simple_form  simulate  single  singular  site  size  skinny  slide  slideshow  slim  slow  slug  small  smell  SOA  SOAP  social  software  solr  solution  sort  source  space  SPARQL  spec  specific  speed  spinner  splat  split  spreadsheet  sprintf  SQL  sqlite  squiggly  SSH  SSII  ssl  stack  starred  start  startup  state  statement  static  statistics  status  step  store  strategy  stream  streaming  string  stripe  strong  structure  stub  style  styleguide  sub  subdirectory  sublime  sublimetext  subscribe  success  swagger  switch  symbol  synchronize  syntax  system  tab  table  tag  tags  talk  target  task  tdd  technology  telephone  template  test  test:all:db  testing  text  theme  then  thesis  third  thoughtbot  thread  thrift  time  timeout  timezone  time_ago  tip  tips  token  tolearn  tool  toolbag  toread  to_json  to_model  to_s  trace  track  tracker  tracking  training  transaction  transform  translate  translation  transliterate  trap  trauncate  travel  tree  trigger  truncate  truncated  turbolinks  tutorial  type  ubuntu  UCB  UI  UJS  ul  undo  uniq  unique  unit  universal  university  unobstrusive  unreachable  Unread  unsafe  unused  up  update  update_attributes  upgrade  upload  uptime  URI  URL  use  user  UTF8  uuid  v8  vagrant  valid  validate  validation  validator  value  variable  VCR  veille  version  versioning  vi  viable  video  videocast  view  vim  vim-rails  virtual  virtualBox  virtualization  virtus  visibility  visualization  viz  VM  vulnerability  wait  WAMP  warning  watch  weather  web  web2.0  webdev  webservices  websolr  when  where  white  whitelist  whitespace  wickedpdf  widget  wiki  windows  wizard  woocommerce  wordpress  workaround  wrapper  write  X-Accelredirect  X-CSRF-TOKEN  X-Sendfile  xampp  XHR  xls  xml  xsls  XSS  YAML  year  yosemite  zone 

Copy this bookmark: